Aura.Channel.World.Dungeons.DungeonManager.OnMabiTick C# (CSharp) Метод

OnMabiTick() приватный Метод

Raised every 5 minutes, removes empty dungeons.
TODO: Is removing on MabiTick what we want? How long do dungeons stay active before they're removed? This could remove a dungeon the minute, even the second, the last player leaves it.
private OnMabiTick ( ErinnTime time ) : void
time Aura.Mabi.ErinnTime
Результат void
		private void OnMabiTick(ErinnTime time)
		{
			lock (_createAndCleanUpLock)
			{
				List<long> remove;
				lock (_syncLock)
					remove = _dungeons.Values.Where(a => a.CountPlayers() == 0).Select(b => b.InstanceId).ToList();

				foreach (var instanceId in remove)
					this.Remove(instanceId);
			}
		}