public static TeamGameplayModel Create(GameplayModel gameplay, UCTeam team) { var model = new TeamGameplayModel(gameplay, team); model.Initialize(); return(model); }
public TeamGameplayModel(GameplayModel gameplay, UCTeam team) { Gameplay = gameplay; TeamId = team.Id; }
public static string GetTeamName(IEnumerable <UCTeam> teams, int id) { UCTeam team = null; return((team = id > 0 ? teams.Single(i => i.Id == id) : null) == null ? "" : team.Name); }