示例#1
0
        public async Task OnExitZoneAsync(L2Zone z, bool cls)
        {
            if (!ActiveZones.ContainsKey(z.ZoneId))
            {
                return;
            }

            lock (ActiveZones)
                ActiveZones.Remove(z.ZoneId);

            z.OnExit(this, cls);

            await RevalidateZoneAsync(z);
            await ValidateZoneCompassAsync();
        }
示例#2
0
        public void OnExitZone(L2Zone z, bool cls)
        {
            if (!ActiveZones.ContainsKey(z.ZoneId))
            {
                return;
            }

            lock (ActiveZones)
                ActiveZones.Remove(z.ZoneId);

            z.OnExit(this, cls);

            RevalidateZone(z);
            ValidateZoneCompass();
        }