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:
@@ -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{};
|
||||
|
||||
@@ -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" />
|
||||
|
||||
35
src/openrct2/scenario/ScenarioOptions.h
Normal file
35
src/openrct2/scenario/ScenarioOptions.h
Normal 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
|
||||
Reference in New Issue
Block a user