OpenRCT2/src/openrct2/park/ParkFile.h

34 lines
882 B
C
Raw Normal View History

#pragma once
#include <cstdint>
#include <string_view>
#include <vector>
struct ObjectRepositoryItem;
namespace OpenRCT2
{
// Current version that is saved.
"Reversed Trains" Option (#19305) * Initial commit for backwards-facing trains * Allow persistence for reversed cars across save/load * Make log flume turntable compatible with new reversal implementation * Style fixes + Better implementation of inverted bank angles * Further Style Fixes * Code cleanup from PR feedback * Fix GetBankRotationForDrawing function declaration * Use update flag for reversed state * Replace modulo operation with bit mask * Correct guest pathing destination when entering reversed cars * More style fixes * Add plugin support for reversed vehicles * Fix formatting error * Derive reversal from ride mode for car spawning * Formatting * Rename function to GetPaintBankRotation * Add reversed trains modes to Multi Dimension Coaster * Change name of isReversed plugin API parameter for consistency * Replace reversal operating modes with separate ride setting * Add ALLOW_REVERSED_TRAINS flag to more ride types * Make clang-format happy * More Formatting * Fix ALLOW_REVERSED_TRAINS flag on a couple rides * Exclude flat rides from Reverse Trains tickbox when cheats are enabled * Formatting * Use Disable Vehicle Limits cheat for checkbox appearance condition * Use correct swinging sprites when cars are reversed * Update changelog and Plugin/Network/Park version numbers * Formatting * Add separate error String ID for clarity * Add name to contributors.md * Fix ride vehicle preview window with reversed trains for RCT1 train types * Bump version numbers again --------- Co-authored-by: Trevor Finney <8711258+finneyt@users.noreply.github.com>
2023-04-21 18:22:33 +02:00
constexpr uint32_t PARK_FILE_CURRENT_VERSION = 30;
// The minimum version that is forwards compatible with the current version.
"Reversed Trains" Option (#19305) * Initial commit for backwards-facing trains * Allow persistence for reversed cars across save/load * Make log flume turntable compatible with new reversal implementation * Style fixes + Better implementation of inverted bank angles * Further Style Fixes * Code cleanup from PR feedback * Fix GetBankRotationForDrawing function declaration * Use update flag for reversed state * Replace modulo operation with bit mask * Correct guest pathing destination when entering reversed cars * More style fixes * Add plugin support for reversed vehicles * Fix formatting error * Derive reversal from ride mode for car spawning * Formatting * Rename function to GetPaintBankRotation * Add reversed trains modes to Multi Dimension Coaster * Change name of isReversed plugin API parameter for consistency * Replace reversal operating modes with separate ride setting * Add ALLOW_REVERSED_TRAINS flag to more ride types * Make clang-format happy * More Formatting * Fix ALLOW_REVERSED_TRAINS flag on a couple rides * Exclude flat rides from Reverse Trains tickbox when cheats are enabled * Formatting * Use Disable Vehicle Limits cheat for checkbox appearance condition * Use correct swinging sprites when cars are reversed * Update changelog and Plugin/Network/Park version numbers * Formatting * Add separate error String ID for clarity * Add name to contributors.md * Fix ride vehicle preview window with reversed trains for RCT1 train types * Bump version numbers again --------- Co-authored-by: Trevor Finney <8711258+finneyt@users.noreply.github.com>
2023-04-21 18:22:33 +02:00
constexpr uint32_t PARK_FILE_MIN_VERSION = 30;
2022-04-23 15:45:15 +02:00
// The minimum version that is backwards compatible with the current version.
2022-04-24 15:51:41 +02:00
// If this is increased beyond 0, uncomment the checks in ParkFile.cpp and Context.cpp!
constexpr uint32_t PARK_FILE_MIN_SUPPORTED_VERSION = 0x0;
2022-04-23 15:45:15 +02:00
constexpr uint32_t PARK_FILE_MAGIC = 0x4B524150; // PARK
struct IStream;
} // namespace OpenRCT2
class ParkFileExporter
{
public:
std::vector<const ObjectRepositoryItem*> ExportObjectsList;
void Export(std::string_view path);
void Export(OpenRCT2::IStream& stream);
};