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
|
|
24
|
|
25 /* 48 */
|
|
26 #pragma pack(push, 1)
|
|
27 struct TileDesc
|
|
28 {
|
|
29 char pTileName[16];
|
|
30 unsigned __int16 uTileID;
|
|
31 unsigned __int16 uBitmapID;
|
|
32 unsigned __int16 uTerrainType;
|
|
33 unsigned __int16 uSection;
|
|
34 unsigned __int16 uAttributes;
|
|
35 };
|
|
36 #pragma pack(pop)
|
|
37
|
|
38 /* 49 */
|
|
39 #pragma pack(push, 1)
|
|
40 struct TileTable
|
|
41 {
|
|
42 //----- (00487E13) --------------------------------------------------------
|
|
43 TileTable()
|
|
44 {
|
|
45 this->pTiles = nullptr;
|
|
46 this->uNumTiles = 0;
|
|
47 }
|
|
48 ~TileTable();
|
|
49
|
|
50 TileDesc *GetTileById(unsigned int uTileID);
|
|
51 void InitializeTileset(int uTerrainType);
|
|
52 int method_487ED6(signed int a1, int a2);
|
|
53 unsigned int GetTileId(unsigned int uTerrainType, unsigned int uSection);
|
|
54 void ToFile();
|
|
55 void FromFile(void *pSerialized);
|
|
56 int FromFileTxt(const char *pFilename);
|
|
57
|
|
58 unsigned int uNumTiles;
|
|
59 struct TileDesc *pTiles;
|
|
60 };
|
|
61 #pragma pack(pop)
|