iw4x-client/src/Components/Modules/ServerInfo.hpp
2019-01-09 21:40:56 +01:00

43 lines
759 B
C++

#pragma once
namespace Components
{
class ServerInfo : public Component
{
public:
ServerInfo();
~ServerInfo();
static Utils::InfoString GetHostInfo();
static Utils::InfoString GetInfo();
private:
class Container
{
public:
class Player
{
public:
int ping;
int score;
std::string name;
};
unsigned int currentPlayer;
std::vector<Player> playerList;
Network::Address target;
};
static Container PlayerContainer;
static void ServerStatus(UIScript::Token);
static unsigned int GetPlayerCount();
static const char* GetPlayerText(unsigned int index, int column);
static void SelectPlayer(unsigned int index);
static void DrawScoreboardInfo(void* a1);
static void DrawScoreboardStub();
};
}