Example #1
0
        public static TeamGameplayModel Create(GameplayModel gameplay, UCTeam team)
        {
            var model = new TeamGameplayModel(gameplay, team);

            model.Initialize();
            return(model);
        }
Example #2
0
 public TeamGameplayModel(GameplayModel gameplay, UCTeam team)
 {
     Gameplay = gameplay;
     TeamId   = team.Id;
 }
Example #3
0
        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);
        }