pub struct ItemAttributeCtx<'a> {
pub item: &'a Item,
pub attributes_quantity: i64,
pub random: &'a GameRng,
pub config: &'a GameConfig,
pub lookups: &'a ContentLookups,
}Expand description
Inputs available to an item-attribute native fn — mirrors the three consts
the cases.rs::try_finalize_item caller pushes (Item, Random,
AttributesQuantity), plus the config / content lookups the balance
primitives need.
Fields§
§item: &'a Item§attributes_quantity: i64§random: &'a GameRng§config: &'a GameConfig§lookups: &'a ContentLookupsAuto Trait Implementations§
impl<'a> Freeze for ItemAttributeCtx<'a>
impl<'a> RefUnwindSafe for ItemAttributeCtx<'a>
impl<'a> Send for ItemAttributeCtx<'a>
impl<'a> Sync for ItemAttributeCtx<'a>
impl<'a> Unpin for ItemAttributeCtx<'a>
impl<'a> UnwindSafe for ItemAttributeCtx<'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