mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-04-22 21:55:15 +00:00
Prototype plugin architecture, switch instance-based stuff to that
This commit is contained in:
18
src/rbx.rs
Normal file
18
src/rbx.rs
Normal 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,
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user