cleans up raws/mod.rs with trait impls for json parsing

This commit is contained in:
Llywelwyn 2023-07-30 09:27:47 +01:00
parent 875e6bfee7
commit dc1cb0562f
5 changed files with 60 additions and 21 deletions

View file

@ -0,0 +1,13 @@
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,
}