add playerlist packet

This commit is contained in:
2025-08-19 18:42:02 +02:00
parent 631e14e66e
commit ee39c1e429
3 changed files with 26 additions and 13 deletions

View File

@@ -27,16 +27,16 @@ struct MapData {
namespace pdata {
/** Client attempts to login (very basic) */
struct PlayerLogin {
std::string m_PlayerName;
};
/** Server indicates success */
struct LoggingSuccess {
PlayerID m_PlayerId;
};
/** Client attempts to login (very basic) */
struct PlayerLogin {
std::string m_PlayerName;
};
/** Player joins the lobby */
struct PlayerJoin {
PlayerInfo m_Player;
@@ -47,6 +47,11 @@ struct PlayerLeave {
PlayerID m_PlayerId;
};
/** List of players who joined before */
struct PlayerList {
std::vector<PlayerInfo> m_Players;
};
struct PredictCommand {
CommandPtr m_Command;
StepTime m_FrameNumber;