(svn r4568) CodeChange : Bring definitions and uses of DrawTypesStructures toguether.
This commit is contained in:
@@ -1,5 +1,21 @@
|
||||
/* $Id$ */
|
||||
|
||||
|
||||
typedef struct IndustryTileTable {
|
||||
TileIndexDiffC ti;
|
||||
IndustryGfx gfx;
|
||||
} IndustryTileTable;
|
||||
|
||||
typedef struct IndustrySpec {
|
||||
const IndustryTileTable *const *table;
|
||||
byte num_table;
|
||||
byte a,b,c;
|
||||
CargoID produced_cargo[2];
|
||||
byte production_rate[2];
|
||||
CargoID accepts_cargo[3];
|
||||
byte check_proc;
|
||||
} IndustrySpec;
|
||||
|
||||
#define MK(x,y, m) {{x, y}, m}
|
||||
|
||||
#define MKEND {{-0x80, 0}, 0}
|
||||
|
||||
@@ -1,8 +1,21 @@
|
||||
/* $Id$ */
|
||||
|
||||
typedef struct DrawIndustrySpec1Struct {
|
||||
byte x;
|
||||
byte image_1;
|
||||
byte image_2;
|
||||
byte image_3;
|
||||
} DrawIndustrySpec1Struct;
|
||||
|
||||
typedef struct DrawIndustrySpec4Struct {
|
||||
byte image_1;
|
||||
byte image_2;
|
||||
byte image_3;
|
||||
} DrawIndustrySpec4Struct;
|
||||
|
||||
#define M(s1, s2, sx, sy, w, h, dz, p) { s1, s2, sx, sy, w - 1, h - 1, dz, p }
|
||||
|
||||
static const DrawIndustryTileStruct _industry_draw_tile_data[700] = {
|
||||
static const DrawBuildingsTileStruct _industry_draw_tile_data[700] = {
|
||||
M( 0xf54, 0x7db, 7, 0, 9, 9, 10, 0),
|
||||
M( 0xf54, 0x7dc, 7, 0, 9, 9, 30, 0),
|
||||
M( 0xf54, 0x7dd, 7, 0, 9, 9, 30, 0),
|
||||
|
||||
@@ -28,7 +28,7 @@ enum {
|
||||
*/
|
||||
#define M(s1, s2, sx, sy, w, h, dz, p) {s1, s2, sx, sy, w - 1, h - 1, dz, p}
|
||||
|
||||
static const DrawTownTileStruct _town_draw_tile_data[] = {
|
||||
static const DrawBuildingsTileStruct _town_draw_tile_data[] = {
|
||||
M( 0xf54, 0x58d, 0, 0, 14, 14, 8, 0),
|
||||
M( 0xf54, 0x58e, 0, 0, 14, 14, 60, 0),
|
||||
M( 0xf54, 0x58f, 0, 0, 14, 14, 60, 0),
|
||||
|
||||
@@ -1,5 +1,15 @@
|
||||
/* $Id$ */
|
||||
|
||||
typedef struct DrawTileUnmovableStruct {
|
||||
uint16 image;
|
||||
byte subcoord_x;
|
||||
byte subcoord_y;
|
||||
byte width;
|
||||
byte height;
|
||||
byte z_size;
|
||||
byte unused;
|
||||
} DrawTileUnmovableStruct;
|
||||
|
||||
#define TILE_SEQ_END() { 0x80, 0, 0, 0, 0, 0, 0 }
|
||||
|
||||
static const DrawTileUnmovableStruct _draw_tile_unmovable_data[] = {
|
||||
|
||||
Reference in New Issue
Block a user