MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / MapGetBannerElementAt

Function MapGetBannerElementAt

src/openrct2/world/Map.cpp:438–450  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

436 }
437
438 BannerElement* MapGetBannerElementAt(const CoordsXYZ& bannerPos, uint8_t position)
439 {
440 const auto bannerTilePos = TileCoordsXYZ{ bannerPos };
441 for (auto* element : TileElementsView<BannerElement>(bannerPos))
442 {
443 if (element->baseHeight != bannerTilePos.z)
444 continue;
445 if (element->GetPosition() != position)
446 continue;
447 return element;
448 }
449 return nullptr;
450 }
451
452 /**
453 *

Callers 2

QueryExecuteMethod · 0.85
QueryMethod · 0.85

Calls 1

GetPositionMethod · 0.45

Tested by

no test coverage detected