mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-15 11:03:00 +01:00
Include necessary files for compiling headers
This commits works towards #7289. It includes files that it depends on, or forward declares types when possible. It may seem like this only increases compilation time, but before this commit they depended on the other includes of the source files that use them.
This commit is contained in:
committed by
Michał Janiszewski
parent
69bb1cdf82
commit
a51462b0fd
@@ -19,6 +19,7 @@
|
||||
#include "../Context.h"
|
||||
#include "../core/String.hpp"
|
||||
#include "../drawing/Drawing.h"
|
||||
#include "../localisation/Localisation.h"
|
||||
#include "../localisation/StringIds.h"
|
||||
#include "../ui/UiContext.h"
|
||||
#include "../world/Sprite.h"
|
||||
|
||||
@@ -26,6 +26,7 @@
|
||||
#include "../management/Finance.h"
|
||||
#include "../ride/Track.h"
|
||||
#include "../ride/TrackData.h"
|
||||
#include "../world/Footpath.h"
|
||||
#include "../world/Park.h"
|
||||
|
||||
/** rct2: 0x00993CE9 */
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
|
||||
#include "../Context.h"
|
||||
#include "../drawing/Drawing.h"
|
||||
#include "../localisation/Localisation.h"
|
||||
#include "../localisation/StringIds.h"
|
||||
#include "../ui/UiContext.h"
|
||||
#include "../world/Sprite.h"
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
#include "GameAction.h"
|
||||
|
||||
#include "../Cheats.h"
|
||||
#include "../management/Finance.h"
|
||||
#include "../world/Park.h"
|
||||
#include "../world/Footpath.h"
|
||||
|
||||
|
||||
@@ -21,9 +21,12 @@
|
||||
#include "../core/MemoryStream.h"
|
||||
#include "../interface/Window.h"
|
||||
#include "../localisation/Localisation.h"
|
||||
#include "../management/NewsItem.h"
|
||||
#include "../ride/Ride.h"
|
||||
#include "../ui/UiContext.h"
|
||||
#include "../ui/WindowManager.h"
|
||||
#include "../world/Banner.h"
|
||||
#include "../world/Sprite.h"
|
||||
#include "../world/Park.h"
|
||||
#include "GameAction.h"
|
||||
#include "MazeSetTrackAction.hpp"
|
||||
|
||||
@@ -19,9 +19,11 @@
|
||||
#include "../Cheats.h"
|
||||
#include "../Context.h"
|
||||
#include "../core/MemoryStream.h"
|
||||
#include "../drawing/Drawing.h"
|
||||
#include "../interface/Window.h"
|
||||
#include "../localisation/Localisation.h"
|
||||
#include "../localisation/StringIds.h"
|
||||
#include "../ride/Ride.h"
|
||||
#include "../ui/UiContext.h"
|
||||
#include "../ui/WindowManager.h"
|
||||
#include "../world/Park.h"
|
||||
|
||||
@@ -16,13 +16,17 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "../common.h"
|
||||
#include "../core/MemoryStream.h"
|
||||
#include "../localisation/Localisation.h"
|
||||
#include "../localisation/StringIds.h"
|
||||
#include "GameAction.h"
|
||||
|
||||
#include "../Cheats.h"
|
||||
#include "../interface/Window.h"
|
||||
#include "../management/Finance.h"
|
||||
#include "../world/Park.h"
|
||||
#include "../world/Sprite.h"
|
||||
#include "../ride/Ride.h"
|
||||
|
||||
static rct_string_id _StatusErrorTitles[] =
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
|
||||
#include "../Context.h"
|
||||
#include "../drawing/Drawing.h"
|
||||
#include "../localisation/Localisation.h"
|
||||
#include "../localisation/StringIds.h"
|
||||
#include "../ui/UiContext.h"
|
||||
#include "../world/Sprite.h"
|
||||
|
||||
@@ -22,11 +22,13 @@
|
||||
|
||||
#include "../Cheats.h"
|
||||
#include "../Context.h"
|
||||
#include "../drawing/Drawing.h"
|
||||
#include "../peep/Staff.h"
|
||||
#include "../interface/Window.h"
|
||||
#include "../localisation/Localisation.h"
|
||||
#include "../windows/Intent.h"
|
||||
#include "../world/Park.h"
|
||||
#include "../world/Sprite.h"
|
||||
|
||||
struct StaffSetNameAction : public GameActionBase<GAME_COMMAND_SET_STAFF_NAME, GameActionResult>
|
||||
{
|
||||
|
||||
@@ -18,6 +18,8 @@
|
||||
|
||||
#include "../common.h"
|
||||
|
||||
interface IStream;
|
||||
|
||||
/**
|
||||
* Represents a zip file.
|
||||
*/
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
#include "../common.h"
|
||||
|
||||
struct rct_drawpixelinfo;
|
||||
struct rct_palette_entry;
|
||||
|
||||
extern rct_string_id DrawingEngineStringIds[3];
|
||||
|
||||
|
||||
@@ -18,6 +18,8 @@
|
||||
|
||||
#include "../common.h"
|
||||
|
||||
struct rct_drawpixelinfo;
|
||||
|
||||
namespace OpenRCT2 { namespace Drawing
|
||||
{
|
||||
interface IRainDrawer;
|
||||
|
||||
@@ -17,6 +17,8 @@
|
||||
#ifndef _WINDOW2_H_
|
||||
#define _WINDOW2_H_
|
||||
|
||||
#include "Window.h"
|
||||
|
||||
struct rct_research_item;
|
||||
struct rct_object_entry;
|
||||
|
||||
|
||||
@@ -17,6 +17,8 @@
|
||||
#ifndef _FORMAT_CODES_H_
|
||||
#define _FORMAT_CODES_H_
|
||||
|
||||
#include "../common.h"
|
||||
|
||||
uint32 format_get_code(const char *token);
|
||||
const char *format_get_token(uint32 code);
|
||||
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
|
||||
#include "../common.h"
|
||||
#include <string>
|
||||
#include <openssl/evp.h>
|
||||
|
||||
using EVP_PKEY = evp_pkey_st;
|
||||
using EVP_PKEY_CTX = evp_pkey_ctx_st;
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
#include "../common.h"
|
||||
|
||||
class Object;
|
||||
struct rct_object_entry;
|
||||
|
||||
namespace ObjectFactory
|
||||
{
|
||||
|
||||
@@ -17,6 +17,8 @@
|
||||
#ifndef _VIRTUAL_FLOOR_H
|
||||
#define _VIRTUAL_FLOOR_H
|
||||
|
||||
#include "../common.h"
|
||||
|
||||
struct paint_session;
|
||||
|
||||
uint16 virtual_floor_get_height();
|
||||
|
||||
@@ -17,7 +17,11 @@
|
||||
#ifndef _VEHICLE_PAINT_H
|
||||
#define _VEHICLE_PAINT_H
|
||||
|
||||
#include "Vehicle.h"
|
||||
#include "../common.h"
|
||||
|
||||
struct paint_session;
|
||||
struct rct_ride_entry_vehicle;
|
||||
struct rct_vehicle;
|
||||
|
||||
struct vehicle_boundbox {
|
||||
sint8 offset_x;
|
||||
|
||||
@@ -16,6 +16,11 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "../../common.h"
|
||||
|
||||
struct paint_session;
|
||||
struct rct_tile_element;
|
||||
|
||||
void bolliger_mabillard_track_flat(
|
||||
paint_session * session,
|
||||
uint8 rideIndex,
|
||||
|
||||
@@ -16,6 +16,8 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "../common.h"
|
||||
|
||||
interface IScenarioRepository;
|
||||
|
||||
interface ITitleSequencePlayer
|
||||
|
||||
@@ -17,6 +17,8 @@
|
||||
#ifndef _MAP_HELPERS_H_
|
||||
#define _MAP_HELPERS_H_
|
||||
|
||||
#include "../common.h"
|
||||
|
||||
enum {
|
||||
SLOPE_S_THRESHOLD_FLAGS = (1 << 0),
|
||||
SLOPE_W_THRESHOLD_FLAGS = (1 << 1),
|
||||
|
||||
Reference in New Issue
Block a user