[][src]Struct sulis_state::PropState

pub struct PropState {
    pub prop: Rc<Prop>,
    pub location: Location,
    pub animation_state: AnimationState,
    pub listeners: ChangeListenerList<PropState>,
    // some fields omitted
}

Fields

prop: Rc<Prop>location: Locationanimation_state: AnimationStatelisteners: ChangeListenerList<PropState>

Implementations

impl PropState[src]

pub fn name(&self) -> &str[src]

pub fn is_enabled(&self) -> bool[src]

pub fn location_points(&self) -> ObjectSizeIterator<'_>[src]

pub fn might_contain_items(&self) -> bool[src]

pub fn is_door(&self) -> bool[src]

pub fn is_hover(&self) -> bool[src]

pub fn is_container(&self) -> bool[src]

pub fn toggle_active(&mut self)[src]

pub fn add_item(&mut self, item: ItemState)[src]

pub fn add_items(&mut self, items_to_add: Vec<(u32, ItemState)>)[src]

pub fn items(&self) -> Option<&ItemList>[src]

pub fn remove_all_at(&mut self, index: usize) -> Option<(u32, ItemState)>[src]

pub fn remove_one_at(&mut self, index: usize) -> Option<ItemState>[src]

pub fn is_active(&self) -> bool[src]

pub fn append_to_draw_list(
    &self,
    draw_list: &mut DrawList,
    offset: Offset,
    millis: u32
)
[src]

Trait Implementations

impl AreaDrawable for PropState[src]

impl Debug for PropState[src]

impl Locatable for PropState[src]

Auto Trait Implementations

impl !RefUnwindSafe for PropState

impl !Send for PropState

impl !Sync for PropState

impl Unpin for PropState

impl !UnwindSafe for PropState

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]