pub struct ItemIdsCtx<'a> {
pub pets: &'a [Pet],
pub slots: i64,
pub character_level: i64,
pub inventory: &'a [Item],
pub config: &'a GameConfig,
pub lookups: &'a ContentLookups,
}Expand description
Inputs available to an item_ids native fn for the fast_equip_pets_script
/ content lookups the balance module carries.
Fields§
§pets: &'a [Pet]Pets const — the player’s full pet roster (all_pets).
slots: i64Slots const — number of available pet slots.
character_level: i64The player’s character level. A pet is scored as the marginal power it adds to THIS character, so the baseline has to be the real one.
inventory: &'a [Item]The player’s equipped gear, for the same reason: a pet’s contribution to
DPS × EHP depends on which side of that product the gear already fills.
config: &'a GameConfig§lookups: &'a ContentLookupsAuto Trait Implementations§
impl<'a> Freeze for ItemIdsCtx<'a>
impl<'a> RefUnwindSafe for ItemIdsCtx<'a>
impl<'a> Send for ItemIdsCtx<'a>
impl<'a> Sync for ItemIdsCtx<'a>
impl<'a> Unpin for ItemIdsCtx<'a>
impl<'a> UnwindSafe for ItemIdsCtx<'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