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

Function getStationArguments

src/OpenLoco/src/Ui/ViewportInteraction.cpp:149–165  ·  view source on GitHub ↗

0x004CD99A

Source from the content-addressed store, hash-verified

147
148 // 0x004CD99A
149 static bool getStationArguments(InteractionArg& interaction)
150 {
151 auto* tileElement = reinterpret_cast<World::TileElement*>(interaction.object);
152 auto* station = tileElement->as<StationElement>();
153 if (station == nullptr)
154 {
155 return false;
156 }
157 if (station->isGhost())
158 {
159 return false;
160 }
161
162 interaction.value = enumValue(station->stationId());
163 interaction.type = InteractionItem::stationLabel;
164 return getStationArguments(station->stationId());
165 }
166
167 // 0x004CD9B0
168 static bool getStationArguments(const StationId id)

Callers 3

_trackFunction · 0.85
_roadFunction · 0.85
getItemLeftFunction · 0.85

Calls 14

enumValueFunction · 0.85
setHoveredStationIdFunction · 0.85
setMapSelectionFlagsFunction · 0.85
setOwnerFunction · 0.85
getStringFunction · 0.85
formatStringFunction · 0.85
stationIdMethod · 0.80
isAcceptedMethod · 0.80
getFunction · 0.70
invalidateFunction · 0.70
isGhostMethod · 0.45

Tested by

no test coverage detected