2016-07-30 17:24:03 +00:00
|
|
|
#ifndef OPENMW_ESM_ANIMATIONSTATE_H
|
|
|
|
#define OPENMW_ESM_ANIMATIONSTATE_H
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
2016-11-22 14:46:32 +00:00
|
|
|
#include <stdint.h>
|
2016-07-30 17:24:03 +00:00
|
|
|
|
|
|
|
namespace ESM
|
|
|
|
{
|
|
|
|
class ESMReader;
|
|
|
|
class ESMWriter;
|
|
|
|
|
|
|
|
// format 0, saved games only
|
|
|
|
struct AnimationState
|
|
|
|
{
|
|
|
|
struct ScriptedAnimation
|
|
|
|
{
|
|
|
|
ScriptedAnimation()
|
|
|
|
: mTime(0.f), mAbsolute(false), mLoopCount(0) {}
|
|
|
|
|
|
|
|
std::string mGroup;
|
|
|
|
float mTime;
|
|
|
|
bool mAbsolute;
|
2016-11-22 14:46:32 +00:00
|
|
|
uint64_t mLoopCount;
|
2016-07-30 17:24:03 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
typedef std::vector<ScriptedAnimation> ScriptedAnimations;
|
|
|
|
ScriptedAnimations mScriptedAnims;
|
|
|
|
|
2016-09-15 14:11:54 +00:00
|
|
|
bool empty() const;
|
|
|
|
|
2016-07-30 17:24:03 +00:00
|
|
|
void load(ESMReader& esm);
|
|
|
|
void save(ESMWriter& esm) const;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|