mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-21 12:01:38 +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
|
|
@ -39,7 +39,7 @@ impl SnapshotMiddleware for SnapshotCsv {
|
|||
|
||||
Ok(Some(InstanceSnapshot {
|
||||
snapshot_id: None,
|
||||
source: None, // TODO
|
||||
metadata: Default::default(), // TODO
|
||||
name: Cow::Owned(instance_name),
|
||||
class_name: Cow::Borrowed("LocalizationTable"),
|
||||
properties: hashmap! {
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ impl SnapshotMiddleware for SnapshotDir {
|
|||
|
||||
Ok(Some(InstanceSnapshot {
|
||||
snapshot_id: None,
|
||||
source: None, // TODO
|
||||
metadata: Default::default(), // TODO
|
||||
name: Cow::Owned(instance_name),
|
||||
class_name: Cow::Borrowed("Folder"),
|
||||
properties: HashMap::new(),
|
||||
|
|
|
|||
|
|
@ -120,7 +120,7 @@ impl JsonModelCore {
|
|||
|
||||
InstanceSnapshot {
|
||||
snapshot_id: None,
|
||||
source: None, // TODO
|
||||
metadata: Default::default(), // TODO
|
||||
name: Cow::Owned(name),
|
||||
class_name: Cow::Owned(class_name),
|
||||
properties,
|
||||
|
|
@ -170,7 +170,7 @@ mod test {
|
|||
instance_snapshot,
|
||||
InstanceSnapshot {
|
||||
snapshot_id: None,
|
||||
source: None, // TODO
|
||||
metadata: Default::default(), // TODO
|
||||
name: Cow::Borrowed("foo"),
|
||||
class_name: Cow::Borrowed("IntValue"),
|
||||
properties: hashmap! {
|
||||
|
|
@ -180,7 +180,7 @@ mod test {
|
|||
},
|
||||
children: vec![InstanceSnapshot {
|
||||
snapshot_id: None,
|
||||
source: None, // TODO
|
||||
metadata: Default::default(), // TODO
|
||||
name: Cow::Borrowed("The Child"),
|
||||
class_name: Cow::Borrowed("StringValue"),
|
||||
properties: HashMap::new(),
|
||||
|
|
|
|||
|
|
@ -90,7 +90,7 @@ fn snapshot_lua_file<F: ImfsFetcher>(
|
|||
|
||||
Ok(Some(InstanceSnapshot {
|
||||
snapshot_id: None,
|
||||
source: None, // TODO
|
||||
metadata: Default::default(), // TODO
|
||||
name: Cow::Owned(instance_name.to_owned()),
|
||||
class_name: Cow::Borrowed(class_name),
|
||||
properties,
|
||||
|
|
|
|||
|
|
@ -131,7 +131,7 @@ fn snapshot_project_node<F: ImfsFetcher>(
|
|||
|
||||
Ok(Some(InstanceSnapshot {
|
||||
snapshot_id: None,
|
||||
source: None, // TODO
|
||||
metadata: Default::default(), // TODO
|
||||
name,
|
||||
class_name,
|
||||
properties,
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ impl SnapshotMiddleware for SnapshotTxt {
|
|||
|
||||
Ok(Some(InstanceSnapshot {
|
||||
snapshot_id: None,
|
||||
source: None, // TODO
|
||||
metadata: Default::default(), // TODO
|
||||
name: Cow::Owned(instance_name),
|
||||
class_name: Cow::Borrowed("StringValue"),
|
||||
properties,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue