mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-06 00:55:50 +00:00
67bd6cd708
git ls-files -z | xargs -0 sed -i '1{/^$/d}'
38 lines
623 B
C++
38 lines
623 B
C++
#include "npcstate.hpp"
|
|
|
|
void ESM::NpcState::load (ESMReader &esm)
|
|
{
|
|
ObjectState::load (esm);
|
|
|
|
if (mHasCustomState)
|
|
{
|
|
mInventory.load (esm);
|
|
|
|
mNpcStats.load (esm);
|
|
|
|
mCreatureStats.load (esm);
|
|
}
|
|
}
|
|
|
|
void ESM::NpcState::save (ESMWriter &esm, bool inInventory) const
|
|
{
|
|
ObjectState::save (esm, inInventory);
|
|
|
|
if (mHasCustomState)
|
|
{
|
|
mInventory.save (esm);
|
|
|
|
mNpcStats.save (esm);
|
|
|
|
mCreatureStats.save (esm);
|
|
}
|
|
}
|
|
|
|
void ESM::NpcState::blank()
|
|
{
|
|
ObjectState::blank();
|
|
mNpcStats.blank();
|
|
mCreatureStats.blank();
|
|
mHasCustomState = true;
|
|
}
|