use SlotGuard

This commit is contained in:
2025-08-06 14:13:38 +02:00
parent 079d653405
commit 0d9e5b647f
3 changed files with 10 additions and 14 deletions

View File

@@ -1,13 +1,14 @@
#pragma once
#include <server/IServerSocket.h>
#include <td/misc/SlotGuard.h>
namespace td {
namespace server {
class Server;
class IServerState {
class IServerState : public utils::SlotGuard {
protected:
void SendPacket(PlayerID a_Id, const protocol::PacketBase& a_Packet);
void SetNewState(const std::shared_ptr<IServerState>& a_NewState);