overhaul: data-driven architecture
This commit is contained in:
parent
062d36f640
commit
f53b767376
19 changed files with 680 additions and 727 deletions
15
src/raws/spawn_table_structs.rs
Normal file
15
src/raws/spawn_table_structs.rs
Normal 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,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue