1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-11 06:40:34 +00:00
OpenMW/components/esm3/statstate.hpp

29 lines
606 B
C++
Raw Normal View History

2014-02-16 15:06:34 +01:00
#ifndef OPENMW_ESM_STATSTATE_H
#define OPENMW_ESM_STATSTATE_H
namespace ESM
{
2015-07-07 19:16:32 +02:00
class ESMReader;
class ESMWriter;
2014-02-16 15:06:34 +01:00
// format 0, saved games only
2022-09-22 21:26:05 +03:00
template <typename T>
2014-02-16 15:06:34 +01:00
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 15:06:34 +01:00
float mProgress;
StatState();
2022-09-22 21:26:05 +03:00
void load(ESMReader& esm, bool intFallback = false);
void save(ESMWriter& esm) const;
2014-02-16 15:06:34 +01:00
};
}
#endif