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