MCPcopy Create free account
hub / github.com/ddnet/ddnet / SetGhostSkinData

Method SetGhostSkinData

src/game/client/components/ghost.cpp:22–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20static const LOG_COLOR LOG_COLOR_GHOST{165, 153, 153};
21
22void CGhost::SetGhostSkinData(CGhostSkin *pSkin, const char *pSkinName, int UseCustomColor, int ColorBody, int ColorFeet)
23{
24 StrToInts(pSkin->m_aSkin, std::size(pSkin->m_aSkin), pSkinName);
25 pSkin->m_UseCustomColor = UseCustomColor;
26 pSkin->m_ColorBody = ColorBody;
27 pSkin->m_ColorFeet = ColorFeet;
28}
29
30void CGhost::GetGhostCharacter(CGhostCharacter *pGhostChar, const CNetObj_Character *pChar, const CNetObj_DDNetCharacter *pDDnetChar)
31{

Callers

nothing calls this directly

Calls 1

StrToIntsFunction · 0.85

Tested by

no test coverage detected