public DataManager() { Paths = new Paths(); ClientConfig = new ClientConfig(); EventDispatcher = EventDispatcher.Instance; EventDispatcher.clientSettingUpdatedHandler += ClientSettingUpdatedListener; EventDispatcher.saveAllSettingsRequestHandler += SaveAllSettingsRequestListener; EventDispatcher.getTypesFromFileRequestHandler += GetTypeForCharacterFromNewestLogFile; AccountManager = new AccountManager(); CharacterManager = new CharacterManager(Paths, AccountManager); Modules = new Modules(); Ui = new EveUi(); try { _configFileName = RootConfigFilename; Initialize(); } catch (Exception) { _configFileName = RootConfigFilenameAlt; Initialize(); } _marketOrderio = new MarketOrderio(); }
public PuppetMaster(DataManager dataManager) { _characterManager = dataManager.CharacterManager; _orderAnalyzer = new OrderAnalyzer(); OrderReviewer = new OrderReviewer(dataManager.EventDispatcher); LoginBot = new LoginBot(dataManager.ClientConfig, dataManager.Ui, dataManager.Paths, null, _orderAnalyzer); _autoLister = new AutoLister(dataManager.ClientConfig, dataManager.Ui, dataManager.Paths, null, dataManager.Modules, _orderAnalyzer); _autoAdjuster = new AutoAdjuster(dataManager.ClientConfig, dataManager.Ui, dataManager.Paths, null, dataManager.Modules, _orderAnalyzer, OrderReviewer); _autoInvestor = new AutoInvestor(dataManager.ClientConfig, dataManager.Ui, dataManager.Paths, null, dataManager.Modules, _orderAnalyzer); _eventDispatcher = dataManager.EventDispatcher; }
public CharacterInfoProvider(CharacterManager characterManager, Modules modules) { _characterManager = characterManager; _modules = modules; }