2014-05-15 00:23:53 +02:00
|
|
|
#ifndef OPENMW_ESM_CREATURELEVLISTSTATE_H
|
|
|
|
#define OPENMW_ESM_CREATURELEVLISTSTATE_H
|
|
|
|
|
|
|
|
#include "objectstate.hpp"
|
|
|
|
|
|
|
|
namespace ESM
|
|
|
|
{
|
|
|
|
// format 0, saved games only
|
|
|
|
|
|
|
|
struct CreatureLevListState : public ObjectState
|
|
|
|
{
|
|
|
|
int mSpawnActorId;
|
2014-05-17 09:05:41 +02:00
|
|
|
bool mSpawn;
|
2014-05-15 00:23:53 +02:00
|
|
|
|
|
|
|
virtual void load (ESMReader &esm);
|
|
|
|
virtual void save (ESMWriter &esm, bool inInventory = false) const;
|
2020-03-17 14:15:19 +04:00
|
|
|
|
|
|
|
virtual CreatureLevListState& asCreatureLevListState()
|
|
|
|
{
|
|
|
|
return *this;
|
|
|
|
}
|
|
|
|
virtual const CreatureLevListState& asCreatureLevListState() const
|
|
|
|
{
|
|
|
|
return *this;
|
|
|
|
}
|
2014-05-15 00:23:53 +02:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|