Skip to main content

ServerCommandDefinition

A class in Root.Township, Alta.Menu.

Asset for a menu entry that sends one fixed console command to the server. Created from the Township, Quick Access Menu, Field Access menu.

Constructors​

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

Fields​

2 private and internal fields
MemberWhat it is
private string commandThe console command text to send.
private string settingDescriptionBacking field for SettingDescription.

Properties​

MemberWhat it is
override string SettingDescription { get; }Description shown on the settings panel.

Methods​

MemberWhat it is
override void RunCommandOnClient()Sends command to the server through CommandSync.