]> git.localhorst.tv Git - l2e.git/blobdiff - src/graphics/SimpleAnimation.h
initialize objects after loading
[l2e.git] / src / graphics / SimpleAnimation.h
index 7e5a99a9a2630b6e4ba7eadf59e1a993349a6940..0864d2b024402f2509e01283558ded8f117615b3 100644 (file)
@@ -2,6 +2,7 @@
 #define GRAPHICS_SIMPLEANIMATION_H_
 
 #include "Animation.h"
+#include "../loader/noinit.h"
 
 namespace graphics {
 
@@ -15,6 +16,8 @@ public:
        SimpleAnimation();
        SimpleAnimation(const Sprite *sprite, int frameTime, int numFrames,
                        int col = 0, int row = 0, bool repeat = false);
+protected:
+       SimpleAnimation(loader::noinit_t);
 
 public:
        void SetNumFrames(int n) { numFrames = n; }
@@ -23,6 +26,7 @@ public:
 
        static void CreateTypeDescription();
        static void Construct(void *);
+       static void Initialize(void *);
 
 protected:
        virtual int NumFrames() const;