21 lines
388 B
Rust
21 lines
388 B
Rust
|
use serde::Deserialize;
|
||
|
|
||
|
use super::item_structs::Renderable;
|
||
|
|
||
|
#[derive(Deserialize, Debug)]
|
||
|
pub struct Mob {
|
||
|
pub name: String,
|
||
|
pub renderable: Option<Renderable>,
|
||
|
pub blocks_tile: bool,
|
||
|
pub stats: MobStats,
|
||
|
pub vision_range: i32,
|
||
|
}
|
||
|
|
||
|
#[derive(Deserialize, Debug)]
|
||
|
pub struct MobStats {
|
||
|
pub max_hp: i32,
|
||
|
pub hp: i32,
|
||
|
pub power: i32,
|
||
|
pub defense: i32,
|
||
|
}
|