4#include "InteractionListener.h"
23 void interact(
void* actor,
void* data)
override;
30 std::function<void(
void*,
void*)> interactionCallback;
std::shared_ptr< Vector2D > getPosition() override
Internal function to use as reference for targeting.
Definition InteractionComponent.cpp:21
void interact(void *actor, void *data) override
Internal function to be called when an interaction event is triggered.
Definition InteractionComponent.cpp:15
InteractionComponent(std::function< void(void *, void *)> callback)
Constructor for the InteractionComponent.
Definition InteractionComponent.cpp:5