forked from rosebudai/OpenRCT2-Web
Introduce deduplicated MetalSupportType
This commit is contained in:
61 files changed
+620
-548
No files matched your search
@@ -216,22 +216,13 @@ static constexpr MetalSupportPlace kMetalSupportPlacementRotated[][kNumOrthogona
|
||||
MetalSupportPlace::TopRightSide },
|
||||
};
|
||||
|
||||
constexpr uint8_t MetalSupportGraphicCount = 13;
|
||||
constexpr MetalSupportGraphic kMetalSupportGraphicRotated[MetalSupportGraphicCount][kNumOrthogonalDirections] = {
|
||||
constexpr MetalSupportGraphic kMetalSupportGraphicRotated[kMetalSupportTypeCount][kNumOrthogonalDirections] = {
|
||||
{ MetalSupportGraphic::Tubes, MetalSupportGraphic::Tubes, MetalSupportGraphic::Tubes, MetalSupportGraphic::Tubes },
|
||||
{ MetalSupportGraphic::Fork, MetalSupportGraphic::ForkAlt, MetalSupportGraphic::Fork, MetalSupportGraphic::ForkAlt },
|
||||
{ MetalSupportGraphic::ForkAlt, MetalSupportGraphic::Fork, MetalSupportGraphic::ForkAlt, MetalSupportGraphic::Fork },
|
||||
{ MetalSupportGraphic::Boxed, MetalSupportGraphic::Boxed, MetalSupportGraphic::Boxed, MetalSupportGraphic::Boxed },
|
||||
{ MetalSupportGraphic::Stick, MetalSupportGraphic::StickAlt, MetalSupportGraphic::Stick, MetalSupportGraphic::StickAlt },
|
||||
{ MetalSupportGraphic::StickAlt, MetalSupportGraphic::Stick, MetalSupportGraphic::StickAlt, MetalSupportGraphic::Stick },
|
||||
{ MetalSupportGraphic::ThickCentred, MetalSupportGraphic::ThickAltCentred, MetalSupportGraphic::Thick,
|
||||
MetalSupportGraphic::ThickAlt },
|
||||
{ MetalSupportGraphic::Thick, MetalSupportGraphic::ThickAlt, MetalSupportGraphic::ThickCentred,
|
||||
MetalSupportGraphic::ThickAltCentred },
|
||||
{ MetalSupportGraphic::ThickAlt, MetalSupportGraphic::ThickCentred, MetalSupportGraphic::ThickAltCentred,
|
||||
MetalSupportGraphic::Thick },
|
||||
{ MetalSupportGraphic::ThickAltCentred, MetalSupportGraphic::Thick, MetalSupportGraphic::ThickAlt,
|
||||
MetalSupportGraphic::ThickCentred },
|
||||
{ MetalSupportGraphic::Truss, MetalSupportGraphic::Truss, MetalSupportGraphic::Truss, MetalSupportGraphic::Truss },
|
||||
{ MetalSupportGraphic::TubesInverted, MetalSupportGraphic::TubesInverted, MetalSupportGraphic::TubesInverted,
|
||||
MetalSupportGraphic::TubesInverted },
|
||||
@@ -433,13 +424,21 @@ bool MetalASupportsPaintSetup(
|
||||
return true;
|
||||
}
|
||||
|
||||
bool MetalASupportsPaintSetupRotated(
|
||||
PaintSession& session, MetalSupportGraphic supportTypeMember, MetalSupportPlace placement, Direction direction,
|
||||
int32_t special, int32_t height, ImageId imageTemplate)
|
||||
bool MetalASupportsPaintSetup(
|
||||
PaintSession& session, MetalSupportType supportType, MetalSupportPlace placement, int32_t special, int32_t height,
|
||||
ImageId imageTemplate)
|
||||
{
|
||||
supportTypeMember = kMetalSupportGraphicRotated[EnumValue(supportTypeMember)][direction];
|
||||
auto supportGraphic = RotateMetalSupportGraphic(supportType, 0);
|
||||
return MetalASupportsPaintSetup(session, supportGraphic, placement, special, height, imageTemplate);
|
||||
}
|
||||
|
||||
bool MetalASupportsPaintSetupRotated(
|
||||
PaintSession& session, MetalSupportType supportType, MetalSupportPlace placement, Direction direction, int32_t special,
|
||||
int32_t height, ImageId imageTemplate)
|
||||
{
|
||||
auto supportGraphic = RotateMetalSupportGraphic(supportType, direction);
|
||||
placement = kMetalSupportPlacementRotated[EnumValue(placement)][direction];
|
||||
return MetalASupportsPaintSetup(session, supportTypeMember, placement, special, height, imageTemplate);
|
||||
return MetalASupportsPaintSetup(session, supportGraphic, placement, special, height, imageTemplate);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -625,29 +624,42 @@ bool MetalBSupportsPaintSetup(
|
||||
return false; // AND
|
||||
}
|
||||
|
||||
bool MetalBSupportsPaintSetupRotated(
|
||||
PaintSession& session, MetalSupportGraphic supportTypeMember, MetalSupportPlace placement, Direction direction,
|
||||
int32_t special, int32_t height, ImageId imageTemplate)
|
||||
bool MetalBSupportsPaintSetup(
|
||||
PaintSession& session, MetalSupportType supportType, MetalSupportPlace placement, int32_t special, int32_t height,
|
||||
ImageId imageTemplate)
|
||||
{
|
||||
supportTypeMember = kMetalSupportGraphicRotated[EnumValue(supportTypeMember)][direction];
|
||||
auto supportGraphic = RotateMetalSupportGraphic(supportType, 0);
|
||||
return MetalBSupportsPaintSetup(session, supportGraphic, placement, special, height, imageTemplate);
|
||||
}
|
||||
|
||||
bool MetalBSupportsPaintSetupRotated(
|
||||
PaintSession& session, MetalSupportType supportType, MetalSupportPlace placement, Direction direction, int32_t special,
|
||||
int32_t height, ImageId imageTemplate)
|
||||
{
|
||||
auto supportGraphic = RotateMetalSupportGraphic(supportType, direction);
|
||||
placement = kMetalSupportPlacementRotated[EnumValue(placement)][direction];
|
||||
return MetalBSupportsPaintSetup(session, supportTypeMember, placement, special, height, imageTemplate);
|
||||
return MetalBSupportsPaintSetup(session, supportGraphic, placement, special, height, imageTemplate);
|
||||
}
|
||||
|
||||
MetalSupportGraphic RotateMetalSupportGraphic(MetalSupportType supportType, Direction direction)
|
||||
{
|
||||
return kMetalSupportGraphicRotated[EnumValue(supportType)][direction];
|
||||
}
|
||||
|
||||
void DrawSupportsSideBySide(
|
||||
PaintSession& session, Direction direction, uint16_t height, ImageId colour, MetalSupportGraphic type, int32_t special)
|
||||
PaintSession& session, Direction direction, uint16_t height, ImageId colour, MetalSupportType supportType, int32_t special)
|
||||
{
|
||||
type = kMetalSupportGraphicRotated[EnumValue(type)][direction];
|
||||
auto graphic = RotateMetalSupportGraphic(supportType, direction);
|
||||
|
||||
if (direction & 1)
|
||||
{
|
||||
MetalASupportsPaintSetup(session, type, MetalSupportPlace::TopRightSide, special, height, colour);
|
||||
MetalASupportsPaintSetup(session, type, MetalSupportPlace::BottomLeftSide, special, height, colour);
|
||||
MetalASupportsPaintSetup(session, graphic, MetalSupportPlace::TopRightSide, special, height, colour);
|
||||
MetalASupportsPaintSetup(session, graphic, MetalSupportPlace::BottomLeftSide, special, height, colour);
|
||||
}
|
||||
else
|
||||
{
|
||||
MetalASupportsPaintSetup(session, type, MetalSupportPlace::TopLeftSide, special, height, colour);
|
||||
MetalASupportsPaintSetup(session, type, MetalSupportPlace::BottomRightSide, special, height, colour);
|
||||
MetalASupportsPaintSetup(session, graphic, MetalSupportPlace::TopLeftSide, special, height, colour);
|
||||
MetalASupportsPaintSetup(session, graphic, MetalSupportPlace::BottomRightSide, special, height, colour);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,8 +14,56 @@
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
// There are 13 types of metal supports. A graphic showing all of them is available here:
|
||||
using track_type_t = uint16_t;
|
||||
|
||||
enum class MetalSupportType
|
||||
{
|
||||
/**
|
||||
* Used by the Steel Twister, Looping RC, and other rides.
|
||||
*/
|
||||
Tubes = 0,
|
||||
|
||||
/**
|
||||
* Used by the Junior RC and other rides.
|
||||
*/
|
||||
Fork = 1,
|
||||
|
||||
/**
|
||||
* Used by the vertical roller coasters, the Log Flume and other rides.
|
||||
*/
|
||||
Boxed = 2,
|
||||
|
||||
/**
|
||||
* Used by the Steeplechase.
|
||||
*/
|
||||
Stick = 3,
|
||||
|
||||
/**
|
||||
* Used for the Looping Roller Coaster’s loop, and only for that specific part.
|
||||
*/
|
||||
Thick = 4,
|
||||
|
||||
/**
|
||||
* Used by the chairlift.
|
||||
*/
|
||||
Truss = 5,
|
||||
|
||||
/**
|
||||
* Used by inverted rcs like the flying, lay-down, compact inverted.
|
||||
* Mostly the same as `Tubes`, but with a thinner crossbeam.
|
||||
*/
|
||||
TubesInverted = 6,
|
||||
|
||||
/**
|
||||
* Does not seem to be used in RCT2, but it was used in RCT1 for one of the path support types.
|
||||
*/
|
||||
BoxedCoated = 7,
|
||||
};
|
||||
constexpr uint8_t kMetalSupportTypeCount = 8;
|
||||
|
||||
// There are 13 types of metal support graphics, including rotated versions. A graphic showing all of them is available here:
|
||||
// https://cloud.githubusercontent.com/assets/737603/19420485/7eaba28e-93ec-11e6-83cb-03190accc094.png
|
||||
// TODO Make this internal to MetalSupports.cpp
|
||||
enum class MetalSupportGraphic : uint8_t
|
||||
{
|
||||
/**
|
||||
@@ -97,17 +145,26 @@ struct PaintSession;
|
||||
bool MetalASupportsPaintSetup(
|
||||
PaintSession& session, MetalSupportGraphic supportTypeMember, MetalSupportPlace placement, int32_t special, int32_t height,
|
||||
ImageId imageTemplate);
|
||||
/** @deprecated */
|
||||
bool MetalASupportsPaintSetup(
|
||||
PaintSession& session, MetalSupportType supportType, MetalSupportPlace placement, int32_t special, int32_t height,
|
||||
ImageId imageTemplate);
|
||||
bool MetalASupportsPaintSetupRotated(
|
||||
PaintSession& session, MetalSupportGraphic supportTypeMember, MetalSupportPlace placement, Direction direction,
|
||||
int32_t special, int32_t height, ImageId imageTemplate);
|
||||
PaintSession& session, MetalSupportType supportType, MetalSupportPlace placement, Direction direction, int32_t special,
|
||||
int32_t height, ImageId imageTemplate);
|
||||
bool MetalBSupportsPaintSetup(
|
||||
PaintSession& session, MetalSupportGraphic supportTypeMember, MetalSupportPlace placement, int32_t special, int32_t height,
|
||||
ImageId imageTemplate);
|
||||
/** @deprecated */
|
||||
bool MetalBSupportsPaintSetup(
|
||||
PaintSession& session, MetalSupportType supportType, MetalSupportPlace placement, int32_t special, int32_t height,
|
||||
ImageId imageTemplate);
|
||||
bool MetalBSupportsPaintSetupRotated(
|
||||
PaintSession& session, MetalSupportGraphic supportTypeMember, MetalSupportPlace placement, Direction direction,
|
||||
int32_t special, int32_t height, ImageId imageTemplate);
|
||||
PaintSession& session, MetalSupportType supportType, MetalSupportPlace placement, Direction direction, int32_t special,
|
||||
int32_t height, ImageId imageTemplate);
|
||||
MetalSupportGraphic RotateMetalSupportGraphic(MetalSupportType supportType, Direction direction);
|
||||
void DrawSupportsSideBySide(
|
||||
PaintSession& session, Direction direction, uint16_t height, ImageId colour, MetalSupportGraphic type, int32_t special = 0);
|
||||
PaintSession& session, Direction direction, uint16_t height, ImageId colour, MetalSupportType type, int32_t special = 0);
|
||||
bool PathPoleSupportsPaintSetup(
|
||||
PaintSession& session, MetalSupportPlace supportPlace, bool isSloped, int32_t height, ImageId imageTemplate,
|
||||
const FootpathPaintInfo& pathPaintInfo);
|
||||
@@ -20,7 +20,7 @@ struct SupportType
|
||||
{
|
||||
uint8_t generic{};
|
||||
WoodenSupportType wooden;
|
||||
MetalSupportGraphic metal;
|
||||
MetalSupportType metal;
|
||||
};
|
||||
|
||||
explicit constexpr SupportType()
|
||||
@@ -37,7 +37,7 @@ struct SupportType
|
||||
{
|
||||
}
|
||||
|
||||
constexpr SupportType(MetalSupportGraphic _metal)
|
||||
constexpr SupportType(MetalSupportType _metal)
|
||||
: metal(_metal)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -54,9 +54,8 @@ namespace OpenRCT2::AlpineRC
|
||||
}
|
||||
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
|
||||
{
|
||||
MetalASupportsPaintSetup(
|
||||
session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 0,
|
||||
height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours);
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -78,9 +77,8 @@ namespace OpenRCT2::AlpineRC
|
||||
}
|
||||
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
|
||||
{
|
||||
MetalASupportsPaintSetup(
|
||||
session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 0,
|
||||
height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours);
|
||||
}
|
||||
}
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
@@ -115,7 +113,7 @@ namespace OpenRCT2::AlpineRC
|
||||
PaintAddImageAsParentRotated(
|
||||
session, direction, GetStationColourScheme(session, trackElement).WithIndex(imageIds[direction][2]),
|
||||
{ 0, 0, height - 2 }, { { 0, 2, height }, { 32, 28, 2 } });
|
||||
DrawSupportsSideBySide(session, direction, height, session.SupportColours, MetalSupportGraphic::Boxed);
|
||||
DrawSupportsSideBySide(session, direction, height, session.SupportColours, MetalSupportType::Boxed);
|
||||
TrackPaintUtilDrawStation2(session, ride, direction, height, trackElement, 4, 7);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
@@ -153,9 +151,8 @@ namespace OpenRCT2::AlpineRC
|
||||
}
|
||||
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
|
||||
{
|
||||
MetalASupportsPaintSetup(
|
||||
session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 8,
|
||||
height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 8, height, session.SupportColours);
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -185,9 +182,8 @@ namespace OpenRCT2::AlpineRC
|
||||
}
|
||||
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
|
||||
{
|
||||
MetalASupportsPaintSetup(
|
||||
session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 8,
|
||||
height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 8, height, session.SupportColours);
|
||||
}
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
@@ -234,9 +230,8 @@ namespace OpenRCT2::AlpineRC
|
||||
}
|
||||
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
|
||||
{
|
||||
MetalASupportsPaintSetup(
|
||||
session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 3,
|
||||
height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 3, height, session.SupportColours);
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -266,9 +261,8 @@ namespace OpenRCT2::AlpineRC
|
||||
}
|
||||
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
|
||||
{
|
||||
MetalASupportsPaintSetup(
|
||||
session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 3,
|
||||
height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 3, height, session.SupportColours);
|
||||
}
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
@@ -315,9 +309,8 @@ namespace OpenRCT2::AlpineRC
|
||||
}
|
||||
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
|
||||
{
|
||||
MetalASupportsPaintSetup(
|
||||
session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 6,
|
||||
height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 6, height, session.SupportColours);
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -347,9 +340,8 @@ namespace OpenRCT2::AlpineRC
|
||||
}
|
||||
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
|
||||
{
|
||||
MetalASupportsPaintSetup(
|
||||
session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 6,
|
||||
height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 6, height, session.SupportColours);
|
||||
}
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
@@ -416,9 +408,8 @@ namespace OpenRCT2::AlpineRC
|
||||
{ 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } });
|
||||
break;
|
||||
}
|
||||
MetalASupportsPaintSetup(
|
||||
session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 0,
|
||||
height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
@@ -494,9 +485,9 @@ namespace OpenRCT2::AlpineRC
|
||||
{ 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } });
|
||||
break;
|
||||
}
|
||||
MetalASupportsPaintSetup(
|
||||
session, direction & 1 ? supportType.metal : MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 0,
|
||||
height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, DirectionPrev(direction), 0, height,
|
||||
session.SupportColours);
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
@@ -557,9 +548,8 @@ namespace OpenRCT2::AlpineRC
|
||||
{ 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } });
|
||||
break;
|
||||
}
|
||||
MetalASupportsPaintSetup(
|
||||
session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 0,
|
||||
height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
@@ -706,9 +696,9 @@ namespace OpenRCT2::AlpineRC
|
||||
{ 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } });
|
||||
break;
|
||||
}
|
||||
MetalASupportsPaintSetup(
|
||||
session, direction & 1 ? supportType.metal : MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 0,
|
||||
height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, DirectionPrev(direction), 0, height,
|
||||
session.SupportColours);
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
@@ -769,9 +759,8 @@ namespace OpenRCT2::AlpineRC
|
||||
{ 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } });
|
||||
break;
|
||||
}
|
||||
MetalASupportsPaintSetup(
|
||||
session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 0,
|
||||
height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
@@ -936,9 +925,8 @@ namespace OpenRCT2::AlpineRC
|
||||
{ 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } });
|
||||
break;
|
||||
}
|
||||
MetalASupportsPaintSetup(
|
||||
session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 0,
|
||||
height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
@@ -2201,9 +2189,8 @@ namespace OpenRCT2::AlpineRC
|
||||
}
|
||||
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
|
||||
{
|
||||
MetalASupportsPaintSetup(
|
||||
session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 0, height,
|
||||
session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours);
|
||||
}
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -2246,9 +2233,8 @@ namespace OpenRCT2::AlpineRC
|
||||
}
|
||||
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
|
||||
{
|
||||
MetalASupportsPaintSetup(
|
||||
session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 0, height,
|
||||
session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours);
|
||||
}
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -2305,9 +2291,8 @@ namespace OpenRCT2::AlpineRC
|
||||
}
|
||||
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
|
||||
{
|
||||
MetalASupportsPaintSetup(
|
||||
session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 3, height,
|
||||
session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 3, height, session.SupportColours);
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
@@ -2357,9 +2342,8 @@ namespace OpenRCT2::AlpineRC
|
||||
}
|
||||
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
|
||||
{
|
||||
MetalASupportsPaintSetup(
|
||||
session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 3, height,
|
||||
session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 3, height, session.SupportColours);
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
@@ -2409,9 +2393,8 @@ namespace OpenRCT2::AlpineRC
|
||||
}
|
||||
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
|
||||
{
|
||||
MetalASupportsPaintSetup(
|
||||
session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 6, height,
|
||||
session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 6, height, session.SupportColours);
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
@@ -2461,9 +2444,8 @@ namespace OpenRCT2::AlpineRC
|
||||
}
|
||||
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
|
||||
{
|
||||
MetalASupportsPaintSetup(
|
||||
session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 6, height,
|
||||
session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 6, height, session.SupportColours);
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
@@ -2535,9 +2517,8 @@ namespace OpenRCT2::AlpineRC
|
||||
}
|
||||
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
|
||||
{
|
||||
MetalASupportsPaintSetup(
|
||||
session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 0, height,
|
||||
session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours);
|
||||
}
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -4099,9 +4080,8 @@ namespace OpenRCT2::AlpineRC
|
||||
{ 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } });
|
||||
break;
|
||||
}
|
||||
MetalASupportsPaintSetup(
|
||||
session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 2,
|
||||
height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 2, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
@@ -4180,9 +4160,9 @@ namespace OpenRCT2::AlpineRC
|
||||
{ 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } });
|
||||
break;
|
||||
}
|
||||
MetalASupportsPaintSetup(
|
||||
session, direction & 1 ? supportType.metal : MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 2,
|
||||
height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, DirectionPrev(direction), 2, height,
|
||||
session.SupportColours);
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
@@ -4246,9 +4226,8 @@ namespace OpenRCT2::AlpineRC
|
||||
{ 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } });
|
||||
break;
|
||||
}
|
||||
MetalASupportsPaintSetup(
|
||||
session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 1,
|
||||
height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 1, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
@@ -4398,9 +4377,9 @@ namespace OpenRCT2::AlpineRC
|
||||
{ 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } });
|
||||
break;
|
||||
}
|
||||
MetalASupportsPaintSetup(
|
||||
session, direction & 1 ? supportType.metal : MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 1,
|
||||
height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, DirectionPrev(direction), 1, height,
|
||||
session.SupportColours);
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
@@ -4461,9 +4440,8 @@ namespace OpenRCT2::AlpineRC
|
||||
{ 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } });
|
||||
break;
|
||||
}
|
||||
MetalASupportsPaintSetup(
|
||||
session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 0,
|
||||
height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
@@ -4628,9 +4606,8 @@ namespace OpenRCT2::AlpineRC
|
||||
{ 0, 0, height }, { { 0, 27, height }, { 32, 1, 26 } });
|
||||
break;
|
||||
}
|
||||
MetalASupportsPaintSetup(
|
||||
session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 0,
|
||||
height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
@@ -4811,9 +4788,8 @@ namespace OpenRCT2::AlpineRC
|
||||
{ 0, 6, height }, { 32, 20, 3 });
|
||||
break;
|
||||
}
|
||||
MetalASupportsPaintSetup(
|
||||
session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 8,
|
||||
height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 8, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
@@ -4858,9 +4834,9 @@ namespace OpenRCT2::AlpineRC
|
||||
{ 6, 0, height }, { 20, 32, 3 });
|
||||
break;
|
||||
}
|
||||
MetalASupportsPaintSetup(
|
||||
session, direction & 1 ? supportType.metal : MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 8,
|
||||
height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, DirectionPrev(direction), 8, height,
|
||||
session.SupportColours);
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
@@ -4913,9 +4889,8 @@ namespace OpenRCT2::AlpineRC
|
||||
{ 0, 6, height }, { 32, 20, 3 });
|
||||
break;
|
||||
}
|
||||
MetalASupportsPaintSetup(
|
||||
session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 8,
|
||||
height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 8, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
@@ -5038,9 +5013,8 @@ namespace OpenRCT2::AlpineRC
|
||||
{ 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } });
|
||||
break;
|
||||
}
|
||||
MetalASupportsPaintSetup(
|
||||
session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 8,
|
||||
height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 8, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
@@ -5187,9 +5161,9 @@ namespace OpenRCT2::AlpineRC
|
||||
{ 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } });
|
||||
break;
|
||||
}
|
||||
MetalASupportsPaintSetup(
|
||||
session, direction & 1 ? supportType.metal : MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 8,
|
||||
height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, DirectionPrev(direction), 8, height,
|
||||
session.SupportColours);
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
@@ -5242,9 +5216,8 @@ namespace OpenRCT2::AlpineRC
|
||||
{ 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } });
|
||||
break;
|
||||
}
|
||||
MetalASupportsPaintSetup(
|
||||
session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 8,
|
||||
height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 8, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
@@ -5391,9 +5364,9 @@ namespace OpenRCT2::AlpineRC
|
||||
{ 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } });
|
||||
break;
|
||||
}
|
||||
MetalASupportsPaintSetup(
|
||||
session, direction & 1 ? supportType.metal : MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 8,
|
||||
height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, DirectionNext(direction), 8, height,
|
||||
session.SupportColours);
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
@@ -5462,9 +5435,8 @@ namespace OpenRCT2::AlpineRC
|
||||
{ 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } });
|
||||
break;
|
||||
}
|
||||
MetalASupportsPaintSetup(
|
||||
session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 0,
|
||||
height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
@@ -5581,9 +5553,8 @@ namespace OpenRCT2::AlpineRC
|
||||
{ 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } });
|
||||
break;
|
||||
}
|
||||
MetalASupportsPaintSetup(
|
||||
session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 0,
|
||||
height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours);
|
||||
switch (direction)
|
||||
{
|
||||
case 1:
|
||||
@@ -5636,9 +5607,8 @@ namespace OpenRCT2::AlpineRC
|
||||
{ 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } });
|
||||
break;
|
||||
}
|
||||
MetalASupportsPaintSetup(
|
||||
session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 0,
|
||||
height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
@@ -5755,9 +5725,8 @@ namespace OpenRCT2::AlpineRC
|
||||
{ 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } });
|
||||
break;
|
||||
}
|
||||
MetalASupportsPaintSetup(
|
||||
session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 0,
|
||||
height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours);
|
||||
switch (direction)
|
||||
{
|
||||
case 1:
|
||||
@@ -5813,9 +5782,8 @@ namespace OpenRCT2::AlpineRC
|
||||
{ 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } });
|
||||
break;
|
||||
}
|
||||
MetalASupportsPaintSetup(
|
||||
session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 5,
|
||||
height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 5, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
@@ -5894,9 +5862,9 @@ namespace OpenRCT2::AlpineRC
|
||||
{ 0, 0, height }, { { 6, 0, height + 8 }, { 20, 32, 3 } });
|
||||
break;
|
||||
}
|
||||
MetalASupportsPaintSetup(
|
||||
session, direction & 1 ? supportType.metal : MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 9,
|
||||
height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, DirectionPrev(direction), 9, height,
|
||||
session.SupportColours);
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
@@ -5943,9 +5911,9 @@ namespace OpenRCT2::AlpineRC
|
||||
{ 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } });
|
||||
break;
|
||||
}
|
||||
MetalASupportsPaintSetup(
|
||||
session, direction & 1 ? supportType.metal : MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 5,
|
||||
height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, DirectionPrev(direction), 5, height,
|
||||
session.SupportColours);
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
@@ -6029,9 +5997,8 @@ namespace OpenRCT2::AlpineRC
|
||||
{ 0, 0, height }, { { 0, 27, height }, { 32, 1, 26 } });
|
||||
break;
|
||||
}
|
||||
MetalASupportsPaintSetup(
|
||||
session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 9,
|
||||
height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 9, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::StandardFlat);
|
||||
@@ -6082,9 +6049,8 @@ namespace OpenRCT2::AlpineRC
|
||||
{ 0, 0, height }, { { 0, 27, height }, { 32, 1, 26 } });
|
||||
break;
|
||||
}
|
||||
MetalASupportsPaintSetup(
|
||||
session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 5,
|
||||
height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 5, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
@@ -6163,9 +6129,9 @@ namespace OpenRCT2::AlpineRC
|
||||
{ 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } });
|
||||
break;
|
||||
}
|
||||
MetalASupportsPaintSetup(
|
||||
session, direction & 1 ? supportType.metal : MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 9,
|
||||
height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, DirectionNext(direction), 9, height,
|
||||
session.SupportColours);
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
@@ -6212,9 +6178,9 @@ namespace OpenRCT2::AlpineRC
|
||||
{ 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } });
|
||||
break;
|
||||
}
|
||||
MetalASupportsPaintSetup(
|
||||
session, direction & 1 ? supportType.metal : MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 5,
|
||||
height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, DirectionNext(direction), 5, height,
|
||||
session.SupportColours);
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
@@ -6298,9 +6264,8 @@ namespace OpenRCT2::AlpineRC
|
||||
{ 0, 0, height }, { { 0, 6, height + 8 }, { 32, 20, 3 } });
|
||||
break;
|
||||
}
|
||||
MetalASupportsPaintSetup(
|
||||
session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 9,
|
||||
height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 9, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::StandardFlat);
|
||||
@@ -6377,9 +6342,8 @@ namespace OpenRCT2::AlpineRC
|
||||
{ 0, 0, height }, { { 0, 6, height }, { 32, 20, 3 } });
|
||||
break;
|
||||
}
|
||||
MetalASupportsPaintSetup(
|
||||
session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 3,
|
||||
height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 3, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
@@ -6529,9 +6493,9 @@ namespace OpenRCT2::AlpineRC
|
||||
{ 0, 0, height }, { { 6, 0, height + 8 }, { 20, 32, 3 } });
|
||||
break;
|
||||
}
|
||||
MetalASupportsPaintSetup(
|
||||
session, direction & 1 ? supportType.metal : MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 9,
|
||||
height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, DirectionPrev(direction), 9, height,
|
||||
session.SupportColours);
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
@@ -6578,9 +6542,9 @@ namespace OpenRCT2::AlpineRC
|
||||
{ 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } });
|
||||
break;
|
||||
}
|
||||
MetalASupportsPaintSetup(
|
||||
session, direction & 1 ? supportType.metal : MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 3,
|
||||
height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, DirectionPrev(direction), 3, height,
|
||||
session.SupportColours);
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
@@ -6735,9 +6699,8 @@ namespace OpenRCT2::AlpineRC
|
||||
{ 0, 0, height }, { { 0, 27, height }, { 32, 1, 26 } });
|
||||
break;
|
||||
}
|
||||
MetalASupportsPaintSetup(
|
||||
session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 9,
|
||||
height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 9, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::StandardFlat);
|
||||
@@ -6787,9 +6750,8 @@ namespace OpenRCT2::AlpineRC
|
||||
{ 0, 0, height }, { { 0, 27, height }, { 32, 1, 26 } });
|
||||
break;
|
||||
}
|
||||
MetalASupportsPaintSetup(
|
||||
session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 3,
|
||||
height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 3, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
@@ -6995,9 +6957,9 @@ namespace OpenRCT2::AlpineRC
|
||||
{ 0, 0, height }, { { 6, 0, height }, { 20, 32, 3 } });
|
||||
break;
|
||||
}
|
||||
MetalASupportsPaintSetup(
|
||||
session, direction & 1 ? supportType.metal : MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 3,
|
||||
height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, DirectionNext(direction), 3, height,
|
||||
session.SupportColours);
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
@@ -7226,9 +7188,8 @@ namespace OpenRCT2::AlpineRC
|
||||
}
|
||||
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
|
||||
{
|
||||
MetalASupportsPaintSetup(
|
||||
session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 0, height,
|
||||
session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours);
|
||||
}
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -7269,9 +7230,8 @@ namespace OpenRCT2::AlpineRC
|
||||
{ 0, 6, height }, { 32, 20, 3 });
|
||||
break;
|
||||
}
|
||||
MetalASupportsPaintSetup(
|
||||
session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 3,
|
||||
height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 3, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
@@ -7316,9 +7276,9 @@ namespace OpenRCT2::AlpineRC
|
||||
{ 6, 0, height }, { { 0, 6, height - 6 }, { 20, 32, 3 } });
|
||||
break;
|
||||
}
|
||||
MetalASupportsPaintSetup(
|
||||
session, direction & 1 ? supportType.metal : MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 10,
|
||||
height - 6, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, DirectionPrev(direction), 10, height - 6,
|
||||
session.SupportColours);
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
@@ -7374,9 +7334,8 @@ namespace OpenRCT2::AlpineRC
|
||||
{ 0, 6, height }, { 32, 20, 3 });
|
||||
break;
|
||||
}
|
||||
MetalASupportsPaintSetup(
|
||||
session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 3,
|
||||
height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 3, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
@@ -7421,9 +7380,9 @@ namespace OpenRCT2::AlpineRC
|
||||
{ 6, 0, height }, { { 0, 6, height - 6 }, { 20, 32, 3 } });
|
||||
break;
|
||||
}
|
||||
MetalASupportsPaintSetup(
|
||||
session, direction & 1 ? supportType.metal : MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 10,
|
||||
height - 6, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, DirectionNext(direction), 10, height - 6,
|
||||
session.SupportColours);
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
@@ -7476,9 +7435,8 @@ namespace OpenRCT2::AlpineRC
|
||||
{ 0, 6, height }, { { 0, 6, height - 6 }, { 32, 20, 3 } });
|
||||
break;
|
||||
}
|
||||
MetalASupportsPaintSetup(
|
||||
session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 8,
|
||||
height - 6, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 8, height - 6, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardSlopeEnd);
|
||||
@@ -7526,9 +7484,9 @@ namespace OpenRCT2::AlpineRC
|
||||
{ 6, 0, height }, { 20, 32, 3 });
|
||||
break;
|
||||
}
|
||||
MetalASupportsPaintSetup(
|
||||
session, direction & 1 ? supportType.metal : MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 5,
|
||||
height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, DirectionPrev(direction), 5, height,
|
||||
session.SupportColours);
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
@@ -7581,9 +7539,8 @@ namespace OpenRCT2::AlpineRC
|
||||
{ 0, 6, height }, { { 0, 6, height - 6 }, { 32, 20, 3 } });
|
||||
break;
|
||||
}
|
||||
MetalASupportsPaintSetup(
|
||||
session, direction & 1 ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 8,
|
||||
height - 6, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 8, height - 6, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardSlopeEnd);
|
||||
@@ -7631,9 +7588,9 @@ namespace OpenRCT2::AlpineRC
|
||||
{ 6, 0, height }, { 20, 32, 3 });
|
||||
break;
|
||||
}
|
||||
MetalASupportsPaintSetup(
|
||||
session, direction & 1 ? supportType.metal : MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 5,
|
||||
height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, DirectionNext(direction), 5, height,
|
||||
session.SupportColours);
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
|
||||
@@ -158,7 +158,8 @@ static void classicStandUpRCTrackFlatToLeftBank(
|
||||
|
||||
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
|
||||
{
|
||||
MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours);
|
||||
}
|
||||
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
@@ -182,7 +183,8 @@ static void classicStandUpRCTrackFlatToRightBank(
|
||||
|
||||
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
|
||||
{
|
||||
MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours);
|
||||
}
|
||||
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
@@ -224,7 +226,8 @@ static void classicStandUpRCTrackBankedRightQuarterTurn5(
|
||||
PaintAddImageAsParentRotated(
|
||||
session, direction, session.TrackColours.WithIndex(map[direction]), { 0, 6, height }, { 32, 20, 3 });
|
||||
|
||||
MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours);
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
@@ -363,7 +366,8 @@ static void classicStandUpRCTrackBankedRightQuarterTurn5(
|
||||
PaintAddImageAsParentRotated(
|
||||
session, direction, session.TrackColours.WithIndex(map[direction]), { 6, 0, height }, { 20, 32, 3 });
|
||||
|
||||
MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours);
|
||||
if (direction == 1 || direction == 0)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction ^ 1, height, TunnelType::StandardFlat);
|
||||
@@ -409,7 +413,8 @@ static void classicStandUpRCTrackLeftBankTo25DegUp(
|
||||
|
||||
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
|
||||
{
|
||||
MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 3, height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 3, height, session.SupportColours);
|
||||
}
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
@@ -440,7 +445,8 @@ static void classicStandUpRCTrackRightBankTo25DegUp(
|
||||
|
||||
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
|
||||
{
|
||||
MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 3, height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 3, height, session.SupportColours);
|
||||
}
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
@@ -471,7 +477,8 @@ static void classicStandUpRCTrack25DegUpToLeftBank(
|
||||
|
||||
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
|
||||
{
|
||||
MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 6, height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 6, height, session.SupportColours);
|
||||
}
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
@@ -502,7 +509,8 @@ static void classicStandUpRCTrack25DegUpToRightBank(
|
||||
|
||||
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
|
||||
{
|
||||
MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 6, height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 6, height, session.SupportColours);
|
||||
}
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
@@ -565,7 +573,8 @@ static void classicStandUpRCTrackLeftBank(
|
||||
|
||||
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
|
||||
{
|
||||
MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours);
|
||||
}
|
||||
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
@@ -606,7 +615,8 @@ static void classicStandUpRCTrackLeftEighthBankToDiag(
|
||||
session, direction, session.TrackColours.WithIndex(imageId), { 0, 0, height },
|
||||
{ { 0, 6, height }, { 32, 20, 3 } });
|
||||
|
||||
MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
@@ -759,7 +769,8 @@ static void classicStandUpRCTrackRightEighthBankToDiag(
|
||||
session, direction, session.TrackColours.WithIndex(imageId), { 0, 0, height },
|
||||
{ { 0, 6, height }, { 32, 20, 3 } });
|
||||
|
||||
MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
@@ -928,7 +939,8 @@ static void classicStandUpRCTrackRightBankedQuarterTurn3(
|
||||
PaintAddImageAsParentRotated(
|
||||
session, direction, session.TrackColours.WithIndex(imageId), { 0, 6, height }, { 32, 20, 3 });
|
||||
|
||||
MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours);
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
@@ -982,7 +994,8 @@ static void classicStandUpRCTrackRightBankedQuarterTurn3(
|
||||
PaintAddImageAsParentRotated(
|
||||
session, direction, session.TrackColours.WithIndex(imageId), { 6, 0, height }, { 20, 32, 3 });
|
||||
|
||||
MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 1)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction ^ 1, height, TunnelType::StandardFlat);
|
||||
|
||||
@@ -88,7 +88,8 @@ static void CorkscrewRCTrackFlat(
|
||||
}
|
||||
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
|
||||
{
|
||||
MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours);
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -110,7 +111,8 @@ static void CorkscrewRCTrackFlat(
|
||||
}
|
||||
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
|
||||
{
|
||||
MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours);
|
||||
}
|
||||
}
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
@@ -185,7 +187,8 @@ static void CorkscrewRCTrack25DegUp(
|
||||
}
|
||||
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
|
||||
{
|
||||
MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 8, height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 8, height, session.SupportColours);
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -215,7 +218,8 @@ static void CorkscrewRCTrack25DegUp(
|
||||
}
|
||||
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
|
||||
{
|
||||
MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 8, height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 8, height, session.SupportColours);
|
||||
}
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
@@ -262,7 +266,8 @@ static void CorkscrewRCTrack60DegUp(
|
||||
}
|
||||
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
|
||||
{
|
||||
MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 32, height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 32, height, session.SupportColours);
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -292,7 +297,8 @@ static void CorkscrewRCTrack60DegUp(
|
||||
}
|
||||
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
|
||||
{
|
||||
MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 32, height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 32, height, session.SupportColours);
|
||||
}
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
@@ -339,7 +345,8 @@ static void CorkscrewRCTrackFlatTo25DegUp(
|
||||
}
|
||||
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
|
||||
{
|
||||
MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 3, height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 3, height, session.SupportColours);
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -369,7 +376,8 @@ static void CorkscrewRCTrackFlatTo25DegUp(
|
||||
}
|
||||
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
|
||||
{
|
||||
MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 3, height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 3, height, session.SupportColours);
|
||||
}
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
@@ -422,7 +430,8 @@ static void CorkscrewRCTrack25DegUpTo60DegUp(
|
||||
}
|
||||
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
|
||||
{
|
||||
MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 12, height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 12, height, session.SupportColours);
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -458,7 +467,8 @@ static void CorkscrewRCTrack25DegUpTo60DegUp(
|
||||
}
|
||||
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
|
||||
{
|
||||
MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 12, height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 12, height, session.SupportColours);
|
||||
}
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
@@ -511,7 +521,8 @@ static void CorkscrewRCTrack60DegUpTo25DegUp(
|
||||
}
|
||||
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
|
||||
{
|
||||
MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 20, height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 20, height, session.SupportColours);
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -547,7 +558,8 @@ static void CorkscrewRCTrack60DegUpTo25DegUp(
|
||||
}
|
||||
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
|
||||
{
|
||||
MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 20, height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 20, height, session.SupportColours);
|
||||
}
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
@@ -594,7 +606,8 @@ static void CorkscrewRCTrack25DegUpToFlat(
|
||||
}
|
||||
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
|
||||
{
|
||||
MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 6, height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 6, height, session.SupportColours);
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -624,7 +637,8 @@ static void CorkscrewRCTrack25DegUpToFlat(
|
||||
}
|
||||
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
|
||||
{
|
||||
MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 6, height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 6, height, session.SupportColours);
|
||||
}
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
@@ -718,7 +732,8 @@ static void CorkscrewRCTrackLeftQuarterTurn5(
|
||||
{ { 0, 6, height }, { 32, 20, 3 } });
|
||||
break;
|
||||
}
|
||||
MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
@@ -865,7 +880,8 @@ static void CorkscrewRCTrackLeftQuarterTurn5(
|
||||
{ { 6, 0, height }, { 20, 32, 3 } });
|
||||
break;
|
||||
}
|
||||
MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours);
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
@@ -933,7 +949,8 @@ static void CorkscrewRCTrackFlatToLeftBank(
|
||||
}
|
||||
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
|
||||
{
|
||||
MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours);
|
||||
}
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
@@ -976,7 +993,8 @@ static void CorkscrewRCTrackFlatToRightBank(
|
||||
}
|
||||
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
|
||||
{
|
||||
MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours);
|
||||
}
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
@@ -1019,7 +1037,8 @@ static void CorkscrewRCTrackLeftBankToFlat(
|
||||
}
|
||||
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
|
||||
{
|
||||
MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours);
|
||||
}
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
@@ -1062,7 +1081,8 @@ static void CorkscrewRCTrackRightBankToFlat(
|
||||
}
|
||||
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
|
||||
{
|
||||
MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours);
|
||||
}
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
@@ -1103,7 +1123,8 @@ static void CorkscrewRCTrackBankedLeftQuarterTurn5(
|
||||
{ { 0, 6, height }, { 32, 20, 3 } });
|
||||
break;
|
||||
}
|
||||
MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
@@ -1253,7 +1274,8 @@ static void CorkscrewRCTrackBankedLeftQuarterTurn5(
|
||||
{ { 6, 0, height }, { 20, 32, 3 } });
|
||||
break;
|
||||
}
|
||||
MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours);
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
@@ -1322,7 +1344,8 @@ static void CorkscrewRCTrackLeftBankTo25DegUp(
|
||||
}
|
||||
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
|
||||
{
|
||||
MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 3, height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 3, height, session.SupportColours);
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
@@ -1372,7 +1395,8 @@ static void CorkscrewRCTrackRightBankTo25DegUp(
|
||||
}
|
||||
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
|
||||
{
|
||||
MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 3, height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 3, height, session.SupportColours);
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
@@ -1422,7 +1446,8 @@ static void CorkscrewRCTrack25DegUpToLeftBank(
|
||||
}
|
||||
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
|
||||
{
|
||||
MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 6, height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 6, height, session.SupportColours);
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
@@ -1472,7 +1497,8 @@ static void CorkscrewRCTrack25DegUpToRightBank(
|
||||
}
|
||||
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
|
||||
{
|
||||
MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 6, height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 6, height, session.SupportColours);
|
||||
}
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
@@ -1548,7 +1574,8 @@ static void CorkscrewRCTrackLeftBank(
|
||||
}
|
||||
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
|
||||
{
|
||||
MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours);
|
||||
}
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
@@ -1594,7 +1621,8 @@ static void CorkscrewRCTrackLeftQuarterTurn525DegUp(
|
||||
{ { 0, 6, height }, { 32, 20, 3 } });
|
||||
break;
|
||||
}
|
||||
MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 8, height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 8, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
@@ -1736,7 +1764,8 @@ static void CorkscrewRCTrackLeftQuarterTurn525DegUp(
|
||||
{ { 6, 0, height }, { 20, 32, 3 } });
|
||||
break;
|
||||
}
|
||||
MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 8, height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 8, height, session.SupportColours);
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
@@ -1790,7 +1819,8 @@ static void CorkscrewRCTrackRightQuarterTurn525DegUp(
|
||||
{ { 0, 6, height }, { 32, 20, 3 } });
|
||||
break;
|
||||
}
|
||||
MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 8, height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 8, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
@@ -1931,7 +1961,8 @@ static void CorkscrewRCTrackRightQuarterTurn525DegUp(
|
||||
{ { 6, 0, height }, { 20, 32, 3 } });
|
||||
break;
|
||||
}
|
||||
MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 8, height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 8, height, session.SupportColours);
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
@@ -2005,7 +2036,8 @@ static void CorkscrewRCTrackSBendLeft(
|
||||
{ { 0, 6, height }, { 32, 20, 3 } });
|
||||
break;
|
||||
}
|
||||
MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
@@ -2116,7 +2148,8 @@ static void CorkscrewRCTrackSBendLeft(
|
||||
{ { 0, 6, height }, { 32, 20, 3 } });
|
||||
break;
|
||||
}
|
||||
MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours);
|
||||
switch (direction)
|
||||
{
|
||||
case 1:
|
||||
@@ -2170,7 +2203,8 @@ static void CorkscrewRCTrackSBendRight(
|
||||
{ { 0, 6, height }, { 32, 20, 3 } });
|
||||
break;
|
||||
}
|
||||
MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
@@ -2281,7 +2315,8 @@ static void CorkscrewRCTrackSBendRight(
|
||||
{ { 0, 6, height }, { 32, 20, 3 } });
|
||||
break;
|
||||
}
|
||||
MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours);
|
||||
switch (direction)
|
||||
{
|
||||
case 1:
|
||||
@@ -2640,7 +2675,8 @@ static void CorkscrewRCTrackRightVerticalLoop(
|
||||
session, direction, session.TrackColours.WithIndex(16578), { 0, 6, height }, { 32, 20, 3 });
|
||||
break;
|
||||
}
|
||||
MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 8, height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 8, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
@@ -2829,7 +2865,8 @@ static void CorkscrewRCTrackRightVerticalLoop(
|
||||
session, direction, session.TrackColours.WithIndex(16585), { 0, 6, height }, { 32, 20, 3 });
|
||||
break;
|
||||
}
|
||||
MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 8, height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 8, height, session.SupportColours);
|
||||
switch (direction)
|
||||
{
|
||||
case 1:
|
||||
@@ -2877,7 +2914,8 @@ static void CorkscrewRCTrackLeftQuarterTurn3(
|
||||
{ { 0, 6, height }, { 32, 20, 3 } });
|
||||
break;
|
||||
}
|
||||
MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
@@ -2953,7 +2991,8 @@ static void CorkscrewRCTrackLeftQuarterTurn3(
|
||||
{ { 6, 0, height }, { 20, 32, 3 } });
|
||||
break;
|
||||
}
|
||||
MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours);
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
@@ -3019,7 +3058,8 @@ static void CorkscrewRCTrackLeftQuarterTurn3Bank(
|
||||
{ { 0, 6, height }, { 32, 20, 3 } });
|
||||
break;
|
||||
}
|
||||
MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
@@ -3098,7 +3138,8 @@ static void CorkscrewRCTrackLeftQuarterTurn3Bank(
|
||||
{ { 6, 0, height }, { 20, 32, 3 } });
|
||||
break;
|
||||
}
|
||||
MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours);
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
@@ -3157,7 +3198,8 @@ static void CorkscrewRCTrackLeftQuarterTurn325DegUp(
|
||||
session, direction, session.TrackColours.WithIndex(16539), { 0, 6, height }, { 32, 20, 3 });
|
||||
break;
|
||||
}
|
||||
MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 8, height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 8, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
@@ -3198,7 +3240,8 @@ static void CorkscrewRCTrackLeftQuarterTurn325DegUp(
|
||||
session, direction, session.TrackColours.WithIndex(16538), { 6, 0, height }, { 20, 32, 3 });
|
||||
break;
|
||||
}
|
||||
MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 8, height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 8, height, session.SupportColours);
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
@@ -3248,7 +3291,8 @@ static void CorkscrewRCTrackRightQuarterTurn325DegUp(
|
||||
session, direction, session.TrackColours.WithIndex(16536), { 0, 6, height }, { 32, 20, 3 });
|
||||
break;
|
||||
}
|
||||
MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 8, height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 8, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
@@ -3366,7 +3410,8 @@ static void CorkscrewRCTrackHalfLoopUp(
|
||||
session, direction, session.TrackColours.WithIndex(16609), { 0, 6, height }, { 32, 20, 7 });
|
||||
break;
|
||||
}
|
||||
MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 8, height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 8, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
@@ -3628,7 +3673,8 @@ static void CorkscrewRCTrackRightCorkscrewUp(
|
||||
{ { 0, 6, height + 4 }, { 32, 20, 3 } });
|
||||
break;
|
||||
}
|
||||
MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
@@ -3770,7 +3816,8 @@ static void CorkscrewRCTrackLeftHalfBankedHelixUpSmall(
|
||||
{ { 0, 6, height }, { 32, 20, 3 } });
|
||||
break;
|
||||
}
|
||||
MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 2, height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 2, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
@@ -3849,7 +3896,8 @@ static void CorkscrewRCTrackLeftHalfBankedHelixUpSmall(
|
||||
{ { 6, 0, height + 8 }, { 20, 32, 3 } });
|
||||
break;
|
||||
}
|
||||
MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 6, height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 6, height, session.SupportColours);
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
@@ -3896,7 +3944,8 @@ static void CorkscrewRCTrackLeftHalfBankedHelixUpSmall(
|
||||
{ { 6, 0, height }, { 20, 32, 3 } });
|
||||
break;
|
||||
}
|
||||
MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 2, height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 2, height, session.SupportColours);
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
@@ -3980,7 +4029,8 @@ static void CorkscrewRCTrackLeftHalfBankedHelixUpSmall(
|
||||
{ { 0, 27, height }, { 32, 1, 26 } });
|
||||
break;
|
||||
}
|
||||
MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 6, height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 6, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::StandardFlat);
|
||||
@@ -4032,7 +4082,8 @@ static void CorkscrewRCTrackRightHalfBankedHelixUpSmall(
|
||||
{ { 0, 27, height }, { 32, 1, 26 } });
|
||||
break;
|
||||
}
|
||||
MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 2, height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 2, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
@@ -4111,7 +4162,8 @@ static void CorkscrewRCTrackRightHalfBankedHelixUpSmall(
|
||||
{ { 6, 0, height }, { 20, 32, 3 } });
|
||||
break;
|
||||
}
|
||||
MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 6, height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 6, height, session.SupportColours);
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
@@ -4158,7 +4210,8 @@ static void CorkscrewRCTrackRightHalfBankedHelixUpSmall(
|
||||
{ { 6, 0, height }, { 20, 32, 3 } });
|
||||
break;
|
||||
}
|
||||
MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 2, height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 2, height, session.SupportColours);
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
@@ -4242,7 +4295,8 @@ static void CorkscrewRCTrackRightHalfBankedHelixUpSmall(
|
||||
{ { 0, 6, height + 8 }, { 32, 20, 3 } });
|
||||
break;
|
||||
}
|
||||
MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 6, height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 6, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::StandardFlat);
|
||||
@@ -4324,7 +4378,8 @@ static void CorkscrewRCTrackLeftHalfBankedHelixUpLarge(
|
||||
{ { 0, 6, height }, { 32, 20, 3 } });
|
||||
break;
|
||||
}
|
||||
MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 1, height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 1, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
@@ -4474,7 +4529,8 @@ static void CorkscrewRCTrackLeftHalfBankedHelixUpLarge(
|
||||
{ { 6, 0, height + 8 }, { 20, 32, 3 } });
|
||||
break;
|
||||
}
|
||||
MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 7, height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 7, height, session.SupportColours);
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
@@ -4521,7 +4577,8 @@ static void CorkscrewRCTrackLeftHalfBankedHelixUpLarge(
|
||||
{ { 6, 0, height }, { 20, 32, 3 } });
|
||||
break;
|
||||
}
|
||||
MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 1, height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 1, height, session.SupportColours);
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
@@ -4675,7 +4732,8 @@ static void CorkscrewRCTrackLeftHalfBankedHelixUpLarge(
|
||||
{ { 0, 27, height }, { 32, 1, 26 } });
|
||||
break;
|
||||
}
|
||||
MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 7, height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 7, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::StandardFlat);
|
||||
@@ -4727,7 +4785,8 @@ static void CorkscrewRCTrackRightHalfBankedHelixUpLarge(
|
||||
{ { 0, 27, height }, { 32, 1, 26 } });
|
||||
break;
|
||||
}
|
||||
MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 1, height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 1, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
@@ -4876,7 +4935,8 @@ static void CorkscrewRCTrackRightHalfBankedHelixUpLarge(
|
||||
{ { 6, 0, height }, { 20, 32, 3 } });
|
||||
break;
|
||||
}
|
||||
MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 7, height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 7, height, session.SupportColours);
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
@@ -4923,7 +4983,8 @@ static void CorkscrewRCTrackRightHalfBankedHelixUpLarge(
|
||||
{ { 6, 0, height }, { 20, 32, 3 } });
|
||||
break;
|
||||
}
|
||||
MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 1, height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 1, height, session.SupportColours);
|
||||
switch (direction)
|
||||
{
|
||||
case 2:
|
||||
@@ -5078,7 +5139,8 @@ static void CorkscrewRCTrackRightHalfBankedHelixUpLarge(
|
||||
{ { 0, 6, height + 8 }, { 32, 20, 3 } });
|
||||
break;
|
||||
}
|
||||
MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 7, height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 7, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height + 8, TunnelType::StandardFlat);
|
||||
@@ -5258,7 +5320,8 @@ static void CorkscrewRCTrackBrakes(
|
||||
}
|
||||
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
|
||||
{
|
||||
MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours);
|
||||
}
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
@@ -5660,7 +5723,8 @@ static void CorkscrewRCTrackLeftEighthToDiag(
|
||||
{ { 0, 6, height }, { 32, 20, 3 } });
|
||||
break;
|
||||
}
|
||||
MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
@@ -5824,7 +5888,8 @@ static void CorkscrewRCTrackRightEighthToDiag(
|
||||
{ { 0, 6, height }, { 32, 20, 3 } });
|
||||
break;
|
||||
}
|
||||
MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
@@ -6006,7 +6071,8 @@ static void CorkscrewRCTrackLeftEighthBankToDiag(
|
||||
{ { 0, 6, height }, { 32, 20, 3 } });
|
||||
break;
|
||||
}
|
||||
MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
@@ -6170,7 +6236,8 @@ static void CorkscrewRCTrackRightEighthBankToDiag(
|
||||
{ { 0, 27, height }, { 32, 1, 26 } });
|
||||
break;
|
||||
}
|
||||
MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
@@ -9826,7 +9893,8 @@ static void CorkscrewRCTrackBlockBrakes(
|
||||
PaintAddImageAsParentRotated(
|
||||
session, direction, session.TrackColours.WithIndex(kCorkscrewRcBlockBrakeImages[direction][isClosed]), { 0, 0, height },
|
||||
{ { 0, 6, height }, { 32, 20, 3 } });
|
||||
MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);
|
||||
@@ -9870,7 +9938,8 @@ static void CorkscrewRCTrackBooster(
|
||||
}
|
||||
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
|
||||
{
|
||||
MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours);
|
||||
}
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0);
|
||||
@@ -9903,7 +9972,8 @@ static void CorkscrewRCTrackLeftTwistDownToUp(
|
||||
session, direction, session.TrackColours.WithIndex(26977), { 0, 6, height }, { 32, 20, 3 });
|
||||
break;
|
||||
}
|
||||
MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
@@ -9976,7 +10046,8 @@ static void CorkscrewRCTrackLeftTwistDownToUp(
|
||||
PaintSegment::topRightSide, PaintSegment::bottomLeftSide),
|
||||
direction),
|
||||
0xFFFF, 0);
|
||||
MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours);
|
||||
|
||||
switch (direction)
|
||||
{
|
||||
@@ -10018,7 +10089,8 @@ static void CorkscrewRCTrackRightTwistDownToUp(
|
||||
session, direction, session.TrackColours.WithIndex(26989), { 0, 6, height }, { 32, 20, 3 });
|
||||
break;
|
||||
}
|
||||
MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
@@ -10091,7 +10163,8 @@ static void CorkscrewRCTrackRightTwistDownToUp(
|
||||
PaintSegment::bottomLeftSide, PaintSegment::bottomRightSide),
|
||||
direction),
|
||||
0xFFFF, 0);
|
||||
MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours);
|
||||
|
||||
switch (direction)
|
||||
{
|
||||
@@ -10141,7 +10214,8 @@ static void CorkscrewRCTrackLeftTwistUpToDown(
|
||||
PaintSegment::bottomLeftSide, PaintSegment::bottomRightSide),
|
||||
direction),
|
||||
0xFFFF, 0);
|
||||
MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours);
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
@@ -10199,7 +10273,8 @@ static void CorkscrewRCTrackLeftTwistUpToDown(
|
||||
session, direction, session.TrackColours.WithIndex(26978), { 0, 6, height }, { 32, 20, 3 });
|
||||
break;
|
||||
}
|
||||
MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours);
|
||||
switch (direction)
|
||||
{
|
||||
case 1:
|
||||
@@ -10256,7 +10331,8 @@ static void CorkscrewRCTrackRightTwistUpToDown(
|
||||
PaintSegment::topRightSide, PaintSegment::bottomLeftSide),
|
||||
direction),
|
||||
0xFFFF, 0);
|
||||
MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours);
|
||||
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
@@ -10314,7 +10390,8 @@ static void CorkscrewRCTrackRightTwistUpToDown(
|
||||
session, direction, session.TrackColours.WithIndex(26990), { 0, 6, height }, { 32, 20, 3 });
|
||||
break;
|
||||
}
|
||||
MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours);
|
||||
switch (direction)
|
||||
{
|
||||
case 1:
|
||||
@@ -10364,7 +10441,8 @@ static void LayDownRCTrackLeftFlyerTwistUp(
|
||||
session, direction, session.TrackColours.WithIndex(26977), { 0, 6, height }, { 32, 20, 3 });
|
||||
break;
|
||||
}
|
||||
MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
@@ -10484,7 +10562,8 @@ static void LayDownRCTrackRightFlyerTwistUp(
|
||||
session, direction, session.TrackColours.WithIndex(26989), { 0, 6, height }, { 32, 20, 3 });
|
||||
break;
|
||||
}
|
||||
MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
@@ -10602,7 +10681,8 @@ static void LayDownRCTrackFlyerHalfLoopUp(
|
||||
session, direction, session.TrackColours.WithIndex(16609), { 0, 6, height }, { 32, 20, 7 });
|
||||
break;
|
||||
}
|
||||
MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 8, height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 8, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height - 8, TunnelType::StandardSlopeStart);
|
||||
@@ -10751,7 +10831,8 @@ static void LayDownRCTrackLeftFlyerCorkscrewUp(
|
||||
direction),
|
||||
0xFFFF, 0);
|
||||
}
|
||||
MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours);
|
||||
if (direction != 2)
|
||||
{
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -10878,7 +10959,8 @@ static void LayDownRCTrackRightFlyerCorkscrewUp(
|
||||
{ { 0, 6, height + 4 }, { 32, 20, 3 } });
|
||||
break;
|
||||
}
|
||||
MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::Centre, 0, height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours);
|
||||
if (direction == 0 || direction == 3)
|
||||
{
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::StandardFlat);
|
||||
|
||||
@@ -117,7 +117,7 @@ static void HeartlineTwisterRCTrackStation(
|
||||
PaintAddImageAsParentRotated(
|
||||
session, direction, GetStationColourScheme(session, trackElement).WithIndex(imageIds[direction][1]), { 0, 0, height },
|
||||
{ 32, 32, 1 });
|
||||
DrawSupportsSideBySide(session, direction, height, session.SupportColours, MetalSupportGraphic::Tubes);
|
||||
DrawSupportsSideBySide(session, direction, height, session.SupportColours, MetalSupportType::Tubes);
|
||||
TrackPaintUtilDrawStation(session, ride, direction, height, trackElement);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
|
||||
@@ -1865,9 +1865,8 @@ static void JuniorRCPaintTrackFlat(
|
||||
|
||||
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
|
||||
{
|
||||
MetalASupportsPaintSetup(
|
||||
session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 0, height,
|
||||
session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours);
|
||||
}
|
||||
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -1929,7 +1928,7 @@ static void JuniorRCPaintStation(
|
||||
PaintAddImageAsChild(session, imageId, { 6, 0, height }, { { 0, 0, height }, { 20, 32, 1 } });
|
||||
}
|
||||
|
||||
DrawSupportsSideBySide(session, direction, height, session.SupportColours, MetalSupportGraphic::Boxed);
|
||||
DrawSupportsSideBySide(session, direction, height, session.SupportColours, MetalSupportType::Boxed);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
|
||||
TrackPaintUtilDrawStation(session, ride, direction, height, trackElement);
|
||||
@@ -2064,14 +2063,13 @@ static void JuniorRCRightQuarterTurn5TilesPaintSetup(
|
||||
switch (trackSequence)
|
||||
{
|
||||
case 0:
|
||||
MetalASupportsPaintSetup(
|
||||
session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 0,
|
||||
supportHeight, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 0, supportHeight, session.SupportColours);
|
||||
break;
|
||||
case 6:
|
||||
MetalASupportsPaintSetup(
|
||||
session, (direction & 1) ? supportType.metal : MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 0,
|
||||
supportHeight, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, DirectionNext(direction), 0, supportHeight,
|
||||
session.SupportColours);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -2373,14 +2371,13 @@ static void JuniorRCBankedRightQuarterTurn5TilesPaintSetup(
|
||||
switch (trackSequence)
|
||||
{
|
||||
case 0:
|
||||
MetalASupportsPaintSetup(
|
||||
session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 0,
|
||||
supportHeight, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 0, supportHeight, session.SupportColours);
|
||||
break;
|
||||
case 6:
|
||||
MetalASupportsPaintSetup(
|
||||
session, (direction & 1) ? supportType.metal : MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 0,
|
||||
supportHeight, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, DirectionNext(direction), 0, supportHeight,
|
||||
session.SupportColours);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -2839,14 +2836,14 @@ static void JuniorRCPaintTrackLeftQuarterTurn5Tiles25DegUp(
|
||||
switch (trackSequence)
|
||||
{
|
||||
case 0:
|
||||
MetalASupportsPaintSetup(
|
||||
session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre,
|
||||
(direction == 0 || direction == 3) ? 10 : 8, height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, (direction == 0 || direction == 3) ? 10 : 8,
|
||||
height, session.SupportColours);
|
||||
break;
|
||||
case 6:
|
||||
MetalASupportsPaintSetup(
|
||||
session, (direction & 1) ? supportType.metal : MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre,
|
||||
supportSpecial[direction], height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, DirectionPrev(direction), supportSpecial[direction],
|
||||
height, session.SupportColours);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -2944,14 +2941,14 @@ static void JuniorRCPaintTrackRightQuarterTurn5Tiles25DegUp(
|
||||
switch (trackSequence)
|
||||
{
|
||||
case 0:
|
||||
MetalASupportsPaintSetup(
|
||||
session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre,
|
||||
supportSpecial[direction], height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, supportSpecial[direction], height,
|
||||
session.SupportColours);
|
||||
break;
|
||||
case 6:
|
||||
MetalASupportsPaintSetup(
|
||||
session, (direction & 1) ? supportType.metal : MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 8,
|
||||
height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, DirectionNext(direction), 8, height,
|
||||
session.SupportColours);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -3663,15 +3660,13 @@ static void JuniorRCRightHalfBankedHelixUpSmallPaintSetup(
|
||||
|
||||
if (trackSequence == 0)
|
||||
{
|
||||
MetalASupportsPaintSetup(
|
||||
session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 2, height,
|
||||
session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 2, height, session.SupportColours);
|
||||
}
|
||||
else if (trackSequence == 3)
|
||||
{
|
||||
MetalASupportsPaintSetup(
|
||||
session, (direction & 1) ? supportType.metal : MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 6, height,
|
||||
session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, DirectionNext(direction), 6, height, session.SupportColours);
|
||||
}
|
||||
|
||||
if (direction == 0 && trackSequence == 0)
|
||||
@@ -3736,15 +3731,13 @@ static void JuniorRCRightHalfBankedHelixDownSmallPaintSetup(
|
||||
|
||||
if (trackSequence == 0)
|
||||
{
|
||||
MetalASupportsPaintSetup(
|
||||
session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 6, height,
|
||||
session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 6, height, session.SupportColours);
|
||||
}
|
||||
else if (trackSequence == 3)
|
||||
{
|
||||
MetalASupportsPaintSetup(
|
||||
session, (direction & 1) ? supportType.metal : MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 2, height,
|
||||
session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, DirectionNext(direction), 2, height, session.SupportColours);
|
||||
}
|
||||
|
||||
if (direction == 0 && trackSequence == 0)
|
||||
@@ -3841,15 +3834,13 @@ static void JuniorRCRightHalfBankedHelixUpLargePaintSetup(
|
||||
|
||||
if (trackSequence == 0)
|
||||
{
|
||||
MetalASupportsPaintSetup(
|
||||
session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 1, height,
|
||||
session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 1, height, session.SupportColours);
|
||||
}
|
||||
else if (trackSequence == 6)
|
||||
{
|
||||
MetalASupportsPaintSetup(
|
||||
session, (direction & 1) ? supportType.metal : MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 7, height,
|
||||
session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, DirectionNext(direction), 7, height, session.SupportColours);
|
||||
}
|
||||
|
||||
if (direction == 0 && trackSequence == 0)
|
||||
@@ -3948,15 +3939,13 @@ static void JuniorRCRightHalfBankedHelixDownLargePaintSetup(
|
||||
|
||||
if (trackSequence == 0)
|
||||
{
|
||||
MetalASupportsPaintSetup(
|
||||
session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 7, height,
|
||||
session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 7, height, session.SupportColours);
|
||||
}
|
||||
else if (trackSequence == 6)
|
||||
{
|
||||
MetalASupportsPaintSetup(
|
||||
session, (direction & 1) ? supportType.metal : MetalSupportGraphic::ForkAlt, MetalSupportPlace::Centre, 1, height,
|
||||
session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, DirectionNext(direction), 1, height, session.SupportColours);
|
||||
}
|
||||
|
||||
if (direction == 0 && trackSequence == 0)
|
||||
@@ -4156,9 +4145,8 @@ static void JuniorRCLeftEighthToDiagPaintSetup(
|
||||
switch (trackSequence)
|
||||
{
|
||||
case 0:
|
||||
MetalASupportsPaintSetup(
|
||||
session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 0,
|
||||
height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours);
|
||||
break;
|
||||
case 4:
|
||||
if (direction == 0)
|
||||
@@ -4229,9 +4217,8 @@ static void JuniorRCRightEighthToDiagPaintSetup(
|
||||
switch (trackSequence)
|
||||
{
|
||||
case 0:
|
||||
MetalASupportsPaintSetup(
|
||||
session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 0,
|
||||
height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours);
|
||||
break;
|
||||
case 4:
|
||||
if (direction == 0)
|
||||
@@ -4401,9 +4388,8 @@ static void JuniorRCLeftEighthToDiagBankPaintSetup(
|
||||
switch (trackSequence)
|
||||
{
|
||||
case 0:
|
||||
MetalASupportsPaintSetup(
|
||||
session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 0,
|
||||
height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours);
|
||||
break;
|
||||
case 4:
|
||||
if (direction == 0)
|
||||
@@ -4555,9 +4541,8 @@ static void JuniorRCRightEighthToDiagBankPaintSetup(
|
||||
switch (trackSequence)
|
||||
{
|
||||
case 0:
|
||||
MetalASupportsPaintSetup(
|
||||
session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 0,
|
||||
height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 0, height, session.SupportColours);
|
||||
break;
|
||||
case 4:
|
||||
if (direction == 0)
|
||||
@@ -4655,9 +4640,8 @@ static void JuniorRCTrackDiagBrakes(
|
||||
|
||||
if (trackSequence == 3)
|
||||
{
|
||||
MetalASupportsPaintSetup(
|
||||
session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 0,
|
||||
height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, kDiagSupportPlacement[direction], direction, 0, height, session.SupportColours);
|
||||
}
|
||||
|
||||
int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence];
|
||||
@@ -4675,9 +4659,8 @@ static void JuniorRCTrackDiagBlockBrakes(
|
||||
|
||||
if (trackSequence == 3)
|
||||
{
|
||||
MetalASupportsPaintSetup(
|
||||
session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 0,
|
||||
height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, kDiagSupportPlacement[direction], direction, 0, height, session.SupportColours);
|
||||
}
|
||||
|
||||
int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence];
|
||||
@@ -4697,9 +4680,8 @@ static void JuniorRCPaintTrackDiag25DegUp(
|
||||
|
||||
if (trackSequence == 3)
|
||||
{
|
||||
MetalBSupportsPaintSetup(
|
||||
session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 8,
|
||||
height, session.SupportColours);
|
||||
MetalBSupportsPaintSetupRotated(
|
||||
session, supportType.metal, kDiagSupportPlacement[direction], direction, 8, height, session.SupportColours);
|
||||
}
|
||||
|
||||
int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence];
|
||||
@@ -4719,9 +4701,8 @@ static void JuniorRCPaintTrackDiagFlatTo25DegUp(
|
||||
|
||||
if (trackSequence == 3)
|
||||
{
|
||||
MetalBSupportsPaintSetup(
|
||||
session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 0,
|
||||
height, session.SupportColours);
|
||||
MetalBSupportsPaintSetupRotated(
|
||||
session, supportType.metal, kDiagSupportPlacement[direction], direction, 0, height, session.SupportColours);
|
||||
}
|
||||
|
||||
int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence];
|
||||
@@ -4742,9 +4723,8 @@ static void JuniorRCPaintTrackDiagFlatTo60DegUp(
|
||||
|
||||
if (trackSequence == 3)
|
||||
{
|
||||
MetalBSupportsPaintSetup(
|
||||
session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 0,
|
||||
height + 6, session.SupportColours);
|
||||
MetalBSupportsPaintSetupRotated(
|
||||
session, supportType.metal, kDiagSupportPlacement[direction], direction, 0, height + 6, session.SupportColours);
|
||||
}
|
||||
|
||||
int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence];
|
||||
@@ -4764,9 +4744,8 @@ static void JuniorRCPaintTrackDiag25DegUpToFlat(
|
||||
|
||||
if (trackSequence == 3)
|
||||
{
|
||||
MetalBSupportsPaintSetup(
|
||||
session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 4,
|
||||
height, session.SupportColours);
|
||||
MetalBSupportsPaintSetupRotated(
|
||||
session, supportType.metal, kDiagSupportPlacement[direction], direction, 4, height, session.SupportColours);
|
||||
}
|
||||
|
||||
int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence];
|
||||
@@ -4787,9 +4766,8 @@ static void JuniorRCPaintTrackDiag60DegUpToFlat(
|
||||
|
||||
if (trackSequence == 3)
|
||||
{
|
||||
MetalBSupportsPaintSetup(
|
||||
session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 4,
|
||||
height + 13, session.SupportColours);
|
||||
MetalBSupportsPaintSetupRotated(
|
||||
session, supportType.metal, kDiagSupportPlacement[direction], direction, 4, height + 13, session.SupportColours);
|
||||
}
|
||||
|
||||
int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence];
|
||||
@@ -4809,9 +4787,8 @@ static void JuniorRCPaintTrackDiag25DegDown(
|
||||
|
||||
if (trackSequence == 3)
|
||||
{
|
||||
MetalBSupportsPaintSetup(
|
||||
session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 8,
|
||||
height, session.SupportColours);
|
||||
MetalBSupportsPaintSetupRotated(
|
||||
session, supportType.metal, kDiagSupportPlacement[direction], direction, 8, height, session.SupportColours);
|
||||
}
|
||||
|
||||
int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence];
|
||||
@@ -4831,9 +4808,8 @@ static void JuniorRCPaintTrackDiagFlatTo25DegDown(
|
||||
|
||||
if (trackSequence == 3)
|
||||
{
|
||||
MetalBSupportsPaintSetup(
|
||||
session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 4,
|
||||
height, session.SupportColours);
|
||||
MetalBSupportsPaintSetupRotated(
|
||||
session, supportType.metal, kDiagSupportPlacement[direction], direction, 4, height, session.SupportColours);
|
||||
}
|
||||
|
||||
int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence];
|
||||
@@ -4854,9 +4830,8 @@ static void JuniorRCPaintTrackDiagFlatTo60DegDown(
|
||||
|
||||
if (trackSequence == 3)
|
||||
{
|
||||
MetalBSupportsPaintSetup(
|
||||
session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 4,
|
||||
height + 7, session.SupportColours);
|
||||
MetalBSupportsPaintSetupRotated(
|
||||
session, supportType.metal, kDiagSupportPlacement[direction], direction, 4, height + 7, session.SupportColours);
|
||||
}
|
||||
|
||||
int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence];
|
||||
@@ -4876,9 +4851,8 @@ static void JuniorRCPaintTrackDiag25DegDownToFlat(
|
||||
|
||||
if (trackSequence == 3)
|
||||
{
|
||||
MetalBSupportsPaintSetup(
|
||||
session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 0,
|
||||
height, session.SupportColours);
|
||||
MetalBSupportsPaintSetupRotated(
|
||||
session, supportType.metal, kDiagSupportPlacement[direction], direction, 0, height, session.SupportColours);
|
||||
}
|
||||
|
||||
int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence];
|
||||
@@ -4899,9 +4873,8 @@ static void JuniorRCPaintTrackDiag60DegDownToFlat(
|
||||
|
||||
if (trackSequence == 3)
|
||||
{
|
||||
MetalBSupportsPaintSetup(
|
||||
session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 0,
|
||||
height, session.SupportColours);
|
||||
MetalBSupportsPaintSetupRotated(
|
||||
session, supportType.metal, kDiagSupportPlacement[direction], direction, 0, height, session.SupportColours);
|
||||
}
|
||||
|
||||
int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence];
|
||||
@@ -4926,9 +4899,8 @@ static void JuniorRCDiagFlatToLeftBankPaintSetup(
|
||||
}
|
||||
if (trackSequence == 3)
|
||||
{
|
||||
MetalASupportsPaintSetup(
|
||||
session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 0,
|
||||
height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, kDiagSupportPlacement[direction], direction, 0, height, session.SupportColours);
|
||||
}
|
||||
|
||||
int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence];
|
||||
@@ -4953,9 +4925,8 @@ static void JuniorRCDiagFlatToRightBankPaintSetup(
|
||||
}
|
||||
if (trackSequence == 3)
|
||||
{
|
||||
MetalASupportsPaintSetup(
|
||||
session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 0,
|
||||
height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, kDiagSupportPlacement[direction], direction, 0, height, session.SupportColours);
|
||||
}
|
||||
|
||||
int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence];
|
||||
@@ -4980,9 +4951,8 @@ static void JuniorRCDiagLeftBankToFlatPaintSetup(
|
||||
}
|
||||
if (trackSequence == 3)
|
||||
{
|
||||
MetalASupportsPaintSetup(
|
||||
session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 0,
|
||||
height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, kDiagSupportPlacement[direction], direction, 0, height, session.SupportColours);
|
||||
}
|
||||
|
||||
int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence];
|
||||
@@ -5007,9 +4977,8 @@ static void JuniorRCDiagRightBankToFlatPaintSetup(
|
||||
}
|
||||
if (trackSequence == 3)
|
||||
{
|
||||
MetalASupportsPaintSetup(
|
||||
session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 0,
|
||||
height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, kDiagSupportPlacement[direction], direction, 0, height, session.SupportColours);
|
||||
}
|
||||
|
||||
int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence];
|
||||
@@ -5034,9 +5003,8 @@ static void JuniorRCDiagLeftBankTo25DegUpPaintSetup(
|
||||
}
|
||||
if (trackSequence == 3)
|
||||
{
|
||||
MetalBSupportsPaintSetup(
|
||||
session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 0,
|
||||
height, session.SupportColours);
|
||||
MetalBSupportsPaintSetupRotated(
|
||||
session, supportType.metal, kDiagSupportPlacement[direction], direction, 0, height, session.SupportColours);
|
||||
}
|
||||
|
||||
int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence];
|
||||
@@ -5061,9 +5029,8 @@ static void JuniorRCDiagRightBankTo25DegUpPaintSetup(
|
||||
}
|
||||
if (trackSequence == 3)
|
||||
{
|
||||
MetalBSupportsPaintSetup(
|
||||
session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 0,
|
||||
height, session.SupportColours);
|
||||
MetalBSupportsPaintSetupRotated(
|
||||
session, supportType.metal, kDiagSupportPlacement[direction], direction, 0, height, session.SupportColours);
|
||||
}
|
||||
|
||||
int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence];
|
||||
@@ -5088,9 +5055,8 @@ static void JuniorRCDiag25DegUpToLeftBankPaintSetup(
|
||||
}
|
||||
if (trackSequence == 3)
|
||||
{
|
||||
MetalBSupportsPaintSetup(
|
||||
session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 4,
|
||||
height, session.SupportColours);
|
||||
MetalBSupportsPaintSetupRotated(
|
||||
session, supportType.metal, kDiagSupportPlacement[direction], direction, 4, height, session.SupportColours);
|
||||
}
|
||||
|
||||
int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence];
|
||||
@@ -5115,9 +5081,8 @@ static void JuniorRCDiag25DegUpToRightBankPaintSetup(
|
||||
}
|
||||
if (trackSequence == 3)
|
||||
{
|
||||
MetalBSupportsPaintSetup(
|
||||
session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 4,
|
||||
height, session.SupportColours);
|
||||
MetalBSupportsPaintSetupRotated(
|
||||
session, supportType.metal, kDiagSupportPlacement[direction], direction, 4, height, session.SupportColours);
|
||||
}
|
||||
|
||||
int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence];
|
||||
@@ -5142,9 +5107,8 @@ static void JuniorRCDiagLeftBankTo25DegDownPaintSetup(
|
||||
}
|
||||
if (trackSequence == 3)
|
||||
{
|
||||
MetalBSupportsPaintSetup(
|
||||
session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 4,
|
||||
height, session.SupportColours);
|
||||
MetalBSupportsPaintSetupRotated(
|
||||
session, supportType.metal, kDiagSupportPlacement[direction], direction, 4, height, session.SupportColours);
|
||||
}
|
||||
|
||||
int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence];
|
||||
@@ -5169,9 +5133,8 @@ static void JuniorRCDiagRightBankTo25DegDownPaintSetup(
|
||||
}
|
||||
if (trackSequence == 3)
|
||||
{
|
||||
MetalBSupportsPaintSetup(
|
||||
session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 4,
|
||||
height, session.SupportColours);
|
||||
MetalBSupportsPaintSetupRotated(
|
||||
session, supportType.metal, kDiagSupportPlacement[direction], direction, 4, height, session.SupportColours);
|
||||
}
|
||||
|
||||
int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence];
|
||||
@@ -5196,9 +5159,8 @@ static void JuniorRCDiag25DegDownToLeftBankPaintSetup(
|
||||
}
|
||||
if (trackSequence == 3)
|
||||
{
|
||||
MetalBSupportsPaintSetup(
|
||||
session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 0,
|
||||
height, session.SupportColours);
|
||||
MetalBSupportsPaintSetupRotated(
|
||||
session, supportType.metal, kDiagSupportPlacement[direction], direction, 0, height, session.SupportColours);
|
||||
}
|
||||
|
||||
int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence];
|
||||
@@ -5223,9 +5185,8 @@ static void JuniorRCDiag25DegDownToRightBankPaintSetup(
|
||||
}
|
||||
if (trackSequence == 3)
|
||||
{
|
||||
MetalBSupportsPaintSetup(
|
||||
session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 0,
|
||||
height, session.SupportColours);
|
||||
MetalBSupportsPaintSetupRotated(
|
||||
session, supportType.metal, kDiagSupportPlacement[direction], direction, 0, height, session.SupportColours);
|
||||
}
|
||||
|
||||
int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence];
|
||||
@@ -5259,9 +5220,8 @@ static void JuniorRCDiagLeftBankPaintSetup(
|
||||
|
||||
if (trackSequence == 3)
|
||||
{
|
||||
MetalASupportsPaintSetup(
|
||||
session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 0,
|
||||
height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, kDiagSupportPlacement[direction], direction, 0, height, session.SupportColours);
|
||||
}
|
||||
|
||||
int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence];
|
||||
@@ -5281,9 +5241,8 @@ static void JuniorRCDiagRightBankPaintSetup(
|
||||
|
||||
if (trackSequence == 3)
|
||||
{
|
||||
MetalASupportsPaintSetup(
|
||||
session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 0,
|
||||
height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, kDiagSupportPlacement[direction], direction, 0, height, session.SupportColours);
|
||||
}
|
||||
|
||||
int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence];
|
||||
@@ -5352,9 +5311,9 @@ static void JuniorRCPaintTrack60DegUp(
|
||||
static constexpr int8_t support[4] = { 35, 29, 25, 32 };
|
||||
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
|
||||
{
|
||||
MetalASupportsPaintSetup(
|
||||
session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre,
|
||||
support[direction & 3], height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, support[direction & 3], height,
|
||||
session.SupportColours);
|
||||
}
|
||||
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -5438,9 +5397,9 @@ static void JuniorRCPaintTrack25DegUpTo60DegUp(
|
||||
static constexpr int8_t support[4] = { 12, 12, 12, 14 };
|
||||
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
|
||||
{
|
||||
MetalASupportsPaintSetup(
|
||||
session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre,
|
||||
support[direction & 3], height, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, support[direction & 3], height,
|
||||
session.SupportColours);
|
||||
}
|
||||
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -5502,9 +5461,8 @@ static void JuniorRCPaintTrack60DegUpTo25DegUp(
|
||||
|
||||
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
|
||||
{
|
||||
MetalASupportsPaintSetup(
|
||||
session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 20, height,
|
||||
session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 20, height, session.SupportColours);
|
||||
}
|
||||
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -5535,9 +5493,8 @@ static void JuniorRCPaintTrackDiag60DegUp(
|
||||
|
||||
if (trackSequence == 3)
|
||||
{
|
||||
MetalBSupportsPaintSetup(
|
||||
session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 36,
|
||||
height, session.SupportColours);
|
||||
MetalBSupportsPaintSetupRotated(
|
||||
session, supportType.metal, kDiagSupportPlacement[direction], direction, 36, height, session.SupportColours);
|
||||
}
|
||||
|
||||
int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence];
|
||||
@@ -5558,9 +5515,8 @@ static void JuniorRCPaintTrackDiag60DegDown(
|
||||
|
||||
if (trackSequence == 3)
|
||||
{
|
||||
MetalBSupportsPaintSetup(
|
||||
session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 28,
|
||||
height, session.SupportColours);
|
||||
MetalBSupportsPaintSetupRotated(
|
||||
session, supportType.metal, kDiagSupportPlacement[direction], direction, 28, height, session.SupportColours);
|
||||
}
|
||||
|
||||
int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence];
|
||||
@@ -5581,9 +5537,8 @@ static void JuniorRCPaintTrackDiag25DegUpTo60DegUp(
|
||||
|
||||
if (trackSequence == 3)
|
||||
{
|
||||
MetalBSupportsPaintSetup(
|
||||
session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 16,
|
||||
height, session.SupportColours);
|
||||
MetalBSupportsPaintSetupRotated(
|
||||
session, supportType.metal, kDiagSupportPlacement[direction], direction, 16, height, session.SupportColours);
|
||||
}
|
||||
|
||||
int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence];
|
||||
@@ -5614,9 +5569,8 @@ static void JuniorRCPaintTrackDiag60DegUpTo25DegUp(
|
||||
|
||||
if (trackSequence == 3)
|
||||
{
|
||||
MetalBSupportsPaintSetup(
|
||||
session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 21,
|
||||
height, session.SupportColours);
|
||||
MetalBSupportsPaintSetupRotated(
|
||||
session, supportType.metal, kDiagSupportPlacement[direction], direction, 21, height, session.SupportColours);
|
||||
}
|
||||
|
||||
int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence];
|
||||
@@ -5647,9 +5601,8 @@ static void JuniorRCPaintTrackDiag25DegDownTo60DegDown(
|
||||
|
||||
if (trackSequence == 3)
|
||||
{
|
||||
MetalBSupportsPaintSetup(
|
||||
session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 17,
|
||||
height, session.SupportColours);
|
||||
MetalBSupportsPaintSetupRotated(
|
||||
session, supportType.metal, kDiagSupportPlacement[direction], direction, 17, height, session.SupportColours);
|
||||
}
|
||||
|
||||
int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence];
|
||||
@@ -5670,9 +5623,8 @@ static void JuniorRCPaintTrackDiag60DegDownTo25DegDown(
|
||||
|
||||
if (trackSequence == 3)
|
||||
{
|
||||
MetalBSupportsPaintSetup(
|
||||
session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, kDiagSupportPlacement[direction], 8,
|
||||
height, session.SupportColours);
|
||||
MetalBSupportsPaintSetupRotated(
|
||||
session, supportType.metal, kDiagSupportPlacement[direction], direction, 8, height, session.SupportColours);
|
||||
}
|
||||
|
||||
int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence];
|
||||
@@ -5758,9 +5710,9 @@ static void JuniorRCFlatTo60DegUpPaintSetup(
|
||||
static constexpr int8_t support[4] = { 12, 12, 12, 14 };
|
||||
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
|
||||
{
|
||||
MetalASupportsPaintSetup(
|
||||
session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre,
|
||||
support[direction], height - 7, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, support[direction], height - 7,
|
||||
session.SupportColours);
|
||||
}
|
||||
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
@@ -5820,9 +5772,8 @@ static void JuniorRC60DegUpToFlatPaintSetup(
|
||||
|
||||
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
|
||||
{
|
||||
MetalASupportsPaintSetup(
|
||||
session, (direction & 1) ? MetalSupportGraphic::ForkAlt : supportType.metal, MetalSupportPlace::Centre, 20,
|
||||
height - 5, session.SupportColours);
|
||||
MetalASupportsPaintSetupRotated(
|
||||
session, supportType.metal, MetalSupportPlace::Centre, direction, 20, height - 5, session.SupportColours);
|
||||
}
|
||||
|
||||
PaintUtilSetSegmentSupportHeight(
|
||||
|
||||
@@ -61,7 +61,7 @@ static void MineRideTrackStation(
|
||||
PaintAddImageAsParentRotated(
|
||||
session, direction, GetStationColourScheme(session, trackElement).WithIndex(imageIds[direction][1]), { 0, 0, height },
|
||||
{ 32, 32, 1 });
|
||||
DrawSupportsSideBySide(session, direction, height, session.SupportColours, MetalSupportGraphic::Tubes);
|
||||
DrawSupportsSideBySide(session, direction, height, session.SupportColours, MetalSupportType::Tubes);
|
||||
TrackPaintUtilDrawStation2(session, ride, direction, height, trackElement, 9, 11);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
|
||||
@@ -161,7 +161,7 @@ static void MineTrainRCTrackStation(
|
||||
session, direction, session.TrackColours.WithIndex(imageIds[direction][0]), { 0, 0, height },
|
||||
{ { 0, 0, height }, { 32, 20, 1 } });
|
||||
}
|
||||
DrawSupportsSideBySide(session, direction, height, session.SupportColours, MetalSupportGraphic::Boxed);
|
||||
DrawSupportsSideBySide(session, direction, height, session.SupportColours, MetalSupportType::Boxed);
|
||||
TrackPaintUtilDrawStation(session, ride, direction, height, trackElement);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
|
||||
@@ -146,7 +146,7 @@ static void MiniRCTrackStation(
|
||||
PaintAddImageAsParentRotated(
|
||||
session, direction, GetStationColourScheme(session, trackElement).WithIndex(imageIds[direction][1]), { 0, 0, height },
|
||||
{ 32, 32, 1 });
|
||||
DrawSupportsSideBySide(session, direction, height, session.SupportColours, MetalSupportGraphic::Tubes);
|
||||
DrawSupportsSideBySide(session, direction, height, session.SupportColours, MetalSupportType::Tubes);
|
||||
TrackPaintUtilDrawStation2(session, ride, direction, height, trackElement, 9, 11);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
|
||||
@@ -108,7 +108,7 @@ static void MiniSuspendedRCTrackStation(
|
||||
PaintAddImageAsChildRotated(
|
||||
session, direction, session.SupportColours.WithIndex(imageIds[direction][2]), { 0, 6, height + 24 },
|
||||
{ { 0, 2, height }, { 32, 20, 1 } });
|
||||
DrawSupportsSideBySide(session, direction, height, session.SupportColours, MetalSupportGraphic::Boxed);
|
||||
DrawSupportsSideBySide(session, direction, height, session.SupportColours, MetalSupportType::Boxed);
|
||||
TrackPaintUtilDrawStationInverted(session, ride, direction, height, trackElement, STATION_VARIANT_1);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
|
||||
@@ -97,7 +97,7 @@ static void SteeplechaseTrackStation(
|
||||
PaintAddImageAsChildRotated(
|
||||
session, direction, session.TrackColours.WithIndex(imageIds[direction][0]), { 0, 6, height },
|
||||
{ { 0, 0, height }, { 32, 20, 3 } });
|
||||
DrawSupportsSideBySide(session, direction, height, session.SupportColours, MetalSupportGraphic::Boxed);
|
||||
DrawSupportsSideBySide(session, direction, height, session.SupportColours, MetalSupportType::Boxed);
|
||||
TrackPaintUtilDrawStation(session, ride, direction, height, trackElement);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
|
||||
@@ -220,7 +220,7 @@ static void WildMouseTrackStation(
|
||||
session, direction, session.TrackColours.WithIndex(_wild_mouse_brakes_image_ids[direction]), { 0, 0, height },
|
||||
{ { 0, 0, height }, { 32, 20, 2 } });
|
||||
}
|
||||
DrawSupportsSideBySide(session, direction, height, session.SupportColours, MetalSupportGraphic::Boxed);
|
||||
DrawSupportsSideBySide(session, direction, height, session.SupportColours, MetalSupportType::Boxed);
|
||||
TrackPaintUtilDrawStation(session, ride, direction, height, trackElement);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0);
|
||||
|
||||
@@ -45,7 +45,7 @@ static void PaintMiniHelicoptersTrackStation(
|
||||
PaintAddImageAsChild(session, imageId, { 0, 0, height }, { { 0, 0, height }, { 20, 32, 1 } });
|
||||
}
|
||||
|
||||
DrawSupportsSideBySide(session, direction, height, session.SupportColours, MetalSupportGraphic::Boxed);
|
||||
DrawSupportsSideBySide(session, direction, height, session.SupportColours, MetalSupportType::Boxed);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
|
||||
TrackPaintUtilDrawStation(session, ride, direction, height, trackElement);
|
||||
|
||||
@@ -214,7 +214,7 @@ static void PaintMonorailCyclesStation(
|
||||
PaintAddImageAsChild(session, imageId, { 0, 0, height }, { { 0, 0, height }, { 20, 32, 1 } });
|
||||
}
|
||||
|
||||
DrawSupportsSideBySide(session, direction, height, session.SupportColours, MetalSupportGraphic::Boxed);
|
||||
DrawSupportsSideBySide(session, direction, height, session.SupportColours, MetalSupportType::Boxed);
|
||||
PaintUtilPushTunnelRotated(session, direction, height, TunnelType::SquareFlat);
|
||||
|
||||
TrackPaintUtilDrawStation(session, ride, direction, height, trackElement);
|
||||
|
||||
@@ -1185,7 +1185,7 @@ void TrackPaintUtilDiagTilesPaint(
|
||||
|
||||
void TrackPaintUtilDiagTilesPaintExtra(
|
||||
PaintSession& session, int8_t thickness, int16_t height, Direction direction, uint8_t trackSequence,
|
||||
const uint32_t sprites[4], MetalSupportGraphic supportType)
|
||||
const uint32_t sprites[4], MetalSupportType supportType)
|
||||
{
|
||||
TrackPaintUtilDiagTilesPaint(
|
||||
session, thickness, height, direction, trackSequence, sprites, defaultDiagTileOffsets, defaultDiagBoundLengths,
|
||||
@@ -1777,7 +1777,7 @@ void TrackPaintUtilSpinningTunnelPaint(PaintSession& session, int8_t thickness,
|
||||
}
|
||||
|
||||
void TrackPaintUtilOnridePhotoPlatformPaint(
|
||||
PaintSession& session, Direction direction, int32_t height, MetalSupportGraphic supportType)
|
||||
PaintSession& session, Direction direction, int32_t height, MetalSupportType supportType)
|
||||
{
|
||||
PaintAddImageAsParent(session, ImageId(SPR_STATION_BASE_D, COLOUR_BLACK), { 0, 0, height }, { 32, 32, 1 });
|
||||
DrawSupportsSideBySide(session, direction, height, session.SupportColours, supportType);
|
||||
|
||||
@@ -486,7 +486,7 @@ void TrackPaintUtilSpinningTunnelPaint(PaintSession& session, int8_t thickness,
|
||||
* @param supportType
|
||||
*/
|
||||
void TrackPaintUtilOnridePhotoPlatformPaint(
|
||||
PaintSession& session, Direction direction, int32_t height, MetalSupportGraphic supportType);
|
||||
PaintSession& session, Direction direction, int32_t height, MetalSupportType supportType);
|
||||
|
||||
void TrackPaintUtilOnridePhotoSmallPaint(
|
||||
PaintSession& session, Direction direction, int32_t height, const TrackElement& trackElement);
|
||||
@@ -520,7 +520,7 @@ inline void TrackPaintUtilDiagTilesPaint(
|
||||
|
||||
void TrackPaintUtilDiagTilesPaintExtra(
|
||||
PaintSession& session, int8_t thickness, int16_t height, Direction direction, uint8_t trackSequence,
|
||||
const uint32_t sprites[4], MetalSupportGraphic supportType);
|
||||
const uint32_t sprites[4], MetalSupportType supportType);
|
||||
|
||||
void TrackPaintUtilRightVerticalLoopSegments(PaintSession& session, Direction direction, uint8_t trackSequence);
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ constexpr RideTypeDescriptor AlpineCoasterRTD =
|
||||
.StartTrackPiece = OpenRCT2::TrackElemType::EndStation,
|
||||
.TrackPaintFunctions = TrackDrawerDescriptor({
|
||||
.Drawer = OpenRCT2::AlpineRC::GetTrackPaintFunction,
|
||||
.supportType = MetalSupportGraphic::Fork,
|
||||
.supportType = MetalSupportType::Fork,
|
||||
.EnabledTrackPieces = { TrackGroup::flat, TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::liftHill, TrackGroup::flatRollBanking, TrackGroup::slope, TrackGroup::slopeLong, TrackGroup::slopeCurve, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge, TrackGroup::helixDownBankedHalf},
|
||||
.ExtraTrackPieces = {TrackGroup::helixUpBankedHalf},
|
||||
}),
|
||||
|
||||
@@ -21,7 +21,7 @@ constexpr RideTypeDescriptor BobsleighCoasterRTD =
|
||||
.StartTrackPiece = OpenRCT2::TrackElemType::EndStation,
|
||||
.TrackPaintFunctions = TrackDrawerDescriptor({
|
||||
.Drawer = GetTrackPaintFunctionBobsleighRC,
|
||||
.supportType = MetalSupportGraphic::Tubes,
|
||||
.supportType = MetalSupportType::Tubes,
|
||||
.EnabledTrackPieces = {TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::liftHill, TrackGroup::flatRollBanking, TrackGroup::slope, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve,TrackGroup::helixDownBankedHalf, TrackGroup::helixUpBankedHalf, TrackGroup::brakes,TrackGroup::blockBrakes, TrackGroup::onridePhoto},
|
||||
.ExtraTrackPieces = {},
|
||||
}),
|
||||
|
||||
@@ -21,7 +21,7 @@ constexpr RideTypeDescriptor ClassicMiniRollerCoasterRTD =
|
||||
.StartTrackPiece = OpenRCT2::TrackElemType::EndStation,
|
||||
.TrackPaintFunctions = TrackDrawerDescriptor({
|
||||
.Drawer = GetTrackPaintFunctionJuniorRC,
|
||||
.supportType = MetalSupportGraphic::Fork,
|
||||
.supportType = MetalSupportType::Fork,
|
||||
.EnabledTrackPieces = { TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::liftHill, TrackGroup::liftHillCurve, TrackGroup::flatRollBanking, TrackGroup::slope, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::slopeLong, TrackGroup::slopeCurve, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge, TrackGroup::helixDownBankedHalf, TrackGroup::helixUpBankedHalf, TrackGroup::brakes, TrackGroup::blockBrakes, TrackGroup::booster, TrackGroup::diagBrakes, TrackGroup::diagBlockBrakes},
|
||||
.ExtraTrackPieces = {TrackGroup::onridePhoto},
|
||||
}),
|
||||
|
||||
@@ -21,7 +21,7 @@ constexpr RideTypeDescriptor ClassicStandUpRollerCoasterRTD =
|
||||
.StartTrackPiece = OpenRCT2::TrackElemType::EndStation,
|
||||
.TrackPaintFunctions = TrackDrawerDescriptor({
|
||||
.Drawer = GetTrackPaintFunctionClassicStandUpRC,
|
||||
.supportType = MetalSupportGraphic::Tubes,
|
||||
.supportType = MetalSupportType::Tubes,
|
||||
.EnabledTrackPieces = {TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::liftHill, TrackGroup::flatRollBanking, TrackGroup::verticalLoop, TrackGroup::slope, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::slopeCurve, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge, TrackGroup::halfLoop, TrackGroup::corkscrew, TrackGroup::brakes, TrackGroup::onridePhoto, TrackGroup::blockBrakes, TrackGroup::diagBrakes, TrackGroup::diagBlockBrakes},
|
||||
.ExtraTrackPieces = {},
|
||||
}),
|
||||
|
||||
@@ -21,7 +21,7 @@ constexpr RideTypeDescriptor CompactInvertedCoasterRTD =
|
||||
.StartTrackPiece = OpenRCT2::TrackElemType::EndStation,
|
||||
.TrackPaintFunctions = TrackDrawerDescriptor({
|
||||
.Drawer = GetTrackPaintFunctionCompactInvertedRC,
|
||||
.supportType = MetalSupportGraphic::TubesInverted,
|
||||
.supportType = MetalSupportType::TubesInverted,
|
||||
.EnabledTrackPieces = {TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::liftHill, TrackGroup::flatRollBanking, TrackGroup::verticalLoop, TrackGroup::slope, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::slopeCurve, TrackGroup::slopeCurveSteep, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge, TrackGroup::twist, TrackGroup::halfLoop, TrackGroup::corkscrew, TrackGroup::helixDownBankedQuarter, TrackGroup::helixUpBankedQuarter, TrackGroup::brakes, TrackGroup::onridePhoto, TrackGroup::slopeVertical, TrackGroup::blockBrakes, TrackGroup::diagBrakes, TrackGroup::diagBlockBrakes},
|
||||
.ExtraTrackPieces = {},
|
||||
}),
|
||||
|
||||
@@ -21,7 +21,7 @@ constexpr RideTypeDescriptor CorkscrewRollerCoasterRTD =
|
||||
.StartTrackPiece = OpenRCT2::TrackElemType::EndStation,
|
||||
.TrackPaintFunctions = TrackDrawerDescriptor({
|
||||
.Drawer = GetTrackPaintFunctionCorkscrewRC,
|
||||
.supportType = MetalSupportGraphic::Tubes,
|
||||
.supportType = MetalSupportType::Tubes,
|
||||
.EnabledTrackPieces = {TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::liftHill, TrackGroup::flatRollBanking, TrackGroup::verticalLoop, TrackGroup::slope, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::slopeCurve, TrackGroup::slopeCurveSteep, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge, TrackGroup::halfLoop, TrackGroup::corkscrew, TrackGroup::helixDownBankedHalf, TrackGroup::helixUpBankedHalf, TrackGroup::brakes, TrackGroup::onridePhoto, TrackGroup::blockBrakes,TrackGroup::booster, TrackGroup::slopeSteepLong, TrackGroup::diagBrakes, TrackGroup::diagBlockBrakes},
|
||||
.ExtraTrackPieces = {TrackGroup::twist},
|
||||
}),
|
||||
|
||||
@@ -22,13 +22,13 @@ constexpr RideTypeDescriptor FlyingRollerCoasterRTD =
|
||||
.StartTrackPiece = OpenRCT2::TrackElemType::EndStation,
|
||||
.TrackPaintFunctions = TrackDrawerDescriptor({
|
||||
.Drawer = GetTrackPaintFunctionFlyingRC,
|
||||
.supportType = MetalSupportGraphic::TubesInverted,
|
||||
.supportType = MetalSupportType::TubesInverted,
|
||||
.EnabledTrackPieces = {TrackGroup::straight, TrackGroup::flatRollBanking, TrackGroup::slope, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::slopeCurve, TrackGroup::slopeCurveSteep, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge, TrackGroup::helixDownBankedHalf, TrackGroup::helixUpBankedHalf, TrackGroup::brakes, TrackGroup::onridePhoto, TrackGroup::blockBrakes, TrackGroup::slopeRollBanking, TrackGroup::inlineTwistUninverted, TrackGroup::flyingHalfLoopUninvertedUp, TrackGroup::quarterLoopUninvertedUp, TrackGroup::flyingLargeHalfLoopUninvertedUp, TrackGroup::slopeVertical, TrackGroup::slopeCurveBanked, TrackGroup::diagBrakes, TrackGroup::diagBlockBrakes},
|
||||
.ExtraTrackPieces = {TrackGroup::booster, TrackGroup::slopeSteepLong, TrackGroup::flyingLargeHalfLoopUninvertedDown, TrackGroup::flyingHalfLoopUninvertedDown, TrackGroup::stationEnd, TrackGroup::verticalLoop, TrackGroup::poweredLift},
|
||||
}),
|
||||
.InvertedTrackPaintFunctions = TrackDrawerDescriptor({
|
||||
.Drawer = GetTrackPaintFunctionFlyingRC,
|
||||
.supportType = MetalSupportGraphic::TubesInverted,
|
||||
.supportType = MetalSupportType::TubesInverted,
|
||||
.EnabledTrackPieces = {TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::liftHill, TrackGroup::flatRollBanking, TrackGroup::slope, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::slopeCurve, TrackGroup::slopeCurveSteep, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge, TrackGroup::helixDownBankedQuarter, TrackGroup::helixUpBankedQuarter, TrackGroup::brakes, TrackGroup::onridePhoto, TrackGroup::blockBrakes, TrackGroup::slopeRollBanking, TrackGroup::inlineTwistInverted, TrackGroup::flyingHalfLoopInvertedDown, TrackGroup::quarterLoopInvertedDown, TrackGroup::flyingLargeHalfLoopInvertedDown, TrackGroup::booster, TrackGroup::diagBrakes, TrackGroup::diagBlockBrakes},
|
||||
.ExtraTrackPieces = {TrackGroup::flyingLargeHalfLoopInvertedUp, TrackGroup::flyingHalfLoopInvertedUp},
|
||||
}),
|
||||
|
||||
@@ -21,7 +21,7 @@ constexpr RideTypeDescriptor GigaCoasterRTD =
|
||||
.StartTrackPiece = OpenRCT2::TrackElemType::EndStation,
|
||||
.TrackPaintFunctions = TrackDrawerDescriptor({
|
||||
.Drawer = GetTrackPaintFunctionLatticeTriangleTrack,
|
||||
.supportType = MetalSupportGraphic::Tubes,
|
||||
.supportType = MetalSupportType::Tubes,
|
||||
.EnabledTrackPieces = {TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::liftHill, TrackGroup::flatRollBanking, TrackGroup::slope, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::slopeCurve, TrackGroup::slopeCurveSteep, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge, TrackGroup::helixDownBankedHalf, TrackGroup::helixUpBankedHalf, TrackGroup::brakes, TrackGroup::onridePhoto, TrackGroup::blockBrakes, TrackGroup::slopeRollBanking, TrackGroup::slopeSteepLong, TrackGroup::liftHillCable, TrackGroup::booster, TrackGroup::poweredLift, TrackGroup::slopeCurveBanked, TrackGroup::slopeCurveLarge, TrackGroup::diagBrakes, TrackGroup::diagBlockBrakes, TrackGroup::slopeVertical, TrackGroup::curveVertical},
|
||||
.ExtraTrackPieces = {TrackGroup::barrelRoll, TrackGroup::quarterLoop, TrackGroup::halfLoop, TrackGroup::halfLoopMedium, TrackGroup::halfLoopLarge, TrackGroup::verticalLoop, TrackGroup::corkscrew, TrackGroup::corkscrewLarge, TrackGroup::zeroGRoll, TrackGroup::zeroGRollLarge},
|
||||
}),
|
||||
|
||||
@@ -22,7 +22,7 @@ constexpr RideTypeDescriptor HyperTwisterRTD =
|
||||
.StartTrackPiece = OpenRCT2::TrackElemType::EndStation,
|
||||
.TrackPaintFunctions = TrackDrawerDescriptor({
|
||||
.Drawer = GetTrackPaintFunctionTwisterRC,
|
||||
.supportType = MetalSupportGraphic::Tubes,
|
||||
.supportType = MetalSupportType::Tubes,
|
||||
.EnabledTrackPieces = { TrackGroup::flat, TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::liftHill, TrackGroup::flatRollBanking, TrackGroup::slope, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::slopeCurve, TrackGroup::slopeCurveSteep, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge, TrackGroup::helixDownBankedHalf, TrackGroup::helixUpBankedHalf, TrackGroup::brakes, TrackGroup::onridePhoto, TrackGroup::slopeCurveBanked, TrackGroup::blockBrakes, TrackGroup::slopeRollBanking, TrackGroup::slopeSteepLong, TrackGroup::slopeVertical, TrackGroup::curveVertical, TrackGroup::diagBrakes, TrackGroup::diagBlockBrakes},
|
||||
.ExtraTrackPieces = { TrackGroup::liftHillSteep, TrackGroup::brakeForDrop, TrackGroup::booster, TrackGroup::poweredLift },
|
||||
}),
|
||||
|
||||
@@ -21,7 +21,7 @@ constexpr RideTypeDescriptor HypercoasterRTD =
|
||||
.StartTrackPiece = OpenRCT2::TrackElemType::EndStation,
|
||||
.TrackPaintFunctions = TrackDrawerDescriptor({
|
||||
.Drawer = GetTrackPaintFunctionCorkscrewRC,
|
||||
.supportType = MetalSupportGraphic::Tubes,
|
||||
.supportType = MetalSupportType::Tubes,
|
||||
.EnabledTrackPieces = {TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::liftHill, TrackGroup::flatRollBanking, TrackGroup::slope, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::slopeCurve, TrackGroup::slopeCurveSteep, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge, TrackGroup::helixDownBankedHalf, TrackGroup::helixUpBankedHalf, TrackGroup::brakes, TrackGroup::onridePhoto, TrackGroup::blockBrakes, TrackGroup::slopeSteepLong, TrackGroup::diagBrakes, TrackGroup::diagBlockBrakes},
|
||||
.ExtraTrackPieces = {TrackGroup::verticalLoop, TrackGroup::halfLoop, TrackGroup::corkscrew, TrackGroup::booster},
|
||||
}),
|
||||
|
||||
@@ -21,7 +21,7 @@ constexpr RideTypeDescriptor InvertedHairpinCoasterRTD =
|
||||
.StartTrackPiece = OpenRCT2::TrackElemType::EndStation,
|
||||
.TrackPaintFunctions = TrackDrawerDescriptor({
|
||||
.Drawer = GetTrackPaintFunctionInvertedHairpinRC,
|
||||
.supportType = MetalSupportGraphic::TubesInverted,
|
||||
.supportType = MetalSupportType::TubesInverted,
|
||||
.EnabledTrackPieces = {TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::liftHill, TrackGroup::liftHillSteep, TrackGroup::slope, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::slopeLong, TrackGroup::slopeCurve, TrackGroup::curveVerySmall, TrackGroup::curveSmall, TrackGroup::brakes, TrackGroup::blockBrakes},
|
||||
.ExtraTrackPieces = {},
|
||||
}),
|
||||
|
||||
@@ -21,7 +21,7 @@ constexpr RideTypeDescriptor InvertedImpulseCoasterRTD =
|
||||
.StartTrackPiece = OpenRCT2::TrackElemType::EndStation,
|
||||
.TrackPaintFunctions = TrackDrawerDescriptor({
|
||||
.Drawer = GetTrackPaintFunctionInvertedImpulseRC,
|
||||
.supportType = MetalSupportGraphic::TubesInverted,
|
||||
.supportType = MetalSupportType::TubesInverted,
|
||||
.EnabledTrackPieces = {TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::slope, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::slopeVertical, TrackGroup::curveVertical},
|
||||
.ExtraTrackPieces = {},
|
||||
}),
|
||||
|
||||
@@ -21,7 +21,7 @@ constexpr RideTypeDescriptor InvertedRollerCoasterRTD =
|
||||
.StartTrackPiece = OpenRCT2::TrackElemType::EndStation,
|
||||
.TrackPaintFunctions = TrackDrawerDescriptor({
|
||||
.Drawer = GetTrackPaintFunctionInvertedRC,
|
||||
.supportType = MetalSupportGraphic::Boxed,
|
||||
.supportType = MetalSupportType::Boxed,
|
||||
.EnabledTrackPieces = {TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::liftHill, TrackGroup::flatRollBanking, TrackGroup::verticalLoop, TrackGroup::slope, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::slopeCurve, TrackGroup::slopeCurveSteep, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge, TrackGroup::twist, TrackGroup::halfLoop, TrackGroup::corkscrew, TrackGroup::helixDownBankedQuarter, TrackGroup::helixUpBankedQuarter, TrackGroup::brakes, TrackGroup::onridePhoto, TrackGroup::halfLoopLarge, TrackGroup::blockBrakes, TrackGroup::slopeRollBanking, TrackGroup::diagBrakes, TrackGroup::diagBlockBrakes},
|
||||
.ExtraTrackPieces = {TrackGroup::booster},
|
||||
}),
|
||||
|
||||
@@ -21,7 +21,7 @@ constexpr RideTypeDescriptor JuniorRollerCoasterRTD =
|
||||
.StartTrackPiece = OpenRCT2::TrackElemType::EndStation,
|
||||
.TrackPaintFunctions = TrackDrawerDescriptor({
|
||||
.Drawer = GetTrackPaintFunctionJuniorRC,
|
||||
.supportType = MetalSupportGraphic::Fork,
|
||||
.supportType = MetalSupportType::Fork,
|
||||
.EnabledTrackPieces = { TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::liftHill,TrackGroup::liftHillCurve, TrackGroup::flatRollBanking, TrackGroup::slope, TrackGroup::slopeLong, TrackGroup::slopeCurve, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge, TrackGroup::helixDownBankedHalf, TrackGroup::helixUpBankedHalf, TrackGroup::brakes, TrackGroup::blockBrakes, TrackGroup::booster, TrackGroup::diagBrakes, TrackGroup::diagBlockBrakes},
|
||||
.ExtraTrackPieces = {TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::onridePhoto},
|
||||
}),
|
||||
|
||||
@@ -21,7 +21,7 @@ constexpr RideTypeDescriptor LIMLaunchedRollerCoasterRTD =
|
||||
.StartTrackPiece = OpenRCT2::TrackElemType::EndStation,
|
||||
.TrackPaintFunctions = TrackDrawerDescriptor({
|
||||
.Drawer = GetTrackPaintFunctionLimLaunchedRC,
|
||||
.supportType = MetalSupportGraphic::Tubes,
|
||||
.supportType = MetalSupportType::Tubes,
|
||||
.EnabledTrackPieces = {TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::flatRollBanking, TrackGroup::verticalLoop, TrackGroup::slope, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::slopeCurve, TrackGroup::slopeCurveSteep, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge, TrackGroup::twist, TrackGroup::corkscrew, TrackGroup::helixDownBankedHalf, TrackGroup::helixUpBankedHalf, TrackGroup::brakes, TrackGroup::onridePhoto, TrackGroup::slopeVertical, TrackGroup::blockBrakes, TrackGroup::slopeRollBanking, TrackGroup::curveVertical, TrackGroup::quarterLoop, TrackGroup::barrelRoll, TrackGroup::slopeCurveBanked, TrackGroup::slopeSteepLong, TrackGroup::halfLoop, TrackGroup::halfLoopMedium, TrackGroup::halfLoopLarge, TrackGroup::corkscrewLarge},
|
||||
.ExtraTrackPieces = {TrackGroup::slopeLong, TrackGroup::zeroGRoll, TrackGroup::zeroGRollLarge},
|
||||
}),
|
||||
|
||||
@@ -22,7 +22,7 @@ constexpr RideTypeDescriptor LayDownRollerCoasterRTD =
|
||||
.TrackPaintFunctions = TrackDrawerDescriptor(
|
||||
{
|
||||
.Drawer = GetTrackPaintFunctionCorkscrewRC,
|
||||
.supportType = MetalSupportGraphic::TubesInverted,
|
||||
.supportType = MetalSupportType::TubesInverted,
|
||||
.EnabledTrackPieces = { TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::liftHill, TrackGroup::flatRollBanking, TrackGroup::verticalLoop, TrackGroup::slope, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::slopeCurve, TrackGroup::slopeCurveSteep, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge, TrackGroup::helixDownBankedHalf, TrackGroup::helixUpBankedHalf, TrackGroup::brakes, TrackGroup::onridePhoto, TrackGroup::blockBrakes, TrackGroup::inlineTwistUninverted, TrackGroup::flyingHalfLoopUninvertedUp, TrackGroup::corkscrewUninverted, TrackGroup::slopeSteepLong, TrackGroup::diagBrakes, TrackGroup::diagBlockBrakes },
|
||||
.ExtraTrackPieces = { TrackGroup::flyingHalfLoopUninvertedDown, TrackGroup::booster },
|
||||
}
|
||||
@@ -30,7 +30,7 @@ constexpr RideTypeDescriptor LayDownRollerCoasterRTD =
|
||||
.InvertedTrackPaintFunctions = TrackDrawerDescriptor(
|
||||
{
|
||||
.Drawer = GetTrackPaintFunctionLayDownRCInverted,
|
||||
.supportType = MetalSupportGraphic::TubesInverted,
|
||||
.supportType = MetalSupportType::TubesInverted,
|
||||
.EnabledTrackPieces = { TrackGroup::straight, TrackGroup::flatRollBanking, TrackGroup::slope, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::slopeCurve, TrackGroup::slopeCurveSteep, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge, TrackGroup::helixDownBankedQuarter, TrackGroup::helixUpBankedQuarter, TrackGroup::brakes, TrackGroup::onridePhoto, TrackGroup::blockBrakes, TrackGroup::inlineTwistInverted, TrackGroup::flyingHalfLoopInvertedDown, TrackGroup::corkscrewInverted },
|
||||
.ExtraTrackPieces = { TrackGroup::flyingHalfLoopInvertedUp, TrackGroup::stationEnd, TrackGroup::liftHill },
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ constexpr RideTypeDescriptor LoopingRollerCoasterRTD =
|
||||
.StartTrackPiece = OpenRCT2::TrackElemType::EndStation,
|
||||
.TrackPaintFunctions = TrackDrawerDescriptor({
|
||||
.Drawer = GetTrackPaintFunctionLoopingRC,
|
||||
.supportType = MetalSupportGraphic::Tubes,
|
||||
.supportType = MetalSupportType::Tubes,
|
||||
.EnabledTrackPieces = {TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::liftHill, TrackGroup::flatRollBanking, TrackGroup::verticalLoop, TrackGroup::slope, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::slopeCurve, TrackGroup::slopeCurveSteep, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge, TrackGroup::helixDownBankedHalf, TrackGroup::helixUpBankedHalf, TrackGroup::brakes, TrackGroup::onridePhoto, TrackGroup::blockBrakes, TrackGroup::slopeRollBanking, TrackGroup::booster, TrackGroup::slopeCurveBanked, TrackGroup::slopeSteepLong, TrackGroup::diagBrakes, TrackGroup::diagBlockBrakes},
|
||||
.ExtraTrackPieces = {TrackGroup::slopeVertical, TrackGroup::twist, TrackGroup::corkscrew, TrackGroup::curveVertical, TrackGroup::quarterLoop, TrackGroup::slopeLong, TrackGroup::barrelRoll, TrackGroup::halfLoop, TrackGroup::halfLoopMedium, TrackGroup::halfLoopLarge,TrackGroup::corkscrewLarge, TrackGroup::zeroGRoll, TrackGroup::zeroGRollLarge},
|
||||
}),
|
||||
|
||||
@@ -21,7 +21,7 @@ constexpr RideTypeDescriptor MineRideRTD =
|
||||
.StartTrackPiece = OpenRCT2::TrackElemType::EndStation,
|
||||
.TrackPaintFunctions = TrackDrawerDescriptor({
|
||||
.Drawer = GetTrackPaintFunctionMineRide,
|
||||
.supportType = MetalSupportGraphic::Fork,
|
||||
.supportType = MetalSupportType::Fork,
|
||||
.EnabledTrackPieces = {TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::flatRollBanking, TrackGroup::slope, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge, TrackGroup::helixDownBankedHalf, TrackGroup::helixUpBankedHalf, TrackGroup::onridePhoto},
|
||||
.ExtraTrackPieces = {},
|
||||
}),
|
||||
|
||||
@@ -21,7 +21,7 @@ constexpr RideTypeDescriptor MiniRollerCoasterRTD =
|
||||
.StartTrackPiece = OpenRCT2::TrackElemType::EndStation,
|
||||
.TrackPaintFunctions = TrackDrawerDescriptor({
|
||||
.Drawer = GetTrackPaintFunctionMiniRC,
|
||||
.supportType = MetalSupportGraphic::Fork,
|
||||
.supportType = MetalSupportType::Fork,
|
||||
.EnabledTrackPieces = { TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::flatRollBanking, TrackGroup::slope, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::slopeCurve, TrackGroup::slopeCurveSteep, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge, TrackGroup::helixDownBankedHalf, TrackGroup::helixUpBankedHalf, TrackGroup::brakes, TrackGroup::onridePhoto, TrackGroup::blockBrakes, TrackGroup::slopeRollBanking, TrackGroup::liftHill},
|
||||
.ExtraTrackPieces = {TrackGroup::booster, TrackGroup::liftHillCurved},
|
||||
}),
|
||||
|
||||
@@ -21,7 +21,7 @@ constexpr RideTypeDescriptor MiniSuspendedCoasterRTD =
|
||||
.StartTrackPiece = OpenRCT2::TrackElemType::EndStation,
|
||||
.TrackPaintFunctions = TrackDrawerDescriptor({
|
||||
.Drawer = GetTrackPaintFunctionMiniSuspendedRC,
|
||||
.supportType = MetalSupportGraphic::Fork,
|
||||
.supportType = MetalSupportType::Fork,
|
||||
.EnabledTrackPieces = { TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::liftHill, TrackGroup::slope, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge},
|
||||
.ExtraTrackPieces = {},
|
||||
}),
|
||||
|
||||
@@ -21,13 +21,13 @@ constexpr RideTypeDescriptor MultiDimensionRollerCoasterRTD =
|
||||
.StartTrackPiece = OpenRCT2::TrackElemType::EndStation,
|
||||
.TrackPaintFunctions = TrackDrawerDescriptor({
|
||||
.Drawer = GetTrackPaintFunctionMultiDimensionRC,
|
||||
.supportType = MetalSupportGraphic::TubesInverted,
|
||||
.supportType = MetalSupportType::TubesInverted,
|
||||
.EnabledTrackPieces = { TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::liftHill, TrackGroup::flatRollBanking, TrackGroup::slope, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge, TrackGroup::helixDownBankedHalf, TrackGroup::helixUpBankedHalf, TrackGroup::brakes, TrackGroup::onridePhoto, TrackGroup::slopeVertical, TrackGroup::blockBrakes, TrackGroup::inlineTwistUninverted,TrackGroup::quarterLoopUninvertedUp, TrackGroup::quarterLoopUninvertedDown, TrackGroup::diagBrakes, TrackGroup::diagBlockBrakes},
|
||||
.ExtraTrackPieces = {},
|
||||
}),
|
||||
.InvertedTrackPaintFunctions = TrackDrawerDescriptor({
|
||||
.Drawer = GetTrackPaintFunctionMultiDimensionRC,
|
||||
.supportType = MetalSupportGraphic::TubesInverted,
|
||||
.supportType = MetalSupportType::TubesInverted,
|
||||
.EnabledTrackPieces = {TrackGroup::straight, TrackGroup::flatRollBanking, TrackGroup::slope, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge, TrackGroup::brakes, TrackGroup::onridePhoto, TrackGroup::slopeVertical, TrackGroup::blockBrakes, TrackGroup::inlineTwistInverted, TrackGroup::quarterLoopInvertedUp, TrackGroup::quarterLoopInvertedDown},
|
||||
.ExtraTrackPieces = {},
|
||||
}),
|
||||
|
||||
@@ -20,7 +20,7 @@ constexpr RideTypeDescriptor SingleRailRollerCoasterRTD =
|
||||
.StartTrackPiece = OpenRCT2::TrackElemType::EndStation,
|
||||
.TrackPaintFunctions = TrackDrawerDescriptor({
|
||||
.Drawer = OpenRCT2::SingleRailRC::GetTrackPaintFunction,
|
||||
.supportType = MetalSupportGraphic::Tubes,
|
||||
.supportType = MetalSupportType::Tubes,
|
||||
.EnabledTrackPieces = { TrackGroup::flat, TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::liftHill, TrackGroup::liftHillSteep, TrackGroup::flatRollBanking, TrackGroup::slope, TrackGroup::slopeLong, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::slopeCurve, TrackGroup::slopeCurveSteep, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge, TrackGroup::corkscrew, TrackGroup::helixDownBankedHalf, TrackGroup::helixUpBankedHalf, TrackGroup::brakes, TrackGroup::onridePhoto, TrackGroup::slopeVertical, TrackGroup::barrelRoll, TrackGroup::slopeCurveBanked, TrackGroup::blockBrakes, TrackGroup::slopeRollBanking, TrackGroup::curveVertical, TrackGroup::quarterLoop, TrackGroup::halfLoop, TrackGroup::halfLoopMedium, TrackGroup::corkscrewLarge, TrackGroup::zeroGRoll, TrackGroup::zeroGRollLarge, TrackGroup::slopeCurveLarge, TrackGroup::diagBrakes, TrackGroup::diagBlockBrakes},
|
||||
.ExtraTrackPieces = {TrackGroup::slopeSteepLong, TrackGroup::halfLoopLarge},
|
||||
}),
|
||||
|
||||
@@ -21,7 +21,7 @@ constexpr RideTypeDescriptor SpinningWildMouseRTD =
|
||||
.StartTrackPiece = OpenRCT2::TrackElemType::EndStation,
|
||||
.TrackPaintFunctions = TrackDrawerDescriptor({
|
||||
.Drawer = GetTrackPaintFunctionWildMouse,
|
||||
.supportType = MetalSupportGraphic::Tubes,
|
||||
.supportType = MetalSupportType::Tubes,
|
||||
.EnabledTrackPieces = {TrackGroup::straight,TrackGroup::stationEnd,TrackGroup::liftHill, TrackGroup::slope,TrackGroup::slopeLong,TrackGroup::curveVerySmall,TrackGroup::curveSmall, TrackGroup::brakes,TrackGroup::blockBrakes,TrackGroup::rotationControlToggle},
|
||||
.ExtraTrackPieces = {TrackGroup::liftHillSteep, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::slopeCurve},
|
||||
}),
|
||||
|
||||
@@ -21,7 +21,7 @@ constexpr RideTypeDescriptor SpiralRollerCoasterRTD =
|
||||
.StartTrackPiece = OpenRCT2::TrackElemType::EndStation,
|
||||
.TrackPaintFunctions = TrackDrawerDescriptor({
|
||||
.Drawer = GetTrackPaintFunctionMiniRC,
|
||||
.supportType = MetalSupportGraphic::Fork,
|
||||
.supportType = MetalSupportType::Fork,
|
||||
.EnabledTrackPieces = {TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::flatRollBanking, TrackGroup::slope, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::slopeCurve, TrackGroup::slopeCurveSteep, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge, TrackGroup::helixDownBankedHalf, TrackGroup::helixUpBankedHalf, TrackGroup::brakes, TrackGroup::onridePhoto, TrackGroup::blockBrakes, TrackGroup::slopeRollBanking, TrackGroup::liftHillCurved},
|
||||
.ExtraTrackPieces = {TrackGroup::booster, TrackGroup::liftHill},
|
||||
}),
|
||||
|
||||
@@ -21,7 +21,7 @@ constexpr RideTypeDescriptor StandUpRollerCoasterRTD =
|
||||
.StartTrackPiece = OpenRCT2::TrackElemType::EndStation,
|
||||
.TrackPaintFunctions = TrackDrawerDescriptor({
|
||||
.Drawer = GetTrackPaintFunctionStandUpRC,
|
||||
.supportType = MetalSupportGraphic::Tubes,
|
||||
.supportType = MetalSupportType::Tubes,
|
||||
.EnabledTrackPieces = {TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::liftHill, TrackGroup::flatRollBanking, TrackGroup::verticalLoop, TrackGroup::slope, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::slopeCurve, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge, TrackGroup::halfLoop, TrackGroup::corkscrew, TrackGroup::helixDownBankedHalf, TrackGroup::helixUpBankedHalf, TrackGroup::brakes, TrackGroup::onridePhoto, TrackGroup::blockBrakes, TrackGroup::diagBrakes, TrackGroup::diagBlockBrakes},
|
||||
.ExtraTrackPieces = {},
|
||||
}),
|
||||
|
||||
@@ -21,7 +21,7 @@ constexpr RideTypeDescriptor SteelWildMouseRTD =
|
||||
.StartTrackPiece = OpenRCT2::TrackElemType::EndStation,
|
||||
.TrackPaintFunctions = TrackDrawerDescriptor({
|
||||
.Drawer = GetTrackPaintFunctionWildMouse,
|
||||
.supportType = MetalSupportGraphic::Tubes,
|
||||
.supportType = MetalSupportType::Tubes,
|
||||
.EnabledTrackPieces = {TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::liftHill, TrackGroup::liftHillSteep, TrackGroup::slope, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::slopeLong, TrackGroup::slopeCurve, TrackGroup::curveVerySmall, TrackGroup::curveSmall, TrackGroup::brakes, TrackGroup::blockBrakes},
|
||||
.ExtraTrackPieces = {TrackGroup::rotationControlToggle},
|
||||
}),
|
||||
|
||||
@@ -21,7 +21,7 @@ constexpr RideTypeDescriptor SteeplechaseRTD =
|
||||
.StartTrackPiece = OpenRCT2::TrackElemType::EndStation,
|
||||
.TrackPaintFunctions = TrackDrawerDescriptor({
|
||||
.Drawer = GetTrackPaintFunctionSteeplechase,
|
||||
.supportType = MetalSupportGraphic::Stick,
|
||||
.supportType = MetalSupportType::Stick,
|
||||
.EnabledTrackPieces = {TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::liftHill, TrackGroup::slope, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge, TrackGroup::brakes, TrackGroup::blockBrakes},
|
||||
.ExtraTrackPieces = {},
|
||||
}),
|
||||
|
||||
@@ -21,7 +21,7 @@ constexpr RideTypeDescriptor SuspendedSwingingCoasterRTD =
|
||||
.StartTrackPiece = OpenRCT2::TrackElemType::EndStation,
|
||||
.TrackPaintFunctions = TrackDrawerDescriptor({
|
||||
.Drawer = GetTrackPaintFunctionSuspendedSwingingRC,
|
||||
.supportType = MetalSupportGraphic::Tubes,
|
||||
.supportType = MetalSupportType::Tubes,
|
||||
.EnabledTrackPieces = {TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::liftHill, TrackGroup::slope, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::slopeCurve, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge, TrackGroup::helixDownUnbankedQuarter, TrackGroup::helixUpUnbankedQuarter, TrackGroup::brakes, TrackGroup::blockBrakes},
|
||||
.ExtraTrackPieces = {},
|
||||
}),
|
||||
|
||||
@@ -22,7 +22,7 @@ constexpr RideTypeDescriptor TwisterRollerCoasterRTD =
|
||||
.StartTrackPiece = OpenRCT2::TrackElemType::EndStation,
|
||||
.TrackPaintFunctions = TrackDrawerDescriptor({
|
||||
.Drawer = GetTrackPaintFunctionTwisterRC,
|
||||
.supportType = MetalSupportGraphic::Tubes,
|
||||
.supportType = MetalSupportType::Tubes,
|
||||
.EnabledTrackPieces = {TrackGroup::flat, TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::liftHill, TrackGroup::flatRollBanking, TrackGroup::verticalLoop, TrackGroup::slope, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::slopeCurve, TrackGroup::slopeCurveSteep, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge, TrackGroup::halfLoop, TrackGroup::corkscrew, TrackGroup::helixDownBankedHalf, TrackGroup::helixUpBankedHalf, TrackGroup::brakes, TrackGroup::onridePhoto, TrackGroup::slopeVertical, TrackGroup::barrelRoll, TrackGroup::poweredLift, TrackGroup::halfLoopLarge, TrackGroup::slopeCurveBanked, TrackGroup::blockBrakes, TrackGroup::slopeRollBanking, TrackGroup::slopeSteepLong, TrackGroup::curveVertical, TrackGroup::quarterLoop, TrackGroup::booster, TrackGroup::twist, TrackGroup::diagBrakes, TrackGroup::diagBlockBrakes},
|
||||
.ExtraTrackPieces = {TrackGroup::liftHillSteep, TrackGroup::brakeForDrop},
|
||||
}),
|
||||
|
||||
@@ -22,7 +22,7 @@ constexpr RideTypeDescriptor VerticalDropCoasterRTD =
|
||||
.StartTrackPiece = OpenRCT2::TrackElemType::EndStation,
|
||||
.TrackPaintFunctions = TrackDrawerDescriptor({
|
||||
.Drawer = GetTrackPaintFunctionTwisterRC,
|
||||
.supportType = MetalSupportGraphic::Boxed,
|
||||
.supportType = MetalSupportType::Boxed,
|
||||
.EnabledTrackPieces = {TrackGroup::flat, TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::liftHill, TrackGroup::liftHillSteep, TrackGroup::flatRollBanking, TrackGroup::verticalLoop, TrackGroup::slope, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::slopeLong, TrackGroup::slopeCurve, TrackGroup::slopeCurveSteep, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge, TrackGroup::helixDownBankedHalf, TrackGroup::helixUpBankedHalf, TrackGroup::brakes, TrackGroup::onridePhoto, TrackGroup::slopeVertical, TrackGroup::slopeCurveBanked, TrackGroup::blockBrakes, TrackGroup::slopeRollBanking, TrackGroup::curveVertical, TrackGroup::halfLoopLarge, TrackGroup::brakeForDrop, TrackGroup::diagBrakes, TrackGroup::diagBlockBrakes},
|
||||
.ExtraTrackPieces = {TrackGroup::halfLoop, TrackGroup::corkscrew, TrackGroup::barrelRoll, TrackGroup::poweredLift, TrackGroup::halfLoopLarge, TrackGroup::quarterLoop, TrackGroup::booster, TrackGroup::twist},
|
||||
}),
|
||||
|
||||
@@ -24,7 +24,7 @@ constexpr RideTypeDescriptor WaterCoasterRTD =
|
||||
.TrackPaintFunctions = TrackDrawerDescriptor(
|
||||
{
|
||||
.Drawer = GetTrackPaintFunctionWaterRC,
|
||||
.supportType = MetalSupportGraphic::Fork,
|
||||
.supportType = MetalSupportType::Fork,
|
||||
.EnabledTrackPieces = {TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::liftHill, TrackGroup::flatRollBanking, TrackGroup::slope, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::slopeCurve, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge, TrackGroup::helixDownBankedHalf, TrackGroup::helixUpBankedHalf, TrackGroup::brakes, TrackGroup::blockBrakes, TrackGroup::onridePhoto, TrackGroup::booster, TrackGroup::diagBrakes, TrackGroup::diagBlockBrakes},
|
||||
.ExtraTrackPieces = {TrackGroup::slopeLong},
|
||||
.icon = SPR_RIDE_CONSTRUCTION_RC_TRACK,
|
||||
|
||||
@@ -22,7 +22,7 @@ constexpr RideTypeDescriptor CarRideRTD =
|
||||
.StartTrackPiece = OpenRCT2::TrackElemType::EndStation,
|
||||
.TrackPaintFunctions = TrackDrawerDescriptor({
|
||||
.Drawer = GetTrackPaintFunctionCarRide,
|
||||
.supportType = MetalSupportGraphic::Boxed,
|
||||
.supportType = MetalSupportType::Boxed,
|
||||
.EnabledTrackPieces = {TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::slope, TrackGroup::curveVerySmall, TrackGroup::curveSmall, TrackGroup::spinningTunnel},
|
||||
.ExtraTrackPieces = {TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::rapids},
|
||||
}),
|
||||
|
||||
@@ -22,7 +22,7 @@ constexpr RideTypeDescriptor GhostTrainRTD =
|
||||
.StartTrackPiece = OpenRCT2::TrackElemType::EndStation,
|
||||
.TrackPaintFunctions = TrackDrawerDescriptor({
|
||||
.Drawer = GetTrackPaintFunctionGhostTrain,
|
||||
.supportType = MetalSupportGraphic::Boxed,
|
||||
.supportType = MetalSupportType::Boxed,
|
||||
.EnabledTrackPieces = {TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::slope, TrackGroup::curveVerySmall, TrackGroup::curveSmall, TrackGroup::brakes, TrackGroup::spinningTunnel},
|
||||
.ExtraTrackPieces = {},
|
||||
}),
|
||||
|
||||
@@ -21,7 +21,7 @@ constexpr RideTypeDescriptor MiniGolfRTD =
|
||||
.StartTrackPiece = OpenRCT2::TrackElemType::EndStation,
|
||||
.TrackPaintFunctions = TrackDrawerDescriptor({
|
||||
.Drawer = GetTrackPaintFunctionMiniGolf,
|
||||
.supportType = MetalSupportGraphic::Boxed,
|
||||
.supportType = MetalSupportType::Boxed,
|
||||
.EnabledTrackPieces = {TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::slope, TrackGroup::curveVerySmall, TrackGroup::miniGolfHole},
|
||||
.ExtraTrackPieces = {},
|
||||
}),
|
||||
|
||||
@@ -22,7 +22,7 @@ constexpr RideTypeDescriptor MiniHelicoptersRTD =
|
||||
.StartTrackPiece = OpenRCT2::TrackElemType::EndStation,
|
||||
.TrackPaintFunctions = TrackDrawerDescriptor({
|
||||
.Drawer = GetTrackPaintFunctionMiniHelicopters,
|
||||
.supportType = MetalSupportGraphic::Stick,
|
||||
.supportType = MetalSupportType::Stick,
|
||||
.EnabledTrackPieces = {TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::slope, TrackGroup::curveVerySmall, TrackGroup::curveSmall},
|
||||
.ExtraTrackPieces = {TrackGroup::spinningTunnel},
|
||||
}),
|
||||
|
||||
@@ -22,7 +22,7 @@ constexpr RideTypeDescriptor MonorailCyclesRTD =
|
||||
.StartTrackPiece = OpenRCT2::TrackElemType::EndStation,
|
||||
.TrackPaintFunctions = TrackDrawerDescriptor({
|
||||
.Drawer = GetTrackPaintFunctionMonorailCycles,
|
||||
.supportType = MetalSupportGraphic::Stick,
|
||||
.supportType = MetalSupportType::Stick,
|
||||
.EnabledTrackPieces = {TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve},
|
||||
.ExtraTrackPieces = {},
|
||||
}),
|
||||
|
||||
@@ -22,7 +22,7 @@ constexpr RideTypeDescriptor MonsterTrucksRTD =
|
||||
.StartTrackPiece = OpenRCT2::TrackElemType::EndStation,
|
||||
.TrackPaintFunctions = TrackDrawerDescriptor({
|
||||
.Drawer = GetTrackPaintFunctionCarRide,
|
||||
.supportType = MetalSupportGraphic::Boxed,
|
||||
.supportType = MetalSupportType::Boxed,
|
||||
.EnabledTrackPieces = {TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::slope, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::curveVerySmall, TrackGroup::curveSmall, TrackGroup::rapids},
|
||||
.ExtraTrackPieces = {TrackGroup::spinningTunnel},
|
||||
}),
|
||||
|
||||
@@ -22,7 +22,7 @@ constexpr RideTypeDescriptor ChairliftRTD =
|
||||
.StartTrackPiece = OpenRCT2::TrackElemType::EndStation,
|
||||
.TrackPaintFunctions = TrackDrawerDescriptor({
|
||||
.Drawer = GetTrackPaintFunctionChairlift,
|
||||
.supportType = MetalSupportGraphic::Truss,
|
||||
.supportType = MetalSupportType::Truss,
|
||||
.EnabledTrackPieces = {TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::slope, TrackGroup::curveVerySmall},
|
||||
.ExtraTrackPieces = {},
|
||||
}),
|
||||
|
||||
@@ -22,7 +22,7 @@ constexpr RideTypeDescriptor MonorailRTD =
|
||||
.StartTrackPiece = OpenRCT2::TrackElemType::EndStation,
|
||||
.TrackPaintFunctions = TrackDrawerDescriptor({
|
||||
.Drawer = GetTrackPaintFunctionMonorail,
|
||||
.supportType = MetalSupportGraphic::Boxed,
|
||||
.supportType = MetalSupportType::Boxed,
|
||||
.EnabledTrackPieces = {TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::slope, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge},
|
||||
.ExtraTrackPieces = {},
|
||||
}),
|
||||
|
||||
@@ -21,7 +21,7 @@ constexpr RideTypeDescriptor SuspendedMonorailRTD =
|
||||
.StartTrackPiece = OpenRCT2::TrackElemType::EndStation,
|
||||
.TrackPaintFunctions = TrackDrawerDescriptor({
|
||||
.Drawer = GetTrackPaintFunctionSuspendedMonorail,
|
||||
.supportType = MetalSupportGraphic::Boxed,
|
||||
.supportType = MetalSupportType::Boxed,
|
||||
.EnabledTrackPieces = {TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::slope, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge},
|
||||
.ExtraTrackPieces = {},
|
||||
}),
|
||||
|
||||
@@ -23,7 +23,7 @@ constexpr RideTypeDescriptor DinghySlideRTD =
|
||||
.TrackPaintFunctions = TrackDrawerDescriptor(
|
||||
{
|
||||
.Drawer = GetTrackPaintFunctionDinghySlide,
|
||||
.supportType = MetalSupportGraphic::Tubes,
|
||||
.supportType = MetalSupportType::Tubes,
|
||||
.EnabledTrackPieces = { TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::liftHill, TrackGroup::slope, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve },
|
||||
.ExtraTrackPieces = {},
|
||||
.icon = SPR_RIDE_CONSTRUCTION_U_SHAPED_TRACK,
|
||||
@@ -31,7 +31,7 @@ constexpr RideTypeDescriptor DinghySlideRTD =
|
||||
},
|
||||
{
|
||||
.Drawer = GetTrackPaintFunctionDinghySlideCovered,
|
||||
.supportType = MetalSupportGraphic::Tubes,
|
||||
.supportType = MetalSupportType::Tubes,
|
||||
.EnabledTrackPieces = {OpenRCT2::TrackElemType::Flat, OpenRCT2::TrackElemType::Up25, OpenRCT2::TrackElemType::Up60, OpenRCT2::TrackElemType::FlatToUp25, OpenRCT2::TrackElemType::Up25ToUp60, OpenRCT2::TrackElemType::Up60ToUp25, OpenRCT2::TrackElemType::Up25ToFlat, OpenRCT2::TrackElemType::Down25, OpenRCT2::TrackElemType::Down60, OpenRCT2::TrackElemType::FlatToDown25, OpenRCT2::TrackElemType::Down25ToDown60, OpenRCT2::TrackElemType::Down60ToDown25, OpenRCT2::TrackElemType::Down25ToFlat, OpenRCT2::TrackElemType::LeftQuarterTurn5Tiles, OpenRCT2::TrackElemType::RightQuarterTurn5Tiles, OpenRCT2::TrackElemType::SBendLeft, OpenRCT2::TrackElemType::SBendRight, OpenRCT2::TrackElemType::LeftQuarterTurn3Tiles,OpenRCT2::TrackElemType::RightQuarterTurn3Tiles},
|
||||
.ExtraTrackPieces = {},
|
||||
.icon = SPR_RIDE_CONSTRUCTION_O_SHAPED_TRACK,
|
||||
|
||||
@@ -21,7 +21,7 @@ constexpr RideTypeDescriptor LogFlumeRTD =
|
||||
.StartTrackPiece = OpenRCT2::TrackElemType::EndStation,
|
||||
.TrackPaintFunctions = TrackDrawerDescriptor({
|
||||
.Drawer = GetTrackPaintFunctionLogFlume,
|
||||
.supportType = MetalSupportGraphic::Boxed,
|
||||
.supportType = MetalSupportType::Boxed,
|
||||
.EnabledTrackPieces = {TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::slope, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::onridePhoto, TrackGroup::logFlumeReverser, TrackGroup::slopeSteepDown},
|
||||
.ExtraTrackPieces = {},
|
||||
}),
|
||||
|
||||
@@ -22,7 +22,7 @@ constexpr RideTypeDescriptor SubmarineRideRTD =
|
||||
.StartTrackPiece = OpenRCT2::TrackElemType::EndStation,
|
||||
.TrackPaintFunctions = TrackDrawerDescriptor({
|
||||
.Drawer = GetTrackPaintFunctionSubmarineRide,
|
||||
.supportType = MetalSupportGraphic::Stick,
|
||||
.supportType = MetalSupportType::Stick,
|
||||
.EnabledTrackPieces = {TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::curveVerySmall, TrackGroup::curveSmall},
|
||||
.ExtraTrackPieces = {},
|
||||
}),
|
||||
|
||||
Reference in new issue
Block a user