begin packet serialization

This commit is contained in:
2024-07-18 15:28:01 +02:00
parent 2e63a474b8
commit 6e9c747b2d
17 changed files with 842 additions and 0 deletions

View File

@@ -0,0 +1,49 @@
#pragma once
#include <string>
namespace blitz {
namespace protocol {
namespace data {
struct PlayerLogin {
std::string m_PlayerName;
};
struct UpdateHealth {
float m_NewHealth;
};
struct LoggingSuccess {};
struct PlayerDeath {};
struct PlayerJoin {};
struct PlayerLeave {};
struct PlayerStats {};
struct PlayerList {};
struct ServerConfig {};
struct ServerTps {};
struct UpdateGameState {};
struct KeepAlive {};
struct Disconnect {};
struct ChatMessage {
std::string m_Text;
};
struct PlayerPositionAndRotation {};
struct PlayerShoot {};
} // namespace data
} // namespace protocol
} // namespace blitz