OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
statstate.hpp
Go to the documentation of this file.
1 #ifndef OPENMW_ESM_STATSTATE_H
2 #define OPENMW_ESM_STATSTATE_H
3 
4 namespace ESM
5 {
6  class ESMReader;
7  class ESMWriter;
8 
9  // format 0, saved games only
10 
11  template<typename T>
12  struct StatState
13  {
14  T mBase;
15  T mMod; // Note: can either be the modifier, or the modified value.
16  // A bit inconsistent, but we can't fix this without breaking compatibility.
18  float mDamage;
19  float mProgress;
20 
21  StatState();
22 
23  void load (ESMReader &esm);
24  void save (ESMWriter &esm) const;
25  };
26 }
27 
28 #endif
Definition: esmreader.hpp:21
Definition: esmwriter.hpp:17
void load(ESMReader &esm)
Definition: statstate.cpp:12
float mDamage
Definition: statstate.hpp:18
void save(ESMWriter &esm) const
Definition: statstate.cpp:33
T mBase
Definition: statstate.hpp:14
T mCurrent
Definition: statstate.hpp:17
StatState()
Definition: statstate.cpp:9
float mProgress
Definition: statstate.hpp:19
T mMod
Definition: statstate.hpp:15