Table of Contents

Class ChatActor

Namespace
Pillars.Chat.Actors
Assembly
Pillars.dll
public sealed class ChatActor : PiActor<BpPiChat>
Inheritance
ChatActor
Inherited Members

Constructors

ChatActor(ILogger, ChatEvents, PlayerController, ChatService)

Methods

BroadcastMessage(string)

Broadcasts a message to all players by forwarding it to the world actor's ReceiveMsg method.

InitializeChat(PiPlayer, ChatSettings?)

Initializes the chat for the target with the given chat settings

PlayerMessageReceived(Player, string)

Handles a received message from a player and forwards it to the chat events system.

SavePlayerSettings(Player, float, float, float)

Saves the settings of the player into the database

SendMessage(PiPlayer, string)

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

SendMessage(IEnumerable<PiPlayer>, string)

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