Пример #1
0
 protected override void InitializeTeamMap()
 {
     TeamPlayerDict.Add(MurderTeam.Innocent, new List <SkyPlayer>());
     TeamPlayerDict.Add(MurderTeam.Murderer, new List <SkyPlayer>());
     TeamPlayerDict.Add(MurderTeam.Detective, new List <SkyPlayer>());
     TeamPlayerDict.Add(MurderTeam.Spectator, new List <SkyPlayer>());
 }
Пример #2
0
        protected override void InitializeTeamMap()
        {
            for (int i = 0; i < GetMaxPlayers(); i++)
            {
                string         teamName;
                PlayerLocation spawnLocation;
                switch (i)
                {
                case 0: teamName = "§aGreen";      spawnLocation = new PlayerLocation(213.5, 70, 297.5); break;

                case 1: teamName = "§bAqua";       spawnLocation = new PlayerLocation(213.5, 70, 255.5); break;

                case 2: teamName = "§cRed";        spawnLocation = new PlayerLocation(213.5, 70, 213.5); break;

                case 3: teamName = "§dPink";       spawnLocation = new PlayerLocation(255.5, 70, 213.5); break;

                case 4: teamName = "§eYellow";     spawnLocation = new PlayerLocation(255.5, 70, 255.5); break;

                case 5: teamName = "§fWhite";      spawnLocation = new PlayerLocation(255.5, 70, 297.5); break;

                case 6: teamName = "§5Purple";     spawnLocation = new PlayerLocation(297.5, 70, 297.5); break;

                case 7: teamName = "§6Gold";       spawnLocation = new PlayerLocation(297.5, 70, 255.5); break;

                case 8: teamName = "§7Grey";       spawnLocation = new PlayerLocation(297.5, 70, 213.5); break;

                case 9: teamName = "§9Indigo";     spawnLocation = new PlayerLocation(213.5, 70, 297.5); break;

                default: teamName = "§8Dark Grey"; spawnLocation = new PlayerLocation(213.5, 70, 297.5); break;
                }

                BuildBattleTeam colourTeam = new BuildBattleTeam(i, teamName, spawnLocation);
                BuildTeams.Add(colourTeam);
                TeamPlayerDict.Add(colourTeam, new List <SkyPlayer>());
            }
        }
Пример #3
0
 protected override void InitializeTeamMap()
 {
     TeamPlayerDict.Add(HubTeam.Player, new List <SkyPlayer>());
     TeamPlayerDict.Add(HubTeam.Spectator, new List <SkyPlayer>());
 }