rust-rl/src/raws/loot_table_structs.rs

13 lines
238 B
Rust

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