1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-04 13:42:55 +01:00

Remove __cplusplus ifdefs

This commit is contained in:
Gymnasiast
2018-02-01 19:01:47 +01:00
committed by Michael Steenbeek
parent 778ba466c5
commit 34a6b5ef92
64 changed files with 16 additions and 302 deletions

View File

@@ -103,8 +103,6 @@ enum
SHORTCUT_UNDEFINED = 0xFFFF,
};
#ifdef __cplusplus
#include <string>
namespace OpenRCT2
@@ -138,8 +136,6 @@ namespace OpenRCT2
}
}
#endif
typedef struct rct_window rct_window;
/** The current shortcut being changed. */

View File

@@ -19,7 +19,6 @@
#include "common.h"
#include "object/Object.h"
#ifdef __cplusplus
extern bool _maxObjectsWasHit;
extern uint8 * _objectSelectionFlags;
extern sint32 _numSelectedObjectsForType[OBJECT_TYPE_COUNT];
@@ -30,7 +29,6 @@ void unload_unselected_objects();
bool sub_6AB211();
void reset_selected_object_count_and_size();
sint32 window_editor_object_selection_select_object(uint8 bh, sint32 flags, const rct_object_entry *entry);
#endif
/**
* Removes all unused objects from the object selection.

View File

@@ -16,8 +16,6 @@
#pragma once
#ifdef __cplusplus
#include "../common.h"
/**
@@ -111,5 +109,3 @@ namespace CommandLine
exitcode_t HandleCommandConvert(CommandLineArgEnumerator * enumerator);
exitcode_t HandleCommandUri(CommandLineArgEnumerator * enumerator);
}
#endif

View File

@@ -224,16 +224,6 @@ enum MEASUREMENT_FORMAT
MEASUREMENT_FORMAT_SI
};
#ifndef __cplusplus
// This is only for C files, C++ files should use FULLSCREEN_MODE in UiContext.h
enum
{
FULLSCREEN_MODE_WINDOWED,
FULLSCREEN_MODE_FULLSCREEN,
FULLSCREEN_MODE_FULLSCREEN_DESKTOP,
};
#endif
extern GeneralConfiguration gConfigGeneral;
extern InterfaceConfiguration gConfigInterface;
extern SoundConfiguration gConfigSound;

View File

@@ -18,8 +18,6 @@
#include "../common.h"
#ifdef __cplusplus
template <size_t size>
struct ByteSwapT { };
@@ -58,5 +56,3 @@ static T ByteSwapBE(const T& value)
{
return ByteSwapT<sizeof(T)>::SwapBE(value);
}
#endif

View File

@@ -16,8 +16,6 @@
#pragma once
#ifdef __cplusplus
#include <string>
#include <vector>
#include "../common.h"
@@ -33,5 +31,3 @@ namespace File
std::vector<std::string> ReadAllLines(const std::string &path);
uint64 GetLastModified(const std::string &path);
}
#endif

View File

@@ -16,8 +16,6 @@
#pragma once
#ifdef __cplusplus
#include <string>
#include <vector>
#include "../common.h"
@@ -70,5 +68,3 @@ namespace Path
std::vector<std::string> GetDirectories(const std::string &path);
}
#endif

View File

@@ -16,8 +16,6 @@
#pragma once
#ifdef __cplusplus
#include "../common.h"
template<typename T>
@@ -61,5 +59,3 @@ private:
T _value;
bool _hasValue;
};
#endif

View File

@@ -16,8 +16,6 @@
#pragma once
#ifdef __cplusplus
#include "../common.h"
/**
@@ -57,5 +55,3 @@ namespace Zip
IZipArchive * Open(const utf8 * path, ZIP_ACCESS zipAccess);
IZipArchive * TryOpen(const utf8 * path, ZIP_ACCESS zipAccess);
}
#endif

View File

@@ -16,8 +16,6 @@
#pragma once
#ifdef __cplusplus
#include "../common.h"
#include "Drawing.h"
@@ -42,5 +40,3 @@ namespace OpenRCT2 { namespace Drawing
virtual void DrawGlyph(uint32 image, sint32 x, sint32 y, uint8 * palette) abstract;
};
} }
#endif

View File

@@ -37,8 +37,6 @@ enum DRAWING_ENGINE_FLAGS
DEF_DIRTY_OPTIMISATIONS = 1 << 0,
};
#ifdef __cplusplus
struct rct_drawpixelinfo;
struct rct_palette_entry;
@@ -83,5 +81,3 @@ namespace OpenRCT2 { namespace Drawing
sint32 yStart) abstract;
};
} }
#endif

View File

@@ -16,8 +16,6 @@
#pragma once
#ifdef __cplusplus
#include "../common.h"
namespace OpenRCT2 { namespace Drawing
@@ -26,5 +24,3 @@ namespace OpenRCT2 { namespace Drawing
} }
void DrawRain(rct_drawpixelinfo * dpi, OpenRCT2::Drawing::IRainDrawer * rainDrawer);
#endif

View File

@@ -16,8 +16,6 @@
#pragma once
#ifdef __cplusplus
#include "../common.h"
#include "IDrawingContext.h"
#include "IDrawingEngine.h"
@@ -153,5 +151,3 @@ namespace OpenRCT2
};
}
}
#endif

View File

@@ -51,8 +51,6 @@ enum CURSOR_ID
CURSOR_COUNT,
};
#ifdef __cplusplus
namespace OpenRCT2 { namespace Ui
{
constexpr size_t CURSOR_BIT_WIDTH = 32;
@@ -68,5 +66,3 @@ namespace OpenRCT2 { namespace Ui
uint8 Mask[CURSOR_BIT_WIDTH * CURSOR_HEIGHT];
};
} }
#endif

View File

@@ -17,10 +17,7 @@
#ifndef _LANGUAGE_H_
#define _LANGUAGE_H_
#ifdef __cplusplus
#include <string>
#endif
#include "../common.h"
#include "../drawing/Font.h"
@@ -72,15 +69,13 @@ typedef enum RCT2LanguageId
#define FONT_OPENRCT2_SPRITE NULL
#ifdef __cplusplus
#include "../interface/FontFamilies.h"
#endif
typedef struct language_descriptor {
const char *locale;
const utf8 *english_name;
const utf8 *native_name;
#if defined(__cplusplus) && !defined(NO_TTF)
#if !defined(NO_TTF)
TTFontFamily const * font_family;
#else
void * font_family;
@@ -117,9 +112,6 @@ utf8 *rct2_language_string_to_utf8(const char *src, size_t srcSize, RCT2Language
bool language_get_localised_scenario_strings(const utf8 *scenarioFilename, rct_string_id *outStringIds);
void language_free_object_string(rct_string_id stringId);
rct_string_id language_get_object_override_string_id(const char * identifier, uint8 index);
#ifdef __cplusplus
rct_string_id language_allocate_object_string(const std::string &target);
#endif
#endif

View File

@@ -16,8 +16,6 @@
#pragma once
#ifdef __cplusplus
#include <string>
#include "../common.h"
@@ -40,5 +38,3 @@ namespace LanguagePackFactory
ILanguagePack * FromFile(uint16 id, const utf8 * path);
ILanguagePack * FromText(uint16 id, const utf8 * text);
}
#endif

View File

@@ -16,8 +16,6 @@
#pragma once
#ifdef __cplusplus
#include <vector>
#include <string>
#include "../common.h"
@@ -45,5 +43,3 @@ public:
static sint32 FindCommand(sint32 command);
static sint32 FindCommandByPermissionName(const std::string &permission_name);
};
#endif

View File

@@ -16,8 +16,6 @@
#pragma once
#ifdef __cplusplus
#ifndef DISABLE_NETWORK
#include <list>
#include <memory>
@@ -67,4 +65,3 @@ private:
};
#endif // DISABLE_NETWORK
#endif

View File

@@ -16,8 +16,6 @@
#pragma once
#ifdef __cplusplus
#include <array>
#include <jansson.h>
#include <string>
@@ -49,5 +47,3 @@ public:
private:
std::string _name;
};
#endif

View File

@@ -19,10 +19,7 @@
#ifndef DISABLE_NETWORK
#ifdef __cplusplus
#include "../common.h"
#include <string>
typedef struct evp_pkey_st EVP_PKEY;
@@ -51,8 +48,6 @@ private:
EVP_PKEY * _key = nullptr;
};
#endif
#endif // DISABLE_NETWORK
#endif // NETWORKKEY_H

View File

@@ -16,8 +16,6 @@
#pragma once
#ifdef __cplusplus
#include <memory>
#include <vector>
#include "NetworkTypes.h"
@@ -76,5 +74,3 @@ public:
return *this;
}
};
#endif

View File

@@ -16,8 +16,6 @@
#pragma once
#ifdef __cplusplus
#include <string>
#include "../common.h"
@@ -54,5 +52,3 @@ public:
void Write(NetworkPacket &packet);
void AddMoneySpent(money32 cost);
};
#endif

View File

@@ -16,8 +16,6 @@
#pragma once
#ifdef __cplusplus
#include "../common.h"
enum class ADVERTISE_STATUS
@@ -36,5 +34,3 @@ interface INetworkServerAdvertiser
};
INetworkServerAdvertiser * CreateServerAdvertiser(uint16 port);
#endif

View File

@@ -16,8 +16,6 @@
#pragma once
#ifdef __cplusplus
#include "../common.h"
#include "../core/Nullable.hpp"
@@ -68,5 +66,3 @@ private:
void DisposeUsers();
static void GetStorePath(utf8 * buffer, size_t bufferSize);
};
#endif

View File

@@ -16,8 +16,6 @@
#pragma once
#ifdef __cplusplus
#include "../common.h"
enum SOCKET_STATUS
@@ -73,5 +71,3 @@ namespace Convert
uint16 HostToNetwork(uint16 value);
uint16 NetworkToHost(uint16 value);
}
#endif

View File

@@ -17,8 +17,6 @@
#ifndef _HTTP_H_
#define _HTTP_H_
#ifdef __cplusplus
#ifndef DISABLE_HTTP
#include <string>
#include <jansson.h>
@@ -78,5 +76,3 @@ void http_init();
void http_dispose();
#endif
#endif

View File

@@ -14,8 +14,7 @@
*****************************************************************************/
#pragma endregion
#ifndef _NETWORK_H_
#define _NETWORK_H_
#pragma once
enum {
NETWORK_MODE_NONE,
@@ -54,8 +53,6 @@ typedef struct GameAction GameAction;
#define NETWORK_STREAM_VERSION "30"
#define NETWORK_STREAM_ID OPENRCT2_VERSION "-" NETWORK_STREAM_VERSION
#ifdef __cplusplus
#include <array>
#include <list>
#include <set>
@@ -296,7 +293,6 @@ private:
std::ofstream _server_log_fs;
};
#endif // __cplusplus
#else /* DISABLE_NETWORK */
#define NETWORK_STREAM_ID "Multiplayer disabled"
#endif /* DISABLE_NETWORK */
@@ -369,5 +365,3 @@ const utf8 * network_get_server_greeting();
const utf8 * network_get_server_provider_name();
const utf8 * network_get_server_provider_email();
const utf8 * network_get_server_provider_website();
#endif

