pub struct FightStartCtx<'a> {
pub fight: &'a ActiveFight,
pub state: &'a OverlordState,
pub lookups: &'a ContentLookups,
}Expand description
Inputs available to a fight_start native fn — the fight start_behavior
scope (Fight, State) plus the lookups init_fight needs. The
fight template id is fight.fight_id (the deployed scripts always pass the
template’s own $.id to init_fight).
Fields§
§fight: &'a ActiveFight§state: &'a OverlordState§lookups: &'a ContentLookupsAuto Trait Implementations§
impl<'a> Freeze for FightStartCtx<'a>
impl<'a> RefUnwindSafe for FightStartCtx<'a>
impl<'a> Send for FightStartCtx<'a>
impl<'a> Sync for FightStartCtx<'a>
impl<'a> Unpin for FightStartCtx<'a>
impl<'a> UnwindSafe for FightStartCtx<'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