1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-24 00:03:11 +01:00

Move ScenarioOptions struct into its own header file

This commit is contained in:
Aaron van Geffen
2025-08-22 17:43:44 +02:00
parent 19dd05c32f
commit 4535061f36
3 changed files with 37 additions and 22 deletions

View File

@@ -19,7 +19,7 @@
#include "management/NewsItem.h"
#include "ride/Ride.h"
#include "ride/RideRatings.h"
#include "scenario/Scenario.h"
#include "scenario/ScenarioOptions.h"
#include "world/Banner.h"
#include "world/Climate.h"
#include "world/Location.hpp"
@@ -30,29 +30,8 @@
#include <memory>
#include <vector>
namespace OpenRCT2::Scenario
{
struct Options
{
Objective objective;
ScenarioCategory category;
std::string name;
std::string details;
money64 initialCash;
money64 landPrice;
money64 constructionRightsPrice;
money64 guestInitialCash;
uint8_t guestInitialHappiness;
uint8_t guestInitialHunger;
uint8_t guestInitialThirst;
};
} // namespace OpenRCT2::Scenario
namespace OpenRCT2
{
struct GameState_t
{
Park::ParkData park{};

View File

@@ -548,6 +548,7 @@
<ClInclude Include="sawyer_coding\SawyerChunkReader.h" />
<ClInclude Include="sawyer_coding\SawyerChunkWriter.h" />
<ClInclude Include="scenario\Scenario.h" />
<ClInclude Include="scenario\ScenarioOptions.h" />
<ClInclude Include="scenario\ScenarioRepository.h" />
<ClInclude Include="scenario\ScenarioSources.h" />
<ClInclude Include="scenes\Scene.h" />

View File

@@ -0,0 +1,35 @@
/*****************************************************************************
* Copyright (c) 2014-2025 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 "../core/Money.hpp"
#include "Scenario.h"
#include <string>
namespace OpenRCT2::Scenario
{
struct Options
{
Objective objective;
ScenarioCategory category;
std::string name;
std::string details;
money64 initialCash;
money64 landPrice;
money64 constructionRightsPrice;
money64 guestInitialCash;
uint8_t guestInitialHappiness;
uint8_t guestInitialHunger;
uint8_t guestInitialThirst;
};
} // namespace OpenRCT2::Scenario