Beispiel #1
0
        protected virtual void Dispose(bool disposing)
        {
            if (!_disposedValue)
            {
                if (disposing)
                {
                    Character.Dispose();
                    Fight.Dispose();
                    Gather.Dispose();
                    Inventory.Dispose();
                    Jobs.Dispose();
                    Map.Dispose();
                    Npc.Dispose();
                    Mount.Dispose();
                    Storage.Dispose();
                    Exchange.Dispose();
                    Bid.Dispose();
                }

                Character = null;
                Fight     = null;
                Gather    = null;
                Inventory = null;
                Jobs      = null;
                Map       = null;
                Npc       = null;
                Mount     = null;
                Storage   = null;
                Exchange  = null;
                Bid       = null;

                _disposedValue = true;
            }
        }
Beispiel #2
0
 // Constructor
 public API(Account account)
 {
     Character = new CharacterAPI(account);
     Fight     = new FightAPI(account);
     Gather    = new GatherAPI(account);
     Inventory = new InventoryAPI(account);
     Jobs      = new JobsAPI(account);
     Map       = new MapAPI(account);
     Npc       = new NpcAPI(account);
     Mount     = new MountAPI(account);
     Storage   = new StorageAPI(account);
     Exchange  = new ExchangeAPI(account);
     Bid       = new BidAPI(account);
 }