3 using System.Collections.Generic;
16 int team1Count = 0, team2Count = 0;
18 List<Client> unassignedClients =
new List<Client>(clients);
19 for (
int i = 0; i < unassignedClients.Count; i++)
24 assignTeam(unassignedClients[i], unassignedClients[i].PreferredTeam);
30 while (unassignedClients.Any())
32 var randomClient = unassignedClients.GetRandom(Rand.RandSync.Unsynced);
39 unassignedClients.Remove(client);
static IEnumerable< MissionPrefab > ValidateMissionPrefabs(IEnumerable< MissionPrefab > missionPrefabs, Dictionary< MissionType, Type > missionClasses)
static MissionType ValidateMissionType(MissionType missionType, Dictionary< MissionType, Type > missionClasses)
void AssignTeamIDs(IEnumerable< Client > clients)
PvPMode(GameModePreset preset, IEnumerable< MissionPrefab > missionPrefabs)
PvPMode(GameModePreset preset, MissionType missionType, string seed)