pub enum OverlayCondition {
FlagComplete {
flag: String,
},
FlagSet {
flag: String,
},
FlagUnset {
flag: String,
},
ItemAbsent {
item_id: ItemId,
},
ItemInRoom {
item_id: ItemId,
room_id: RoomId,
},
ItemPresent {
item_id: ItemId,
},
NpcInState {
npc_id: NpcId,
mood: NpcState,
},
NpcAbsent {
npc_id: NpcId,
},
NpcPresent {
npc_id: NpcId,
},
PlayerHasItem {
item_id: ItemId,
},
PlayerMissingItem {
item_id: ItemId,
},
}Expand description
Types of conditions that may enable room overlays
Variants§
FlagComplete
FlagSet
FlagUnset
ItemAbsent
ItemInRoom
ItemPresent
NpcInState
NpcAbsent
NpcPresent
PlayerHasItem
PlayerMissingItem
Implementations§
Source§impl OverlayCondition
impl OverlayCondition
Sourcepub fn applies(&self, room_id: &RoomId, world: &AmbleWorld) -> bool
pub fn applies(&self, room_id: &RoomId, world: &AmbleWorld) -> bool
Returns true if this condition currently applies.
Trait Implementations§
Source§impl Clone for OverlayCondition
impl Clone for OverlayCondition
Source§impl Debug for OverlayCondition
impl Debug for OverlayCondition
Source§impl<'de> Deserialize<'de> for OverlayCondition
impl<'de> Deserialize<'de> for OverlayCondition
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Forget for OverlayCondition
impl Freeze for OverlayCondition
impl Move for OverlayCondition
impl RefUnwindSafe for OverlayCondition
impl Send for OverlayCondition
impl Sync for OverlayCondition
impl Unpin for OverlayCondition
impl UnsafeUnpin for OverlayCondition
impl UnwindSafe for OverlayCondition
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more