1 #ifndef ANIMATION_TRIGGER_EVENT_H
2 #define ANIMATION_TRIGGER_EVENT_H
4 #include <easylogging++.h>
12 template<
typename StateType>
30 static std::shared_ptr<AnimationTriggerEvent<StateType>>
create(
const StateType& state) {
return std::make_shared<AnimationTriggerEvent<StateType>>(state); }
36 StateType
getState() const noexcept {
return state; }
Class for event.
Definition: event.h:10
Class for animation trigger event.
Definition: animation_trigger_event.hpp:13
StateType getState() const noexcept
Gets the state.
Definition: animation_trigger_event.hpp:36
EventType
Event type enum that is used when passing events.
Definition: event_type.h:12
Definition: event_type.h:30
static std::shared_ptr< AnimationTriggerEvent< StateType > > create(const StateType &state)
Factory function.
Definition: animation_trigger_event.hpp:30
Event(const EventType &type)
Event constructor.
Definition: event.h:21
AnimationTriggerEvent(const StateType &state)
AnimationTriggerEvent constructor.
Definition: animation_trigger_event.hpp:22