Exemplo n.º 1
0
 public bool RemoveTeam(IemTeam team)
 {
     if (!Teams.ContainsKey(team.GetGuid().ToString()))
     {
         return(false);
     }
     Teams.Remove(team.GetGuid().ToString());
     team.TeamGame = null;
     return(true);
 }
Exemplo n.º 2
0
 public IemTeam AddTeam(IemTeam team)
 {
     if (Teams.Count >= MaxTeams)
     {
         IemUtils.DLog("returning null");
         return(null);
     }
     if (!Teams.ContainsKey(team.GetGuid().ToString()))
     {
         Teams.Add(team.GetGuid().ToString(), team);
     }
     team.TeamGame = this;
     return(team);
 }