src/newgrf.h
changeset 6143 dbca54e64e01
parent 5587 167d9a91ef02
child 6147 ee050ca3889f
equal deleted inserted replaced
6142:80f876e7bb9f 6143:dbca54e64e01
     4 #define NEWGRF_H
     4 #define NEWGRF_H
     5 
     5 
     6 #include "station.h"
     6 #include "station.h"
     7 #include "newgrf_config.h"
     7 #include "newgrf_config.h"
     8 #include "helpers.hpp"
     8 #include "helpers.hpp"
       
     9 #include "cargotype.h"
     9 
    10 
    10 typedef enum GrfLoadingStage {
    11 typedef enum GrfLoadingStage {
    11 	GLS_FILESCAN,
    12 	GLS_FILESCAN,
    12 	GLS_SAFETYSCAN,
    13 	GLS_SAFETYSCAN,
    13 	GLS_LABELSCAN,
    14 	GLS_LABELSCAN,
    58 
    59 
    59 	uint32 param[0x80];
    60 	uint32 param[0x80];
    60 	uint param_end; /// one more than the highest set parameter
    61 	uint param_end; /// one more than the highest set parameter
    61 
    62 
    62 	GRFLabel *label; ///< Pointer to the first label. This is a linked list, not an array.
    63 	GRFLabel *label; ///< Pointer to the first label. This is a linked list, not an array.
       
    64 
       
    65 	uint8 cargo_max;
       
    66 	CargoLabel *cargo_list;
    63 } GRFFile;
    67 } GRFFile;
    64 
    68 
    65 extern GRFFile *_first_grffile;
    69 extern GRFFile *_first_grffile;
    66 
    70 
    67 extern SpriteID _signal_base;
    71 extern SpriteID _signal_base;