Example #1
0
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         _monsters.Dispose();
     }
 }
Example #2
0
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         _sessions.Dispose();
     }
 }
Example #3
0
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         _characters.Dispose();
     }
 }
Example #4
0
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         _dropsByMonster.Dispose();
         _groups.Dispose();
         _monsterSkills.Dispose();
     }
 }
 protected virtual void Dispose(bool disposing)
 {
     if (!_disposed)
     {
         if (disposing)
         {
             _sessions.Dispose();
         }
         _disposed = true;
     }
 }
Example #6
0
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         foreach (ClientSession session in ServerManager.Instance.Sessions.Where(s => s.Character != null && s.Character.MapInstanceId == MapInstanceId))
         {
             ServerManager.Instance.ChangeMap(session.Character.CharacterId, session.Character.MapId, session.Character.MapX, session.Character.MapY);
         }
         _monsters.Dispose();
         _npcs.Dispose();
     }
 }
Example #7
0
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         _monsterDrops.Dispose();
         _groups.Dispose();
         _monsterSkills.Dispose();
         _shopSkills.Dispose();
         _shopItems.Dispose();
         _shops.Dispose();
         _recipes.Dispose();
         _mapNpcs.Dispose();
         _teleporters.Dispose();
     }
 }