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

19 lines
347 B
C++
Raw Normal View History

2017-01-19 16:23:59 -05:00
namespace Components
{
class PlayerName : public Component
{
public:
PlayerName();
~PlayerName();
#if defined(DEBUG) || defined(FORCE_UNIT_TESTS)
const char* getName() { return "PlayerName"; };
#endif
private:
static std::string PlayerNames[18];
static int GetClientName(int localClientNum, int index, char *buf, int size);
};
}