rust-rl/src/raws/spawn_table_structs.rs
2023-07-27 17:59:46 +01:00

14 lines
266 B
Rust

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 difficulty: i32,
}