summaryrefslogtreecommitdiff
path: root/server/lib/core/commands/remove_note_row_command.dart
blob: b574208c7f0e85eb6e5ae0b834b63f4355a7f101 (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 RemoveNoteRowCommand extends Command {
  RemoveNoteRowCommand(this.noteId, {required GameState gameState})
    : _gameState = gameState;
  final String noteId;
  final GameState _gameState;

  @override
  void execute() {
    RoundMethods.removeFromMainList(stateAccess, noteId, gameState: _gameState);
  }

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