OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
animationstate.hpp
Go to the documentation of this file.
1 #ifndef OPENMW_ESM_ANIMATIONSTATE_H
2 #define OPENMW_ESM_ANIMATIONSTATE_H
3 
4 #include <string>
5 #include <vector>
6 #include <stdint.h>
7 
8 namespace ESM
9 {
10  class ESMReader;
11  class ESMWriter;
12 
13  // format 0, saved games only
15  {
17  {
19  : mTime(0.f), mAbsolute(false), mLoopCount(0) {}
20 
21  std::string mGroup;
22  float mTime;
23  bool mAbsolute;
24  uint64_t mLoopCount;
25  };
26 
27  typedef std::vector<ScriptedAnimation> ScriptedAnimations;
29 
30  bool empty() const;
31 
32  void load(ESMReader& esm);
33  void save(ESMWriter& esm) const;
34  };
35 }
36 
37 #endif
Definition: esmreader.hpp:21
void load(ESMReader &esm)
Definition: animationstate.cpp:13
Definition: animationstate.hpp:14
bool empty() const
Definition: animationstate.cpp:8
Definition: esmwriter.hpp:17
ScriptedAnimation()
Definition: animationstate.hpp:18
float mTime
Definition: animationstate.hpp:22
bool mAbsolute
Definition: animationstate.hpp:23
ScriptedAnimations mScriptedAnims
Definition: animationstate.hpp:28
std::vector< ScriptedAnimation > ScriptedAnimations
Definition: animationstate.hpp:27
Definition: animationstate.hpp:16
std::string mGroup
Definition: animationstate.hpp:21
uint64_t mLoopCount
Definition: animationstate.hpp:24
void save(ESMWriter &esm) const
Definition: animationstate.cpp:41