pub struct TurnAdvanceCtx<'a> {
pub state: &'a mut ActivationState,
}Expand description
Context passed to LifecyclePlugin::on_turn_advance.
Hooks may inspect or mutate the activation state. Common uses include snapshotting state for save files, force-expiring sticky entries, or resetting cooldowns.
Fields§
§state: &'a mut ActivationStateAuto Trait Implementations§
impl<'a> Freeze for TurnAdvanceCtx<'a>
impl<'a> RefUnwindSafe for TurnAdvanceCtx<'a>
impl<'a> Send for TurnAdvanceCtx<'a>
impl<'a> Sync for TurnAdvanceCtx<'a>
impl<'a> Unpin for TurnAdvanceCtx<'a>
impl<'a> UnsafeUnpin for TurnAdvanceCtx<'a>
impl<'a> !UnwindSafe for TurnAdvanceCtx<'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