begin player auth
This commit is contained in:
@@ -23,8 +23,8 @@ class GameState : public ClientState {
|
||||
return m_CurrentLerp;
|
||||
}
|
||||
|
||||
protected:
|
||||
virtual void HandlePacket(const protocol::PacketBase& a_Packet) override;
|
||||
virtual void Handle(const protocol::packets::LockStepsPacket& a_LockStep) override;
|
||||
virtual void Handle(const protocol::packets::LockStepResponsePacket& a_LockStep) override;
|
||||
};
|
||||
|
||||
} // namespace client
|
||||
|
||||
21
include/client/state/LoggingState.h
Normal file
21
include/client/state/LoggingState.h
Normal file
@@ -0,0 +1,21 @@
|
||||
#pragma once
|
||||
|
||||
#include <client/ClientState.h>
|
||||
#include <td/game/World.h>
|
||||
#include <td/simulation/ClientSimulation.h>
|
||||
|
||||
namespace td {
|
||||
namespace client {
|
||||
|
||||
class LoggingState : public ClientState {
|
||||
public:
|
||||
LoggingState(Client& a_Client, const std::string& a_PlayerName);
|
||||
~LoggingState();
|
||||
|
||||
virtual void Update(float a_Delta) override {}
|
||||
|
||||
virtual void Handle(const protocol::packets::PlayerJoinPacket& a_Packet) override;
|
||||
};
|
||||
|
||||
} // namespace client
|
||||
} // namespace td
|
||||
Reference in New Issue
Block a user