2021-10-27 14:21:14 +02:00
|
|
|
#pragma once
|
|
|
|
|
2023-02-28 20:04:52 +01:00
|
|
|
#include <cstdint>
|
2021-10-27 14:21:14 +02:00
|
|
|
#include <string_view>
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
struct ObjectRepositoryItem;
|
|
|
|
|
|
|
|
namespace OpenRCT2
|
|
|
|
{
|
2022-01-10 07:52:39 +01:00
|
|
|
// Current version that is saved.
|
2023-04-21 18:22:33 +02:00
|
|
|
constexpr uint32_t PARK_FILE_CURRENT_VERSION = 30;
|
2022-01-10 07:52:39 +01:00
|
|
|
|
|
|
|
// The minimum version that is forwards compatible with the current version.
|
2023-04-21 18:22:33 +02:00
|
|
|
constexpr uint32_t PARK_FILE_MIN_VERSION = 30;
|
2022-01-10 07:52:39 +01:00
|
|
|
|
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
|
|
|
|
2021-10-27 14:21:14 +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);
|
|
|
|
};
|