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

Method SetAdditionEntryIndex

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

Source from the content-addressed store, hash-verified

164 }
165
166 void PathElement::SetAdditionEntryIndex(ObjectEntryIndex entryIndex)
167 {
168 // `Additions` is set to 0 when there is no addition, so the value 1 corresponds with path addition slot 0, etc.
169 Additions = entryIndex + 1;
170 }
171
172 bool PathElement::AdditionIsGhost() const
173 {

Callers 3

ExecuteMethod · 0.80
addition_setMethod · 0.80
ImportTileElementMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected