send world to client
This commit is contained in:
24
include/client/state/LobbyState.h
Normal file
24
include/client/state/LobbyState.h
Normal file
@@ -0,0 +1,24 @@
|
||||
#pragma once
|
||||
|
||||
#include <client/ClientState.h>
|
||||
#include <td/game/World.h>
|
||||
#include <td/simulation/ClientSimulation.h>
|
||||
|
||||
namespace td {
|
||||
namespace client {
|
||||
|
||||
class LobbyState : public ClientState {
|
||||
private:
|
||||
std::shared_ptr<game::World> m_World;
|
||||
public:
|
||||
LobbyState(Client& a_Client);
|
||||
~LobbyState();
|
||||
|
||||
virtual void Update(float a_Delta) override;
|
||||
|
||||
virtual void Handle(const protocol::packets::WorldHeaderPacket& a_Packet) override;
|
||||
virtual void Handle(const protocol::packets::WorldDataPacket& a_Packet) override;
|
||||
};
|
||||
|
||||
} // namespace client
|
||||
} // namespace td
|
||||
Reference in New Issue
Block a user