X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fgraphics%2FAnimation.h;h=50330957ab9d28412cb1314c70596f86d75ead1f;hb=107657a15613dfd6f02556e163abf6a4cb3cdd39;hp=7424918364fbbdd935e23b88ba25bb425a81db2d;hpb=be7ebd20e65d42e96c43a81f73039beded2c05e7;p=l2e.git diff --git a/src/graphics/Animation.h b/src/graphics/Animation.h index 7424918..5033095 100644 --- a/src/graphics/Animation.h +++ b/src/graphics/Animation.h @@ -1,10 +1,3 @@ -/* - * Animation.h - * - * Created on: Aug 11, 2012 - * Author: holy - */ - #ifndef GRAPHICS_ANIMATION_H_ #define GRAPHICS_ANIMATION_H_ @@ -22,6 +15,9 @@ namespace graphics { class Animation { +public: + static const int TYPE_ID = 401; + public: Animation() : sprite(0), frameTime(0), repeat(false) { } @@ -45,8 +41,10 @@ public: virtual int Row(int frame) const = 0; virtual geometry::Vector Offset(int frame) const { return geometry::Vector(); } + 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;