0
|
1 #pragma once
|
|
2
|
|
3
|
|
4
|
|
5 /* 327 */
|
|
6 enum TILE_DESC_FLAGS
|
|
7 {
|
|
8 TILE_DESC_BURNS = 0x1,
|
|
9 TILE_DESC_WATER = 0x2,
|
|
10 TILE_DESC_BLOCK = 0x4,
|
|
11 TILE_DESC_REPULSE = 0x8,
|
|
12 TILE_DESC_FLAT = 0x10,
|
|
13 TILE_DESC_WAVY = 0x20,
|
|
14 TILE_DESC_DONT_DRAW = 0x40,
|
|
15 TILE_DESC_WATER_2 = 0x100,
|
|
16 TILE_DESC_TRANSITION = 0x200,
|
|
17 TILE_DESC_SCROLL_DOWN = 0x400,
|
|
18 TILE_DESC_SCROLL_UP = 0x800,
|
|
19 TILE_DESC_SCROLL_LEFT = 0x1000,
|
|
20 TILE_DESC_SCROLL_RIGHT = 0x2000,
|
|
21 };
|
|
22
|
|
23
|
630
|
24 enum Tileset: unsigned __int16
|
|
25 {
|
|
26 Tileset_Grass = 0,
|
|
27 Tileset_Snow = 1,
|
|
28 Tileset_2 = 2,
|
|
29 Tileset_3 = 3,
|
|
30 Tileset_Dirt = 4,
|
|
31 Tileset_Water = 5,
|
|
32 Tileset_6 = 6,
|
|
33 Tileset_Swamp = 7,
|
|
34 Tileset_8 = 8,
|
|
35 Tileset_9 = 9,
|
|
36 Tileset_RoadGrassCobble = 10
|
|
37 };
|
0
|
38
|
|
39 /* 48 */
|
|
40 #pragma pack(push, 1)
|
|
41 struct TileDesc
|
|
42 {
|
|
43 char pTileName[16];
|
|
44 unsigned __int16 uTileID;
|
|
45 unsigned __int16 uBitmapID;
|
630
|
46 Tileset tileset;
|
0
|
47 unsigned __int16 uSection;
|
|
48 unsigned __int16 uAttributes;
|
|
49 };
|
|
50 #pragma pack(pop)
|
|
51
|
|
52 /* 49 */
|
|
53 #pragma pack(push, 1)
|
|
54 struct TileTable
|
|
55 {
|
|
56 //----- (00487E13) --------------------------------------------------------
|
|
57 TileTable()
|
|
58 {
|
|
59 this->pTiles = nullptr;
|
|
60 this->uNumTiles = 0;
|
|
61 }
|
|
62 ~TileTable();
|
|
63
|
|
64 TileDesc *GetTileById(unsigned int uTileID);
|
630
|
65 void InitializeTileset(Tileset tileset);
|
0
|
66 int method_487ED6(signed int a1, int a2);
|
|
67 unsigned int GetTileId(unsigned int uTerrainType, unsigned int uSection);
|
|
68 void ToFile();
|
|
69 void FromFile(void *pSerialized);
|
|
70 int FromFileTxt(const char *pFilename);
|
|
71
|
|
72 unsigned int uNumTiles;
|
|
73 struct TileDesc *pTiles;
|
|
74 };
|
|
75 #pragma pack(pop)
|