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 attacks: Option>, pub attributes: Option, pub skills: Option>, pub vision_range: i32, pub quips: Option>, pub equipped: 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, }