1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2024-12-29 03:19:44 +00:00
OpenMW/components/esm3/statstate.hpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
606 B
C++
Raw Normal View History

2014-02-16 14:06:34 +00:00
#ifndef OPENMW_ESM_STATSTATE_H
#define OPENMW_ESM_STATSTATE_H
namespace ESM
{
2015-07-07 17:16:32 +00:00
class ESMReader;
class ESMWriter;
2014-02-16 14:06:34 +00:00
// format 0, saved games only
template <typename T>
struct StatState
{
T mBase;
T mMod; // Note: can either be the modifier, or the modified value.
// A bit inconsistent, but we can't fix this without breaking compatibility.
T mCurrent;
float mDamage;
2014-02-16 14:06:34 +00:00
float mProgress;
StatState();
void load(ESMReader& esm, bool intFallback = false);
2014-02-16 14:06:34 +00:00
void save(ESMWriter& esm) const;
};
}
#endif