Exemple #1
0
        public CommandsGroup Join(CommandsGroup joinedCommandsGroup)
        {
            var commandsGroup = new CommandsGroup();

            commandsGroup.LocalCommands.AddRange(this.LocalCommands);
            commandsGroup.LocalCommands.AddRange(joinedCommandsGroup.LocalCommands);
            return(commandsGroup);
        }
 public void HandleInput(UserCommand command)
 {
     CommandsGroup.ExecuteCommand(command, GameState);
 }