Table of Contents

Method SendMessage

Namespace
Pillars.Chat.Actors
Assembly
Pillars.dll

SendMessage(PiPlayer, string)

Sends a message to a specific player by forwarding it to the world actor's ReceiveMsg method.

public Task SendMessage(PiPlayer target, string message)

Parameters

target PiPlayer

The player to whom the message is sent.

message string

The message to send.

Returns

Task

SendMessage(IEnumerable<PiPlayer>, string)

Sends a message to a set of players by forwarding it to the world actor's ReceiveMsg method.

public Task SendMessage(IEnumerable<PiPlayer> targets, string message)

Parameters

targets IEnumerable<PiPlayer>

The players to whom the message is sent.

message string

The message to send.

Returns

Task