fixed auto_map.h header guard
[twcon.git] / src / game / editor / auto_map.h
blobee57037842cc422038bc0c35ace447af490329d0
1 #ifndef GAME_EDITOR_AUTO_MAP_H
2 #define GAME_EDITOR_AUTO_MAP_H
4 #include <base/tl/array.h>
6 class CAutoMapper
8 struct CPosRule
10 int m_X;
11 int m_Y;
12 int m_Value;
13 bool m_IndexValue;
15 enum
17 EMPTY=0,
18 FULL
22 struct CIndexRule
24 int m_ID;
25 array<CPosRule> m_aRules;
26 int m_Flag;
27 int m_RandomValue;
28 bool m_BaseTile;
31 struct CConfiguration
33 array<CIndexRule> m_aIndexRules;
34 char m_aName[128];
37 public:
38 CAutoMapper(class CEditor *pEditor);
40 void Load(const char* pTileName);
41 void Proceed(class CLayerTiles *pLayer, int ConfigID);
43 int ConfigNamesNum() { return m_lConfigs.size(); }
44 const char* GetConfigName(int Index);
46 const bool IsLoaded() { return m_FileLoaded; }
47 private:
48 array<CConfiguration> m_lConfigs;
49 class CEditor *m_pEditor;
50 bool m_FileLoaded;
54 #endif