-/*
- * Animation.h
- *
- * Created on: Aug 11, 2012
- * Author: holy
- */
-
#ifndef GRAPHICS_ANIMATION_H_
#define GRAPHICS_ANIMATION_H_
class Animation {
+public:
+ static const int TYPE_ID = 401;
+
public:
Animation()
: sprite(0), frameTime(0), repeat(false) { }
virtual int Row(int frame) const = 0;
virtual geometry::Vector<int> Offset(int frame) const { return geometry::Vector<int>(); }
+ static void CreateTypeDescription();
+
protected:
- static void AddFields(loader::TypeDescription &, const Animation &, std::ptrdiff_t offset, int boolId, int numberId, int spriteId);
+ static void AddFields(loader::TypeDescription &, const Animation &, std::ptrdiff_t offset);
private:
const Sprite *sprite;