C# Class NetMud.Communication.Messaging.MessageCluster

Used by the system to produce output for commands and events
Inheritance: IMessageCluster
Show file Open project: SwiftAusterity/NetMud Class Usage Examples

Public Methods

Method Description
ExecuteMessaging ( IEntity Actor, IEntity Subject, IEntity Target, IEntity OriginLocation, IEntity DestinationLocation ) : void

Executes the messaging, sending messages using WriteTo on all relevant entities

MessageCluster ( ) : System

New up an empty cluster

MessageCluster ( IEnumerable actor, IEnumerable subject, IEnumerable target, IEnumerable origin, IEnumerable destination ) : System

New up a full cluster

Private Methods

Method Description
TranslateOutput ( IEnumerable output, IEntity[]>.Dictionary entities ) : IEnumerable

Translates output text with color codes and entity variables

Method Details

ExecuteMessaging() public method

Executes the messaging, sending messages using WriteTo on all relevant entities
public ExecuteMessaging ( IEntity Actor, IEntity Subject, IEntity Target, IEntity OriginLocation, IEntity DestinationLocation ) : void
Actor IEntity The acting entity
Subject IEntity The command's subject entity
Target IEntity The command's target entity
OriginLocation IEntity The location the acting entity acted in
DestinationLocation IEntity The location the command is targetting
return void

MessageCluster() public method

New up an empty cluster
public MessageCluster ( ) : System
return System

MessageCluster() public method

New up a full cluster
public MessageCluster ( IEnumerable actor, IEnumerable subject, IEnumerable target, IEnumerable origin, IEnumerable destination ) : System
actor IEnumerable Message to send to the acting entity
subject IEnumerable Message to send to the subject of the command
target IEnumerable Message to send to the target of the command
origin IEnumerable Message to send to the origin location of the command/event
destination IEnumerable Message to send to the destination location of the command/event
return System