1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-24 12:53:54 +00:00
openmw/components/esm3/creaturestate.hpp

29 lines
699 B
C++
Raw Normal View History

#ifndef OPENMW_ESM_CREATURESTATE_H
#define OPENMW_ESM_CREATURESTATE_H
#include "creaturestats.hpp"
2022-09-22 18:26:05 +00:00
#include "inventorystate.hpp"
#include "objectstate.hpp"
namespace ESM
{
// format 0, saved games only
struct CreatureState final : public ObjectState
{
InventoryState mInventory;
CreatureStats mCreatureStats;
/// Initialize to default state
void blank() override;
2022-09-22 18:26:05 +00:00
void load(ESMReader& esm) override;
void save(ESMWriter& esm, bool inInventory = false) const override;
2022-09-22 18:26:05 +00:00
CreatureState& asCreatureState() override { return *this; }
const CreatureState& asCreatureState() const override { return *this; }
};
}
#endif