1 #ifndef HB_CLICKABLE_COMPONENT_H
2 #define HB_CLICKABLE_COMPONENT_H
4 #include "../Core/GameObject.h"
5 #include "InputManager.h"
19 void setOnClick(std::function<
void(
void)>&& onClick);
25 std::function<void(void)> m_onClick;
26 hb::InputManager::ListenerId<hb::MouseButtonWorld> m_listener_id;
Definition: ClickableComponent.h:13
Definition: Box2DPlugin.h:6
Base class for implementing custom Components.
Definition: GameObject.h:57
A 2D vector.
Definition: Vector2d.h:14