2014-01-31 12:25:32 +00:00
|
|
|
#ifndef OPENMW_ESM_CONTAINERSTATE_H
|
|
|
|
#define OPENMW_ESM_CONTAINERSTATE_H
|
|
|
|
|
|
|
|
#include "objectstate.hpp"
|
|
|
|
#include "inventorystate.hpp"
|
|
|
|
|
|
|
|
namespace ESM
|
|
|
|
{
|
|
|
|
// format 0, saved games only
|
|
|
|
|
2020-06-06 21:00:53 +00:00
|
|
|
struct ContainerState final : public ObjectState
|
2014-01-31 12:25:32 +00:00
|
|
|
{
|
|
|
|
InventoryState mInventory;
|
|
|
|
|
2020-06-06 21:00:53 +00:00
|
|
|
void load (ESMReader &esm) final;
|
|
|
|
void save (ESMWriter &esm, bool inInventory = false) const final;
|
2020-03-17 10:15:19 +00:00
|
|
|
|
2020-06-06 21:00:53 +00:00
|
|
|
ContainerState& asContainerState() final
|
2020-03-17 10:15:19 +00:00
|
|
|
{
|
|
|
|
return *this;
|
|
|
|
}
|
2020-06-06 21:00:53 +00:00
|
|
|
const ContainerState& asContainerState() const final
|
2020-03-17 10:15:19 +00:00
|
|
|
{
|
|
|
|
return *this;
|
|
|
|
}
|
2014-01-31 12:25:32 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|