60 for (
T&
item : _items)
67 std::array<T, MaxPlayers> _items{};
68 Subscription _listener;
Per-player-slot value store that never leaks state across occupants.
const T & operator[](int slot) const
PerSlot & operator=(const PerSlot &)=delete
PerSlot(SlotEvents &slots)
PerSlot(const PerSlot &)=delete
"The occupant of this slot changed" - raised by PlayerManager, consumed below it.
static std::string ReadFile(const std::filesystem::path &path)
constexpr bool IsValidSlot(int slot)