pub struct ItemPowerCtx<'a> {
pub character: &'a CharacterState,
pub item: &'a Item,
pub config: &'a GameConfig,
pub lookups: &'a ContentLookups,
}Expand description
item_power_calculate_script sees in the production path: the owning
CharacterState and the candidate Item, plus the config / content lookups
the balance module carries.
Fields§
§character: &'a CharacterState§item: &'a Item§config: &'a GameConfig§lookups: &'a ContentLookupsAuto Trait Implementations§
impl<'a> Freeze for ItemPowerCtx<'a>
impl<'a> RefUnwindSafe for ItemPowerCtx<'a>
impl<'a> Send for ItemPowerCtx<'a>
impl<'a> Sync for ItemPowerCtx<'a>
impl<'a> Unpin for ItemPowerCtx<'a>
impl<'a> UnwindSafe for ItemPowerCtx<'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