mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-23 14:01:37 +00:00
Tidy up path metadata, entry API, begin implementing
This commit is contained in:
parent
1d412cf0d5
commit
dcac9773fb
4 changed files with 21 additions and 12 deletions
|
|
@ -23,9 +23,9 @@ const INIT_SCRIPT: &str = "init.lua";
|
|||
const INIT_SERVER_SCRIPT: &str = "init.server.lua";
|
||||
const INIT_CLIENT_SCRIPT: &str = "init.client.lua";
|
||||
|
||||
#[derive(Debug, Serialize, Deserialize)]
|
||||
#[derive(Debug, Default, Serialize, Deserialize)]
|
||||
pub struct MetadataPerPath {
|
||||
pub instance_id: RbxId,
|
||||
pub instance_id: Option<RbxId>,
|
||||
pub instance_name: Option<String>,
|
||||
}
|
||||
|
||||
|
|
@ -91,7 +91,8 @@ impl RbxSession {
|
|||
trace!("Snapshotting path {}", path_to_snapshot.display());
|
||||
|
||||
let path_metadata = self.metadata_per_path.get(&path_to_snapshot).unwrap();
|
||||
let instance_id = path_metadata.instance_id;
|
||||
let instance_id = path_metadata.instance_id
|
||||
.expect("Instance did not exist in tree");
|
||||
|
||||
// If this instance is a sync point, pull its name out of our
|
||||
// per-path metadata store.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue