1
0
Fork 0
roguelike-game/src/raws/loot_structs.rs

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,
}