|
VEGO-Engine
0.1
|
Struct to hold data for interaction events. This struct is used to pass data to the interaction manager when an interaction event is triggered. More...
#include <InteractionEventdataStruct.h>
Public Member Functions | |
| void | triggerEvent () |
Public Attributes | |
| void * | actor |
| Arbitray data to pass to the interaction listener. Can for example be an Entity ptr to represent the actor. | |
| void * | data |
| The data to pass to the interaction listener. Can be any type of pointer. | |
| std::weak_ptr< InteractionListener > | target = std::weak_ptr<InteractionListener>() |
| The target of the interaction, e.g. InteractionComponent of an Entity. Is required if strategy is set to 0 (none) | |
| std::shared_ptr< Vector2D > | targetingReference = nullptr |
| Coordinates from which to base targeting on. Is required if strategy is not set to 0 (none) | |
| uint8_t | strategy = 0 |
Struct to hold data for interaction events. This struct is used to pass data to the interaction manager when an interaction event is triggered.
| uint8_t InteractionEventdataStruct::strategy = 0 |
required without explicit target, defaults to none