MCPcopy Create free account
hub / github.com/crossuo/crossuo / GetColor16

Method GetColor16

src/Managers/ColorManager.cpp:115–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113}
114
115uint16_t CColorManager::GetColor16(uint16_t c, uint16_t color) const
116{
117 if (color != 0 && color < GetHuesCount())
118 {
119 color -= 1;
120 const int g = color / 8;
121 const int e = color % 8;
122 return g_FileManager.m_Hues[g].Entries[e].ColorTable[(c >> 10) & 0x1F];
123 }
124 return c;
125}
126
127uint16_t CColorManager::GetRadarColorData(int c) const
128{

Callers 5

GenerateMapMethod · 0.80
GetGumpPixelsMethod · 0.80
GetArtPixelsMethod · 0.80
ReadTextureMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected