-
- All Implemented Interfaces:
public interface BaseCommandThe basic interface all console commands must implement.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumBaseCommand.CommandResultRepresents the success status of a command. Returned by runCommand.
public enumBaseCommand.CommandContextRepresents what screen the player was on when they used the command.
-
Method Summary
Modifier and Type Method Description abstract BaseCommand.CommandResultrunCommand(@NotNull() String args, @NotNull() BaseCommand.CommandContext context)Called when the player enters your command. -
-
Method Detail
-
runCommand
abstract BaseCommand.CommandResult runCommand(@NotNull() String args, @NotNull() BaseCommand.CommandContext context)
Called when the player enters your command.
- Parameters:
args- The arguments passed into this command.context- Where this command was called from (campaign, combat, mission, simulation, etc).
-
-
-
-