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

Function callClearFunction

src/OpenLoco/src/Map/TileClearance.cpp:211–218  ·  view source on GitHub ↗

0x00462B4F

Source from the content-addressed store, hash-verified

209
210 // 0x00462B4F
211 static ClearFuncResult callClearFunction(TileElement& el, const std::function<ClearFuncResult(TileElement& el)>& clearFunc)
212 {
213 if (!clearFunc)
214 {
215 return ClearFuncResult::collision;
216 }
217 return clearFunc(el);
218 };
219
220 enum class BuildingCollisionType : bool
221 {

Calls

no outgoing calls

Tested by

no test coverage detected