Skip to main content

ServerComboCommandDefinition

A class in Root.Township, Alta.Menu.

A menu command that sends a list of console commands to the server one after another, each after the last one's result comes back. Client side.

Constructors​

MemberWhat it is
ServerComboCommandDefinition()Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets.

Fields​

4 private and internal fields
MemberWhat it is
private string[] commandsConsole commands to send, in order.
private int currentCommandIndexIndex of the command being sent.
private static readonly Logger LoggerNLog logger; logs each command sent and its result.
private string settingDescriptionBacking field for SettingDescription.

Properties​

MemberWhat it is
override string SettingDescription { get; }Description shown on the settings panel.
1 private and internal property
MemberWhat it is
private string[] Commands { get; }The command list.

Methods​

MemberWhat it is
override void RunCommandOnClient()Starts sending the command list from the current index.
2 private and internal methods
MemberWhat it is
private void OnCommandCompleted(string command, string result)Logs the result and sends the next command, or resets to the first when all are done.
private void RunNextCommand()Sends the current command to the server through CommandSync.