#include <skins7.h>
|
| int | Sizeof () const override |
| |
| void | OnInit () override |
| |
| void | Refresh (TSkinLoadedCallback &&SkinLoadedCallback) |
| |
| std::chrono::nanoseconds | LastRefreshTime () const |
| |
| const std::vector< CSkin > & | GetSkins () const |
| |
| const std::vector< CSkinPart > & | GetSkinParts (int Part) const |
| |
| const CSkinPart * | FindSkinPartOrNullptr (int Part, const char *pName, bool AllowSpecialPart) const |
| |
| const CSkinPart * | FindDefaultSkinPart (int Part) const |
| |
| const CSkinPart * | FindSkinPart (int Part, const char *pName, bool AllowSpecialPart) const |
| |
| void | RandomizeSkin (int Dummy) const |
| |
| ColorRGBA | GetColor (int Value, bool UseAlpha) const |
| |
| void | ApplyColorTo (CTeeRenderInfo::CSixup &SixupRenderInfo, bool UseCustomColors, int Value, int Part) const |
| |
| ColorRGBA | GetTeamColor (int UseCustomColors, int PartColor, int Team, int Part) const |
| |
| bool | ValidateSkinParts (char *apPartNames[protocol7::NUM_SKINPARTS], int *pUseCustomColors, int *pPartColors, int GameFlags) const |
| |
| bool | SaveSkinfile (const char *pName, int Dummy) |
| |
| bool | RemoveSkin (const CSkin *pSkin) |
| |
| IGraphics::CTextureHandle | XmasHatTexture () const |
| |
| IGraphics::CTextureHandle | BotDecorationTexture () const |
| |
| virtual | ~CComponent ()=default |
| |
| virtual void | OnStateChange (int NewState, int OldState) |
| |
| virtual void | OnConsoleInit () |
| |
| virtual void | OnShutdown () |
| |
| virtual void | OnReset () |
| |
| virtual void | OnWindowResize () |
| |
| virtual void | OnUpdate () |
| |
| virtual void | OnRender () |
| |
| virtual void | OnNewSnapshot () |
| |
| virtual void | OnRelease () |
| |
| virtual void | OnMapLoad () |
| |
| virtual void | OnMessage (int Msg, void *pRawMsg) |
| |
| virtual bool | OnCursorMove (float x, float y, IInput::ECursorType CursorType) |
| |
| virtual bool | OnInput (const IInput::CEvent &Event) |
| |
| virtual bool | OnTouchState (const std::vector< IInput::CTouchFingerState > &vTouchFingerStates) |
| |
| virtual void | OnInterfacesInit (CGameClient *pClient) |
| |
| virtual | ~CComponentInterfaces ()=default |
| |
|
| static const char *const | ms_apSkinPartNames [protocol7::NUM_SKINPARTS] = {"body", "marking", "decoration", "hands", "feet", "eyes"} |
| |
| static const char *const | ms_apSkinPartNamesLocalized [protocol7::NUM_SKINPARTS] = {Localizable("Body", "skins"), Localizable("Marking", "skins"), Localizable("Decoration", "skins"), Localizable("Hands", "skins"), Localizable("Feet", "skins"), Localizable("Eyes", "skins")} |
| |
| static const char *const | ms_apColorComponents [NUM_COLOR_COMPONENTS] = {"hue", "sat", "lgt", "alp"} |
| |
| static char * | ms_apSkinNameVariables [NUM_DUMMIES] = {nullptr} |
| |
| static char * | ms_apSkinVariables [NUM_DUMMIES][protocol7::NUM_SKINPARTS] = {{nullptr}} |
| |
| static int * | ms_apUCCVariables [NUM_DUMMIES][protocol7::NUM_SKINPARTS] = {{nullptr}} |
| |
| static unsigned * | ms_apColorVariables [NUM_DUMMIES][protocol7::NUM_SKINPARTS] = {{nullptr}} |
| |
◆ TSkinLoadedCallback
◆ anonymous enum
| Enumerator |
|---|
| SKINFLAG_SPECIAL | |
| SKINFLAG_STANDARD | |
| NUM_COLOR_COMPONENTS | |
| HAT_NUM | |
| HAT_OFFSET_SIDE | |
◆ AddSkinFromConfigVariables()
◆ ApplyColorTo()
◆ BotDecorationTexture()
◆ FindDefaultSkinPart()
◆ FindSkinPart()
◆ FindSkinPartOrNullptr()
◆ GetColor()
◆ GetSkinParts()
◆ GetSkins()
◆ GetTeamColor()
◆ InitPlaceholderSkinParts()
| void CSkins7::InitPlaceholderSkinParts |
( |
| ) |
|
|
private |
◆ IsSpecialSkin()
◆ LastRefreshTime()
| std::chrono::nanoseconds CSkins7::LastRefreshTime |
( |
| ) |
const |
|
inline |
◆ LoadBotDecoration()
| void CSkins7::LoadBotDecoration |
( |
| ) |
|
|
private |
◆ LoadSkin()
◆ LoadSkinPart()
◆ LoadXmasHat()
| void CSkins7::LoadXmasHat |
( |
| ) |
|
|
private |
◆ OnInit()
Called to let the components run initialization code.
Reimplemented from CComponent.
◆ RandomizeSkin()
| void CSkins7::RandomizeSkin |
( |
int |
Dummy | ) |
const |
◆ Refresh()
◆ RemoveSkin()
◆ SaveSkinfile()
◆ Sizeof()
| int CSkins7::Sizeof |
( |
| ) |
const |
|
inlineoverridevirtual |
Gets the size of the non-abstract component.
Implements CComponent.
◆ SkinPartScan()
◆ SkinScan()
◆ ValidateSkinParts()
| bool CSkins7::ValidateSkinParts |
( |
char * |
apPartNames[protocol7::NUM_SKINPARTS], |
|
|
int * |
pUseCustomColors, |
|
|
int * |
pPartColors, |
|
|
int |
GameFlags |
|
) |
| const |
◆ XmasHatTexture()
◆ m_aPlaceholderSkinParts
◆ m_avSkinParts
◆ m_BotTexture
◆ m_LastRefreshTime
| std::chrono::nanoseconds CSkins7::m_LastRefreshTime |
|
private |
◆ m_vSkins
| std::vector<CSkin> CSkins7::m_vSkins |
|
private |
◆ m_XmasHatTexture
◆ ms_apColorComponents
| const char *const CSkins7::ms_apColorComponents = {"hue", "sat", "lgt", "alp"} |
|
static |
◆ ms_apColorVariables
◆ ms_apSkinNameVariables
◆ ms_apSkinPartNames
| const char *const CSkins7::ms_apSkinPartNames = {"body", "marking", "decoration", "hands", "feet", "eyes"} |
|
static |
◆ ms_apSkinPartNamesLocalized
| const char *const CSkins7::ms_apSkinPartNamesLocalized = {Localizable("Body", "skins"), Localizable("Marking", "skins"), Localizable("Decoration", "skins"), Localizable("Hands", "skins"), Localizable("Feet", "skins"), Localizable("Eyes", "skins")} |
|
static |
◆ ms_apSkinVariables
◆ ms_apUCCVariables
The documentation for this class was generated from the following files: