-
- All Implemented Interfaces:
public interface BaseCommand
The basic interface all console commands must implement.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enum
BaseCommand.CommandResult
Represents the success status of a command. Returned by runCommand.
public enum
BaseCommand.CommandContext
Represents what screen the player was on when they used the command.
-
Method Summary
Modifier and Type Method Description abstract BaseCommand.CommandResult
runCommand(@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).
-
-
-
-