25 #ifndef __I6ENGINE_API_ANIMATIONCONTROLLERCOMPONENT_H__
26 #define __I6ENGINE_API_ANIMATIONCONTROLLERCOMPONENT_H__
59 return "AnimationController";
65 void addAnimationFrameEvent(
const std::string & animation, uint64_t frameTime,
const std::function<
void(
void)> & func);
70 void playAnimation(
const std::string & anim,
bool looping,
double offsetPercent = 0.0)
const;
75 void setAnimationSpeed(
double animationSpeed)
const;
80 void stopAnimation()
const;
83 std::map<std::string, std::map<uint64_t, std::function<void(void)>>> _animationMap;
88 virtual std::pair<AddStrategy, int64_t> howToAdd(
const ComPtr & comp)
const override;
90 std::vector<componentOptions> getComponentOptions()
override;
#define ISIXE_MODULES_API
A weak pointer observing a sharedPtr.
std::map< std::string, std::string > attributeMap
A shared pointer counting references and adds objects being not referenced any more to an internal li...
std::string getTemplateName() const override
returns the name this template was registered with
Stores different animation events for animations and registers them again when starting an animation...
Component Base Class. All Components must derive from Component.