]> git.localhorst.tv Git - l2e.git/blobdiff - src/graphics/Animation.h
switched to static type IDs
[l2e.git] / src / graphics / Animation.h
index 7424918364fbbdd935e23b88ba25bb425a81db2d..be92ca129fec5c5ad2438abf912063c5a36fcbe6 100644 (file)
@@ -22,6 +22,9 @@ namespace graphics {
 
 class Animation {
 
+public:
+       static const int TYPE_ID = 401;
+
 public:
        Animation()
        : sprite(0), frameTime(0), repeat(false) { }
@@ -45,8 +48,10 @@ public:
        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;