public bool RemoveTeam(IemTeam team) { if (!Teams.ContainsKey(team.GetGuid().ToString())) { return(false); } Teams.Remove(team.GetGuid().ToString()); team.TeamGame = null; return(true); }
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); }