src/newgrf.h
branchnoai
changeset 9628 b5c2449616b5
parent 9625 3301b1b3889c
child 9722 ebf0ece7d8f6
equal deleted inserted replaced
9627:6a7c8ead2328 9628:b5c2449616b5
    86 extern GRFFile *_first_grffile;
    86 extern GRFFile *_first_grffile;
    87 
    87 
    88 extern SpriteID _signal_base;
    88 extern SpriteID _signal_base;
    89 extern SpriteID _coast_base;
    89 extern SpriteID _coast_base;
    90 
    90 
    91 enum GRFLoadedFeatures {
    91 struct GRFLoadedFeatures {
    92 	GRFLOADED_2CC,             // Set if any vehicle is loaded which uses 2cc (two company colours).
    92 	bool has_2CC;             ///< Set if any vehicle is loaded which uses 2cc (two company colours).
    93 	GRFLOADED_NEWHOUSES,       // Set if there are any newhouses loaded.
    93 	bool has_newhouses;       ///< Set if there are any newhouses loaded.
    94 	GRFLOADED_NEWINDUSTRIES,   // Set if there are any newindustries loaded.
    94 	bool has_newindustries;   ///< Set if there are any newindustries loaded.
    95 };
    95 };
    96 
    96 
    97 /* Indicates which are the newgrf features currently loaded ingame */
    97 /* Indicates which are the newgrf features currently loaded ingame */
    98 extern uint8 _loaded_newgrf_features;
    98 extern GRFLoadedFeatures _loaded_newgrf_features;
    99 
    99 
   100 void LoadNewGRFFile(GRFConfig *config, uint file_index, GrfLoadingStage stage);
   100 void LoadNewGRFFile(GRFConfig *config, uint file_index, GrfLoadingStage stage);
   101 void LoadNewGRF(uint load_index, uint file_index);
   101 void LoadNewGRF(uint load_index, uint file_index);
   102 void ReloadNewGRFData(); // in openttd.cpp
   102 void ReloadNewGRFData(); // in openttd.cpp
   103 
   103