1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-03 17:37:18 +00:00
OpenMW/components/esm3/creaturestate.cpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
619 B
C++
Raw Normal View History

#include "creaturestate.hpp"
namespace ESM
{
void CreatureState::load(ESMReader& esm)
{
ObjectState::load(esm);
if (mHasCustomState)
2022-09-22 18:26:05 +00:00
{
mInventory.load(esm);
mCreatureStats.load(esm);
2022-09-22 18:26:05 +00:00
}
}
void CreatureState::save(ESMWriter& esm, bool inInventory) const
{
ObjectState::save(esm, inInventory);
if (mHasCustomState)
2022-09-22 18:26:05 +00:00
{
mInventory.save(esm);
2022-09-22 18:26:05 +00:00
mCreatureStats.save(esm);
2022-09-22 18:26:05 +00:00
}
}
void CreatureState::blank()
{
ObjectState::blank();
mCreatureStats.blank();
}
}