mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-14 03:58:18 +00:00
a69dc599a9
Fix pointer and pointer array variable naming Huge renaming to match our rules Used regex: (?!(return|delete)\b)\b\w+ (m_|ms_|g_|gs_|s_)[^a]\w+\[ (?!(return|delete)\b)\b\w+ (?!(m_|ms_|g_|gs_|s_))[^a]\w+\[ Further format static variables Format almost all pointer names accordingly Used regex: (?!(return)\b)\b\w+ \*(?!(m_p|p|s_p|m_ap|s_ap|g_p|g_ap|ap|gs_ap|ms_ap|gs_p|ms_p))\w+\b[^:\(p] clang-format Fix CI fail Fix misnamed non pointer as pointer and non array as array Used regex: (?!(return|delete)\b)\b\w+ (m_|ms_|g_|gs_|s_)p\w+\b (?!return\b)\b\w+ (ms_|m_|g_|gs_|s_)a\w+\b[^\[] clang-format Revert to SCREAMING_SNAKE_CASE and reinstate dead code
30 lines
769 B
C++
30 lines
769 B
C++
#ifndef GAME_SERVER_TEEINFO_H
|
|
#define GAME_SERVER_TEEINFO_H
|
|
|
|
class CTeeInfo
|
|
{
|
|
public:
|
|
constexpr static const float ms_DarkestLGT7 = 61 / 255.0f;
|
|
|
|
char m_aSkinName[64] = {'\0'};
|
|
int m_UseCustomColor = 0;
|
|
int m_ColorBody = 0;
|
|
int m_ColorFeet = 0;
|
|
|
|
// 0.7
|
|
char m_apSkinPartNames[6][24] = {"", "", "", "", "", ""};
|
|
bool m_aUseCustomColors[6] = {false, false, false, false, false, false};
|
|
int m_aSkinPartColors[6] = {0, 0, 0, 0, 0, 0};
|
|
|
|
CTeeInfo() = default;
|
|
|
|
CTeeInfo(const char *pSkinName, int UseCustomColor, int ColorBody, int ColorFeet);
|
|
|
|
// This constructor will assume all arrays are of length 6
|
|
CTeeInfo(const char *apSkinPartNames[6], int *pUseCustomColors, int *pSkinPartColors);
|
|
|
|
void FromSixup();
|
|
void ToSixup();
|
|
};
|
|
#endif //GAME_SERVER_TEEINFO_H
|