2014-05-14 23:58:44 +00:00
|
|
|
#ifndef OPENMW_ESM_DOORSTATE_H
|
|
|
|
#define OPENMW_ESM_DOORSTATE_H
|
|
|
|
|
|
|
|
#include "objectstate.hpp"
|
|
|
|
|
|
|
|
namespace ESM
|
|
|
|
{
|
|
|
|
// format 0, saved games only
|
|
|
|
|
|
|
|
struct DoorState : public ObjectState
|
|
|
|
{
|
2019-12-21 10:35:08 +00:00
|
|
|
int mDoorState = 0;
|
2014-05-14 23:58:44 +00:00
|
|
|
|
|
|
|
virtual void load (ESMReader &esm);
|
|
|
|
virtual void save (ESMWriter &esm, bool inInventory = false) const;
|
2020-03-17 10:15:19 +00:00
|
|
|
|
|
|
|
virtual DoorState& asDoorState()
|
|
|
|
{
|
|
|
|
return *this;
|
|
|
|
}
|
|
|
|
virtual const DoorState& asDoorState() const
|
|
|
|
{
|
|
|
|
return *this;
|
|
|
|
}
|
2014-05-14 23:58:44 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|