Kanda Foundation 0.2.0
Loading...
Searching...
No Matches
AppEventUtils Class Reference

Static Public Member Functions

static Entity RegisterAppEvent< T > (EntityCommandBuffer ecb, T eventData)
 Helper method to schedule app event registration by creating an entity with AppEvent and the desired event data component using an Entity Command Buffer.
 
static Entity RegisterAppEvent< T > (EntityManager entityManager, T eventData)
 Helper method to register an app event by creating an entity with AppEvent and the desired event data component using an Entity Manager.
 

Member Function Documentation

◆ RegisterAppEvent< T >() [1/2]

static Entity RegisterAppEvent< T > ( EntityCommandBuffer ecb,
T eventData )
inlinestatic

Helper method to schedule app event registration by creating an entity with AppEvent and the desired event data component using an Entity Command Buffer.

Parameters
ecbAn EntityCommandBuffer to attach work to.
eventDataThe event data to add to the app event.
Template Parameters
TThe type of event data being attached.
Returns
The app event entity.
Type Constraints
T :unmanaged 
T :IComponentData 

◆ RegisterAppEvent< T >() [2/2]

static Entity RegisterAppEvent< T > ( EntityManager entityManager,
T eventData )
inlinestatic

Helper method to register an app event by creating an entity with AppEvent and the desired event data component using an Entity Manager.

Parameters
entityManagerAn EntityManager used to perform structural changes.
eventDataThe event data to add to the app event.
Template Parameters
TThe type of event data being attached.
Returns
The app event entity.
Type Constraints
T :unmanaged 
T :IComponentData 

The documentation for this class was generated from the following file: