mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-01 03:21:41 +00:00
26 lines
496 B
C++
26 lines
496 B
C++
|
#include "creaturelevliststate.hpp"
|
||
|
|
||
|
#include "esmreader.hpp"
|
||
|
#include "esmwriter.hpp"
|
||
|
|
||
|
namespace ESM
|
||
|
{
|
||
|
|
||
|
void CreatureLevListState::load(ESMReader &esm)
|
||
|
{
|
||
|
ObjectState::load(esm);
|
||
|
|
||
|
mSpawnActorId = -1;
|
||
|
esm.getHNOT (mSpawnActorId, "SPAW");
|
||
|
}
|
||
|
|
||
|
void CreatureLevListState::save(ESMWriter &esm, bool inInventory) const
|
||
|
{
|
||
|
ObjectState::save(esm, inInventory);
|
||
|
|
||
|
if (mSpawnActorId != -1)
|
||
|
esm.writeHNT ("SPAW", mSpawnActorId);
|
||
|
}
|
||
|
|
||
|
}
|