2014-02-01 17:36:23 +01:00
|
|
|
#include "creaturestate.hpp"
|
|
|
|
|
|
|
|
void ESM::CreatureState::load (ESMReader &esm)
|
|
|
|
{
|
|
|
|
ObjectState::load (esm);
|
|
|
|
|
2015-01-19 23:29:06 +01:00
|
|
|
if (mHasCustomState)
|
|
|
|
{
|
|
|
|
mInventory.load (esm);
|
2014-02-16 15:56:36 +01:00
|
|
|
|
2015-01-19 23:29:06 +01:00
|
|
|
mCreatureStats.load (esm);
|
|
|
|
}
|
2014-02-01 17:36:23 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
void ESM::CreatureState::save (ESMWriter &esm, bool inInventory) const
|
|
|
|
{
|
|
|
|
ObjectState::save (esm, inInventory);
|
|
|
|
|
2015-01-19 23:29:06 +01:00
|
|
|
if (mHasCustomState)
|
|
|
|
{
|
|
|
|
mInventory.save (esm);
|
2014-02-16 15:56:36 +01:00
|
|
|
|
2015-01-19 23:29:06 +01:00
|
|
|
mCreatureStats.save (esm);
|
|
|
|
}
|
2015-01-18 19:59:29 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
void ESM::CreatureState::blank()
|
|
|
|
{
|
|
|
|
ObjectState::blank();
|
|
|
|
mCreatureStats.blank();
|
|
|
|
}
|