iw4x-client/src/Components/Modules/Colors.hpp
2016-01-01 20:01:19 +01:00

22 lines
516 B
C++

#define Q_IsColorString( p ) ( ( p ) && *( p ) == '^' && *( ( p ) + 1 ) && isdigit( *( ( p ) + 1 ) ) ) // ^[0-9]
namespace Components
{
class Colors : public Component
{
public:
Colors();
const char* GetName() { return "Colors"; };
static void Strip(const char* in, char* out, int max);
private:
static Dvar::Var NewColors;
static void ClientUserinfoChanged(int length);
static char* GetClientName(int localClientNum, int index, char *buf, size_t size);
static void UpdateColorTable();
};
}