src/newgrf.h
changeset 6658 59048224be55
parent 6574 e1d1a12faaf7
child 6674 64f4781b4653
equal deleted inserted replaced
6657:3bf9d9badb6b 6658:59048224be55
     2 
     2 
     3 #ifndef NEWGRF_H
     3 #ifndef NEWGRF_H
     4 #define NEWGRF_H
     4 #define NEWGRF_H
     5 
     5 
     6 #include "station.h"
     6 #include "station.h"
       
     7 #include "town.h"
     7 #include "newgrf_config.h"
     8 #include "newgrf_config.h"
     8 #include "helpers.hpp"
     9 #include "helpers.hpp"
     9 #include "cargotype.h"
    10 #include "cargotype.h"
    10 
    11 
    11 enum GrfLoadingStage {
    12 enum GrfLoadingStage {
    54 	struct SpriteGroup **spritegroups;
    55 	struct SpriteGroup **spritegroups;
    55 
    56 
    56 	uint sound_offset;
    57 	uint sound_offset;
    57 
    58 
    58 	StationSpec **stations;
    59 	StationSpec **stations;
       
    60 	HouseSpec **housespec;
    59 
    61 
    60 	uint32 param[0x80];
    62 	uint32 param[0x80];
    61 	uint param_end; /// one more than the highest set parameter
    63 	uint param_end; /// one more than the highest set parameter
    62 
    64 
    63 	GRFLabel *label; ///< Pointer to the first label. This is a linked list, not an array.
    65 	GRFLabel *label; ///< Pointer to the first label. This is a linked list, not an array.
    70 extern GRFFile *_first_grffile;
    72 extern GRFFile *_first_grffile;
    71 
    73 
    72 extern SpriteID _signal_base;
    74 extern SpriteID _signal_base;
    73 extern SpriteID _coast_base;
    75 extern SpriteID _coast_base;
    74 extern bool _have_2cc;
    76 extern bool _have_2cc;
       
    77 extern bool _have_newhouses;
    75 
    78 
    76 void LoadNewGRFFile(GRFConfig *config, uint file_index, GrfLoadingStage stage);
    79 void LoadNewGRFFile(GRFConfig *config, uint file_index, GrfLoadingStage stage);
    77 void LoadNewGRF(uint load_index, uint file_index);
    80 void LoadNewGRF(uint load_index, uint file_index);
    78 void ReloadNewGRFData(); // in openttd.c
    81 void ReloadNewGRFData(); // in openttd.c
    79 
    82