Пример #1
0
        private void Refresh()
        {
            // Create AddressableAssetSettings asset if it does not exists.
            if (AddressableAssetSettingsDefaultObject.Settings == null)
            {
                AddressableAssetSettingsDefaultObject.Settings = AddressableAssetSettings.Create(
                    AddressableAssetSettingsDefaultObject.kDefaultConfigFolder,
                    AddressableAssetSettingsDefaultObject.kDefaultConfigAssetName, true, true);
            }

            var settingsRepository   = new SettingsRepository();
            var entryRulesRepository = new EntryRulesRepository();

            _addressableSettings = AddressableAssetSettingsDefaultObject.Settings;
            var addressablesEditorAdapter = new AddressablesEditorAdapter(_addressableSettings);
            var assetDatabaseAdapter      = new AssetDatabaseAdapter();

            AssetProcessService = new AssetProcessService(settingsRepository, entryRulesRepository,
                                                          assetDatabaseAdapter,
                                                          addressablesEditorAdapter);
            SettingsService            = new SettingsService(settingsRepository);
            EntryRulesService          = new EntryRulesService(entryRulesRepository);
            SettingsEditorPresenter    = new SettingsEditorPresenter(SettingsService);
            SettingsEditorController   = new SettingsEditorController(SettingsService, AssetProcessService);
            EntryRulesEditorPresenter  = new EntryRulesEditorPresenter(EntryRulesService);
            EntryRulesEditorController = new EntryRulesEditorController(EntryRulesService, AssetProcessService);
        }
Пример #2
0
 public void Dispose()
 {
     SettingsEditorPresenter.Dispose();
     SettingsEditorController.Dispose();
     EntryRulesEditorPresenter.Dispose();
     EntryRulesEditorController.Dispose();
 }
Пример #3
0
        private static void controllerEditSettings(object sender, EventArgs e)
        {
            SettingsEditorView       view       = new SettingsEditorView();
            SettingsEditorController controller = new SettingsEditorController(view, sSettingsManager);

            controller.SettingsChanged += controllerSettingsChanged;
            controller.Start();
        }