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
characterIPlayerCharactertextstring
ReplyLines(IPlayerCharacter, IEnumerable<string>)
Sends several lines, in order.
void ReplyLines(IPlayerCharacter character, IEnumerable<string> lines)
Parameters
characterIPlayerCharacterlinesIEnumerable<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
characterIPlayerCharacteractionFunc<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
systemT
Returns
Type Parameters
T