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 
15     /// \note Does not include references
16     struct CellState
17     {
18         CellId mId;
19 
20         float mWaterLevel;
21 
22         int mHasFogOfWar; // Do we have fog of war state (0 or 1)? (see fogstate.hpp)
23 
24         ESM::TimeStamp mLastRespawn;
25 
26         void load (ESMReader &esm);
27         void save (ESMWriter &esm) const;
28     };
29 }
30 
31 #endif
32