blob: c2714b825609e414277cd50620ad4f5903e583a6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
import '../state/game_state.dart';
import 'command_l10n.dart';
class SetSoloCommand extends Command {
SetSoloCommand(this.solo);
bool solo;
@override
void execute() {
ScenarioMethods.setSolo(stateAccess, solo);
ScenarioMethods.applyDifficulty(stateAccess);
}
@override
String describe() {
if (solo) {
return commandL10n.cmdSetSoloOn;
}
return commandL10n.cmdSetSoloOff;
}
}
|