C# Class NetMud.Communication.Messaging.MessageCluster

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

Méthodes publiques

Méthode 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

Méthode Description
TranslateOutput ( IEnumerable output, IEntity[]>.Dictionary entities ) : IEnumerable

Translates output text with color codes and entity variables

Method Details

ExecuteMessaging() public méthode

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
Résultat void

MessageCluster() public méthode

New up an empty cluster
public MessageCluster ( ) : System
Résultat System

MessageCluster() public méthode

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
Résultat System