View File

@@ -16,8 +16,6 @@
#pragma once
#ifdef __cplusplus
#include "SceneryObject.h"
#include "../world/Scenery.h"
@@ -38,5 +36,3 @@ public:
void DrawPreview(rct_drawpixelinfo * dpi, sint32 width, sint32 height) const override;
};
#endif

View File

@@ -16,8 +16,6 @@
#pragma once
#ifdef __cplusplus
#include "Object.h"
#include "../world/Entrance.h"
@@ -38,5 +36,3 @@ public:
void DrawPreview(rct_drawpixelinfo * dpi, sint32 width, sint32 height) const override;
};
#endif

View File

@@ -16,8 +16,6 @@
#pragma once
#ifdef __cplusplus
#include "SceneryObject.h"
#include "../world/Scenery.h"
@@ -38,5 +36,3 @@ public:
void DrawPreview(rct_drawpixelinfo * dpi, sint32 width, sint32 height) const override;
};
#endif

View File

@@ -16,8 +16,6 @@
#pragma once
#ifdef __cplusplus
#include "Object.h"
#include "../world/Footpath.h"
@@ -38,5 +36,3 @@ public:
void DrawPreview(rct_drawpixelinfo * dpi, sint32 width, sint32 height) const override;
};
#endif

View File

@@ -16,8 +16,6 @@
#pragma once
#ifdef __cplusplus
#include <vector>
#include "../common.h"
@@ -40,5 +38,3 @@ public:
const rct_g1_element * GetImages() const { return _entries.data(); }
uint32 GetCount() const { return (uint32)_entries.size(); }
};
#endif

