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

Method getObject

src/OpenLoco/src/Map/BuildingElement.cpp:23–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21namespace OpenLoco::World
22{
23 const BuildingObject* BuildingElement::getObject() const
24 {
25 return ObjectManager::get<BuildingObject>(objectId());
26 }
27
28 template<typename TFunction>
29 static void applyToMultiTile(BuildingElement& el0, const World::Pos2& loc, bool isMultiTile, TFunction&& func)

Callers 9

updateMethod · 0.45
updateIndustryAnimation1Function · 0.45
updateIndustryAnimation2Function · 0.45
updateBuildingAnimation1Function · 0.45
updateBuildingAnimation2Function · 0.45
updateIndustrialSurfaceFunction · 0.45
setCollisionErrorMessageFunction · 0.45
clearBuildingCollisionFunction · 0.45
removeBuildingElementFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected