13 #include "KapEngine.hpp"
14 #include "KapEngineEvents.hpp"
28 Animation(std::shared_ptr<GameObject> go);
40 PROFILER_FUNC_START();
52 PROFILER_FUNC_START();
64 PROFILER_FUNC_START();
80 PROFILER_FUNC_START();
91 PROFILER_FUNC_START();
96 virtual void onPlay() {}
97 virtual void onUpdateAnim();
98 virtual void onResetAnim();
100 virtual Animation &operator=(Animation
const& anim) {
101 PROFILER_FUNC_START();
102 _startAnim = anim._startAnim;
105 _timing = anim._timing;
106 _currTime = anim._currTime;
112 Events::EventAction &getOnEnd() {
113 PROFILER_FUNC_START();
118 Events::EventAction &getOnStart() {
119 PROFILER_FUNC_START();
124 Events::EventAction &getOnRestart() {
125 PROFILER_FUNC_START();
132 bool _startAnim =
false;
136 int64_t _currTime = 0;
138 Events::EventAction _onEnd;
139 Events::EventAction _onRestart;
140 Events::EventAction _onStart;
142 bool _reseted =
false;