summaryrefslogtreecommitdiff
path: root/server/lib/core/commands/set_campaign_command.dart
blob: da5c3125b9081affbea5635ffa3a243bab312037 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import '../state/game_state.dart';
import 'command_l10n.dart';

class SetCampaignCommand extends Command {
  SetCampaignCommand(this.campaign);

  String campaign;

  @override
  void execute() {
    ScenarioMethods.setCampaign(stateAccess, campaign);
  }

  @override
  String describe() {
    return commandL10n.cmdSetCampaign(campaign);
  }
}