2021-12-23 12:48:09 -05:00
|
|
|
use std::collections::HashMap;
|
|
|
|
|
2022-01-14 10:47:43 -05:00
|
|
|
use super::mob_structs::MobLight;
|
2021-12-23 12:48:09 -05:00
|
|
|
use super::Renderable;
|
2022-01-14 10:47:43 -05:00
|
|
|
use ::serde::Deserialize;
|
2021-12-23 12:48:09 -05:00
|
|
|
|
|
|
|
#[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>,
|
2022-01-14 10:47:43 -05:00
|
|
|
pub light: Option<MobLight>,
|
2021-12-23 12:48:09 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
#[derive(Deserialize, Debug)]
|
|
|
|
pub struct EntryTrigger {
|
|
|
|
pub effects: HashMap<String, String>,
|
|
|
|
}
|