project_files/HedgewarsMobile/Classes/GameConfigViewController.m
changeset 3642 fb39fecca350
parent 3635 38d3e31556d3
child 3646 a3271158d93b
equal deleted inserted replaced
3641:98319a621dc8 3642:fb39fecca350
   147     NSDictionary *gameDictionary = [NSDictionary dictionaryWithObjectsAndKeys:mapConfigViewController.seedCommand,@"seed_command",
   147     NSDictionary *gameDictionary = [NSDictionary dictionaryWithObjectsAndKeys:mapConfigViewController.seedCommand,@"seed_command",
   148                                                                       mapConfigViewController.templateFilterCommand,@"templatefilter_command",
   148                                                                       mapConfigViewController.templateFilterCommand,@"templatefilter_command",
   149                                                                       mapConfigViewController.mapGenCommand,@"mapgen_command",
   149                                                                       mapConfigViewController.mapGenCommand,@"mapgen_command",
   150                                                                       mapConfigViewController.mazeSizeCommand,@"mazesize_command",
   150                                                                       mapConfigViewController.mazeSizeCommand,@"mazesize_command",
   151                                                                       mapConfigViewController.themeCommand,@"theme_command",
   151                                                                       mapConfigViewController.themeCommand,@"theme_command",
       
   152                                                                       mapConfigViewController.staticMapCommand,@"staticmap_command",
   152                                                                       teamConfigViewController.listOfSelectedTeams,@"teams_list",
   153                                                                       teamConfigViewController.listOfSelectedTeams,@"teams_list",
   153                                                                       schemeWeaponConfigViewController.selectedScheme,@"scheme",
   154                                                                       schemeWeaponConfigViewController.selectedScheme,@"scheme",
   154                                                                       schemeWeaponConfigViewController.selectedWeapon,@"weapon",
   155                                                                       schemeWeaponConfigViewController.selectedWeapon,@"weapon",
   155                                                                       nil];
   156                                                                       nil];
   156     
   157     
   157     // finally launch game and remove this controller
   158     // finally launch game and remove this controller
   158     DLog(@"sending config %@", gameDictionary);
   159     DLog(@"sending config %@", gameDictionary);
   159     
   160     
   160     if ([[gameDictionary allKeys] count] == 8) {
   161     if ([[gameDictionary allKeys] count] == 9) {
   161         [[SDLUIKitDelegate sharedAppDelegate] startSDLgame:gameDictionary];
   162         [[SDLUIKitDelegate sharedAppDelegate] startSDLgame:gameDictionary];
   162     } else {
   163     } else {
   163         DLog(@"gameconfig data not complete!!\nmapConfigViewController = %@\nteamConfigViewController = %@\nschemeWeaponConfigViewController = %@\n",
   164         DLog(@"gameconfig data not complete!!\nmapConfigViewController = %@\nteamConfigViewController = %@\nschemeWeaponConfigViewController = %@\n",
   164              mapConfigViewController, teamConfigViewController, schemeWeaponConfigViewController);
   165              mapConfigViewController, teamConfigViewController, schemeWeaponConfigViewController);
   165         [self.parentViewController dismissModalViewControllerAnimated:YES];
   166         [self.parentViewController dismissModalViewControllerAnimated:YES];