1#ifndef GAME_CLIENT_SKIN_H
2#define GAME_CLIENT_SKIN_H
62 template<
bool IsSizeType>
84 m_Value = std::numeric_limits<int>::lowest();
86 m_Value = std::numeric_limits<int>::max();
170 for(
int i = 0; pName[i] !=
'\0'; ++i)
172 if(pName[i] ==
'"' || pName[i] ==
'/' || pName[i] ==
'\\')
Definition: graphics.h:200
Definition: graphics.h:183
virtual void UnloadTexture(CTextureHandle *pIndex)=0
@ MAX_SKIN_LENGTH
Definition: protocol.h:99
int str_length(const char *str)
Definition: system.cpp:2754
int str_comp(const char *a, const char *b)
Definition: system.cpp:2933
int str_copy(char *dst, const char *src, int dst_size)
Definition: system.cpp:2720
constexpr T minimum(T a, T b)
Definition: math.h:120
constexpr T maximum(T a, T b)
Definition: math.h:130
int m_Value
Definition: skin.h:65
void Reset()
Definition: skin.h:81
SSkinMetricVariableInt & operator=(int NewVal)
Definition: skin.h:67
SSkinMetricVariableInt()
Definition: skin.h:76
float OffsetXNormalized() const
Definition: skin.h:111
SSkinMetricVariableInt< true > m_MaxWidth
Definition: skin.h:98
void Reset()
Definition: skin.h:121
SSkinMetricVariableInt< true > m_Height
Definition: skin.h:93
SSkinMetricVariableInt< false > m_OffsetY
Definition: skin.h:95
SSkinMetricVariableInt< false > m_OffsetX
Definition: skin.h:94
SSkinMetricVariableInt< true > m_MaxHeight
Definition: skin.h:99
SSkinMetricVariableInt< true > m_Width
Definition: skin.h:92
float WidthNormalized() const
Definition: skin.h:101
float OffsetYNormalized() const
Definition: skin.h:116
float HeightNormalized() const
Definition: skin.h:106
SSkinMetricVariable m_Feet
Definition: skin.h:135
SSkinMetricVariable m_Body
Definition: skin.h:134
void Reset()
Definition: skin.h:137
SSkinMetrics()
Definition: skin.h:143
IGraphics::CTextureHandle m_BodyOutline
Definition: skin.h:23
IGraphics::CTextureHandle m_Hands
Definition: skin.h:28
IGraphics::CTextureHandle m_Feet
Definition: skin.h:25
IGraphics::CTextureHandle m_Body
Definition: skin.h:22
IGraphics::CTextureHandle m_aEyes[6]
Definition: skin.h:31
IGraphics::CTextureHandle m_FeetOutline
Definition: skin.h:26
void Unload(IGraphics *pGraphics)
Definition: skin.h:45
IGraphics::CTextureHandle m_HandsOutline
Definition: skin.h:29
void Reset()
Definition: skin.h:33
const char * GetName() const
Definition: skin.h:160
bool operator<(const CSkin &Other) const
Definition: skin.h:150
SSkinMetrics m_Metrics
Definition: skin.h:148
static bool IsValidName(const char *pName)
Definition: skin.h:163
SSkinTextures m_ColorableSkin
Definition: skin.h:59
SSkinTextures m_OriginalSkin
Definition: skin.h:58
ColorRGBA m_BloodColor
Definition: skin.h:60
char m_aName[MAX_SKIN_LENGTH]
Definition: skin.h:17
CSkin(const char *pName)
Definition: skin.h:153
static constexpr char m_aSkinNameRestrictions[]
Definition: skin.h:179
bool operator==(const CSkin &Other) const
Definition: skin.h:151
CSkin & operator=(CSkin &&)=default