summaryrefslogtreecommitdiff
path: root/newgrf.h
diff options
context:
space:
mode:
Diffstat (limited to 'newgrf.h')
-rw-r--r--newgrf.h16
1 files changed, 12 insertions, 4 deletions
diff --git a/newgrf.h b/newgrf.h
index f3abac6e6..904d44419 100644
--- a/newgrf.h
+++ b/newgrf.h
@@ -13,14 +13,13 @@ typedef struct GRFLabel {
struct GRFLabel *next;
} GRFLabel;
-typedef struct GRFFile GRFFile;
-struct GRFFile {
+typedef struct GRFFile {
char *filename;
uint32 grfid;
uint16 flags;
uint16 sprite_offset;
SpriteID first_spriteset; ///< Holds the first spriteset's sprite offset.
- GRFFile *next;
+ struct GRFFile *next;
/* A sprite group contains all sprites of a given vehicle (or multiple
* vehicles) when carrying given cargo. It consists of several sprite
@@ -48,10 +47,19 @@ struct GRFFile {
uint param_end; /// one more than the highest set parameter
GRFLabel *label; ///< Pointer to the first label. This is a linked list, not an array.
-};
+} GRFFile;
extern GRFFile *_first_grffile;
+typedef struct GRFConfig {
+ const char *filename;
+ uint32 param[0x80];
+ byte num_params;
+
+ struct GRFConfig *next;
+} GRFConfig;
+
+extern GRFConfig *_first_grfconfig;
void LoadNewGRF(uint load_index, uint file_index);