9 : _scheduler(scheduler),
11 _slotListener(slots.Changed += [this](int slot) {
CancelCapture(slot); })
23 Pending pending{.Prompt = std::move(prompt), .Callback = std::move(callback)};
26 pending.Timeout = _scheduler.Delay(timeoutMs, [
this, slot] {
CancelCapture(slot); });
29 _pending[slot] = std::move(pending);
38 return _pending[slot].has_value();
48 auto& opt = _pending[slot];
55 Pending pending = std::move(*opt);
58 const bool accepted = pending.Callback(slot, text);
61 if (!accepted && !_pending[slot].has_value())
63 _pending[slot] = std::move(pending);
77 _pending[slot].reset();
86 const auto& opt = _pending[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)