ConsoleCommands / org.lazywizard.console / BaseCommand / CommandContext

CommandContext

class CommandContext

Represents what screen the player was on when they used the command.

Since
2.0

Enum Values

CAMPAIGN_MAP

COMBAT_CAMPAIGN

COMBAT_MISSION

COMBAT_SIMULATION

Functions

isCampaignAccessible

fun isCampaignAccessible(): Boolean

Returns whether the player is in campaign mode, including in campaign battles (even refit simulation battles).

isInCampaign

fun isInCampaign(): Boolean

Returns whether this context is on the campaign map.

isInCombat

fun isInCombat(): Boolean

Returns whether this context is on the combat map.