pub struct PropStateDef {
pub glyph: Option<String>,
pub blocking: Option<bool>,
pub walkthrough: Option<bool>,
pub description: Option<String>,
pub on_interact: Option<String>,
pub on_secondary_interact: Option<String>,
pub bump_messages: Vec<String>,
}Expand description
A single state entry for a multi-state prop.
Fields§
§glyph: Option<String>Glyph displayed in this state.
blocking: Option<bool>Whether the prop blocks movement in this state.
walkthrough: Option<bool>Whether entities can walk through in this state.
description: Option<String>Description shown in this state.
on_interact: Option<String>State to transition to on primary interact.
on_secondary_interact: Option<String>State to transition to on secondary interact.
bump_messages: Vec<String>Bump messages shown in this state.
Trait Implementations§
Source§impl Clone for PropStateDef
impl Clone for PropStateDef
Source§fn clone(&self) -> PropStateDef
fn clone(&self) -> PropStateDef
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PropStateDef
impl Debug for PropStateDef
Source§impl<'de> Deserialize<'de> for PropStateDef
impl<'de> Deserialize<'de> for PropStateDef
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 Freeze for PropStateDef
impl RefUnwindSafe for PropStateDef
impl Send for PropStateDef
impl Sync for PropStateDef
impl Unpin for PropStateDef
impl UnsafeUnpin for PropStateDef
impl UnwindSafe for PropStateDef
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