move session flags into new header (#18504)

* move session flags into new header
This commit is contained in:
spacek531 2022-11-03 22:50:36 -07:00 committed by GitHub
parent a443e349ce
commit aa685e4cf6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 24 additions and 6 deletions

View File

@ -0,0 +1,18 @@
/*****************************************************************************
* Copyright (c) 2014-2022 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 "../common.h"
namespace PaintSessionFlags
{
constexpr uint8_t PassedSurface = 1u << 0;
constexpr uint8_t IsTrackPiecePreview = 1u << 1;
} // namespace PaintSessionFlags

View File

@ -15,6 +15,7 @@
#include "../util/Math.hpp"
#include "../world/Surface.h"
#include "Boundbox.h"
#include "Paint.SessionFlags.h"
#include "Paint.h"
#include "tile_element/Paint.TileElement.h"

View File

@ -37,6 +37,7 @@
#include "../../world/Surface.h"
#include "../../world/TileInspector.h"
#include "../Boundbox.h"
#include "../Paint.SessionFlags.h"
#include "../Supports.h"
#include "Paint.Surface.h"
#include "Paint.TileElement.h"

View File

@ -32,6 +32,7 @@
#include "../../world/Surface.h"
#include "../../world/TileInspector.h"
#include "../Boundbox.h"
#include "../Paint.SessionFlags.h"
#include "Paint.TileElement.h"
#include <algorithm>

View File

@ -27,6 +27,7 @@
#include "../../world/Map.h"
#include "../../world/Scenery.h"
#include "../../world/Surface.h"
#include "../Paint.SessionFlags.h"
#include "../Paint.h"
#include "../Supports.h"
#include "../VirtualFloor.h"

View File

@ -71,12 +71,6 @@ enum
TUNNEL_TYPE_COUNT
};
namespace PaintSessionFlags
{
constexpr uint8_t PassedSurface = 1u << 0;
constexpr uint8_t IsTrackPiecePreview = 1u << 1;
} // namespace PaintSessionFlags
extern const int32_t SEGMENTS_ALL;
extern const uint16_t segment_offsets[9];

View File

@ -17,6 +17,7 @@
#include "../interface/Window.h"
#include "../localisation/Localisation.h"
#include "../object/StationObject.h"
#include "../paint/Paint.SessionFlags.h"
#include "../paint/Paint.h"
#include "../paint/Supports.h"
#include "../paint/tile_element/Paint.TileElement.h"

View File

@ -11,6 +11,7 @@
#include "../../entity/EntityRegistry.h"
#include "../../entity/Guest.h"
#include "../../interface/Viewport.h"
#include "../../paint/Paint.SessionFlags.h"
#include "../../paint/Paint.h"
#include "../../paint/Supports.h"
#include "../../world/Map.h"