equal
deleted
inserted
replaced
8 #include "station.h" |
8 #include "station.h" |
9 #include "town.h" |
9 #include "town.h" |
10 #include "newgrf_config.h" |
10 #include "newgrf_config.h" |
11 #include "helpers.hpp" |
11 #include "helpers.hpp" |
12 #include "cargotype.h" |
12 #include "cargotype.h" |
|
13 #include "industry.h" |
13 |
14 |
14 enum GrfLoadingStage { |
15 enum GrfLoadingStage { |
15 GLS_FILESCAN, |
16 GLS_FILESCAN, |
16 GLS_SAFETYSCAN, |
17 GLS_SAFETYSCAN, |
17 GLS_LABELSCAN, |
18 GLS_LABELSCAN, |
67 |
68 |
68 uint sound_offset; |
69 uint sound_offset; |
69 |
70 |
70 StationSpec **stations; |
71 StationSpec **stations; |
71 HouseSpec **housespec; |
72 HouseSpec **housespec; |
|
73 IndustrySpec **industryspec; |
|
74 IndustryTileSpec **indtspec; |
72 |
75 |
73 uint32 param[0x80]; |
76 uint32 param[0x80]; |
74 uint param_end; ///< one more than the highest set parameter |
77 uint param_end; ///< one more than the highest set parameter |
75 |
78 |
76 GRFLabel *label; ///< Pointer to the first label. This is a linked list, not an array. |
79 GRFLabel *label; ///< Pointer to the first label. This is a linked list, not an array. |
82 |
85 |
83 extern GRFFile *_first_grffile; |
86 extern GRFFile *_first_grffile; |
84 |
87 |
85 extern SpriteID _signal_base; |
88 extern SpriteID _signal_base; |
86 extern SpriteID _coast_base; |
89 extern SpriteID _coast_base; |
87 extern bool _have_2cc; |
90 |
88 extern bool _have_newhouses; |
91 enum GRFLoadedFeatures { |
|
92 GRFLOADED_2CC, // Set if any vehicle is loaded which uses 2cc (two company colours). |
|
93 GRFLOADED_NEWHOUSES, // Set if there are any newhouses loaded. |
|
94 GRFLOADED_NEWINDUSTRIES, // Set if there are any newindustries loaded. |
|
95 }; |
|
96 |
|
97 /* Indicates which are the newgrf features currently loaded ingame */ |
|
98 extern uint8 _loaded_newgrf_features; |
89 |
99 |
90 void LoadNewGRFFile(GRFConfig *config, uint file_index, GrfLoadingStage stage); |
100 void LoadNewGRFFile(GRFConfig *config, uint file_index, GrfLoadingStage stage); |
91 void LoadNewGRF(uint load_index, uint file_index); |
101 void LoadNewGRF(uint load_index, uint file_index); |
92 void ReloadNewGRFData(); // in openttd.cpp |
102 void ReloadNewGRFData(); // in openttd.cpp |
93 |
103 |