MCPcopy Create free account
hub / github.com/DFHack/dfhack / ConvertDfColor

Function ConvertDfColor

plugins/remotefortressreader/remotefortressreader.cpp:326–336  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

324}
325
326void ConvertDfColor(int16_t index, RemoteFortressReader::ColorDefinition * out)
327{
328 if (!df::global::gps)
329 return;
330
331 auto gps = df::global::gps;
332
333 out->set_red(gps->uccolor[index][0]);
334 out->set_green(gps->uccolor[index][1]);
335 out->set_blue(gps->uccolor[index][2]);
336}
337
338void ConvertDfColor(int16_t in[3], RemoteFortressReader::ColorDefinition * out)
339{

Callers 3

GetUnitListInsideFunction · 0.85
GetPartialCreatureRawsFunction · 0.85
GetReportsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected