OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
globalmap.hpp
Go to the documentation of this file.
1 #ifndef OPENMW_COMPONENTS_ESM_GLOBALMAP_H
2 #define OPENMW_COMPONENTS_ESM_GLOBALMAP_H
3 
4 #include <vector>
5 #include <set>
6 
7 namespace ESM
8 {
9  class ESMReader;
10  class ESMWriter;
11 
12  // format 0, saved games only
13 
15  struct GlobalMap
16  {
17  static unsigned int sRecordId;
18 
19  // The minimum and maximum cell coordinates
20  struct Bounds
21  {
23  };
24 
26 
27  std::vector<char> mImageData;
28 
29  typedef std::pair<int, int> CellId;
30  std::set<CellId> mMarkers;
31 
32  void load (ESMReader &esm);
33  void save (ESMWriter &esm) const;
34  };
35 
36 }
37 
38 #endif
std::set< CellId > mMarkers
Definition: globalmap.hpp:30
int mMaxY
Definition: globalmap.hpp:22
void load(ESMReader &esm)
Definition: globalmap.cpp:9
void save(ESMWriter &esm) const
Definition: globalmap.cpp:28
Definition: esmreader.hpp:21
int mMinX
Definition: globalmap.hpp:22
Definition: globalmap.hpp:20
int mMinY
Definition: globalmap.hpp:22
Definition: esmwriter.hpp:17
std::pair< int, int > CellId
Definition: globalmap.hpp:29
<
Definition: globalmap.hpp:15
static unsigned int sRecordId
Definition: globalmap.hpp:17
std::vector< char > mImageData
Definition: globalmap.hpp:27
Bounds mBounds
Definition: globalmap.hpp:25
int mMaxX
Definition: globalmap.hpp:22