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

@@ -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