MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / GetColor

Function GetColor

engine/Poseidon/IO/ParamFileExt.cpp:61–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61Color GetColor(const ParamEntry& entry)
62{
63 if (entry.GetSize() != 4)
64 {
65 return HWhite;
66 }
67 return Color(entry[0].GetFloat(), entry[1].GetFloat(), entry[2].GetFloat(), entry[3].GetFloat());
68}
69
70bool GetValue(SoundPars& pars, const ParamEntry& entry)
71{

Callers 4

LoadMethod · 0.50
IlluminatingShellMethod · 0.50
SmokeShellMethod · 0.50
LoadMethod · 0.50

Calls 3

ColorClass · 0.85
GetSizeMethod · 0.45
GetFloatMethod · 0.45

Tested by

no test coverage detected