[−][src]Struct sulis_state::PartyStash
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]
&mut self,
quantity: u32,
item_state: ItemState
) -> Option<usize>
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,