Files
Blitz2/include/blitz/protocol/PacketData.h

61 lines
828 B
C++

#pragma once
#include <blitz/components/PlayerInfo.h>
#include <vector>
namespace blitz {
namespace protocol {
namespace data {
struct PlayerLogin {
std::string m_PlayerName;
};
struct UpdateHealth {
float m_NewHealth;
};
struct LoggingSuccess {
EntityID m_PlayerId;
};
struct PlayerDeath {};
struct PlayerJoin {
PlayerInfoComponent m_Player;
};
struct PlayerLeave {
EntityID m_PlayerId;
};
struct PlayerStats {};
struct PlayerList {
std::vector<PlayerInfoComponent> m_Players;
};
struct ServerConfig {};
struct ServerTps {};
struct UpdateGameState {};
struct KeepAlive {
std::uint64_t m_KeepAliveId;
};
struct Disconnect {};
struct ChatMessage {
std::string m_Text;
};
struct PlayerPositionAndRotation {};
struct PlayerShoot {};
} // namespace data
} // namespace protocol
} // namespace blitz