View File

@@ -16,8 +16,6 @@
#pragma once
#ifdef __cplusplus
#include "SceneryObject.h"
#include "../world/Scenery.h"
@@ -45,5 +43,3 @@ public:
private:
static rct_large_scenery_tile * ReadTiles(IStream * stream);
};
#endif

View File

@@ -17,14 +17,9 @@
#pragma once
#include "../common.h"
#ifdef __cplusplus
#include "ImageTable.h"
#include "StringTable.h"
#endif
// First 0xF of rct_object_entry->flags
typedef enum
{
@@ -131,8 +126,6 @@ typedef struct rct_object_filters {
assert_struct_size(rct_object_filters, 3);
#pragma pack(pop)
#ifdef __cplusplus
enum OBJ_STRING_ID
{
OBJ_STRING_ID_NAME,
@@ -222,8 +215,6 @@ enum OBJECT_ERROR : uint32
OBJECT_ERROR_UNEXPECTED_EOF,
};
#endif
extern sint32 object_entry_group_counts[];
extern sint32 object_entry_group_encoding[];

View File

@@ -16,8 +16,6 @@
#pragma once
#ifdef __cplusplus
#include "../common.h"
class Object;
@@ -28,5 +26,3 @@ namespace ObjectFactory
Object * CreateObjectFromLegacyData(const rct_object_entry * entry, const void * data, size_t dataSize);
Object * CreateObject(const rct_object_entry &entry);
}
#endif

View File

@@ -16,15 +16,10 @@
#pragma once
#ifdef __cplusplus
#include <vector>
#endif
#include <vector>
#include "../common.h"
#include "../object/Object.h"
#ifdef __cplusplus
interface IObjectRepository;
class Object;
struct ObjectRepositoryItem;
@@ -51,8 +46,6 @@ interface IObjectManager
IObjectManager * CreateObjectManager(IObjectRepository * objectRepository);
IObjectManager * GetObjectManager();
#endif
void * object_manager_get_loaded_object_by_index(size_t index);
void * object_manager_get_loaded_object(const rct_object_entry * entry);
uint8 object_manager_get_loaded_object_entry_index(const void * loadedObject);

View File

@@ -16,25 +16,18 @@
#pragma once
#ifdef __cplusplus
#include <vector>
#endif
#include <vector>
#include "../common.h"
#include "../object/Object.h"
#include "../ride/Ride.h"
#ifdef __cplusplus
interface IStream;
class Object;
namespace OpenRCT2
{
interface IPlatformEnvironment;
}
#else
typedef struct Object Object;
#endif
interface IStream;
class Object;
namespace OpenRCT2
{
interface IPlatformEnvironment;
}
typedef struct rct_drawpixelinfo rct_drawpixelinfo;
@@ -62,8 +55,6 @@ typedef struct ObjectRepositoryItem
};
} ObjectRepositoryItem;
#ifdef __cplusplus
interface IObjectRepository
{
virtual ~IObjectRepository() { }
@@ -92,8 +83,6 @@ IObjectRepository * GetObjectRepository();
bool IsObjectCustom(const ObjectRepositoryItem * object);
#endif
size_t object_repository_get_items_count();
const ObjectRepositoryItem * object_repository_get_items();
const ObjectRepositoryItem * object_repository_find_object_by_entry(const rct_object_entry * entry);

View File

@@ -16,8 +16,6 @@
#pragma once
#ifdef __cplusplus
#include "Object.h"
#include "../ride/Ride.h"
@@ -54,5 +52,3 @@ private:
static uint8 CalculateNumVerticalFrames(const rct_ride_entry_vehicle * vehicleEntry);
static uint8 CalculateNumHorizontalFrames(const rct_ride_entry_vehicle * vehicleEntry);
};
#endif

