roguelike-game/src/raws/loot_structs.rs

14 lines
230 B
Rust
Raw Normal View History

2022-01-05 09:42:36 -05:00
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,
}