render playerlist
This commit is contained in:
@@ -19,6 +19,10 @@ class Client : public StateMachine<Client, void, float> {
|
||||
|
||||
void SendPacket(const protocol::PacketBase& a_Packet);
|
||||
|
||||
const PlayerManager& GetPlayers() const {
|
||||
return m_Players;
|
||||
}
|
||||
|
||||
friend class ClientState;
|
||||
};
|
||||
|
||||
|
||||
@@ -22,6 +22,14 @@ class PlayerManager : public protocol::PacketHandler {
|
||||
|
||||
PlayerInfo GetPlayer(PlayerID a_Player);
|
||||
|
||||
auto begin() const {
|
||||
return m_Players.begin();
|
||||
}
|
||||
|
||||
auto end() const {
|
||||
return m_Players.end();
|
||||
}
|
||||
|
||||
virtual void Handle(const protocol::packets::PlayerJoinPacket&) override;
|
||||
virtual void Handle(const protocol::packets::PlayerListPacket&) override;
|
||||
virtual void Handle(const protocol::packets::PlayerLeavePacket&) override;
|
||||
|
||||
Reference in New Issue
Block a user