View File

@@ -16,8 +16,6 @@
#pragma once
#ifdef __cplusplus
#include "Object.h"
#include "../world/Scenery.h"
@@ -49,5 +47,3 @@ public:
private:
void ReadItems(IStream * stream);
};
#endif

View File

@@ -16,8 +16,6 @@
#pragma once
#ifdef __cplusplus
#include "Object.h"
class SceneryObject : public Object
@@ -34,5 +32,3 @@ public:
protected:
void SetPrimarySceneryGroup(const rct_object_entry * entry) { _primarySceneryGroupEntry = *entry; }
};
#endif

View File

@@ -16,8 +16,6 @@
#pragma once
#ifdef __cplusplus
#include "SceneryObject.h"
#include "../world/Scenery.h"
@@ -47,5 +45,3 @@ private:
rct_object_entry GetScgMineHeader();
rct_object_entry GetScgAbstrHeader();
};
#endif

View File

@@ -16,8 +16,6 @@
#pragma once
#ifdef __cplusplus
#include "Object.h"
#include "../scenario/Scenario.h"
@@ -44,5 +42,3 @@ public:
std::string GetScenarioDetails() const;
std::string GetParkName() const;
};
#endif

View File

@@ -16,8 +16,6 @@
#pragma once
#ifdef __cplusplus
#include <string>
#include <vector>
#include "../common.h"
@@ -43,5 +41,3 @@ public:
std::string GetString(uint8 id) const;
void SetString(uint8 id, uint8 language, const std::string &text);
};
#endif

