Пример #1
0
 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();
 }
Пример #2
0
 void AssetReferenceListener.OnInterfaceObtained(AssetUnitInterface assetInterface)
 {
     if (parent.doCache)
     {
         obtainedInterface = new CachingAUInterface {
             local = CreateLocalizedAUInterface(), remote = assetInterface
         };
     }
     else
     {
         obtainedInterface = assetInterface;
     }
     ConsumeTasks();
 }
Пример #3
0
 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();
 }
Пример #4
0
 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();
 }
Пример #5
0
 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();
 }
Пример #6
0
 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();
 }
Пример #7
0
 void AssetReferenceListener.OnInterfaceObtained(AssetUnitInterface referInterface)
 {
     clientListener.OnInterfaceObtained(referInterface);
 }