mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-21 21:49:10 +00:00
(svn r20409) -Codechange: reduce the number of includes needed by newgrf.h
This commit is contained in:
14
src/newgrf.h
14
src/newgrf.h
@@ -12,12 +12,8 @@
|
|||||||
#ifndef NEWGRF_H
|
#ifndef NEWGRF_H
|
||||||
#define NEWGRF_H
|
#define NEWGRF_H
|
||||||
|
|
||||||
#include "newgrf_config.h"
|
|
||||||
#include "cargotype.h"
|
#include "cargotype.h"
|
||||||
#include "industry_type.h"
|
|
||||||
#include "station_type.h"
|
|
||||||
#include "rail_type.h"
|
#include "rail_type.h"
|
||||||
#include "house_type.h"
|
|
||||||
|
|
||||||
enum GrfLoadingStage {
|
enum GrfLoadingStage {
|
||||||
GLS_FILESCAN,
|
GLS_FILESCAN,
|
||||||
@@ -106,10 +102,10 @@ struct GRFFile {
|
|||||||
uint sound_offset;
|
uint sound_offset;
|
||||||
uint16 num_sounds;
|
uint16 num_sounds;
|
||||||
|
|
||||||
StationSpec **stations;
|
struct StationSpec **stations;
|
||||||
HouseSpec **housespec;
|
struct HouseSpec **housespec;
|
||||||
IndustrySpec **industryspec;
|
struct IndustrySpec **industryspec;
|
||||||
IndustryTileSpec **indtspec;
|
struct IndustryTileSpec **indtspec;
|
||||||
struct AirportSpec **airportspec;
|
struct AirportSpec **airportspec;
|
||||||
struct AirportTileSpec **airtspec;
|
struct AirportTileSpec **airtspec;
|
||||||
|
|
||||||
@@ -159,7 +155,7 @@ struct GRFLoadedFeatures {
|
|||||||
/* Indicates which are the newgrf features currently loaded ingame */
|
/* Indicates which are the newgrf features currently loaded ingame */
|
||||||
extern GRFLoadedFeatures _loaded_newgrf_features;
|
extern GRFLoadedFeatures _loaded_newgrf_features;
|
||||||
|
|
||||||
void LoadNewGRFFile(GRFConfig *config, uint file_index, GrfLoadingStage stage);
|
void LoadNewGRFFile(struct GRFConfig *config, uint file_index, GrfLoadingStage stage);
|
||||||
void LoadNewGRF(uint load_index, uint file_index);
|
void LoadNewGRF(uint load_index, uint file_index);
|
||||||
void ReloadNewGRFData(); // in saveload/afterload.cpp
|
void ReloadNewGRFData(); // in saveload/afterload.cpp
|
||||||
|
|
||||||
|
@@ -13,6 +13,8 @@
|
|||||||
#define NEWGRF_DEBUG_H
|
#define NEWGRF_DEBUG_H
|
||||||
|
|
||||||
#include "newgrf.h"
|
#include "newgrf.h"
|
||||||
|
#include "core/smallvec_type.hpp"
|
||||||
|
#include "tile_type.h"
|
||||||
#include "vehicle_type.h"
|
#include "vehicle_type.h"
|
||||||
|
|
||||||
/** Current state of spritepicker */
|
/** Current state of spritepicker */
|
||||||
|
@@ -27,6 +27,7 @@
|
|||||||
#include "newgrf_house.h"
|
#include "newgrf_house.h"
|
||||||
#include "newgrf_commons.h"
|
#include "newgrf_commons.h"
|
||||||
#include "newgrf_text.h"
|
#include "newgrf_text.h"
|
||||||
|
#include "newgrf_config.h"
|
||||||
#include "autoslope.h"
|
#include "autoslope.h"
|
||||||
#include "tunnelbridge_map.h"
|
#include "tunnelbridge_map.h"
|
||||||
#include "strings_func.h"
|
#include "strings_func.h"
|
||||||
|
Reference in New Issue
Block a user