Prototype plugin architecture, switch instance-based stuff to that

This commit is contained in:
Lucien Greathouse
2017-12-13 17:50:34 -08:00
parent 5bf1f11190
commit 21e9625c36
7 changed files with 99 additions and 88 deletions

18
src/rbx.rs Normal file
View File

@@ -0,0 +1,18 @@
use std::collections::HashMap;
#[derive(Debug, Serialize)]
#[serde(rename_all = "camelCase")]
pub struct RbxItem {
pub name: String,
pub class_name: String,
pub children: Vec<RbxItem>,
pub properties: HashMap<String, RbxValue>,
}
#[derive(Debug, Serialize)]
#[serde(rename_all = "camelCase", tag = "type")]
pub enum RbxValue {
String {
value: String,
},
}