use super::Renderable; use serde::Deserialize; use std::collections::HashMap; #[derive(Deserialize, Debug)] pub struct Mob { pub id: String, pub name: String, pub renderable: Option, pub flags: Option>, pub level: Option, pub bac: Option, pub speed: Option, pub attacks: Option>, pub attributes: Option, pub skills: Option>, pub vision_range: Option, pub telepathy_range: Option, pub equipped: Option>, pub loot: Option, pub quips: Option>, } #[derive(Deserialize, Debug)] pub struct MobAttributes { pub str: Option, pub dex: Option, pub con: Option, pub int: Option, pub wis: Option, pub cha: Option, } #[derive(Deserialize, Debug)] pub struct NaturalAttack { pub name: String, pub hit_bonus: i32, pub damage: String, } #[derive(Deserialize, Debug)] pub struct LootTableInfo { pub table: String, pub chance: f32, }