コード例 #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
ファイル: Program.cs プロジェクト: rusdinasir/HotBabeDotnet
        private static void controllerEditSettings(object sender, EventArgs e)
        {
            SettingsEditorView       view       = new SettingsEditorView();
            SettingsEditorController controller = new SettingsEditorController(view, sSettingsManager);

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