Refactor: Extract PaintTrack to Paint.Track.h

Part of #25803
This commit is contained in:
frozensnowy committed 2026-02-01 22:08:32 +01:00
1 parent bacd450137
commit ae92e5ae7e
5 files changed
+24 -3

No files matched your search

+1
View File
@@ -401,6 +401,7 @@
<ClInclude Include="paint\tile_element\Paint.PathAddition.h" />
<ClInclude Include="paint\tile_element\Paint.Surface.h" />
<ClInclude Include="paint\tile_element\Paint.TileElement.h" />
<ClInclude Include="paint\tile_element\Paint.Track.h" />
<ClInclude Include="paint\tile_element\Paint.Wall.h" />
<ClInclude Include="paint\tile_element\Segment.h" />
<ClInclude Include="paint\tile_element\Paint.Tunnel.h" />
@@ -35,6 +35,7 @@
#include "Paint.Path.h"
#include "Paint.SmallScenery.h"
#include "Paint.Surface.h"
#include "Paint.Track.h"
#include "Paint.Wall.h"
#include "Segment.h"
@@ -16,7 +16,6 @@ namespace OpenRCT2
struct BannerElement;
struct PathElement;
struct SurfaceElement;
struct TrackElement;
} // namespace OpenRCT2
struct PaintSession;
@@ -50,6 +49,4 @@ void TileElementPaintSetup(PaintSession& session, const CoordsXY& mapCoords, boo
void PaintBanner(PaintSession& session, uint8_t direction, int32_t height, const OpenRCT2::BannerElement& bannerElement);
void PaintSurface(PaintSession& session, uint8_t direction, uint16_t height, const OpenRCT2::SurfaceElement& tileElement);
void PaintTrack(PaintSession& session, uint8_t direction, int32_t height, const OpenRCT2::TrackElement& tileElement);
bool PaintShouldShowHeightMarkers(const PaintSession& session, uint32_t viewportFlag);
@@ -0,0 +1,21 @@
/*****************************************************************************
* Copyright (c) 2014-2026 OpenRCT2 developers
*
* For a complete list of all authors, please refer to contributors.md
* Interested in contributing? Visit https://github.com/OpenRCT2/OpenRCT2
*
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
#pragma once
#include <cstdint>
struct PaintSession;
namespace OpenRCT2
{
struct TrackElement;
}
void PaintTrack(PaintSession& session, uint8_t direction, int32_t height, const OpenRCT2::TrackElement& tileElement);
+1
View File
@@ -23,6 +23,7 @@
#include "../paint/support/MetalSupports.h"
#include "../paint/support/WoodenSupports.h"
#include "../paint/tile_element/Paint.TileElement.h"
#include "../paint/tile_element/Paint.Track.h"
#include "../paint/tile_element/Segment.h"
#include "../paint/track/Segment.h"
#include "../paint/track/Support.h"