send world to client
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#include <client/state/LoggingState.h>
|
||||
|
||||
#include <iostream>
|
||||
#include <client/state/LobbyState.h>
|
||||
|
||||
namespace td {
|
||||
namespace client {
|
||||
@@ -9,6 +9,9 @@ LoggingState::LoggingState(Client& a_Client, const std::string& a_PlayerName) :
|
||||
SendPacket(td::protocol::packets::PlayerLoginPacket(a_PlayerName));
|
||||
}
|
||||
|
||||
void LoggingState::Update(float a_Delta) {
|
||||
}
|
||||
|
||||
LoggingState::~LoggingState() {}
|
||||
|
||||
void LoggingState::Handle(const protocol::packets::PlayerJoinPacket& a_Packet) {
|
||||
@@ -16,7 +19,7 @@ void LoggingState::Handle(const protocol::packets::PlayerJoinPacket& a_Packet) {
|
||||
}
|
||||
|
||||
void LoggingState::Handle(const protocol::packets::LoggingSuccessPacket& a_Packet) {
|
||||
// TODO: switch state
|
||||
ChangeState<LobbyState>();
|
||||
}
|
||||
|
||||
} // namespace client
|
||||
|
||||
Reference in New Issue
Block a user