project_files/HedgewarsMobile/Classes/GameSetup.m
changeset 3910 dd47efbdec46
parent 3904 22e4d74240e5
child 3911 46d7a5cf8ac6
equal deleted inserted replaced
3908:1429c303858d 3910:dd47efbdec46
   335                 // static land (if set)
   335                 // static land (if set)
   336                 NSString *staticMap = [self.gameConfig objectForKey:@"staticmap_command"];
   336                 NSString *staticMap = [self.gameConfig objectForKey:@"staticmap_command"];
   337                 if ([staticMap length] != 0)
   337                 if ([staticMap length] != 0)
   338                     [self sendToEngine:staticMap];
   338                     [self sendToEngine:staticMap];
   339 
   339 
       
   340                 // lua script (if set)
       
   341                 NSString *script = [self.gameConfig objectForKey:@"script_command"];
       
   342                 if ([script length] != 0)
       
   343                     [self sendToEngine:script];
       
   344                 
   340                 // theme info
   345                 // theme info
   341                 [self sendToEngine:[self.gameConfig objectForKey:@"theme_command"]];
   346                 [self sendToEngine:[self.gameConfig objectForKey:@"theme_command"]];
   342 
   347 
   343                 // scheme (returns initial health)
   348                 // scheme (returns initial health)
   344                 NSInteger health = [self provideScheme:[self.gameConfig objectForKey:@"scheme"]];
   349                 NSInteger health = [self provideScheme:[self.gameConfig objectForKey:@"scheme"]];