Exemple #1
0
        internal Team AddTeam(TeamTemplate teamTemplate)
        {
            _lastTeamId++;

            var team = new Team(teamTemplate, _lastTeamId);

            teamTemplate.AddTeam(team);

            return(team);
        }
Exemple #2
0
        internal Team AddTeamWithId(TeamTemplate teamTemplate, uint id)
        {
            _lastTeamId = Math.Max(_lastTeamId, id);

            var team = new Team(teamTemplate, id);

            teamTemplate.AddTeam(team);

            return(team);
        }