OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
cellstate.hpp
Go to the documentation of this file.
1 #ifndef OPENMW_ESM_CELLSTATE_H
2 #define OPENMW_ESM_CELLSTATE_H
3 
4 #include "cellid.hpp"
5 
6 #include "defs.hpp"
7 
8 namespace ESM
9 {
10  class ESMReader;
11  class ESMWriter;
12 
13  // format 0, saved games only
14 
16  struct CellState
17  {
19 
20  float mWaterLevel;
21 
22  int mHasFogOfWar; // Do we have fog of war state (0 or 1)? (see fogstate.hpp)
23 
25 
26  void load (ESMReader &esm);
27  void save (ESMWriter &esm) const;
28  };
29 }
30 
31 #endif
Definition: defs.hpp:11
Definition: esmreader.hpp:21
void save(ESMWriter &esm) const
Definition: cellstate.cpp:19
Definition: esmwriter.hpp:17
int mHasFogOfWar
Definition: cellstate.hpp:22
void load(ESMReader &esm)
Definition: cellstate.cpp:6
CellId mId
Definition: cellstate.hpp:18
Definition: cellid.hpp:11
ESM::TimeStamp mLastRespawn
Definition: cellstate.hpp:24
Definition: cellstate.hpp:16
float mWaterLevel
Definition: cellstate.hpp:20