View File

@@ -16,8 +16,6 @@
#pragma once
#ifdef __cplusplus
#include "SceneryObject.h"
#include "../world/Scenery.h"
@@ -38,5 +36,3 @@ public:
void DrawPreview(rct_drawpixelinfo * dpi, sint32 width, sint32 height) const override;
};
#endif

View File

@@ -16,8 +16,6 @@
#pragma once
#ifdef __cplusplus
#include "Object.h"
#include "../world/Water.h"
@@ -38,5 +36,3 @@ public:
void DrawPreview(rct_drawpixelinfo * dpi, sint32 width, sint32 height) const override;
};
#endif

View File

@@ -16,8 +16,6 @@
#pragma once
#ifdef __cplusplus
#include <ctime>
#include <string>
#include "../common.h"
@@ -47,5 +45,3 @@ namespace Platform
std::string FormatShortDate(std::time_t timestamp);
std::string FormatTime(std::time_t timestamp);
}
#endif

View File

@@ -16,11 +16,8 @@
#pragma once
#include "../common.h"
#ifdef __cplusplus
#include <vector>
#include "../common.h"
namespace RCT1
{
@@ -52,5 +49,3 @@ namespace RCT1
const std::vector<const char *> GetSceneryObjects(uint8 sceneryType);
}
#endif

View File

