2014-01-23 10:29:40 +00:00
|
|
|
#ifndef OPENMW_ESM_CELLSTATE_H
|
|
|
|
#define OPENMW_ESM_CELLSTATE_H
|
|
|
|
|
2022-01-22 14:58:41 +00:00
|
|
|
#include "components/esm/defs.hpp"
|
2023-02-22 22:20:15 +00:00
|
|
|
#include "components/esm/refid.hpp"
|
2023-07-30 09:37:32 +00:00
|
|
|
#include "timestamp.hpp"
|
2014-05-17 07:05:41 +00:00
|
|
|
|
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
|
|
|
|
{
|
2023-02-21 22:26:40 +00:00
|
|
|
RefId mId;
|
|
|
|
bool mIsInterior;
|
2014-01-23 10:29:40 +00:00
|
|
|
float mWaterLevel;
|
|
|
|
|
2023-07-30 09:37:32 +00:00
|
|
|
int32_t mHasFogOfWar; // Do we have fog of war state (0 or 1)? (see fogstate.hpp)
|
2014-05-11 00:07:28 +00:00
|
|
|
|
2022-04-11 22:18:39 +00:00
|
|
|
TimeStamp mLastRespawn;
|
2014-05-17 07:05:41 +00:00
|
|
|
|
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
|