Nebula
Loading...
Searching...
No Matches
Nebula.Game.MsgDispatcher Class Reference

Classes

class  MsgEvent
 

Public Member Functions

delegate void HandleMessage (in Msg msg)
 
void AttachHandler (HandleMessage handler, Type[] msgTypes)
 
void Dispatch< T > (T msg)
 

Private Attributes

Dictionary< Type, MsgEventevents = new Dictionary<Type, MsgEvent>()
 

Member Function Documentation

◆ AttachHandler()

void Nebula.Game.MsgDispatcher.AttachHandler ( HandleMessage handler,
Type[] msgTypes )
inline

◆ Dispatch< T >()

void Nebula.Game.MsgDispatcher.Dispatch< T > ( T msg)
inline
Type Constraints
T :struct 
T :Msg 

◆ HandleMessage()

delegate void Nebula.Game.MsgDispatcher.HandleMessage ( in Msg msg)

Member Data Documentation

◆ events

Dictionary<Type, MsgEvent> Nebula.Game.MsgDispatcher.events = new Dictionary<Type, MsgEvent>()
private

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