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

Function TrackDesignSaveCreateWallDesc

src/openrct2/ride/TrackDesignSave.cpp:306–316  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

304}
305
306static TrackDesignSceneryElement TrackDesignSaveCreateWallDesc(
307 const Object& object, const CoordsXY& loc, const WallElement& wallElement)
308{
309 auto item = TrackDesignCreateTileElementDesc(object, { loc, wallElement.getBaseZ() });
310 item.setRotation(wallElement.getDirection());
311 item.primaryColour = wallElement.GetPrimaryColour();
312 item.secondaryColour = wallElement.GetSecondaryColour();
313 item.tertiaryColour = wallElement.GetTertiaryColour();
314
315 return item;
316}
317
318static TrackDesignAddStatus TrackDesignSaveAddWall(const CoordsXY& loc, WallElement* wallElement)
319{

Callers 2

TrackDesignSaveAddWallFunction · 0.85

Calls 7

setRotationMethod · 0.80
getBaseZMethod · 0.45
getDirectionMethod · 0.45
GetPrimaryColourMethod · 0.45
GetSecondaryColourMethod · 0.45
GetTertiaryColourMethod · 0.45

Tested by

no test coverage detected