send world to client
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user