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
|
|
|
|
|
2020-06-06 23:00:53 +02:00
|
|
|
struct CreatureLevListState final : public ObjectState
|
2014-05-15 00:23:53 +02:00
|
|
|
{
|
|
|
|
int mSpawnActorId;
|
2014-05-17 09:05:41 +02:00
|
|
|
bool mSpawn;
|
2014-05-15 00:23:53 +02:00
|
|
|
|
2020-10-22 23:57:53 +02:00
|
|
|
void load (ESMReader &esm) override;
|
|
|
|
void save (ESMWriter &esm, bool inInventory = false) const override;
|
2020-03-17 14:15:19 +04:00
|
|
|
|
2020-10-22 23:57:53 +02:00
|
|
|
CreatureLevListState& asCreatureLevListState() override
|
2020-03-17 14:15:19 +04:00
|
|
|
{
|
|
|
|
return *this;
|
|
|
|
}
|
2020-10-22 23:57:53 +02:00
|
|
|
const CreatureLevListState& asCreatureLevListState() const override
|
2020-03-17 14:15:19 +04:00
|
|
|
{
|
|
|
|
return *this;
|
|
|
|
}
|
2014-05-15 00:23:53 +02:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|