roguelike-game/src/raws/loot_structs.rs
2022-01-05 09:42:36 -05:00

14 lines
230 B
Rust

use serde::Deserialize;
#[derive(Deserialize, Debug)]
pub struct LootTable {
pub name: String,
pub drops: Vec<LootDrop>,
}
#[derive(Deserialize, Debug)]
pub struct LootDrop {
pub name: String,
pub weight: i32,
}