MCPcopy Create free account
hub / github.com/TombEngine/TombEngine / GetIndex

Method GetIndex

TombEngine/Game/Setup.cpp:90–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88}
89
90int StaticHandler::GetIndex(int staticID)
91{
92 if (staticID < 0 || staticID >= _lut.size())
93 {
94 TENLog(fmt::format("Attempted to get index of invalid static object {}.", staticID), LogLevel::Warning);
95 return _lut.front();
96 }
97
98 return _lut[staticID];
99}
100
101StaticInfo& StaticHandler::operator [](int staticID)
102{

Callers 2

RendererClass · 0.45
CollectStaticsMethod · 0.45

Calls 3

TENLogFunction · 0.85
formatFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected