blob: 9e446c5fe2d0e970ab0732f434b9446b3e8fbfa0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
import '../state/game_state.dart';
import 'command_l10n.dart';
class AddLootCardCommand extends Command {
AddLootCardCommand(this.resourceType, {required GameState gameState})
: _gameState = gameState;
final String resourceType;
final GameState _gameState;
@override
void execute() {
_gameState.lootDeck.addExtraCard(stateAccess, resourceType);
}
@override
String describe() {
return commandL10n.cmdAddLootCard(resourceType);
}
}
|