C# Класс NetMud.Communication.Messaging.MessageCluster

Used by the system to produce output for commands and events
Наследование: IMessageCluster
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
TranslateOutput ( IEnumerable output, IEntity[]>.Dictionary entities ) : IEnumerable

Translates output text with color codes and entity variables

Описание методов

ExecuteMessaging() публичный Метод

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
Результат void

MessageCluster() публичный Метод

New up an empty cluster
public MessageCluster ( ) : System
Результат System

MessageCluster() публичный Метод

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
Результат System