OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
npcstate.hpp
Go to the documentation of this file.
1 #ifndef OPENMW_ESM_NPCSTATE_H
2 #define OPENMW_ESM_NPCSTATE_H
3 
4 #include "objectstate.hpp"
5 #include "inventorystate.hpp"
6 #include "npcstats.hpp"
7 #include "creaturestats.hpp"
8 
9 namespace ESM
10 {
11  // format 0, saved games only
12 
13  struct NpcState : public ObjectState
14  {
18 
20  void blank();
21 
22  virtual void load (ESMReader &esm);
23  virtual void save (ESMWriter &esm, bool inInventory = false) const;
24  };
25 }
26 
27 #endif
virtual void save(ESMWriter &esm, bool inInventory=false) const
Definition: npcstate.cpp:17
Definition: esmreader.hpp:21
CreatureStats mCreatureStats
Definition: npcstate.hpp:17
virtual void load(ESMReader &esm)
Definition: npcstate.cpp:3
NpcStats mNpcStats
Definition: npcstate.hpp:16
Definition: esmwriter.hpp:17
Definition: creaturestats.hpp:23
<
Definition: objectstate.hpp:19
State for inventories and containers.
Definition: inventorystate.hpp:16
InventoryState mInventory
Definition: npcstate.hpp:15
Definition: npcstate.hpp:13
void blank()
Initialize to default state.
Definition: npcstate.cpp:31
Definition: npcstats.hpp:17