roguelike-game/src/raws/prop_structs.rs

24 lines
547 B
Rust

use std::collections::HashMap;
use ::serde::Deserialize;
use super::mob_structs::MobLight;
use super::Renderable;
#[derive(Deserialize, Debug)]
pub struct Prop {
pub name: String,
pub renderable: Option<Renderable>,
pub hidden: Option<bool>,
pub blocks_tile: Option<bool>,
pub blocks_visibility: Option<bool>,
pub door_open: Option<bool>,
pub entry_trigger: Option<EntryTrigger>,
pub light: Option<MobLight>,
}
#[derive(Deserialize, Debug)]
pub struct EntryTrigger {
pub effects: HashMap<String, String>,
}