mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-21 03:36:06 +00:00
* Moved commands into their own folder to reduce `bin.rs`'s size * Moved all of the VFS-related functionality into its own folder * Documented a lot of functions, including a few very obscure ones
23 lines
586 B
Rust
23 lines
586 B
Rust
use std::collections::HashMap;
|
|
|
|
/// Represents data about a Roblox instance
|
|
#[derive(Debug, Serialize, Deserialize)]
|
|
#[serde(rename_all = "camelCase")]
|
|
pub struct RbxInstance {
|
|
pub name: String,
|
|
pub class_name: String,
|
|
pub children: Vec<RbxInstance>,
|
|
pub properties: HashMap<String, RbxValue>,
|
|
}
|
|
|
|
/// Any kind value that can be used by Roblox
|
|
#[derive(Debug, Serialize, Deserialize)]
|
|
#[serde(rename_all = "camelCase", tag = "type")]
|
|
pub enum RbxValue {
|
|
String {
|
|
value: String,
|
|
},
|
|
|
|
// TODO: Other primitives
|
|
// TODO: Compound types like Vector3
|
|
}
|