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

View file

@ -0,0 +1,15 @@
use serde::Deserialize;
#[derive(Deserialize, Debug)]
pub struct SpawnTable {
pub id: String,
pub table: Vec<SpawnTableEntry>,
}
#[derive(Deserialize, Debug)]
pub struct SpawnTableEntry {
pub id: String,
pub weight: i32,
pub min: i32,
pub max: i32,
}