Nui Engine
A game engine framework
All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages Concepts
Nui::ECS::EventSubscriber< T > Class Template Referenceabstract

Base class for all event subscribers. More...

#include <Event.h>

Inheritance diagram for Nui::ECS::EventSubscriber< T >:
Nui::ECS::Internal::EventSubscriberBase

Public Member Functions

virtual ~EventSubscriber ()=default
 Virtual default destructor.
 
virtual void OnEvent (Context *context, const T &event)=0
 Pure virtual function for handling event callback.
 
- Public Member Functions inherited from Nui::ECS::Internal::EventSubscriberBase
virtual ~EventSubscriberBase ()=default
 Virtual default destructor.
 

Detailed Description

template<typename T>
class Nui::ECS::EventSubscriber< T >

Base class for all event subscribers.

Template Parameters
TType of event

Member Function Documentation

◆ OnEvent()

template<typename T >
virtual void Nui::ECS::EventSubscriber< T >::OnEvent ( Context * context,
const T & event )
pure virtual

Pure virtual function for handling event callback.

Parameters
contextPointer to the ECS Context
eventConst reference to the type of event

Implemented in TestSystem, TestSystem, TestSystem, TestSystem, and TestSystem.


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