overhaul: data-driven architecture

This commit is contained in:
Llywelwyn 2023-07-25 03:50:50 +01:00
parent 062d36f640
commit f53b767376
19 changed files with 680 additions and 727 deletions

12
src/raws/prop_structs.rs Normal file
View file

@ -0,0 +1,12 @@
use super::Renderable;
use serde::Deserialize;
use std::collections::HashMap;
#[derive(Deserialize, Debug)]
pub struct Prop {
pub id: String,
pub name: String,
pub renderable: Option<Renderable>,
pub flags: Option<Vec<String>>,
pub effects: Option<HashMap<String, String>>,
}