Exemple #1
0
        protected virtual void Dispose(bool disposing)
        {
            if (!disposedValue)
            {
                if (disposing)
                {
                    Server.Dispose();
                    Character.Dispose();
                    Map.Dispose();
                    Fight.Dispose();
                    Managers.Dispose();
                    Chat.Dispose();
                    Npcs.Dispose();
                    Storage.Dispose();
                    Exchange.Dispose();
                    Bid.Dispose();
                }

                Server    = null;
                Character = null;
                Map       = null;
                Fight     = null;
                Managers  = null;
                Chat      = null;
                Npcs      = null;
                Storage   = null;
                Exchange  = null;
                Bid       = null;

                disposedValue = true;
            }
        }
Exemple #2
0
 // Constructor
 internal Game(Account account)
 {
     Server    = new ServerGame();
     Character = new CharacterGame(account);
     Map       = new MapGame(account);
     Fight     = new FightGame(account);
     Managers  = new ManagersGame(account, Map);
     Chat      = new ChatGame(account);
     Npcs      = new NpcsGame(account);
     Storage   = new StorageGame(account);
     Exchange  = new ExchangeGame(account);
     Bid       = new BidGame(account);
 }
 public BidGameMatLabWrapper()
 {
     random = new Random();
     m      = new BidGame();
 }