mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-04-23 14:15:24 +00:00
server: Add servePlaceId for verifying correct place IDs
This commit is contained in:
@@ -78,6 +78,7 @@ struct SourceProject {
|
|||||||
name: String,
|
name: String,
|
||||||
tree: SourceProjectNode,
|
tree: SourceProjectNode,
|
||||||
serve_port: Option<u16>,
|
serve_port: Option<u16>,
|
||||||
|
serve_place_id: Option<u64>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl SourceProject {
|
impl SourceProject {
|
||||||
@@ -88,6 +89,7 @@ impl SourceProject {
|
|||||||
name: self.name,
|
name: self.name,
|
||||||
tree,
|
tree,
|
||||||
serve_port: self.serve_port,
|
serve_port: self.serve_port,
|
||||||
|
serve_place_id: self.serve_place_id,
|
||||||
file_location: PathBuf::from(project_file_location),
|
file_location: PathBuf::from(project_file_location),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -172,6 +174,7 @@ pub struct Project {
|
|||||||
pub name: String,
|
pub name: String,
|
||||||
pub tree: ProjectNode,
|
pub tree: ProjectNode,
|
||||||
pub serve_port: Option<u16>,
|
pub serve_port: Option<u16>,
|
||||||
|
pub serve_place_id: Option<u64>,
|
||||||
pub file_location: PathBuf,
|
pub file_location: PathBuf,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user