1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-29 09:15:35 +00:00
openmw/components/esm3/cellstate.hpp

32 lines
613 B
C++
Raw Normal View History

#ifndef OPENMW_ESM_CELLSTATE_H
#define OPENMW_ESM_CELLSTATE_H
#include "components/esm/defs.hpp"
#include "components/esm/refid.hpp"
#include "timestamp.hpp"
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;
float mWaterLevel;
int32_t mHasFogOfWar; // Do we have fog of war state (0 or 1)? (see fogstate.hpp)
TimeStamp mLastRespawn;
2022-09-22 18:26:05 +00:00
void load(ESMReader& esm);
void save(ESMWriter& esm) const;
};
}
#endif