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

Classes

interface  IMessageChannel
class  MessageChannel< T >

Public Member Functions

void Register< T > (IMessageHandler< T > handler)
void Unregister (Property property)
void Dispatch< T > (in T message)

Private Attributes

Dictionary< Type, IMessageChannelchannels
List< Type > emptyChannels

Member Function Documentation

◆ Dispatch< T >()

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

◆ Register< T >()

void Nebula.Game.MsgDispatcher.Register< T > ( IMessageHandler< T > handler)
inline
Type Constraints
T :Msg 

◆ Unregister()

void Nebula.Game.MsgDispatcher.Unregister ( Property property)
inline

Member Data Documentation

◆ channels

Dictionary<Type, IMessageChannel> Nebula.Game.MsgDispatcher.channels
private

◆ emptyChannels

List<Type> Nebula.Game.MsgDispatcher.emptyChannels
private

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