mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-19 22:53:53 +00:00
36 lines
535 B
C++
36 lines
535 B
C++
#include "creaturestate.hpp"
|
|
|
|
namespace ESM
|
|
{
|
|
|
|
void CreatureState::load (ESMReader &esm)
|
|
{
|
|
ObjectState::load (esm);
|
|
|
|
if (mHasCustomState)
|
|
{
|
|
mInventory.load (esm);
|
|
|
|
mCreatureStats.load (esm);
|
|
}
|
|
}
|
|
|
|
void CreatureState::save (ESMWriter &esm, bool inInventory) const
|
|
{
|
|
ObjectState::save (esm, inInventory);
|
|
|
|
if (mHasCustomState)
|
|
{
|
|
mInventory.save (esm);
|
|
|
|
mCreatureStats.save (esm);
|
|
}
|
|
}
|
|
|
|
void CreatureState::blank()
|
|
{
|
|
ObjectState::blank();
|
|
mCreatureStats.blank();
|
|
}
|
|
|
|
}
|