mirror of
https://github.com/OpenMW/openmw.git
synced 2026-01-29 22:08:26 +00:00
25 lines
463 B
C++
25 lines
463 B
C++
#include "containerstate.hpp"
|
|
|
|
#include <components/esm3/inventorystate.hpp>
|
|
#include <components/esm3/objectstate.hpp>
|
|
|
|
namespace ESM
|
|
{
|
|
class ESMReader;
|
|
class ESMWriter;
|
|
|
|
void ContainerState::load(ESMReader& esm)
|
|
{
|
|
ObjectState::load(esm);
|
|
|
|
mInventory.load(esm);
|
|
}
|
|
|
|
void ContainerState::save(ESMWriter& esm, bool inInventory) const
|
|
{
|
|
ObjectState::save(esm, inInventory);
|
|
|
|
mInventory.save(esm);
|
|
}
|
|
|
|
}
|