Hubris Engine Dev
A Project to learn and get into Game Engine developement.
 
Loading...
Searching...
No Matches
Hubris::Core::StaticEventBus< Event > Class Template Reference

#include <EventBus.h>

Public Types

using HandlerFunc = void(*)(const Event&)
 

Static Public Member Functions

static void Subscribe (HandlerFunc func)
 
static void Dispatch (const Event &event)
 

Detailed Description

template<typename Event>
class Hubris::Core::StaticEventBus< Event >

Definition at line 7 of file EventBus.h.

Member Typedef Documentation

◆ HandlerFunc

template<typename Event>
using Hubris::Core::StaticEventBus< Event >::HandlerFunc = void(*)(const Event&)

Definition at line 9 of file EventBus.h.

Member Function Documentation

◆ Dispatch()

template<typename Event>
static void Hubris::Core::StaticEventBus< Event >::Dispatch ( const Event & event)
inlinestatic

Definition at line 15 of file EventBus.h.

+ Here is the caller graph for this function:

◆ Subscribe()

template<typename Event>
static void Hubris::Core::StaticEventBus< Event >::Subscribe ( HandlerFunc func)
inlinestatic

Definition at line 11 of file EventBus.h.


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