VEGO-Engine  0.1
Loading...
Searching...
No Matches
InteractionEventdataStruct Struct Reference

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 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
 

Detailed Description

Struct to hold data for interaction events. This struct is used to pass data to the interaction manager when an interaction event is triggered.

Member Data Documentation

◆ strategy

uint8_t InteractionEventdataStruct::strategy = 0

required without explicit target, defaults to none

See also
InteractionManager::TargetingStrategy

The documentation for this struct was generated from the following files: