tModLoader v0.11.8.9
A mod to make and play Terraria mods
|
This class represents a chat or console command. Use the CommandType to specify the scope of the command. More...
Public Member Functions | |
abstract void | Action (CommandCaller caller, string input, string[] args) |
The code that is executed when the command is triggered. More... | |
virtual bool | Autoload (ref string name) |
Autoload this command, defaults to Mod.Properties.Autoload. More... | |
Properties | |
abstract string | Command [get] |
The desired text to trigger this command. More... | |
virtual string | Description [get] |
A short description of this command. More... | |
Mod | mod [get, set] |
The Mod this ModCommand belongs to. More... | |
string | Name [get, set] |
Internal name of this command. More... | |
abstract CommandType | Type [get] |
A flag enum representing context where this command operates. More... | |
virtual string | Usage [get] |
A short usage explanation for this command. More... | |
This class represents a chat or console command. Use the CommandType to specify the scope of the command.
Definition at line 41 of file ModCommand.cs.
|
pure virtual |
The code that is executed when the command is triggered.
|
virtual |
Autoload this command, defaults to Mod.Properties.Autoload.
|
get |
The desired text to trigger this command.
Definition at line 48 of file ModCommand.cs.
Referenced by Terraria.ModLoader.CommandManager.GetHelp().
|
get |
A short description of this command.
Definition at line 54 of file ModCommand.cs.
|
getset |
The Mod this ModCommand belongs to.
Definition at line 44 of file ModCommand.cs.
|
getset |
Internal name of this command.
Definition at line 46 of file ModCommand.cs.
|
get |
A flag enum representing context where this command operates.
Definition at line 50 of file ModCommand.cs.
|
get |
A short usage explanation for this command.
Definition at line 52 of file ModCommand.cs.