コード例 #1
0
 public void BossDeathCleanup()
 {
     PortalCompleted = true;
     Eject();
     PortalItem.Delete();
     PortalItem2.Delete();
     RemoveMobs();
     RemoveCrystals();
     ParticipantsScores.Clear();
     if (ValidSpawnPoints != null)
     {
         ValidSpawnPoints.Clear();
         ValidSpawnPoints.TrimExcess();
     }
 }
コード例 #2
0
 public void StopPortal()
 {
     Status = PortalCompleted ? PortalStatus.Finished : PortalStatus.Failed;
     Eject();
     PortalItem.Delete();
     PortalItem2.Delete();
     RemoveMobs();
     RemoveCrystals();
     _CoreTimer.Stop();
     ParticipantsScores.Clear();
     if (ValidSpawnPoints != null)
     {
         ValidSpawnPoints.Clear();
         ValidSpawnPoints.TrimExcess();
     }
 }
コード例 #3
0
        public void RestartInvasion()
        {
            CurrentLevel = Levels.First();
            Invaders.Clear();
            Invaders.TrimExcess();
            CurrentLevelKills = 0;
            _CoreTicks        = 0;
            DateStarted       = DateTime.UtcNow;
            ParticipantsScores.Clear();
            SpawnInvaders(CurrentLevel.SpawnAmount);
            Status = InvasionStatus.Running;
            Notify.Broadcast <HydraMotMNotifyGump>(
                "The " + InvasionName + " has begun!",
                true,
                1.0,
                10.0);

            init();
        }