MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / createEntityMoney

Function createEntityMoney

src/OpenLoco/src/Entities/EntityManager.cpp:279–288  ·  view source on GitHub ↗

0x0047011C

Source from the content-addressed store, hash-verified

277
278 // 0x0047011C
279 EntityBase* createEntityMoney()
280 {
281 if (getListCount(EntityListType::nullMoney) <= 0)
282 {
283 return nullptr;
284 }
285
286 const auto newId = rawListHeads()[enumValue(EntityListType::nullMoney)];
287 return createEntity(newId, EntityListType::misc);
288 }
289
290 // 0x00470039
291 EntityBase* createEntityVehicle()

Callers 1

createMethod · 0.85

Calls 3

getListCountFunction · 0.85
enumValueFunction · 0.85
createEntityFunction · 0.85

Tested by

no test coverage detected