#include "../app/Timer.h"
#include "../geometry/Vector.h"
+#include <memory>
#include <SDL.h>
+namespace loader {
+ class TypeDescription;
+}
+
namespace graphics {
class Animation {
virtual int Row(int frame) const = 0;
virtual geometry::Vector<int> Offset(int frame) const { return geometry::Vector<int>(); }
+protected:
+ static void AddFields(loader::TypeDescription &, const Animation &, std::ptrdiff_t offset, int boolId, int numberId, int spriteId);
+
private:
const Sprite *sprite;
int frameTime;