Files
Tower-Defense2/include/server/Server.h
2025-08-19 18:55:25 +02:00

26 lines
450 B
C++

#pragma once
#include <server/IServerSocket.h>
#include <td/common/StateMachine.h>
namespace td {
namespace server {
class ServerState;
class Server : public StateMachine<Server, void, float> {
private:
std::shared_ptr<IServerSocket> m_Socket;
float m_LastMspt;
public:
Server(const std::shared_ptr<IServerSocket>& a_Socket);
virtual void Update(float a_Delta);
friend class ServerState;
};
} // namespace server
} // namespace td