Table of Contents

Interface IOperatorCommandHost

Namespace
FishMMO.Server.Implementation.World.SceneServer
Assembly
FishMMO.Server.dll

What an operator command handler borrows from the scene server: the replies, and the async runner that answers on the main thread. SceneServerSystem implements it; a module's commands get it from their provider.

public interface IOperatorCommandHost

Methods

Reply(IPlayerCharacter, string)

Sends one line to the operator on the system channel.

void Reply(IPlayerCharacter character, string text)

Parameters

character IPlayerCharacter
text string

ReplyLines(IPlayerCharacter, IEnumerable<string>)

Sends several lines, in order.

void ReplyLines(IPlayerCharacter character, IEnumerable<string> lines)

Parameters

character IPlayerCharacter
lines IEnumerable<string>

RunOperatorLines(IPlayerCharacter, Func<Task<IReadOnlyList<string>>>)

Runs action off the main thread and replies with the lines it returns.

void RunOperatorLines(IPlayerCharacter character, Func<Task<IReadOnlyList<string>>> action)

Parameters

character IPlayerCharacter
action Func<Task<IReadOnlyList<string>>>

TryGetSystem<T>(out T)

A server system on this scene server, by its contract.

bool TryGetSystem<T>(out T system) where T : class, IServerBehaviour

Parameters

system T

Returns

bool

Type Parameters

T