コード例 #1
0
ファイル: API.cs プロジェクト: Kuh4ku/Mercybot
        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;
            }
        }
コード例 #2
0
ファイル: API.cs プロジェクト: Kuh4ku/Mercybot
 // 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);
 }