OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
fogstate.hpp
Go to the documentation of this file.
1 #ifndef OPENMW_ESM_FOGSTATE_H
2 #define OPENMW_ESM_FOGSTATE_H
3 
4 #include <vector>
5 
6 namespace ESM
7 {
8  class ESMReader;
9  class ESMWriter;
10 
11  struct FogTexture
12  {
13  int mX, mY; // Only used for interior cells
14  std::vector<char> mImageData;
15  };
16 
17  // format 0, saved games only
18  // Fog of war state
19  struct FogState
20  {
21  // Only used for interior cells
23  struct Bounds
24  {
25  float mMinX;
26  float mMinY;
27  float mMaxX;
28  float mMaxY;
29  } mBounds;
30 
31  std::vector<FogTexture> mFogTextures;
32 
33  void load (ESMReader &esm);
34  void save (ESMWriter &esm, bool interiorCell) const;
35  };
36 }
37 
38 #endif
void load(ESMReader &esm)
Definition: fogstate.cpp:6
Definition: esmreader.hpp:21
float mMaxY
Definition: fogstate.hpp:28
Definition: fogstate.hpp:19
Definition: fogstate.hpp:23
int mY
Definition: fogstate.hpp:13
void save(ESMWriter &esm, bool interiorCell) const
Definition: fogstate.cpp:25
float mMinX
Definition: fogstate.hpp:25
std::vector< FogTexture > mFogTextures
Definition: fogstate.hpp:31
Definition: esmwriter.hpp:17
float mMaxX
Definition: fogstate.hpp:27
Definition: fogstate.hpp:11
std::vector< char > mImageData
Definition: fogstate.hpp:14
float mNorthMarkerAngle
Definition: fogstate.hpp:22
struct ESM::FogState::Bounds mBounds
float mMinY
Definition: fogstate.hpp:26
int mX
Definition: fogstate.hpp:13