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

23 lines
560 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);
static std::string Strip(std::string in);
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();
};
}