summaryrefslogtreecommitdiff
path: root/server/lib/core/commands/set_character_level_command.dart
blob: 66c28de46449dcb9815a3df8a418ac90bb6f6fa2 (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 SetCharacterLevelCommand extends Command {
  final int level;
  final String characterId;

  SetCharacterLevelCommand(this.level, this.characterId);

  @override
  void execute() {
    CharacterMethods.setCharacterLevel(stateAccess, level, characterId);
  }

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