iw4x-client/src/Components/Modules/PlayerName.hpp

19 lines
349 B
C++
Raw Normal View History

2016-09-05 13:55:47 -04:00
namespace Components
{
class PlayerName : public Component
{
public:
PlayerName();
~PlayerName();
2016-09-16 05:04:28 -04:00
#if defined(DEBUG) || defined(FORCE_UNIT_TESTS)
2016-09-05 13:55:47 -04:00
const char* GetName() { return "PlayerName"; };
#endif
private:
static std::string PlayerNames[18];
static int GetClientName(int localClientNum, int index, char *buf, int size);
};
}