[][src]Struct sulis_state::PartyStash

pub struct PartyStash {
    pub listeners: ChangeListenerList<PartyStash>,
    // some fields omitted
}

Fields

listeners: ChangeListenerList<PartyStash>

Implementations

impl PartyStash[src]

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

pub fn add_item(
    &mut self,
    quantity: u32,
    item_state: ItemState
) -> Option<usize>
[src]

pub fn has_item(&self, id: &str) -> bool[src]

Returns whether or not this stash has at least one item with the specified ID

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

Removes one item from the specified index. returns it if there was an item to remove

pub fn take_all(&mut self, prop_index: usize)[src]

Takes all items out of the specified prop and into this stash

pub fn take(&mut self, prop_index: usize, item_index: usize)[src]

takes one item-index out of the specified prop and into this stash

Auto Trait Implementations

impl !RefUnwindSafe for PartyStash

impl !Send for PartyStash

impl !Sync for PartyStash

impl Unpin for PartyStash

impl !UnwindSafe for PartyStash

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]