@@ -16,8 +16,6 @@
#pragma once
#ifdef __cplusplus
#include "../common.h"
/**
@@ -49,5 +47,3 @@ public:
SawyerChunk(SAWYER_ENCODING encoding, void * data, size_t length);
~SawyerChunk();
};
#endif

View File

@@ -16,8 +16,6 @@
#pragma once
#ifdef __cplusplus
#include <memory>
#include "../common.h"
#include "../util/SawyerCoding.h"
@@ -78,5 +76,3 @@ private:
static size_t DecodeChunkRepeat(void * dst, size_t dstCapacity, const void * src, size_t srcLength);
static size_t DecodeChunkRotate(void * dst, size_t dstCapacity, const void * src, size_t srcLength);
};
#endif

View File

@@ -16,8 +16,6 @@
#pragma once
#ifdef __cplusplus
#include <memory>
#include "../common.h"
#include "SawyerChunk.h"
@@ -57,5 +55,3 @@ public:
WriteChunk(src, sizeof(T), encoding);
}
};
#endif

View File

@@ -16,8 +16,6 @@
#pragma once
#ifdef __cplusplus
#include "../common.h"
interface IStream;
@@ -26,5 +24,3 @@ namespace SawyerEncoding
{
bool ValidateChecksum(IStream * stream);
}
#endif

View File

@@ -267,8 +267,6 @@ typedef struct rct2_ride {
} rct2_ride;
assert_struct_size(rct2_ride, 0x260);
#ifdef __cplusplus
/**
* scores.dat file header.
* size: 0x10
@@ -303,8 +301,6 @@ struct rct_scores_entry
};
assert_struct_size(rct_scores_entry, 0x02B0);
#endif // __cplusplus
#pragma pack(pop)
#endif

View File

@@ -16,8 +16,6 @@
#pragma once
#ifdef __cplusplus
#include <string>
#include <vector>
#include "../common.h"
@@ -56,5 +54,3 @@ private:
void ExportResearchedSceneryItems();
void ExportResearchList();
};
#endif

View File

@@ -797,10 +797,8 @@ enum ride_type_flags {
RIDE_TYPE_FLAG_HAS_LARGE_CURVES = 1 << 30, // whether the ride supports large (45 degree turn) curves
RIDE_TYPE_FLAG_SUPPORTS_MULTIPLE_TRACK_COLOUR = 1u << 31,
};
#ifdef __cplusplus
// Hack for MSVC which thinks RIDE_TYPE_FLAG_SUPPORTS_MULTIPLE_TRACK_COLOUR = 1u << 31 is signed and generates narrowing conversion warnings
constexpr inline uint32 operator | (ride_type_flags a, ride_type_flags b) { return static_cast<ride_type_flags>(static_cast<uint32>(a) | static_cast<uint32>(b)); }
#endif
enum {
RIDE_CRASH_TYPE_NONE = 0,

View File

@@ -51,8 +51,6 @@ typedef struct scenario_index_entry
utf8 details[256];
} scenario_index_entry;
#ifdef __cplusplus
namespace OpenRCT2
{
interface IPlatformEnvironment;
@@ -82,8 +80,6 @@ interface IScenarioRepository
IScenarioRepository * CreateScenarioRepository(OpenRCT2::IPlatformEnvironment * env);
IScenarioRepository * GetScenarioRepository();
#endif
void scenario_repository_scan();
size_t scenario_repository_get_count();
const scenario_index_entry *scenario_repository_get_by_index(size_t index);

View File

@@ -27,8 +27,6 @@ typedef struct source_desc
uint8 category;
} source_desc;
#ifdef __cplusplus
namespace ScenarioSources
{
bool TryGetByName(const utf8 * name, source_desc * outDesc);
@@ -36,8 +34,6 @@ namespace ScenarioSources
void NormaliseName(utf8 * buffer, size_t bufferSize, const utf8 * name);
}
#endif
bool scenario_get_source_desc(const utf8 *name, source_desc *outDesc);
bool scenario_get_source_desc_by_id(uint8 id, source_desc *outDesc);
void scenario_normalise_name(utf8 *buffer, size_t bufferSize, utf8 *name);

View File

@@ -20,7 +20,6 @@
#include "../drawing/Drawing.h"
#ifdef __cplusplus
interface ITitleSequencePlayer;
class TitleScreen final
@@ -52,7 +51,6 @@ private:
void TitleInitialise();
bool TryLoadSequence(bool loadPreview = false);
};
#endif
void title_load();
void title_create_windows();

View File

@@ -83,12 +83,8 @@ enum TITLE_SCRIPT
TITLE_SCRIPT_LOADSC,
};
#ifdef __cplusplus
constexpr const utf8 * TITLE_SEQUENCE_EXTENSION = ".parkseq";
constexpr uint8 SAVE_INDEX_INVALID = UINT8_MAX;
#else
#define SAVE_INDEX_INVALID UINT8_MAX
#endif
constexpr const utf8 * TITLE_SEQUENCE_EXTENSION = ".parkseq";
constexpr uint8 SAVE_INDEX_INVALID = UINT8_MAX;
TitleSequence * CreateTitleSequence();
TitleSequence * LoadTitleSequence(const utf8 * path);

View File

@@ -15,12 +15,8 @@
#pragma endregion
#pragma once
#include "../common.h"
#ifdef __cplusplus
#include <string>
#include "../common.h"
struct TitleSequenceManagerItem
{
@@ -43,8 +39,6 @@ namespace TitleSequenceManager
constexpr const size_t PREDEFINED_INDEX_CUSTOM = SIZE_MAX;
#endif
size_t title_sequence_manager_get_count();
const utf8 * title_sequence_manager_get_name(size_t index);
const utf8 * title_sequence_manager_get_path(size_t index);

View File

@@ -16,8 +16,6 @@
#pragma once
#ifdef __cplusplus
interface IScenarioRepository;
interface ITitleSequencePlayer
@@ -35,12 +33,6 @@ interface ITitleSequencePlayer
ITitleSequencePlayer * CreateTitleSequencePlayer(IScenarioRepository * scenarioRepository);
#else
typedef struct ITitleSequencePlayer ITitleSequencePlayer;
#endif
// When testing title sequences within a normal game
extern bool gPreviewingTitleSequenceInGame;

View File

@@ -16,8 +16,6 @@
#pragma once
#ifdef __cplusplus
#include <string>
#include <vector>
#include "../common.h"
@@ -149,5 +147,3 @@ namespace OpenRCT2
IUiContext * CreateDummyUiContext();
}
}
#endif

View File

@@ -16,8 +16,6 @@
#pragma once
#ifdef __cplusplus
#include <string>
#include "../windows/Intent.h"
#include "../common.h"
@@ -51,5 +49,3 @@ namespace OpenRCT2
IWindowManager * CreateDummyWindowManager();
}
}
#endif

View File

@@ -17,13 +17,10 @@
#ifndef _MAP_H_
#define _MAP_H_
#include <initializer_list>
#include "../common.h"
#include "Location.h"
#ifdef __cplusplus
#include <initializer_list>
#endif
#pragma pack(push, 1)
typedef struct rct_tile_element_surface_properties {
uint8 slope; //4 0xE0 Edge Style, 0x1F Slope

View File

@@ -117,12 +117,9 @@ typedef struct rct_balloon {
uint8 pad_28[4];
uint8 colour; // 0x2C
#ifdef __cplusplus
void Update();
void Pop();
void Press();
#endif
} rct_balloon;
assert_struct_size(rct_balloon, 0x2D);
@@ -151,7 +148,6 @@ typedef struct rct_duck {
uint8 pad_34[0x14];
uint8 state; // 0x48
#ifdef __cplusplus
void UpdateFlyToWater();
void UpdateSwim();
void UpdateDrink();
@@ -161,7 +157,6 @@ typedef struct rct_duck {
void Invalidate();
void Remove();
void MoveTo(sint16 x, sint16 y, sint16 z);
#endif
} rct_duck;
assert_struct_size(rct_duck, 0x49);
@@ -339,12 +334,10 @@ typedef union {
rct_crash_splash crash_splash;
rct_steam_particle steam_particle;
#ifdef __cplusplus
bool IsBalloon();
bool IsDuck();
rct_balloon * AsBalloon();
rct_duck * AsDuck();
#endif
} rct_sprite;
assert_struct_size(rct_sprite, 0x100);