hedgewars/uFLTeams.pas
branchqmlfrontend
changeset 11446 321d0ce43568
parent 11445 465b4db35232
child 11454 3c5d99013baf
equal deleted inserted replaced
11445:465b4db35232 11446:321d0ce43568
     9 procedure freeTeamsList;
     9 procedure freeTeamsList;
    10 
    10 
    11 function teamByName(s: shortstring): PTeam;
    11 function teamByName(s: shortstring): PTeam;
    12 
    12 
    13 procedure sendTeam(var team: TTeam);
    13 procedure sendTeam(var team: TTeam);
       
    14 procedure removeTeam(teamName: shortstring);
    14 
    15 
    15 implementation
    16 implementation
    16 uses uFLUtils, uFLIPC, uPhysFSLayer, uFLData, uFLNet;
    17 uses uFLUtils, uFLIPC, uPhysFSLayer, uFLData, uFLNet;
    17 
    18 
    18 const MAX_TEAM_NAMES = 128;
    19 const MAX_TEAM_NAMES = 128;
   209         end;
   210         end;
   210         sendNetLn('')
   211         sendNetLn('')
   211     end;
   212     end;
   212 end;
   213 end;
   213 
   214 
       
   215 procedure removeTeam(teamName: shortstring);
       
   216 begin
       
   217     sendNetLn('REMOVE_TEAM');
       
   218     sendNet(teamName)
       
   219 end;
       
   220 
   214 end.
   221 end.