void AssetReferenceListener.OnRawAssetContentObtained(byte[] rawData, string contentType) { obtainedInterface = obtainedInterface ?? CreateLocalizedAUInterface(); obtainedInterface.modifier.SetContent( new AssetContentSettingParam <byte[]> { content = rawData, contentPath = "", doOverwrite = true }, new StubAssetInResultListener <byte[]>()); ConsumeTasks(); }
void AssetReferenceListener.OnInterfaceObtained(AssetUnitInterface assetInterface) { if (parent.doCache) { obtainedInterface = new CachingAUInterface { local = CreateLocalizedAUInterface(), remote = assetInterface }; } else { obtainedInterface = assetInterface; } ConsumeTasks(); }
void AssetReferenceListener.OnBasicIOObtained(AssetUnitBasicIO referInterface) { if (parent.doCache) { obtainedInterface = new CachingAUInterface { local = CreateLocalizedAUInterface(), remote = parent.customizer.assetCustomizer.PickBestElement(referInterface) }; } else { obtainedInterface = parent.customizer.assetCustomizer.PickBestElement(referInterface); } //obtainedInterface = parent.customizer.assetCustomizer.PickBestElement(referInterface); ConsumeTasks(); }
void AssetReferenceListener.OnObjectObtained(object asset, string contentPath) { obtainedInterface = CreateLocalizedAUInterface(); if (obtainedInterface != null) { obtainedInterface.modifier.SetContent( new AssetContentSettingParam <object> { content = asset, contentPath = contentPath, doOverwrite = true }, new StubAssetInResultListener <object>() ); } ConsumeTasks(); }
void AssetReferenceListener.OnVCSReferenceObtained(VersionControlSystemRef vcsRef) { obtainedInterface = obtainedInterface ?? CreateLocalizedAUInterface(); if (obtainedInterface != null) { obtainedInterface.modifier.SetContent( new AssetContentSettingParam <VersionControlSystemRef> { content = vcsRef, contentPath = "", doOverwrite = true }, new StubAssetInResultListener <VersionControlSystemRef>() ); } ConsumeTasks(); }
void AssetReferenceListener.OnAssetContentObtained <AssetContentType>(AssetContentType asset, string contentName) { obtainedInterface = obtainedInterface ?? CreateLocalizedAUInterface(); if (obtainedInterface != null) { obtainedInterface.modifier.SetContent( new AssetContentSettingParam <AssetContentType> { content = asset, contentPath = contentName, doOverwrite = true }, new StubAssetInResultListener <AssetContentType>() ); } ConsumeTasks(); }
void AssetReferenceListener.OnInterfaceObtained(AssetUnitInterface referInterface) { clientListener.OnInterfaceObtained(referInterface); }