Exemplo n.º 1
0
        public AssetProcessService(ISettingsRepository settingsRepository, IEntryRulesRepository entryRulesRepository,
                                   IAssetDatabaseAdapter assetDatabaseAdapter, IAddressablesEditorAdapter addressablesEditorAdapter)
        {
            // Create AddressableAssetSettings asset if it does not exists.
            if (AddressableAssetSettingsDefaultObject.Settings == null)
            {
                AddressableAssetSettingsDefaultObject.Settings = AddressableAssetSettings.Create(
                    AddressableAssetSettingsDefaultObject.kDefaultConfigFolder,
                    AddressableAssetSettingsDefaultObject.kDefaultConfigAssetName, true, true);
            }

            var addressableSettings            = AddressableAssetSettingsDefaultObject.Settings;
            var addressablePathGenerateService = new AddressablePathGenerateDomainService();
            var addressGenerateService         = new AddressGenerateDomainService(addressablePathGenerateService);
            var groupNameService = new GroupNameGenerateDomainService(assetDatabaseAdapter);
            var entryOperationInfoBuildService =
                new EntryOperationInfoBuildDomainService(addressablePathGenerateService, addressGenerateService,
                                                         groupNameService, assetDatabaseAdapter);
            var entryOperationInfoApplyService =
                new EntryOperationInfoApplyDomainService(addressablesEditorAdapter, assetDatabaseAdapter);

            _domainService = new AssetProcessDomainService(settingsRepository, entryRulesRepository,
                                                           addressableSettings, assetDatabaseAdapter, entryOperationInfoBuildService,
                                                           entryOperationInfoApplyService, addressablePathGenerateService);
        }
Exemplo n.º 2
0
 /// <summary>
 ///     Initialize.
 /// </summary>
 /// <param name="addressablesEditorAdapter"></param>
 /// <param name="assetDatabaseAdapter"></param>
 public EntryOperationInfoApplyDomainService(IAddressablesEditorAdapter addressablesEditorAdapter,
                                             IAssetDatabaseAdapter assetDatabaseAdapter)
 {
     _addressablesEditorAdapter = addressablesEditorAdapter;
     _assetDatabaseAdapter      = assetDatabaseAdapter;
 }