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

Method GetSurfaceEntry

src/openrct2/world/tile_element/PathElement.cpp:256–260  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

254 }
255
256 const FootpathSurfaceObject* PathElement::GetSurfaceEntry() const
257 {
258 auto& objMgr = GetContext()->GetObjectManager();
259 return objMgr.GetLoadedObject<FootpathSurfaceObject>(GetSurfaceEntryIndex());
260 }
261
262 void PathElement::SetSurfaceEntryIndex(ObjectEntryIndex newIndex)
263 {

Callers 3

ShouldDrawSupportsFunction · 0.45
onDrawPathMethod · 0.45

Calls 1

GetContextFunction · 0.85

Tested by 1

onDrawPathMethod · 0.36