forked from rosebudai/OpenRCT2-Web
Merge pull request #22259 from AaronVanGeffen/rework-common
Rework common.h into local definitions
This commit is contained in:
539 files changed
+859
-856
No files matched your search
@@ -10,7 +10,6 @@
|
||||
#include "CursorRepository.h"
|
||||
|
||||
#include <cmath>
|
||||
#include <openrct2/common.h>
|
||||
#include <openrct2/config/Config.h>
|
||||
#include <openrct2/core/Guard.hpp>
|
||||
#include <openrct2/interface/Cursors.h>
|
||||
|
||||
@@ -15,7 +15,6 @@
|
||||
|
||||
#include <SDL.h>
|
||||
#include <openrct2-ui/interface/Window.h>
|
||||
#include <openrct2/common.h>
|
||||
#include <openrct2/core/Memory.hpp>
|
||||
#include <openrct2/core/String.hpp>
|
||||
#include <openrct2/core/UTF8.h>
|
||||
|
||||
@@ -10,7 +10,6 @@
|
||||
#pragma once
|
||||
|
||||
#include <openrct2/Context.h>
|
||||
#include <openrct2/common.h>
|
||||
#include <openrct2/ui/UiContext.h>
|
||||
|
||||
union SDL_Event;
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
|
||||
#include <memory>
|
||||
#include <openrct2/Context.h>
|
||||
#include <openrct2/Diagnostic.h>
|
||||
#include <openrct2/OpenRCT2.h>
|
||||
#include <openrct2/PlatformEnvironment.h>
|
||||
#include <openrct2/audio/AudioContext.h>
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
# include <SDL.h>
|
||||
# include <dlfcn.h>
|
||||
# include <jni.h>
|
||||
# include <openrct2/common.h>
|
||||
# include <openrct2/Diagnostic.h>
|
||||
# include <openrct2/core/String.hpp>
|
||||
# include <openrct2/platform/Platform.h>
|
||||
# include <openrct2/ui/UiContext.h>
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
# include <SDL.h>
|
||||
# include <algorithm>
|
||||
# include <dlfcn.h>
|
||||
# include <openrct2/common.h>
|
||||
# include <openrct2/Diagnostic.h>
|
||||
# include <openrct2/core/Path.hpp>
|
||||
# include <openrct2/core/String.hpp>
|
||||
# include <openrct2/core/StringBuilder.h>
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
# ifndef WIN32_LEAN_AND_MEAN
|
||||
# define WIN32_LEAN_AND_MEAN
|
||||
# endif
|
||||
# include <openrct2/Diagnostic.h>
|
||||
# include <windows.h>
|
||||
# include <shellapi.h>
|
||||
// clang-format on
|
||||
@@ -24,7 +25,6 @@
|
||||
|
||||
# include <SDL.h>
|
||||
# include <SDL_syswm.h>
|
||||
# include <openrct2/common.h>
|
||||
# include <openrct2/core/Path.hpp>
|
||||
# include <openrct2/core/String.hpp>
|
||||
# include <openrct2/ui/UiContext.h>
|
||||
|
||||
@@ -29,6 +29,7 @@
|
||||
#include <openrct2-ui/input/InputManager.h>
|
||||
#include <openrct2-ui/interface/Window.h>
|
||||
#include <openrct2/Context.h>
|
||||
#include <openrct2/Diagnostic.h>
|
||||
#include <openrct2/Input.h>
|
||||
#include <openrct2/Version.h>
|
||||
#include <openrct2/audio/AudioContext.h>
|
||||
|
||||
+11
-11
@@ -10,7 +10,6 @@
|
||||
#pragma once
|
||||
|
||||
#include <memory>
|
||||
#include <openrct2/common.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
@@ -31,20 +30,21 @@ namespace OpenRCT2::Ui
|
||||
struct IPlatformUiContext
|
||||
{
|
||||
virtual ~IPlatformUiContext() = default;
|
||||
virtual void SetWindowIcon(SDL_Window* window) abstract;
|
||||
virtual bool IsSteamOverlayAttached() abstract;
|
||||
virtual void SetWindowIcon(SDL_Window* window) = 0;
|
||||
virtual bool IsSteamOverlayAttached() = 0;
|
||||
|
||||
virtual void ShowMessageBox(SDL_Window* window, const std::string& message) abstract;
|
||||
virtual bool HasMenuSupport() abstract;
|
||||
virtual void ShowMessageBox(SDL_Window* window, const std::string& message) = 0;
|
||||
virtual bool HasMenuSupport() = 0;
|
||||
virtual int32_t ShowMenuDialog(
|
||||
const std::vector<std::string>& options, const std::string& title, const std::string& text) abstract;
|
||||
virtual void OpenFolder(const std::string& path) abstract;
|
||||
const std::vector<std::string>& options, const std::string& title, const std::string& text)
|
||||
= 0;
|
||||
virtual void OpenFolder(const std::string& path) = 0;
|
||||
|
||||
virtual void OpenURL(const std::string& url) abstract;
|
||||
virtual std::string ShowFileDialog(SDL_Window* window, const FileDialogDesc& desc) abstract;
|
||||
virtual std::string ShowDirectoryDialog(SDL_Window* window, const std::string& title) abstract;
|
||||
virtual void OpenURL(const std::string& url) = 0;
|
||||
virtual std::string ShowFileDialog(SDL_Window* window, const FileDialogDesc& desc) = 0;
|
||||
virtual std::string ShowDirectoryDialog(SDL_Window* window, const std::string& title) = 0;
|
||||
|
||||
virtual bool HasFilePicker() const abstract;
|
||||
virtual bool HasFilePicker() const = 0;
|
||||
};
|
||||
|
||||
[[nodiscard]] std::unique_ptr<IUiContext> CreateUiContext(const std::shared_ptr<IPlatformEnvironment>& env);
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
|
||||
# include "UiContext.h"
|
||||
|
||||
# include <openrct2/common.h>
|
||||
# include <openrct2/Diagnostic.h>
|
||||
# include <openrct2/core/String.hpp>
|
||||
# include <openrct2/ui/UiContext.h>
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <openrct2/common.h>
|
||||
#include <openrct2/localisation/StringIdType.h>
|
||||
|
||||
namespace OpenRCT2
|
||||
{
|
||||
|
||||
@@ -10,7 +10,6 @@
|
||||
#pragma once
|
||||
|
||||
#include <memory>
|
||||
#include <openrct2/common.h>
|
||||
|
||||
namespace OpenRCT2::Ui
|
||||
{
|
||||
|
||||
@@ -14,7 +14,6 @@
|
||||
#include <algorithm>
|
||||
#include <cmath>
|
||||
#include <openrct2/audio/AudioSource.h>
|
||||
#include <openrct2/common.h>
|
||||
#include <speex/speex_resampler.h>
|
||||
|
||||
namespace OpenRCT2::Audio
|
||||
|
||||
@@ -15,9 +15,9 @@
|
||||
|
||||
#include <SDL.h>
|
||||
#include <memory>
|
||||
#include <openrct2/Diagnostic.h>
|
||||
#include <openrct2/audio/AudioContext.h>
|
||||
#include <openrct2/audio/AudioSource.h>
|
||||
#include <openrct2/common.h>
|
||||
#include <openrct2/core/String.hpp>
|
||||
|
||||
namespace OpenRCT2::Audio
|
||||
|
||||
@@ -12,7 +12,6 @@
|
||||
#include <memory>
|
||||
#include <openrct2/audio/AudioChannel.h>
|
||||
#include <openrct2/audio/AudioSource.h>
|
||||
#include <openrct2/common.h>
|
||||
#include <string>
|
||||
|
||||
struct SDL_RWops;
|
||||
@@ -25,9 +24,9 @@ namespace OpenRCT2::Audio
|
||||
|
||||
struct ISDLAudioChannel : public IAudioChannel
|
||||
{
|
||||
[[nodiscard]] virtual AudioFormat GetFormat() const abstract;
|
||||
[[nodiscard]] virtual SpeexResamplerState* GetResampler() const abstract;
|
||||
virtual void SetResampler(SpeexResamplerState* value) abstract;
|
||||
[[nodiscard]] virtual AudioFormat GetFormat() const = 0;
|
||||
[[nodiscard]] virtual SpeexResamplerState* GetResampler() const = 0;
|
||||
virtual void SetResampler(SpeexResamplerState* value) = 0;
|
||||
};
|
||||
|
||||
namespace AudioChannel
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
|
||||
#include "SDLAudioSource.h"
|
||||
|
||||
#include <openrct2/Diagnostic.h>
|
||||
#include <stdexcept>
|
||||
|
||||
#ifndef DISABLE_FLAC
|
||||
|
||||
@@ -14,7 +14,6 @@
|
||||
#include <SDL.h>
|
||||
#include <algorithm>
|
||||
#include <openrct2/audio/AudioSource.h>
|
||||
#include <openrct2/common.h>
|
||||
#include <stdexcept>
|
||||
#include <vector>
|
||||
|
||||
|
||||
@@ -9,6 +9,8 @@
|
||||
|
||||
#include "SDLAudioSource.h"
|
||||
|
||||
#include <cassert>
|
||||
#include <openrct2/Diagnostic.h>
|
||||
#include <stdexcept>
|
||||
|
||||
#ifndef DISABLE_VORBIS
|
||||
|
||||
@@ -10,7 +10,6 @@
|
||||
#pragma once
|
||||
|
||||
#include <memory>
|
||||
#include <openrct2/common.h>
|
||||
#include <openrct2/drawing/IDrawingEngine.h>
|
||||
|
||||
namespace OpenRCT2::Ui
|
||||
|
||||
@@ -12,8 +12,8 @@
|
||||
#include <SDL.h>
|
||||
#include <cmath>
|
||||
#include <memory>
|
||||
#include <openrct2/Diagnostic.h>
|
||||
#include <openrct2/Game.h>
|
||||
#include <openrct2/common.h>
|
||||
#include <openrct2/config/Config.h>
|
||||
#include <openrct2/drawing/IDrawingEngine.h>
|
||||
#include <openrct2/drawing/LightFX.h>
|
||||
|
||||
@@ -11,8 +11,8 @@
|
||||
|
||||
#include <SDL.h>
|
||||
#include <algorithm>
|
||||
#include <openrct2/Diagnostic.h>
|
||||
#include <openrct2/Game.h>
|
||||
#include <openrct2/common.h>
|
||||
#include <openrct2/config/Config.h>
|
||||
#include <openrct2/core/Guard.hpp>
|
||||
#include <openrct2/drawing/IDrawingEngine.h>
|
||||
|
||||
@@ -13,7 +13,6 @@
|
||||
#include "OpenGLAPI.h"
|
||||
#include "TextureCache.h"
|
||||
|
||||
#include <openrct2/common.h>
|
||||
#include <vector>
|
||||
namespace OpenRCT2::Ui
|
||||
{
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
|
||||
#include "OpenGLAPI.h"
|
||||
|
||||
#include <openrct2/common.h>
|
||||
|
||||
namespace OpenRCT2::Ui
|
||||
{
|
||||
#pragma pack(push, 1)
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <openrct2/common.h>
|
||||
#include <openrct2/Diagnostic.h>
|
||||
|
||||
#ifdef OPENGL_NO_LINK
|
||||
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
|
||||
# include <SDL.h>
|
||||
# include <algorithm>
|
||||
# include <cassert>
|
||||
# include <cmath>
|
||||
# include <openrct2-ui/interface/Window.h>
|
||||
# include <openrct2/config/Config.h>
|
||||
|
||||
@@ -13,8 +13,8 @@
|
||||
|
||||
# include <SDL_video.h>
|
||||
# include <algorithm>
|
||||
# include <cassert>
|
||||
# include <memory>
|
||||
# include <openrct2/common.h>
|
||||
|
||||
using namespace OpenRCT2::Ui;
|
||||
|
||||
|
||||
@@ -11,7 +11,6 @@
|
||||
|
||||
#include "OpenGLAPI.h"
|
||||
|
||||
#include <openrct2/common.h>
|
||||
#include <openrct2/drawing/Drawing.h>
|
||||
#include <vector>
|
||||
|
||||
|
||||
@@ -12,7 +12,6 @@
|
||||
#include "OpenGLAPI.h"
|
||||
|
||||
#include <memory>
|
||||
#include <openrct2/common.h>
|
||||
#include <string>
|
||||
namespace OpenRCT2::Ui
|
||||
{
|
||||
|
||||
@@ -13,7 +13,6 @@
|
||||
#include "OpenGLAPI.h"
|
||||
#include "OpenGLFramebuffer.h"
|
||||
|
||||
#include <openrct2/common.h>
|
||||
namespace OpenRCT2::Ui
|
||||
{
|
||||
/**
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
# include "TextureCache.h"
|
||||
|
||||
# include <algorithm>
|
||||
# include <openrct2/Diagnostic.h>
|
||||
# include <openrct2/drawing/Drawing.h>
|
||||
# include <openrct2/interface/Colour.h>
|
||||
# include <openrct2/util/Util.h>
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
|
||||
#include <SDL_pixels.h>
|
||||
#include <array>
|
||||
#include <openrct2/common.h>
|
||||
#include <cassert>
|
||||
#include <openrct2/drawing/Drawing.h>
|
||||
#include <openrct2/drawing/DrawingLock.hpp>
|
||||
#include <openrct2/sprites.h>
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
# include "TransparencyDepth.h"
|
||||
|
||||
# include <algorithm>
|
||||
# include <cassert>
|
||||
# include <map>
|
||||
# include <vector>
|
||||
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
|
||||
#include "DrawCommands.h"
|
||||
|
||||
#include <openrct2/common.h>
|
||||
|
||||
namespace OpenRCT2::Ui
|
||||
{
|
||||
/*
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
|
||||
#include "../UiStringIds.h"
|
||||
|
||||
#include <cassert>
|
||||
#include <cmath>
|
||||
#include <iterator>
|
||||
#include <openrct2-ui/interface/Dropdown.h>
|
||||
|
||||
@@ -11,7 +11,6 @@
|
||||
|
||||
#include <openrct2-ui/UiStringIds.h>
|
||||
#include <openrct2-ui/interface/Window.h>
|
||||
#include <openrct2/common.h>
|
||||
#include <openrct2/drawing/ImageId.hpp>
|
||||
#include <openrct2/util/Util.h>
|
||||
|
||||
|
||||
@@ -10,7 +10,6 @@
|
||||
#pragma once
|
||||
|
||||
#include <openrct2-ui/interface/Window.h>
|
||||
#include <openrct2/common.h>
|
||||
#include <openrct2/sprites.h>
|
||||
|
||||
constexpr uint16_t kLandToolMinimumSize = 1;
|
||||
|
||||
@@ -16,8 +16,8 @@
|
||||
|
||||
#include <memory>
|
||||
#include <openrct2/Context.h>
|
||||
#include <openrct2/Diagnostic.h>
|
||||
#include <openrct2/PlatformEnvironment.h>
|
||||
#include <openrct2/common.h>
|
||||
#include <openrct2/config/Config.h>
|
||||
#include <openrct2/core/File.h>
|
||||
#include <openrct2/core/FileScanner.h>
|
||||
|
||||
@@ -9,7 +9,6 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <openrct2/common.h>
|
||||
#include <openrct2/interface/Colour.h>
|
||||
#include <openrct2/interface/Window.h>
|
||||
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
#include <cmath>
|
||||
#include <openrct2-ui/UiStringIds.h>
|
||||
#include <openrct2/Context.h>
|
||||
#include <openrct2/Diagnostic.h>
|
||||
#include <openrct2/Game.h>
|
||||
#include <openrct2/Input.h>
|
||||
#include <openrct2/config/Config.h>
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
#include "../interface/Viewport.h"
|
||||
#include "../interface/Window.h"
|
||||
|
||||
#include <cassert>
|
||||
#include <numeric>
|
||||
#include <openrct2/Context.h>
|
||||
#include <openrct2/GameState.h>
|
||||
|
||||
@@ -11,7 +11,6 @@
|
||||
|
||||
#ifdef ENABLE_SCRIPTING
|
||||
|
||||
# include <openrct2/common.h>
|
||||
# include <openrct2/scripting/Duktape.hpp>
|
||||
# include <openrct2/world/Map.h>
|
||||
|
||||
|
||||
@@ -21,7 +21,6 @@
|
||||
# include <memory>
|
||||
# include <openrct2/Context.h>
|
||||
# include <openrct2/Input.h>
|
||||
# include <openrct2/common.h>
|
||||
# include <openrct2/scenario/ScenarioRepository.h>
|
||||
# include <openrct2/scripting/Duktape.hpp>
|
||||
# include <openrct2/scripting/ScriptEngine.h>
|
||||
|
||||
@@ -15,7 +15,6 @@
|
||||
|
||||
# include <memory>
|
||||
# include <openrct2/Context.h>
|
||||
# include <openrct2/common.h>
|
||||
# include <openrct2/interface/Viewport.h>
|
||||
# include <openrct2/scripting/Duktape.hpp>
|
||||
# include <openrct2/scripting/ScriptEngine.h>
|
||||
|
||||
@@ -19,7 +19,6 @@
|
||||
|
||||
# include <memory>
|
||||
# include <openrct2/Context.h>
|
||||
# include <openrct2/common.h>
|
||||
# include <openrct2/scripting/Duktape.hpp>
|
||||
# include <openrct2/scripting/IconNames.hpp>
|
||||
# include <openrct2/scripting/ScriptEngine.h>
|
||||
|
||||
@@ -13,7 +13,6 @@
|
||||
|
||||
# include "ScWidget.hpp"
|
||||
|
||||
# include <openrct2/common.h>
|
||||
# include <openrct2/interface/Window.h>
|
||||
# include <openrct2/interface/Window_internal.h>
|
||||
# include <openrct2/localisation/Language.h>
|
||||
|
||||
@@ -13,11 +13,11 @@
|
||||
|
||||
#include <memory>
|
||||
#include <openrct2/Context.h>
|
||||
#include <openrct2/Diagnostic.h>
|
||||
#include <openrct2/Game.h>
|
||||
#include <openrct2/GameState.h>
|
||||
#include <openrct2/OpenRCT2.h>
|
||||
#include <openrct2/ParkImporter.h>
|
||||
#include <openrct2/common.h>
|
||||
#include <openrct2/core/Console.hpp>
|
||||
#include <openrct2/core/Guard.hpp>
|
||||
#include <openrct2/core/Path.hpp>
|
||||
|
||||
@@ -10,7 +10,6 @@
|
||||
#pragma once
|
||||
|
||||
#include <memory>
|
||||
#include <openrct2/common.h>
|
||||
|
||||
struct ITitleSequencePlayer;
|
||||
struct IScenarioRepository;
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
#include <openrct2-ui/interface/Widget.h>
|
||||
#include <openrct2-ui/windows/Window.h>
|
||||
#include <openrct2/Context.h>
|
||||
#include <openrct2/Diagnostic.h>
|
||||
#include <openrct2/OpenRCT2.h>
|
||||
#include <openrct2/PlatformEnvironment.h>
|
||||
#include <openrct2/Version.h>
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
#include <openrct2-ui/interface/Widget.h>
|
||||
#include <openrct2-ui/windows/Window.h>
|
||||
#include <openrct2/Context.h>
|
||||
#include <openrct2/Diagnostic.h>
|
||||
#include <openrct2/Editor.h>
|
||||
#include <openrct2/EditorObjectSelectionSession.h>
|
||||
#include <openrct2/Game.h>
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
#include <openrct2-ui/interface/Widget.h>
|
||||
#include <openrct2-ui/windows/Window.h>
|
||||
#include <openrct2/Context.h>
|
||||
#include <openrct2/Diagnostic.h>
|
||||
#include <openrct2/OpenRCT2.h>
|
||||
#include <openrct2/audio/audio.h>
|
||||
#include <openrct2/drawing/Drawing.h>
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
#include <openrct2-ui/interface/Widget.h>
|
||||
#include <openrct2-ui/windows/Window.h>
|
||||
#include <openrct2/Context.h>
|
||||
#include <openrct2/Diagnostic.h>
|
||||
#include <openrct2/PlatformEnvironment.h>
|
||||
#include <openrct2/audio/audio.h>
|
||||
#include <openrct2/core/File.h>
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
* OpenRCT2 is licensed under the GNU General Public License version 3.
|
||||
*****************************************************************************/
|
||||
|
||||
#include <cassert>
|
||||
#include <openrct2-ui/interface/Dropdown.h>
|
||||
#include <openrct2-ui/interface/Widget.h>
|
||||
#include <openrct2-ui/windows/Window.h>
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
* OpenRCT2 is licensed under the GNU General Public License version 3.
|
||||
*****************************************************************************/
|
||||
|
||||
#include <cassert>
|
||||
#include <iterator>
|
||||
#include <limits>
|
||||
#include <openrct2-ui/interface/Widget.h>
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
#include <openrct2-ui/interface/Widget.h>
|
||||
#include <openrct2-ui/windows/Window.h>
|
||||
#include <openrct2/Context.h>
|
||||
#include <openrct2/Diagnostic.h>
|
||||
#include <openrct2/core/Console.hpp>
|
||||
#include <openrct2/core/Http.h>
|
||||
#include <openrct2/core/Json.hpp>
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
#include <openrct2-ui/interface/Widget.h>
|
||||
#include <openrct2-ui/windows/Window.h>
|
||||
#include <openrct2/Context.h>
|
||||
#include <openrct2/Diagnostic.h>
|
||||
#include <openrct2/PlatformEnvironment.h>
|
||||
#include <openrct2/actions/ScenarioSetSettingAction.h>
|
||||
#include <openrct2/audio/AudioContext.h>
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
#include "../UiStringIds.h"
|
||||
#include "../interface/Theme.h"
|
||||
|
||||
#include <cassert>
|
||||
#include <cmath>
|
||||
#include <iterator>
|
||||
#include <limits>
|
||||
@@ -20,6 +21,7 @@
|
||||
#include <openrct2-ui/windows/Window.h>
|
||||
#include <openrct2/Cheats.h>
|
||||
#include <openrct2/Context.h>
|
||||
#include <openrct2/Diagnostic.h>
|
||||
#include <openrct2/Game.h>
|
||||
#include <openrct2/GameState.h>
|
||||
#include <openrct2/Input.h>
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
#include <openrct2-ui/interface/Widget.h>
|
||||
#include <openrct2-ui/windows/Window.h>
|
||||
#include <openrct2/Context.h>
|
||||
#include <openrct2/Diagnostic.h>
|
||||
#include <openrct2/Game.h>
|
||||
#include <openrct2/GameState.h>
|
||||
#include <openrct2/OpenRCT2.h>
|
||||
|
||||
@@ -9,11 +9,13 @@
|
||||
|
||||
#ifndef DISABLE_NETWORK
|
||||
|
||||
# include <cassert>
|
||||
# include <chrono>
|
||||
# include <openrct2-ui/interface/Dropdown.h>
|
||||
# include <openrct2-ui/interface/Widget.h>
|
||||
# include <openrct2-ui/windows/Window.h>
|
||||
# include <openrct2/Context.h>
|
||||
# include <openrct2/Diagnostic.h>
|
||||
# include <openrct2/config/Config.h>
|
||||
# include <openrct2/core/Json.hpp>
|
||||
# include <openrct2/drawing/Text.h>
|
||||
|
||||
@@ -16,7 +16,6 @@
|
||||
#include <openrct2/Game.h>
|
||||
#include <openrct2/Input.h>
|
||||
#include <openrct2/actions/TileModifyAction.h>
|
||||
#include <openrct2/common.h>
|
||||
#include <openrct2/core/Guard.hpp>
|
||||
#include <openrct2/localisation/Formatter.h>
|
||||
#include <openrct2/localisation/Localisation.h>
|
||||
@@ -2024,7 +2023,7 @@ static uint64_t PageDisabledWidgets[] = {
|
||||
void BannerToggleBlock(int32_t elementIndex, int32_t edgeIndex)
|
||||
{
|
||||
Guard::Assert(edgeIndex >= 0 && edgeIndex < 4, "edgeIndex out of range");
|
||||
// Make edgeIndex abstract
|
||||
// Make edgeIndex = 0
|
||||
edgeIndex = (edgeIndex - GetCurrentRotation()) & 3;
|
||||
auto modifyTile = TileModifyAction(_toolMap, TileModifyType::BannerToggleBlockingEdge, elementIndex, edgeIndex);
|
||||
GameActions::Execute(&modifyTile);
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
#include <openrct2-ui/windows/Window.h>
|
||||
#include <openrct2/Cheats.h>
|
||||
#include <openrct2/Context.h>
|
||||
#include <openrct2/Diagnostic.h>
|
||||
#include <openrct2/Editor.h>
|
||||
#include <openrct2/Game.h>
|
||||
#include <openrct2/GameState.h>
|
||||
|
||||
@@ -11,7 +11,6 @@
|
||||
|
||||
#include <openrct2-ui/interface/Window.h>
|
||||
#include <openrct2/Identifiers.h>
|
||||
#include <openrct2/common.h>
|
||||
#include <openrct2/ride/Ride.h>
|
||||
#include <openrct2/windows/TileInspectorGlobals.h>
|
||||
#include <string_view>
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
|
||||
#include "AssetPack.h"
|
||||
#include "Context.h"
|
||||
#include "Diagnostic.h"
|
||||
#include "PlatformEnvironment.h"
|
||||
#include "config/Config.h"
|
||||
#include "core/Console.hpp"
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
#include "CommandLineSprite.h"
|
||||
|
||||
#include "Context.h"
|
||||
#include "Diagnostic.h"
|
||||
#include "OpenRCT2.h"
|
||||
#include "core/FileStream.h"
|
||||
#include "core/Imaging.h"
|
||||
|
||||
@@ -9,7 +9,6 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "common.h"
|
||||
#include "drawing/ImageImporter.h"
|
||||
|
||||
int32_t CommandLineForSprite(const char** argv, int32_t argc);
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
*****************************************************************************/
|
||||
|
||||
#ifdef __EMSCRIPTEN__
|
||||
# include <cassert>
|
||||
# include <emscripten.h>
|
||||
#endif // __EMSCRIPTEN__
|
||||
|
||||
|
||||
+42
-43
@@ -9,9 +9,9 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "common.h"
|
||||
#include "core/String.hpp"
|
||||
#include "interface/WindowClasses.h"
|
||||
#include "localisation/StringIdType.h"
|
||||
#include "world/Location.hpp"
|
||||
|
||||
#include <memory>
|
||||
@@ -123,61 +123,60 @@ namespace OpenRCT2
|
||||
{
|
||||
virtual ~IContext() = default;
|
||||
|
||||
[[nodiscard]] virtual std::shared_ptr<Audio::IAudioContext> GetAudioContext() abstract;
|
||||
[[nodiscard]] virtual std::shared_ptr<Ui::IUiContext> GetUiContext() abstract;
|
||||
[[nodiscard]] virtual std::shared_ptr<IPlatformEnvironment> GetPlatformEnvironment() abstract;
|
||||
virtual Localisation::LocalisationService& GetLocalisationService() abstract;
|
||||
virtual IObjectManager& GetObjectManager() abstract;
|
||||
virtual IObjectRepository& GetObjectRepository() abstract;
|
||||
[[nodiscard]] virtual std::shared_ptr<Audio::IAudioContext> GetAudioContext() = 0;
|
||||
[[nodiscard]] virtual std::shared_ptr<Ui::IUiContext> GetUiContext() = 0;
|
||||
[[nodiscard]] virtual std::shared_ptr<IPlatformEnvironment> GetPlatformEnvironment() = 0;
|
||||
virtual Localisation::LocalisationService& GetLocalisationService() = 0;
|
||||
virtual IObjectManager& GetObjectManager() = 0;
|
||||
virtual IObjectRepository& GetObjectRepository() = 0;
|
||||
#ifdef ENABLE_SCRIPTING
|
||||
virtual Scripting::ScriptEngine& GetScriptEngine() abstract;
|
||||
virtual Scripting::ScriptEngine& GetScriptEngine() = 0;
|
||||
#endif
|
||||
virtual ITrackDesignRepository* GetTrackDesignRepository() abstract;
|
||||
virtual IScenarioRepository* GetScenarioRepository() abstract;
|
||||
virtual IReplayManager* GetReplayManager() abstract;
|
||||
virtual AssetPackManager* GetAssetPackManager() abstract;
|
||||
virtual IGameStateSnapshots* GetGameStateSnapshots() abstract;
|
||||
virtual DrawingEngine GetDrawingEngineType() abstract;
|
||||
virtual Drawing::IDrawingEngine* GetDrawingEngine() abstract;
|
||||
virtual Paint::Painter* GetPainter() abstract;
|
||||
virtual ITrackDesignRepository* GetTrackDesignRepository() = 0;
|
||||
virtual IScenarioRepository* GetScenarioRepository() = 0;
|
||||
virtual IReplayManager* GetReplayManager() = 0;
|
||||
virtual AssetPackManager* GetAssetPackManager() = 0;
|
||||
virtual IGameStateSnapshots* GetGameStateSnapshots() = 0;
|
||||
virtual DrawingEngine GetDrawingEngineType() = 0;
|
||||
virtual Drawing::IDrawingEngine* GetDrawingEngine() = 0;
|
||||
virtual Paint::Painter* GetPainter() = 0;
|
||||
#ifndef DISABLE_NETWORK
|
||||
virtual NetworkBase& GetNetwork() abstract;
|
||||
virtual NetworkBase& GetNetwork() = 0;
|
||||
#endif
|
||||
|
||||
virtual IScene* GetPreloaderScene() abstract;
|
||||
virtual IScene* GetIntroScene() abstract;
|
||||
virtual IScene* GetTitleScene() abstract;
|
||||
virtual IScene* GetGameScene() abstract;
|
||||
virtual IScene* GetEditorScene() abstract;
|
||||
virtual IScene* GetPreloaderScene() = 0;
|
||||
virtual IScene* GetIntroScene() = 0;
|
||||
virtual IScene* GetTitleScene() = 0;
|
||||
virtual IScene* GetGameScene() = 0;
|
||||
virtual IScene* GetEditorScene() = 0;
|
||||
|
||||
virtual IScene* GetActiveScene() abstract;
|
||||
virtual void SetActiveScene(IScene* screen) abstract;
|
||||
virtual IScene* GetActiveScene() = 0;
|
||||
virtual void SetActiveScene(IScene* screen) = 0;
|
||||
|
||||
virtual int32_t RunOpenRCT2(int argc, const char** argv) abstract;
|
||||
virtual int32_t RunOpenRCT2(int argc, const char** argv) = 0;
|
||||
|
||||
virtual bool Initialise() abstract;
|
||||
virtual void InitialiseDrawingEngine() abstract;
|
||||
virtual void DisposeDrawingEngine() abstract;
|
||||
virtual bool Initialise() = 0;
|
||||
virtual void InitialiseDrawingEngine() = 0;
|
||||
virtual void DisposeDrawingEngine() = 0;
|
||||
|
||||
virtual void OpenProgress(StringId captionStringId) abstract;
|
||||
virtual void SetProgress(uint32_t currentProgress, uint32_t totalCount, StringId format = STR_NONE) abstract;
|
||||
virtual void CloseProgress() abstract;
|
||||
virtual void OpenProgress(StringId captionStringId) = 0;
|
||||
virtual void SetProgress(uint32_t currentProgress, uint32_t totalCount, StringId format = STR_NONE) = 0;
|
||||
virtual void CloseProgress() = 0;
|
||||
|
||||
virtual bool LoadParkFromFile(
|
||||
const u8string& path, bool loadTitleScreenOnFail = false, bool asScenario = false) abstract;
|
||||
virtual bool LoadParkFromFile(const u8string& path, bool loadTitleScreenOnFail = false, bool asScenario = false) = 0;
|
||||
virtual bool LoadParkFromStream(
|
||||
IStream* stream, const std::string& path, bool loadTitleScreenFirstOnFail = false,
|
||||
bool asScenario = false) abstract;
|
||||
virtual void WriteLine(const std::string& s) abstract;
|
||||
virtual void WriteErrorLine(const std::string& s) abstract;
|
||||
virtual void Finish() abstract;
|
||||
virtual void Quit() abstract;
|
||||
IStream* stream, const std::string& path, bool loadTitleScreenFirstOnFail = false, bool asScenario = false)
|
||||
= 0;
|
||||
virtual void WriteLine(const std::string& s) = 0;
|
||||
virtual void WriteErrorLine(const std::string& s) = 0;
|
||||
virtual void Finish() = 0;
|
||||
virtual void Quit() = 0;
|
||||
|
||||
virtual bool HasNewVersionInfo() const abstract;
|
||||
virtual const NewVersionInfo* GetNewVersionInfo() const abstract;
|
||||
virtual bool HasNewVersionInfo() const = 0;
|
||||
virtual const NewVersionInfo* GetNewVersionInfo() const = 0;
|
||||
|
||||
virtual void SetTimeScale(float newScale) abstract;
|
||||
virtual float GetTimeScale() const abstract;
|
||||
virtual void SetTimeScale(float newScale) = 0;
|
||||
virtual float GetTimeScale() const = 0;
|
||||
};
|
||||
|
||||
[[nodiscard]] std::unique_ptr<IContext> CreateContext();
|
||||
|
||||
+1
-1
@@ -9,7 +9,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "common.h"
|
||||
#include <cstdint>
|
||||
|
||||
constexpr int32_t kMaxYear = 8192;
|
||||
constexpr int32_t kTicksPerMonth = 0x10000;
|
||||
|
||||
@@ -49,6 +49,7 @@
|
||||
#include "world/Scenery.h"
|
||||
|
||||
#include <array>
|
||||
#include <cassert>
|
||||
#include <vector>
|
||||
|
||||
using namespace OpenRCT2;
|
||||
|
||||
@@ -9,7 +9,6 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "common.h"
|
||||
#include "object/Object.h"
|
||||
|
||||
struct ResultWithMessage;
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
#include "EditorObjectSelectionSession.h"
|
||||
|
||||
#include "Context.h"
|
||||
#include "Diagnostic.h"
|
||||
#include "Editor.h"
|
||||
#include "Game.h"
|
||||
#include "GameState.h"
|
||||
|
||||
@@ -9,7 +9,6 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "common.h"
|
||||
#include "object/Object.h"
|
||||
#include "util/Util.h"
|
||||
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
|
||||
#include "FileClassifier.h"
|
||||
|
||||
#include "Diagnostic.h"
|
||||
#include "core/Console.hpp"
|
||||
#include "core/FileStream.h"
|
||||
#include "core/Path.hpp"
|
||||
|
||||
@@ -9,7 +9,6 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "common.h"
|
||||
#include "core/String.hpp"
|
||||
|
||||
enum class FileExtension
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
|
||||
#include "Cheats.h"
|
||||
#include "Context.h"
|
||||
#include "Diagnostic.h"
|
||||
#include "Editor.h"
|
||||
#include "FileClassifier.h"
|
||||
#include "GameState.h"
|
||||
|
||||
@@ -9,7 +9,6 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "common.h"
|
||||
#include "core/String.hpp"
|
||||
|
||||
#include <memory>
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
|
||||
#include "GameStateSnapshots.h"
|
||||
|
||||
#include "Diagnostic.h"
|
||||
#include "core/CircularBuffer.h"
|
||||
#include "entity/Balloon.h"
|
||||
#include "entity/Duck.h"
|
||||
@@ -35,7 +36,7 @@ union EntitySnapshot
|
||||
{
|
||||
}
|
||||
};
|
||||
assert_struct_size(EntitySnapshot, 0x200);
|
||||
static_assert(sizeof(EntitySnapshot) == 0x200);
|
||||
#pragma pack(pop)
|
||||
|
||||
struct GameStateSnapshot_t
|
||||
|
||||
@@ -9,7 +9,6 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "common.h"
|
||||
#include "core/DataSerialiser.h"
|
||||
|
||||
#include <memory>
|
||||
|
||||
@@ -9,7 +9,6 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "common.h"
|
||||
#include "core/Identifier.hpp"
|
||||
|
||||
#include <limits>
|
||||
|
||||
@@ -9,7 +9,6 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "common.h"
|
||||
#include "core/String.hpp"
|
||||
|
||||
#include <string>
|
||||
|
||||
@@ -9,7 +9,6 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "common.h"
|
||||
#include "core/String.hpp"
|
||||
#include "object/Object.h"
|
||||
#include "object/ObjectList.h"
|
||||
@@ -51,14 +50,15 @@ struct IParkImporter
|
||||
public:
|
||||
virtual ~IParkImporter() = default;
|
||||
|
||||
virtual ParkLoadResult Load(const u8string& path) abstract;
|
||||
virtual ParkLoadResult LoadSavedGame(const u8string& path, bool skipObjectCheck = false) abstract;
|
||||
virtual ParkLoadResult LoadScenario(const u8string& path, bool skipObjectCheck = false) abstract;
|
||||
virtual ParkLoadResult Load(const u8string& path) = 0;
|
||||
virtual ParkLoadResult LoadSavedGame(const u8string& path, bool skipObjectCheck = false) = 0;
|
||||
virtual ParkLoadResult LoadScenario(const u8string& path, bool skipObjectCheck = false) = 0;
|
||||
virtual ParkLoadResult LoadFromStream(
|
||||
OpenRCT2::IStream* stream, bool isScenario, bool skipObjectCheck = false, const u8string& path = {}) abstract;
|
||||
OpenRCT2::IStream* stream, bool isScenario, bool skipObjectCheck = false, const u8string& path = {})
|
||||
= 0;
|
||||
|
||||
virtual void Import(OpenRCT2::GameState_t& gameState) abstract;
|
||||
virtual bool GetDetails(ScenarioIndexEntry* dst) abstract;
|
||||
virtual void Import(OpenRCT2::GameState_t& gameState) = 0;
|
||||
virtual bool GetDetails(ScenarioIndexEntry* dst) = 0;
|
||||
};
|
||||
|
||||
namespace ParkImporter
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
|
||||
#include "PlatformEnvironment.h"
|
||||
|
||||
#include "Diagnostic.h"
|
||||
#include "OpenRCT2.h"
|
||||
#include "config/Config.h"
|
||||
#include "core/File.h"
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "common.h"
|
||||
#include "Diagnostic.h"
|
||||
#include "core/String.hpp"
|
||||
|
||||
#include <memory>
|
||||
@@ -80,12 +80,12 @@ namespace OpenRCT2
|
||||
{
|
||||
virtual ~IPlatformEnvironment() = default;
|
||||
|
||||
virtual u8string GetDirectoryPath(DIRBASE base) const abstract;
|
||||
virtual u8string GetDirectoryPath(DIRBASE base, DIRID did) const abstract;
|
||||
virtual u8string GetFilePath(PATHID pathid) const abstract;
|
||||
virtual u8string FindFile(DIRBASE base, DIRID did, u8string_view fileName) const abstract;
|
||||
virtual void SetBasePath(DIRBASE base, u8string_view path) abstract;
|
||||
virtual bool IsUsingClassic() const abstract;
|
||||
virtual u8string GetDirectoryPath(DIRBASE base) const = 0;
|
||||
virtual u8string GetDirectoryPath(DIRBASE base, DIRID did) const = 0;
|
||||
virtual u8string GetFilePath(PATHID pathid) const = 0;
|
||||
virtual u8string FindFile(DIRBASE base, DIRID did, u8string_view fileName) const = 0;
|
||||
virtual void SetBasePath(DIRBASE base, u8string_view path) = 0;
|
||||
virtual bool IsUsingClassic() const = 0;
|
||||
};
|
||||
|
||||
[[nodiscard]] std::unique_ptr<IPlatformEnvironment> CreatePlatformEnvironment(DIRBASE_VALUES basePaths);
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
#include "ReplayManager.h"
|
||||
|
||||
#include "Context.h"
|
||||
#include "Diagnostic.h"
|
||||
#include "Game.h"
|
||||
#include "GameState.h"
|
||||
#include "GameStateSnapshots.h"
|
||||
|
||||
@@ -9,8 +9,6 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "common.h"
|
||||
|
||||
#include <memory>
|
||||
#include <set>
|
||||
#include <string>
|
||||
|
||||
@@ -9,7 +9,6 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "common.h"
|
||||
#include "core/IStream.hpp"
|
||||
#include "ride/TrackDesign.h"
|
||||
|
||||
@@ -25,10 +24,10 @@ struct ITrackImporter
|
||||
public:
|
||||
virtual ~ITrackImporter() = default;
|
||||
|
||||
virtual bool Load(const utf8* path) abstract;
|
||||
virtual bool LoadFromStream(OpenRCT2::IStream* stream) abstract;
|
||||
virtual bool Load(const utf8* path) = 0;
|
||||
virtual bool LoadFromStream(OpenRCT2::IStream* stream) = 0;
|
||||
|
||||
[[nodiscard]] virtual std::unique_ptr<TrackDesign> Import() abstract;
|
||||
[[nodiscard]] virtual std::unique_ptr<TrackDesign> Import() = 0;
|
||||
};
|
||||
|
||||
namespace TrackImporter
|
||||
|
||||
@@ -9,8 +9,6 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "common.h"
|
||||
|
||||
#include <string>
|
||||
|
||||
#define OPENRCT2_NAME "OpenRCT2"
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
|
||||
#include "BalloonPressAction.h"
|
||||
|
||||
#include "../Diagnostic.h"
|
||||
#include "../entity/Balloon.h"
|
||||
#include "../entity/EntityRegistry.h"
|
||||
#include "GameAction.h"
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
|
||||
#include "BannerPlaceAction.h"
|
||||
|
||||
#include "../Diagnostic.h"
|
||||
#include "../management/Finance.h"
|
||||
#include "../object/BannerSceneryEntry.h"
|
||||
#include "../object/ObjectEntryManager.h"
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
|
||||
#include "BannerRemoveAction.h"
|
||||
|
||||
#include "../Diagnostic.h"
|
||||
#include "../management/Finance.h"
|
||||
#include "../object/BannerSceneryEntry.h"
|
||||
#include "../object/ObjectEntryManager.h"
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
#include "BannerSetColourAction.h"
|
||||
|
||||
#include "../Context.h"
|
||||
#include "../Diagnostic.h"
|
||||
#include "../management/Finance.h"
|
||||
#include "../windows/Intent.h"
|
||||
#include "../world/Banner.h"
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
#include "BannerSetNameAction.h"
|
||||
|
||||
#include "../Context.h"
|
||||
#include "../Diagnostic.h"
|
||||
#include "../core/String.hpp"
|
||||
#include "../drawing/Drawing.h"
|
||||
#include "../localisation/Localisation.h"
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
#include "BannerSetStyleAction.h"
|
||||
|
||||
#include "../Context.h"
|
||||
#include "../Diagnostic.h"
|
||||
#include "../management/Finance.h"
|
||||
#include "../util/Util.h"
|
||||
#include "../windows/Intent.h"
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
|
||||
#include "../Cheats.h"
|
||||
#include "../Context.h"
|
||||
#include "../Diagnostic.h"
|
||||
#include "../GameState.h"
|
||||
#include "../config/Config.h"
|
||||
#include "../core/String.hpp"
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
|
||||
#include "ClimateSetAction.h"
|
||||
|
||||
#include "../Diagnostic.h"
|
||||
#include "../GameState.h"
|
||||
|
||||
ClimateSetAction::ClimateSetAction(ClimateType climate)
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
#include "FootpathAdditionPlaceAction.h"
|
||||
|
||||
#include "../Cheats.h"
|
||||
#include "../Diagnostic.h"
|
||||
#include "../GameState.h"
|
||||
#include "../OpenRCT2.h"
|
||||
#include "../core/MemoryStream.h"
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
#include "FootpathAdditionRemoveAction.h"
|
||||
|
||||
#include "../Cheats.h"
|
||||
#include "../Diagnostic.h"
|
||||
#include "../GameState.h"
|
||||
#include "../OpenRCT2.h"
|
||||
#include "../core/MemoryStream.h"
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
#include "FootpathPlaceAction.h"
|
||||
|
||||
#include "../Cheats.h"
|
||||
#include "../Diagnostic.h"
|
||||
#include "../GameState.h"
|
||||
#include "../OpenRCT2.h"
|
||||
#include "../core/MemoryStream.h"
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
#include "GameAction.h"
|
||||
|
||||
#include "../Context.h"
|
||||
#include "../Diagnostic.h"
|
||||
#include "../GameState.h"
|
||||
#include "../ReplayManager.h"
|
||||
#include "../core/Guard.hpp"
|
||||
|
||||
@@ -10,7 +10,6 @@
|
||||
#pragma once
|
||||
|
||||
#include "../Game.h"
|
||||
#include "../common.h"
|
||||
#include "../core/DataSerialiser.h"
|
||||
#include "../core/Identifier.hpp"
|
||||
#include "../localisation/StringIds.h"
|
||||
@@ -234,12 +233,12 @@ public:
|
||||
/**
|
||||
* Query the result of the game action without changing the game state.
|
||||
*/
|
||||
virtual GameActions::Result Query() const abstract;
|
||||
virtual GameActions::Result Query() const = 0;
|
||||
|
||||
/**
|
||||
* Apply the game action and change the game state.
|
||||
*/
|
||||
virtual GameActions::Result Execute() const abstract;
|
||||
virtual GameActions::Result Execute() const = 0;
|
||||
|
||||
bool LocationValid(const CoordsXY& coords) const;
|
||||
};
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
|
||||
#include "GameSetSpeedAction.h"
|
||||
|
||||
#include "../Diagnostic.h"
|
||||
#include "../config/Config.h"
|
||||
|
||||
using namespace OpenRCT2;
|
||||
|
||||
Loaded 100 of 539 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user