mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-20 17:41:37 +00:00
Implement metadata, replacing source field and laying foundations
This commit is contained in:
parent
a914a92cea
commit
5eb6754b7c
12 changed files with 176 additions and 33 deletions
|
|
@ -140,6 +140,7 @@ fn compute_property_patches(
|
|||
changed_name,
|
||||
changed_class_name,
|
||||
changed_properties,
|
||||
changed_metadata: None,
|
||||
});
|
||||
}
|
||||
|
||||
|
|
@ -244,7 +245,7 @@ mod test {
|
|||
}
|
||||
},
|
||||
|
||||
source: None,
|
||||
metadata: Default::default(),
|
||||
name: Cow::Borrowed("foo"),
|
||||
class_name: Cow::Borrowed("foo"),
|
||||
children: Vec::new(),
|
||||
|
|
@ -262,6 +263,7 @@ mod test {
|
|||
value: Some(root_id),
|
||||
}),
|
||||
},
|
||||
changed_metadata: None,
|
||||
}],
|
||||
added_instances: Vec::new(),
|
||||
removed_instances: Vec::new(),
|
||||
|
|
@ -295,13 +297,13 @@ mod test {
|
|||
},
|
||||
|
||||
snapshot_id: None,
|
||||
source: None,
|
||||
metadata: Default::default(),
|
||||
name: Cow::Borrowed("child"),
|
||||
class_name: Cow::Borrowed("child"),
|
||||
children: Vec::new(),
|
||||
}],
|
||||
|
||||
source: None,
|
||||
metadata: Default::default(),
|
||||
properties: HashMap::new(),
|
||||
name: Cow::Borrowed("foo"),
|
||||
class_name: Cow::Borrowed("foo"),
|
||||
|
|
@ -314,7 +316,7 @@ mod test {
|
|||
parent_id: root_id,
|
||||
instance: InstanceSnapshot {
|
||||
snapshot_id: None,
|
||||
source: None,
|
||||
metadata: Default::default(),
|
||||
properties: hashmap! {
|
||||
"Self".to_owned() => RbxValue::Ref {
|
||||
value: Some(root_id),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue