20 lines
402 B
C++
20 lines
402 B
C++
#pragma once
|
|
|
|
namespace Components
|
|
{
|
|
class PlayerName : public Component
|
|
{
|
|
public:
|
|
PlayerName();
|
|
|
|
static void UserInfoCopy(char* buffer, const char* name, size_t size);
|
|
|
|
private:
|
|
static Dvar::Var sv_allowColoredNames;
|
|
|
|
static char* CleanStrStub(char* string);
|
|
static void ClientUserinfoChanged();
|
|
static char* GetClientName(int localClientNum, int index, char* buf, size_t size);
|
|
};
|
|
}
|