send world to client

This commit is contained in:
2025-08-22 11:41:58 +02:00
parent 20acbc0499
commit 7d58b881b2
22 changed files with 217 additions and 107 deletions

View File

@@ -10,9 +10,11 @@ class LobbyState : public ServerState {
private:
std::shared_ptr<game::World> m_World;
public:
LobbyState(Server& a_Server, const std::shared_ptr<game::World>& a_World);
LobbyState(Server& a_Server);
~LobbyState() {}
virtual void OnPlayerJoin(PlayerID a_Id, const td::PlayerInfo& a_Info) override;
virtual void HandlePacket(PlayerID a_Id, const protocol::PacketBase& a_Packet) override;
virtual void Update(float a_Delta) override;
};