iw4x-client/src/Components/Modules/PlayerName.hpp
2017-01-20 14:37:52 +01:00

21 lines
370 B
C++

#pragma once
namespace Components
{
class PlayerName : public Component
{
public:
PlayerName();
~PlayerName();
#if defined(DEBUG) || defined(FORCE_UNIT_TESTS)
const char* getName() override { return "PlayerName"; };
#endif
private:
static std::string PlayerNames[18];
static int GetClientName(int localClientNum, int index, char *buf, int size);
};
}