Table of Contents

Class LocalMessageBus

Namespace
Termule.Engine.Core
Assembly
Termule.Engine.dll

A message bus for routing messages through the world.

public sealed class LocalMessageBus : MessageBus
Inheritance
LocalMessageBus
Inherited Members

Methods

Broadcast<TMessage>(TMessage, Route)

Send a message to its subscribed listeners along the provided route.

public void Broadcast<TMessage>(TMessage message, Route route)

Parameters

message TMessage

The message to send.

route Route

The path along which the message should be sent.

Type Parameters

TMessage

The type of message being sent.

Exceptions

InvalidOperationException

Thrown when trying to send a nonlocal message before the GameObject is activated.