mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-21 12:01:38 +00:00
Prototype plugin architecture, switch instance-based stuff to that
This commit is contained in:
parent
5bf1f11190
commit
21e9625c36
7 changed files with 99 additions and 88 deletions
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,
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue