8 : _entities(entities), _scheduler(scheduler), _states(slots)
22 _states[slot].Movement.Release(_entities.Pawn(slot));
36 _states[slot].Requested = requested;
37 if (_enabled && requested)
39 _states[slot].Movement.Hold(_entities.Pawn(slot));
53 _states[slot].Requested =
false;
54 _states[slot].Movement.Release(_entities.Pawn(slot));
59void MenuFreeze::OnGameFrame()
63 if (_states[slot].Requested)
65 _states[slot].Movement.Sync(_entities.
Pawn(slot));
70void MenuFreeze::SyncFrameWork()
75 for (
int slot = 0; slot <
MaxPlayers && !wanted; ++slot)
77 wanted = _states[slot].Requested;
87 _onFrame = _scheduler.EveryFrame([
this] { OnGameFrame(); });
runtime.Entities: finds and creates entities. Everything it returns is valid for this frame only; see...
VoltMod::Pawn Pawn(int slot)
One-shot delays and repeating timers, run on the game thread.
"The occupant of this slot changed" - raised by PlayerManager, consumed below it.
constexpr bool IsValidSlot(int slot)