project_files/HedgewarsMobile/Classes/EngineProtocolNetwork.m
changeset 5370 a3f87be7b09a
parent 5185 7607a64e1853
child 6078 8c0cc07731e5
equal deleted inserted replaced
5368:a66d5141a3ba 5370:a3f87be7b09a
   283                 else*/
   283                 else*/
   284                     [self sendToEngineNoSave:@"TL"];
   284                     [self sendToEngineNoSave:@"TL"];
   285                 NSString *saveHeader = @"TS";
   285                 NSString *saveHeader = @"TS";
   286                 [self dumpRawData:[saveHeader UTF8String] ofSize:[saveHeader length]];
   286                 [self dumpRawData:[saveHeader UTF8String] ofSize:[saveHeader length]];
   287 
   287 
       
   288                 // lua script (if set)
       
   289                 NSString *script = [gameConfig objectForKey:@"mission_command"];
       
   290                 if ([script length] != 0)
       
   291                     [self sendToEngine:script];
       
   292 
   288                 // seed info
   293                 // seed info
   289                 [self sendToEngine:[gameConfig objectForKey:@"seed_command"]];
   294                 [self sendToEngine:[gameConfig objectForKey:@"seed_command"]];
   290 
   295 
   291                 // dimension of the map
   296                 // dimension of the map
   292                 [self sendToEngine:[gameConfig objectForKey:@"templatefilter_command"]];
   297                 [self sendToEngine:[gameConfig objectForKey:@"templatefilter_command"]];
   295 
   300 
   296                 // static land (if set)
   301                 // static land (if set)
   297                 NSString *staticMap = [gameConfig objectForKey:@"staticmap_command"];
   302                 NSString *staticMap = [gameConfig objectForKey:@"staticmap_command"];
   298                 if ([staticMap length] != 0)
   303                 if ([staticMap length] != 0)
   299                     [self sendToEngine:staticMap];
   304                     [self sendToEngine:staticMap];
   300 
       
   301                 // lua script (if set)
       
   302                 NSString *script = [gameConfig objectForKey:@"mission_command"];
       
   303                 if ([script length] != 0)
       
   304                     [self sendToEngine:script];
       
   305 
   305 
   306                 // theme info
   306                 // theme info
   307                 [self sendToEngine:[gameConfig objectForKey:@"theme_command"]];
   307                 [self sendToEngine:[gameConfig objectForKey:@"theme_command"]];
   308 
   308 
   309                 // scheme (returns initial health)
   309                 // scheme (returns initial health)