MCPcopy Create free account
hub / github.com/Warzone2100/warzone2100 / IsStatExpansionModule

Function IsStatExpansionModule

src/structure.cpp:228–234  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

226}
227
228bool IsStatExpansionModule(const STRUCTURE_STATS *psStats)
229{
230 // If the stat is any of the 3 expansion types ... then return true
231 return psStats->type == REF_POWER_MODULE ||
232 psStats->type == REF_FACTORY_MODULE ||
233 psStats->type == REF_RESEARCH_MODULE;
234}
235
236static int numStructureModules(STRUCTURE const *psStruct)
237{

Callers 7

ASSERT_OR_RETURNFunction · 0.85
buildBlueprintFunction · 0.85
loadSaveStructureFunction · 0.85
loadWzMapStructureFunction · 0.85
loadSaveStructure2Function · 0.85
actionUpdateDroidFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected