2014-01-23 10:29:40 +00:00
|
|
|
#ifndef OPENMW_ESM_CELLSTATE_H
|
|
|
|
#define OPENMW_ESM_CELLSTATE_H
|
|
|
|
|
|
|
|
#include "cellid.hpp"
|
|
|
|
|
2014-05-17 07:05:41 +00:00
|
|
|
#include "defs.hpp"
|
|
|
|
|
2014-01-23 10:29:40 +00:00
|
|
|
namespace ESM
|
|
|
|
{
|
|
|
|
class ESMReader;
|
|
|
|
class ESMWriter;
|
|
|
|
|
|
|
|
// format 0, saved games only
|
|
|
|
|
|
|
|
/// \note Does not include references
|
|
|
|
struct CellState
|
|
|
|
{
|
|
|
|
CellId mId;
|
|
|
|
|
|
|
|
float mWaterLevel;
|
|
|
|
|
2014-05-11 00:07:28 +00:00
|
|
|
int mHasFogOfWar; // Do we have fog of war state (0 or 1)? (see fogstate.hpp)
|
|
|
|
|
2014-05-17 07:05:41 +00:00
|
|
|
ESM::TimeStamp mLastRespawn;
|
|
|
|
|
2014-01-23 10:29:40 +00:00
|
|
|
void load (ESMReader &esm);
|
|
|
|
void save (ESMWriter &esm) const;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2014-05-11 00:07:28 +00:00
|
|
|
#endif
|