pub struct ChestItemChooseCtx<'a> {
pub character: &'a CharacterState,
pub config: &'a GameConfig,
pub lookups: &'a ContentLookups,
pub pending_items: &'a [Item],
}Expand description
Inputs for the chest item-choose override (code-dispatched).
Fields§
§character: &'a CharacterState§config: &'a GameConfig§lookups: &'a ContentLookups§pending_items: &'a [Item]Items already rolled in the current batch but not yet appended to
character.inventory (that happens later, in PlayerNewItems). They
count as filling their slot, otherwise a batch open would hand out the
same guaranteed item once per open.
Auto Trait Implementations§
impl<'a> Freeze for ChestItemChooseCtx<'a>
impl<'a> RefUnwindSafe for ChestItemChooseCtx<'a>
impl<'a> Send for ChestItemChooseCtx<'a>
impl<'a> Sync for ChestItemChooseCtx<'a>
impl<'a> Unpin for ChestItemChooseCtx<'a>
impl<'a> UnwindSafe for ChestItemChooseCtx<'a>
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