connected-spaces-platform.unity.core 4.10.0-prerelease3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Editor/NativePluginBuildProcessor.asmdef +16 -0
- package/Editor/NativePluginBuildProcessor.asmdef.meta +7 -0
- package/Editor/NativePluginBuildProcessor.cs +41 -0
- package/Editor/NativePluginBuildProcessor.cs.meta +11 -0
- package/Editor.meta +7 -0
- package/Source/CSPFoundation.cs +417 -0
- package/Source/CSPFoundation.cs.meta +11 -0
- package/Source/ClientUserAgent.cs +292 -0
- package/Source/ClientUserAgent.cs.meta +11 -0
- package/Source/Common/Array.cs +201 -0
- package/Source/Common/Array.cs.meta +11 -0
- package/Source/Common/CancellationToken.cs +175 -0
- package/Source/Common/CancellationToken.cs.meta +11 -0
- package/Source/Common/FileExtensions.cs +15317 -0
- package/Source/Common/FileExtensions.cs.meta +11 -0
- package/Source/Common/List.cs +275 -0
- package/Source/Common/List.cs.meta +11 -0
- package/Source/Common/Map.cs +283 -0
- package/Source/Common/Map.cs.meta +11 -0
- package/Source/Common/MimeTypeHelper.cs +210 -0
- package/Source/Common/MimeTypeHelper.cs.meta +11 -0
- package/Source/Common/MimeTypes.cs +10565 -0
- package/Source/Common/MimeTypes.cs.meta +11 -0
- package/Source/Common/Variant.cs +573 -0
- package/Source/Common/Variant.cs.meta +11 -0
- package/Source/Common/VariantType.cs +28 -0
- package/Source/Common/VariantType.cs.meta +11 -0
- package/Source/Common/Vector3.cs +268 -0
- package/Source/Common/Vector3.cs.meta +11 -0
- package/Source/Common/Vector4.cs +328 -0
- package/Source/Common/Vector4.cs.meta +11 -0
- package/Source/Common.meta +7 -0
- package/Source/ConnectedSpacesPlatform.Unity.Core.asmdef +14 -0
- package/Source/ConnectedSpacesPlatform.Unity.Core.asmdef.meta +7 -0
- package/Source/Csp.cs +83 -0
- package/Source/Csp.cs.meta +11 -0
- package/Source/EThirdPartyPlatform.cs +26 -0
- package/Source/EThirdPartyPlatform.cs.meta +11 -0
- package/Source/EndpointURIs.cs +258 -0
- package/Source/EndpointURIs.cs.meta +11 -0
- package/Source/Il2cppPreserver.cs +29 -0
- package/Source/Il2cppPreserver.cs.meta +11 -0
- package/Source/Multiplayer/AssetDetailBlobParams.cs +270 -0
- package/Source/Multiplayer/AssetDetailBlobParams.cs.meta +11 -0
- package/Source/Multiplayer/ComponentBase.cs +339 -0
- package/Source/Multiplayer/ComponentBase.cs.meta +11 -0
- package/Source/Multiplayer/ComponentType.cs +46 -0
- package/Source/Multiplayer/ComponentType.cs.meta +11 -0
- package/Source/Multiplayer/ComponentUpdateInfo.cs +161 -0
- package/Source/Multiplayer/ComponentUpdateInfo.cs.meta +11 -0
- package/Source/Multiplayer/ComponentUpdateType.cs +24 -0
- package/Source/Multiplayer/ComponentUpdateType.cs.meta +11 -0
- package/Source/Multiplayer/Components/AnimatedModelActions.cs +25 -0
- package/Source/Multiplayer/Components/AnimatedModelActions.cs.meta +11 -0
- package/Source/Multiplayer/Components/AnimatedModelPropertyKeys.cs +36 -0
- package/Source/Multiplayer/Components/AnimatedModelPropertyKeys.cs.meta +11 -0
- package/Source/Multiplayer/Components/AnimatedModelSpaceComponent.cs +793 -0
- package/Source/Multiplayer/Components/AnimatedModelSpaceComponent.cs.meta +11 -0
- package/Source/Multiplayer/Components/AudioPlaybackState.cs +25 -0
- package/Source/Multiplayer/Components/AudioPlaybackState.cs.meta +11 -0
- package/Source/Multiplayer/Components/AudioPropertyKeys.cs +33 -0
- package/Source/Multiplayer/Components/AudioPropertyKeys.cs.meta +11 -0
- package/Source/Multiplayer/Components/AudioSpaceComponent.cs +693 -0
- package/Source/Multiplayer/Components/AudioSpaceComponent.cs.meta +11 -0
- package/Source/Multiplayer/Components/AudioType.cs +24 -0
- package/Source/Multiplayer/Components/AudioType.cs.meta +11 -0
- package/Source/Multiplayer/Components/AvatarComponentPropertyKeys.cs +37 -0
- package/Source/Multiplayer/Components/AvatarComponentPropertyKeys.cs.meta +11 -0
- package/Source/Multiplayer/Components/AvatarPlayMode.cs +26 -0
- package/Source/Multiplayer/Components/AvatarPlayMode.cs.meta +11 -0
- package/Source/Multiplayer/Components/AvatarSpaceComponent.cs +946 -0
- package/Source/Multiplayer/Components/AvatarSpaceComponent.cs.meta +11 -0
- package/Source/Multiplayer/Components/AvatarState.cs +29 -0
- package/Source/Multiplayer/Components/AvatarState.cs.meta +11 -0
- package/Source/Multiplayer/Components/BillboardMode.cs +24 -0
- package/Source/Multiplayer/Components/BillboardMode.cs.meta +11 -0
- package/Source/Multiplayer/Components/ButtonPropertyKeys.cs +32 -0
- package/Source/Multiplayer/Components/ButtonPropertyKeys.cs.meta +11 -0
- package/Source/Multiplayer/Components/ButtonSpaceComponent.cs +597 -0
- package/Source/Multiplayer/Components/ButtonSpaceComponent.cs.meta +11 -0
- package/Source/Multiplayer/Components/CollisionMode.cs +23 -0
- package/Source/Multiplayer/Components/CollisionMode.cs.meta +11 -0
- package/Source/Multiplayer/Components/CollisionPropertyKeys.cs +30 -0
- package/Source/Multiplayer/Components/CollisionPropertyKeys.cs.meta +11 -0
- package/Source/Multiplayer/Components/CollisionShape.cs +25 -0
- package/Source/Multiplayer/Components/CollisionShape.cs.meta +11 -0
- package/Source/Multiplayer/Components/CollisionSpaceComponent.cs +757 -0
- package/Source/Multiplayer/Components/CollisionSpaceComponent.cs.meta +11 -0
- package/Source/Multiplayer/Components/ConversationPropertyKeys.cs +30 -0
- package/Source/Multiplayer/Components/ConversationPropertyKeys.cs.meta +11 -0
- package/Source/Multiplayer/Components/ConversationSpaceComponent.cs +1105 -0
- package/Source/Multiplayer/Components/ConversationSpaceComponent.cs.meta +11 -0
- package/Source/Multiplayer/Components/CustomComponentPropertyKeys.cs +24 -0
- package/Source/Multiplayer/Components/CustomComponentPropertyKeys.cs.meta +11 -0
- package/Source/Multiplayer/Components/CustomSpaceComponent.cs +370 -0
- package/Source/Multiplayer/Components/CustomSpaceComponent.cs.meta +11 -0
- package/Source/Multiplayer/Components/DisplayMode.cs +24 -0
- package/Source/Multiplayer/Components/DisplayMode.cs.meta +11 -0
- package/Source/Multiplayer/Components/ECommercePropertyKeys.cs +24 -0
- package/Source/Multiplayer/Components/ECommercePropertyKeys.cs.meta +11 -0
- package/Source/Multiplayer/Components/ECommerceSpaceComponent.cs +216 -0
- package/Source/Multiplayer/Components/ECommerceSpaceComponent.cs.meta +11 -0
- package/Source/Multiplayer/Components/ExternalLinkActions.cs +23 -0
- package/Source/Multiplayer/Components/ExternalLinkActions.cs.meta +11 -0
- package/Source/Multiplayer/Components/ExternalLinkPropertyKeys.cs +31 -0
- package/Source/Multiplayer/Components/ExternalLinkPropertyKeys.cs.meta +11 -0
- package/Source/Multiplayer/Components/ExternalLinkSpaceComponent.cs +579 -0
- package/Source/Multiplayer/Components/ExternalLinkSpaceComponent.cs.meta +11 -0
- package/Source/Multiplayer/Components/FiducialMarkerPropertyKeys.cs +30 -0
- package/Source/Multiplayer/Components/FiducialMarkerPropertyKeys.cs.meta +11 -0
- package/Source/Multiplayer/Components/FiducialMarkerSpaceComponent.cs +569 -0
- package/Source/Multiplayer/Components/FiducialMarkerSpaceComponent.cs.meta +11 -0
- package/Source/Multiplayer/Components/FogMode.cs +24 -0
- package/Source/Multiplayer/Components/FogMode.cs.meta +11 -0
- package/Source/Multiplayer/Components/FogPropertyKeys.cs +36 -0
- package/Source/Multiplayer/Components/FogPropertyKeys.cs.meta +11 -0
- package/Source/Multiplayer/Components/FogSpaceComponent.cs +836 -0
- package/Source/Multiplayer/Components/FogSpaceComponent.cs.meta +11 -0
- package/Source/Multiplayer/Components/ImagePropertyKeys.cs +33 -0
- package/Source/Multiplayer/Components/ImagePropertyKeys.cs.meta +11 -0
- package/Source/Multiplayer/Components/ImageSpaceComponent.cs +693 -0
- package/Source/Multiplayer/Components/ImageSpaceComponent.cs.meta +11 -0
- package/Source/Multiplayer/Components/Interfaces/IEnableableComponent.cs +24 -0
- package/Source/Multiplayer/Components/Interfaces/IEnableableComponent.cs.meta +11 -0
- package/Source/Multiplayer/Components/Interfaces/IExternalResourceComponent.cs +28 -0
- package/Source/Multiplayer/Components/Interfaces/IExternalResourceComponent.cs.meta +11 -0
- package/Source/Multiplayer/Components/Interfaces/IPositionComponent.cs +24 -0
- package/Source/Multiplayer/Components/Interfaces/IPositionComponent.cs.meta +11 -0
- package/Source/Multiplayer/Components/Interfaces/IRotationComponent.cs +24 -0
- package/Source/Multiplayer/Components/Interfaces/IRotationComponent.cs.meta +11 -0
- package/Source/Multiplayer/Components/Interfaces/IScaleComponent.cs +24 -0
- package/Source/Multiplayer/Components/Interfaces/IScaleComponent.cs.meta +11 -0
- package/Source/Multiplayer/Components/Interfaces/IShadowCasterComponent.cs +24 -0
- package/Source/Multiplayer/Components/Interfaces/IShadowCasterComponent.cs.meta +11 -0
- package/Source/Multiplayer/Components/Interfaces/IThirdPartyComponentRef.cs +27 -0
- package/Source/Multiplayer/Components/Interfaces/IThirdPartyComponentRef.cs.meta +11 -0
- package/Source/Multiplayer/Components/Interfaces/ITransformComponent.cs +27 -0
- package/Source/Multiplayer/Components/Interfaces/ITransformComponent.cs.meta +11 -0
- package/Source/Multiplayer/Components/Interfaces/IVisibleComponent.cs +28 -0
- package/Source/Multiplayer/Components/Interfaces/IVisibleComponent.cs.meta +11 -0
- package/Source/Multiplayer/Components/Interfaces.meta +7 -0
- package/Source/Multiplayer/Components/LightCookieType.cs +24 -0
- package/Source/Multiplayer/Components/LightCookieType.cs.meta +11 -0
- package/Source/Multiplayer/Components/LightPropertyKeys.cs +38 -0
- package/Source/Multiplayer/Components/LightPropertyKeys.cs.meta +11 -0
- package/Source/Multiplayer/Components/LightShadowType.cs +25 -0
- package/Source/Multiplayer/Components/LightShadowType.cs.meta +11 -0
- package/Source/Multiplayer/Components/LightSpaceComponent.cs +891 -0
- package/Source/Multiplayer/Components/LightSpaceComponent.cs.meta +11 -0
- package/Source/Multiplayer/Components/LightType.cs +25 -0
- package/Source/Multiplayer/Components/LightType.cs.meta +11 -0
- package/Source/Multiplayer/Components/LocomotionModel.cs +24 -0
- package/Source/Multiplayer/Components/LocomotionModel.cs.meta +11 -0
- package/Source/Multiplayer/Components/PortalPropertyKeys.cs +30 -0
- package/Source/Multiplayer/Components/PortalPropertyKeys.cs.meta +11 -0
- package/Source/Multiplayer/Components/PortalSpaceComponent.cs +371 -0
- package/Source/Multiplayer/Components/PortalSpaceComponent.cs.meta +11 -0
- package/Source/Multiplayer/Components/ReflectionPropertyKeys.cs +30 -0
- package/Source/Multiplayer/Components/ReflectionPropertyKeys.cs.meta +11 -0
- package/Source/Multiplayer/Components/ReflectionShape.cs +23 -0
- package/Source/Multiplayer/Components/ReflectionShape.cs.meta +11 -0
- package/Source/Multiplayer/Components/ReflectionSpaceComponent.cs +515 -0
- package/Source/Multiplayer/Components/ReflectionSpaceComponent.cs.meta +11 -0
- package/Source/Multiplayer/Components/ScriptComponentPropertyKeys.cs +25 -0
- package/Source/Multiplayer/Components/ScriptComponentPropertyKeys.cs.meta +11 -0
- package/Source/Multiplayer/Components/ScriptScope.cs +24 -0
- package/Source/Multiplayer/Components/ScriptScope.cs.meta +11 -0
- package/Source/Multiplayer/Components/ScriptSpaceComponent.cs +258 -0
- package/Source/Multiplayer/Components/ScriptSpaceComponent.cs.meta +11 -0
- package/Source/Multiplayer/Components/SplinePropertyKeys.cs +23 -0
- package/Source/Multiplayer/Components/SplinePropertyKeys.cs.meta +11 -0
- package/Source/Multiplayer/Components/SplineSpaceComponent.cs +184 -0
- package/Source/Multiplayer/Components/SplineSpaceComponent.cs.meta +11 -0
- package/Source/Multiplayer/Components/StaticModelPropertyKeys.cs +32 -0
- package/Source/Multiplayer/Components/StaticModelPropertyKeys.cs.meta +11 -0
- package/Source/Multiplayer/Components/StaticModelSpaceComponent.cs +640 -0
- package/Source/Multiplayer/Components/StaticModelSpaceComponent.cs.meta +11 -0
- package/Source/Multiplayer/Components/VideoPlayerActions.cs +24 -0
- package/Source/Multiplayer/Components/VideoPlayerActions.cs.meta +11 -0
- package/Source/Multiplayer/Components/VideoPlayerPlaybackState.cs +25 -0
- package/Source/Multiplayer/Components/VideoPlayerPlaybackState.cs.meta +11 -0
- package/Source/Multiplayer/Components/VideoPlayerPropertyKeys.cs +42 -0
- package/Source/Multiplayer/Components/VideoPlayerPropertyKeys.cs.meta +11 -0
- package/Source/Multiplayer/Components/VideoPlayerSourceType.cs +25 -0
- package/Source/Multiplayer/Components/VideoPlayerSourceType.cs.meta +11 -0
- package/Source/Multiplayer/Components/VideoPlayerSpaceComponent.cs +1187 -0
- package/Source/Multiplayer/Components/VideoPlayerSpaceComponent.cs.meta +11 -0
- package/Source/Multiplayer/Components.meta +7 -0
- package/Source/Multiplayer/ConnectionState.cs +25 -0
- package/Source/Multiplayer/ConnectionState.cs.meta +11 -0
- package/Source/Multiplayer/Conversation/BaseMessageInfo.cs +293 -0
- package/Source/Multiplayer/Conversation/BaseMessageInfo.cs.meta +11 -0
- package/Source/Multiplayer/Conversation/ConversationInfo.cs +205 -0
- package/Source/Multiplayer/Conversation/ConversationInfo.cs.meta +11 -0
- package/Source/Multiplayer/Conversation/ConversationMessageType.cs +26 -0
- package/Source/Multiplayer/Conversation/ConversationMessageType.cs.meta +11 -0
- package/Source/Multiplayer/Conversation/ConversationResult.cs +152 -0
- package/Source/Multiplayer/Conversation/ConversationResult.cs.meta +11 -0
- package/Source/Multiplayer/Conversation/ConversationSystem.cs +784 -0
- package/Source/Multiplayer/Conversation/ConversationSystem.cs.meta +11 -0
- package/Source/Multiplayer/Conversation/MessageCollectionResult.cs +175 -0
- package/Source/Multiplayer/Conversation/MessageCollectionResult.cs.meta +11 -0
- package/Source/Multiplayer/Conversation/MessageInfo.cs +172 -0
- package/Source/Multiplayer/Conversation/MessageInfo.cs.meta +11 -0
- package/Source/Multiplayer/Conversation/MessageResult.cs +150 -0
- package/Source/Multiplayer/Conversation/MessageResult.cs.meta +11 -0
- package/Source/Multiplayer/Conversation.meta +7 -0
- package/Source/Multiplayer/ConversationSystemParams.cs +165 -0
- package/Source/Multiplayer/ConversationSystemParams.cs.meta +11 -0
- package/Source/Multiplayer/EAssetChangeType.cs +27 -0
- package/Source/Multiplayer/EAssetChangeType.cs.meta +11 -0
- package/Source/Multiplayer/IEntityDeserialiser.cs +70 -0
- package/Source/Multiplayer/IEntityDeserialiser.cs.meta +11 -0
- package/Source/Multiplayer/IEntitySerialiser.cs +63 -0
- package/Source/Multiplayer/IEntitySerialiser.cs.meta +11 -0
- package/Source/Multiplayer/MultiplayerConnection.cs +964 -0
- package/Source/Multiplayer/MultiplayerConnection.cs.meta +11 -0
- package/Source/Multiplayer/PropertyUpdateInfo.cs +159 -0
- package/Source/Multiplayer/PropertyUpdateInfo.cs.meta +11 -0
- package/Source/Multiplayer/ReplicatedValue.cs +593 -0
- package/Source/Multiplayer/ReplicatedValue.cs.meta +11 -0
- package/Source/Multiplayer/ReplicatedValueType.cs +28 -0
- package/Source/Multiplayer/ReplicatedValueType.cs.meta +11 -0
- package/Source/Multiplayer/Script/EntityScript.cs +479 -0
- package/Source/Multiplayer/Script/EntityScript.cs.meta +11 -0
- package/Source/Multiplayer/Script.meta +7 -0
- package/Source/Multiplayer/SpaceEntity.cs +1202 -0
- package/Source/Multiplayer/SpaceEntity.cs.meta +11 -0
- package/Source/Multiplayer/SpaceEntitySystem.cs +1304 -0
- package/Source/Multiplayer/SpaceEntitySystem.cs.meta +11 -0
- package/Source/Multiplayer/SpaceEntityType.cs +25 -0
- package/Source/Multiplayer/SpaceEntityType.cs.meta +11 -0
- package/Source/Multiplayer/SpaceEntityUpdateFlags.cs +27 -0
- package/Source/Multiplayer/SpaceEntityUpdateFlags.cs.meta +11 -0
- package/Source/Multiplayer/SpaceTransform.cs +232 -0
- package/Source/Multiplayer/SpaceTransform.cs.meta +11 -0
- package/Source/Multiplayer.meta +7 -0
- package/Source/NativeClassWrapper.cs +42 -0
- package/Source/NativeClassWrapper.cs.meta +11 -0
- package/Source/ProgressEventArgs.cs +15 -0
- package/Source/ProgressEventArgs.cs.meta +11 -0
- package/Source/Ref.cs +28 -0
- package/Source/Ref.cs.meta +11 -0
- package/Source/Services/EResultCode.cs +26 -0
- package/Source/Services/EResultCode.cs.meta +11 -0
- package/Source/Services/ResultBase.cs +237 -0
- package/Source/Services/ResultBase.cs.meta +11 -0
- package/Source/Services/WebService.cs +91 -0
- package/Source/Services/WebService.cs.meta +11 -0
- package/Source/Services.meta +7 -0
- package/Source/Systems/Analytics/AnalyticsEvent.cs +288 -0
- package/Source/Systems/Analytics/AnalyticsEvent.cs.meta +11 -0
- package/Source/Systems/Analytics/AnalyticsEventInitialiser.cs +78 -0
- package/Source/Systems/Analytics/AnalyticsEventInitialiser.cs.meta +11 -0
- package/Source/Systems/Analytics/AnalyticsSystem.cs +116 -0
- package/Source/Systems/Analytics/AnalyticsSystem.cs.meta +11 -0
- package/Source/Systems/Analytics/IAnalyticsProvider.cs +85 -0
- package/Source/Systems/Analytics/IAnalyticsProvider.cs.meta +11 -0
- package/Source/Systems/Analytics.meta +7 -0
- package/Source/Systems/Assets/Asset.cs +698 -0
- package/Source/Systems/Assets/Asset.cs.meta +11 -0
- package/Source/Systems/Assets/AssetCollection.cs +605 -0
- package/Source/Systems/Assets/AssetCollection.cs.meta +11 -0
- package/Source/Systems/Assets/AssetCollectionResult.cs +119 -0
- package/Source/Systems/Assets/AssetCollectionResult.cs.meta +11 -0
- package/Source/Systems/Assets/AssetCollectionsResult.cs +161 -0
- package/Source/Systems/Assets/AssetCollectionsResult.cs.meta +11 -0
- package/Source/Systems/Assets/AssetDataResult.cs +175 -0
- package/Source/Systems/Assets/AssetDataResult.cs.meta +11 -0
- package/Source/Systems/Assets/AssetDataSource.cs +24 -0
- package/Source/Systems/Assets/AssetDataSource.cs.meta +11 -0
- package/Source/Systems/Assets/AssetResult.cs +131 -0
- package/Source/Systems/Assets/AssetResult.cs.meta +11 -0
- package/Source/Systems/Assets/AssetSystem.cs +1601 -0
- package/Source/Systems/Assets/AssetSystem.cs.meta +11 -0
- package/Source/Systems/Assets/AssetsResult.cs +148 -0
- package/Source/Systems/Assets/AssetsResult.cs.meta +11 -0
- package/Source/Systems/Assets/BufferAssetDataSource.cs +214 -0
- package/Source/Systems/Assets/BufferAssetDataSource.cs.meta +11 -0
- package/Source/Systems/Assets/EAssetCollectionType.cs +24 -0
- package/Source/Systems/Assets/EAssetCollectionType.cs.meta +11 -0
- package/Source/Systems/Assets/EAssetPlatform.cs +20 -0
- package/Source/Systems/Assets/EAssetPlatform.cs.meta +11 -0
- package/Source/Systems/Assets/EAssetType.cs +30 -0
- package/Source/Systems/Assets/EAssetType.cs.meta +11 -0
- package/Source/Systems/Assets/FileAssetDataSource.cs +177 -0
- package/Source/Systems/Assets/FileAssetDataSource.cs.meta +11 -0
- package/Source/Systems/Assets/LODAsset.cs +157 -0
- package/Source/Systems/Assets/LODAsset.cs.meta +11 -0
- package/Source/Systems/Assets/LODChain.cs +158 -0
- package/Source/Systems/Assets/LODChain.cs.meta +11 -0
- package/Source/Systems/Assets/LODChainResult.cs +131 -0
- package/Source/Systems/Assets/LODChainResult.cs.meta +11 -0
- package/Source/Systems/Assets/UriResult.cs +193 -0
- package/Source/Systems/Assets/UriResult.cs.meta +11 -0
- package/Source/Systems/Assets.meta +7 -0
- package/Source/Systems/BooleanResult.cs +146 -0
- package/Source/Systems/BooleanResult.cs.meta +11 -0
- package/Source/Systems/ECommerce/AddShopifyStoreResult.cs +112 -0
- package/Source/Systems/ECommerce/AddShopifyStoreResult.cs.meta +11 -0
- package/Source/Systems/ECommerce/CartInfo.cs +233 -0
- package/Source/Systems/ECommerce/CartInfo.cs.meta +11 -0
- package/Source/Systems/ECommerce/CartInfoResult.cs +132 -0
- package/Source/Systems/ECommerce/CartInfoResult.cs.meta +11 -0
- package/Source/Systems/ECommerce/CartLine.cs +197 -0
- package/Source/Systems/ECommerce/CartLine.cs.meta +11 -0
- package/Source/Systems/ECommerce/CheckoutInfo.cs +161 -0
- package/Source/Systems/ECommerce/CheckoutInfo.cs.meta +11 -0
- package/Source/Systems/ECommerce/CheckoutInfoResult.cs +117 -0
- package/Source/Systems/ECommerce/CheckoutInfoResult.cs.meta +11 -0
- package/Source/Systems/ECommerce/CurrencyInfo.cs +161 -0
- package/Source/Systems/ECommerce/CurrencyInfo.cs.meta +11 -0
- package/Source/Systems/ECommerce/ECommerceSystem.cs +564 -0
- package/Source/Systems/ECommerce/ECommerceSystem.cs.meta +11 -0
- package/Source/Systems/ECommerce/ProductInfo.cs +341 -0
- package/Source/Systems/ECommerce/ProductInfo.cs.meta +11 -0
- package/Source/Systems/ECommerce/ProductInfoResult.cs +117 -0
- package/Source/Systems/ECommerce/ProductInfoResult.cs.meta +11 -0
- package/Source/Systems/ECommerce/ProductMediaInfo.cs +269 -0
- package/Source/Systems/ECommerce/ProductMediaInfo.cs.meta +11 -0
- package/Source/Systems/ECommerce/ProductVariantInfo.cs +342 -0
- package/Source/Systems/ECommerce/ProductVariantInfo.cs.meta +11 -0
- package/Source/Systems/ECommerce/ShopifyStoreInfo.cs +269 -0
- package/Source/Systems/ECommerce/ShopifyStoreInfo.cs.meta +11 -0
- package/Source/Systems/ECommerce/ValidateShopifyStoreResult.cs +120 -0
- package/Source/Systems/ECommerce/ValidateShopifyStoreResult.cs.meta +11 -0
- package/Source/Systems/ECommerce/VariantOptionInfo.cs +161 -0
- package/Source/Systems/ECommerce/VariantOptionInfo.cs.meta +11 -0
- package/Source/Systems/ECommerce.meta +7 -0
- package/Source/Systems/EventTicketing/EventTicket.cs +378 -0
- package/Source/Systems/EventTicketing/EventTicket.cs.meta +11 -0
- package/Source/Systems/EventTicketing/EventTicketResult.cs +115 -0
- package/Source/Systems/EventTicketing/EventTicketResult.cs.meta +11 -0
- package/Source/Systems/EventTicketing/EventTicketingSystem.cs +563 -0
- package/Source/Systems/EventTicketing/EventTicketingSystem.cs.meta +11 -0
- package/Source/Systems/EventTicketing/EventTicketingVendor.cs +24 -0
- package/Source/Systems/EventTicketing/EventTicketingVendor.cs.meta +11 -0
- package/Source/Systems/EventTicketing/SpaceIsTicketedResult.cs +115 -0
- package/Source/Systems/EventTicketing/SpaceIsTicketedResult.cs.meta +11 -0
- package/Source/Systems/EventTicketing/TicketStatus.cs +26 -0
- package/Source/Systems/EventTicketing/TicketStatus.cs.meta +11 -0
- package/Source/Systems/EventTicketing/TicketedEvent.cs +305 -0
- package/Source/Systems/EventTicketing/TicketedEvent.cs.meta +11 -0
- package/Source/Systems/EventTicketing/TicketedEventCollectionResult.cs +117 -0
- package/Source/Systems/EventTicketing/TicketedEventCollectionResult.cs.meta +11 -0
- package/Source/Systems/EventTicketing/TicketedEventResult.cs +117 -0
- package/Source/Systems/EventTicketing/TicketedEventResult.cs.meta +11 -0
- package/Source/Systems/EventTicketing/TicketedEventVendorAuthInfo.cs +248 -0
- package/Source/Systems/EventTicketing/TicketedEventVendorAuthInfo.cs.meta +11 -0
- package/Source/Systems/EventTicketing/TicketedEventVendorAuthInfoResult.cs +115 -0
- package/Source/Systems/EventTicketing/TicketedEventVendorAuthInfoResult.cs.meta +11 -0
- package/Source/Systems/EventTicketing.meta +7 -0
- package/Source/Systems/GraphQL/GraphQLResult.cs +146 -0
- package/Source/Systems/GraphQL/GraphQLResult.cs.meta +11 -0
- package/Source/Systems/GraphQL/GraphQLSystem.cs +221 -0
- package/Source/Systems/GraphQL/GraphQLSystem.cs.meta +11 -0
- package/Source/Systems/GraphQL.meta +7 -0
- package/Source/Systems/HTTPHeadersResult.cs +147 -0
- package/Source/Systems/HTTPHeadersResult.cs.meta +11 -0
- package/Source/Systems/Log/LogLevel.cs +28 -0
- package/Source/Systems/Log/LogLevel.cs.meta +11 -0
- package/Source/Systems/Log/LogSystem.cs +331 -0
- package/Source/Systems/Log/LogSystem.cs.meta +11 -0
- package/Source/Systems/Log.meta +7 -0
- package/Source/Systems/Maintenance/MaintenanceInfo.cs +211 -0
- package/Source/Systems/Maintenance/MaintenanceInfo.cs.meta +11 -0
- package/Source/Systems/Maintenance/MaintenanceInfoResult.cs +252 -0
- package/Source/Systems/Maintenance/MaintenanceInfoResult.cs.meta +11 -0
- package/Source/Systems/Maintenance/MaintenanceSystem.cs +154 -0
- package/Source/Systems/Maintenance/MaintenanceSystem.cs.meta +11 -0
- package/Source/Systems/Maintenance.meta +7 -0
- package/Source/Systems/NullResult.cs +122 -0
- package/Source/Systems/NullResult.cs.meta +11 -0
- package/Source/Systems/Script/ScriptSystem.cs +198 -0
- package/Source/Systems/Script/ScriptSystem.cs.meta +11 -0
- package/Source/Systems/Script.meta +7 -0
- package/Source/Systems/Settings/SettingsCollection.cs +191 -0
- package/Source/Systems/Settings/SettingsCollection.cs.meta +11 -0
- package/Source/Systems/Settings/SettingsCollectionResult.cs +119 -0
- package/Source/Systems/Settings/SettingsCollectionResult.cs.meta +11 -0
- package/Source/Systems/Settings/SettingsSystem.cs +999 -0
- package/Source/Systems/Settings/SettingsSystem.cs.meta +11 -0
- package/Source/Systems/Settings.meta +7 -0
- package/Source/Systems/Spaces/BasicSpace.cs +225 -0
- package/Source/Systems/Spaces/BasicSpace.cs.meta +11 -0
- package/Source/Systems/Spaces/BasicSpaceResult.cs +111 -0
- package/Source/Systems/Spaces/BasicSpaceResult.cs.meta +11 -0
- package/Source/Systems/Spaces/BasicSpacesResult.cs +144 -0
- package/Source/Systems/Spaces/BasicSpacesResult.cs.meta +11 -0
- package/Source/Systems/Spaces/InviteUserRoleInfo.cs +178 -0
- package/Source/Systems/Spaces/InviteUserRoleInfo.cs.meta +11 -0
- package/Source/Systems/Spaces/PendingInvitesResult.cs +117 -0
- package/Source/Systems/Spaces/PendingInvitesResult.cs.meta +11 -0
- package/Source/Systems/Spaces/Site.cs +259 -0
- package/Source/Systems/Spaces/Site.cs.meta +11 -0
- package/Source/Systems/Spaces/SiteResult.cs +114 -0
- package/Source/Systems/Spaces/SiteResult.cs.meta +11 -0
- package/Source/Systems/Spaces/SitesCollectionResult.cs +117 -0
- package/Source/Systems/Spaces/SitesCollectionResult.cs.meta +11 -0
- package/Source/Systems/Spaces/Space.cs +321 -0
- package/Source/Systems/Spaces/Space.cs.meta +11 -0
- package/Source/Systems/Spaces/SpaceAttributes.cs +27 -0
- package/Source/Systems/Spaces/SpaceAttributes.cs.meta +11 -0
- package/Source/Systems/Spaces/SpaceGeoLocation.cs +225 -0
- package/Source/Systems/Spaces/SpaceGeoLocation.cs.meta +11 -0
- package/Source/Systems/Spaces/SpaceGeoLocationResult.cs +162 -0
- package/Source/Systems/Spaces/SpaceGeoLocationResult.cs.meta +11 -0
- package/Source/Systems/Spaces/SpaceMetadataResult.cs +144 -0
- package/Source/Systems/Spaces/SpaceMetadataResult.cs.meta +11 -0
- package/Source/Systems/Spaces/SpaceResult.cs +160 -0
- package/Source/Systems/Spaces/SpaceResult.cs.meta +11 -0
- package/Source/Systems/Spaces/SpaceSystem.cs +2322 -0
- package/Source/Systems/Spaces/SpaceSystem.cs.meta +11 -0
- package/Source/Systems/Spaces/SpaceUserRole.cs +22 -0
- package/Source/Systems/Spaces/SpaceUserRole.cs.meta +11 -0
- package/Source/Systems/Spaces/SpacesMetadataResult.cs +146 -0
- package/Source/Systems/Spaces/SpacesMetadataResult.cs.meta +11 -0
- package/Source/Systems/Spaces/SpacesResult.cs +132 -0
- package/Source/Systems/Spaces/SpacesResult.cs.meta +11 -0
- package/Source/Systems/Spaces/UserRoleCollectionResult.cs +146 -0
- package/Source/Systems/Spaces/UserRoleCollectionResult.cs.meta +11 -0
- package/Source/Systems/Spaces/UserRoleInfo.cs +178 -0
- package/Source/Systems/Spaces/UserRoleInfo.cs.meta +11 -0
- package/Source/Systems/Spaces.meta +7 -0
- package/Source/Systems/Spatial/Anchor.cs +534 -0
- package/Source/Systems/Spatial/Anchor.cs.meta +11 -0
- package/Source/Systems/Spatial/AnchorCollectionResult.cs +117 -0
- package/Source/Systems/Spatial/AnchorCollectionResult.cs.meta +11 -0
- package/Source/Systems/Spatial/AnchorProvider.cs +20 -0
- package/Source/Systems/Spatial/AnchorProvider.cs.meta +11 -0
- package/Source/Systems/Spatial/AnchorResolution.cs +293 -0
- package/Source/Systems/Spatial/AnchorResolution.cs.meta +11 -0
- package/Source/Systems/Spatial/AnchorResolutionCollectionResult.cs +119 -0
- package/Source/Systems/Spatial/AnchorResolutionCollectionResult.cs.meta +11 -0
- package/Source/Systems/Spatial/AnchorResolutionResult.cs +119 -0
- package/Source/Systems/Spatial/AnchorResolutionResult.cs.meta +11 -0
- package/Source/Systems/Spatial/AnchorResult.cs +111 -0
- package/Source/Systems/Spatial/AnchorResult.cs.meta +11 -0
- package/Source/Systems/Spatial/AnchorSystem.cs +738 -0
- package/Source/Systems/Spatial/AnchorSystem.cs.meta +11 -0
- package/Source/Systems/Spatial/EPointOfInterestType.cs +20 -0
- package/Source/Systems/Spatial/EPointOfInterestType.cs.meta +11 -0
- package/Source/Systems/Spatial/GeoLocation.cs +202 -0
- package/Source/Systems/Spatial/GeoLocation.cs.meta +11 -0
- package/Source/Systems/Spatial/OlyAnchorPosition.cs +216 -0
- package/Source/Systems/Spatial/OlyAnchorPosition.cs.meta +11 -0
- package/Source/Systems/Spatial/OlyRotation.cs +250 -0
- package/Source/Systems/Spatial/OlyRotation.cs.meta +11 -0
- package/Source/Systems/Spatial/POICollectionResult.cs +117 -0
- package/Source/Systems/Spatial/POICollectionResult.cs.meta +11 -0
- package/Source/Systems/Spatial/POIResult.cs +113 -0
- package/Source/Systems/Spatial/POIResult.cs.meta +11 -0
- package/Source/Systems/Spatial/PointOfInterest.cs +463 -0
- package/Source/Systems/Spatial/PointOfInterest.cs.meta +11 -0
- package/Source/Systems/Spatial/PointOfInterestSystem.cs +314 -0
- package/Source/Systems/Spatial/PointOfInterestSystem.cs.meta +11 -0
- package/Source/Systems/Spatial.meta +7 -0
- package/Source/Systems/StringArrayResult.cs +146 -0
- package/Source/Systems/StringArrayResult.cs.meta +11 -0
- package/Source/Systems/StringResult.cs +149 -0
- package/Source/Systems/StringResult.cs.meta +11 -0
- package/Source/Systems/SystemBase.cs +84 -0
- package/Source/Systems/SystemBase.cs.meta +11 -0
- package/Source/Systems/SystemsManager.cs +474 -0
- package/Source/Systems/SystemsManager.cs.meta +11 -0
- package/Source/Systems/UInt64Result.cs +146 -0
- package/Source/Systems/UInt64Result.cs.meta +11 -0
- package/Source/Systems/Users/AgoraUserTokenParams.cs +326 -0
- package/Source/Systems/Users/AgoraUserTokenParams.cs.meta +11 -0
- package/Source/Systems/Users/AgoraUserTokenResult.cs +130 -0
- package/Source/Systems/Users/AgoraUserTokenResult.cs.meta +11 -0
- package/Source/Systems/Users/BasicProfile.cs +259 -0
- package/Source/Systems/Users/BasicProfile.cs.meta +11 -0
- package/Source/Systems/Users/BasicProfilesResult.cs +112 -0
- package/Source/Systems/Users/BasicProfilesResult.cs.meta +11 -0
- package/Source/Systems/Users/ELoginState.cs +25 -0
- package/Source/Systems/Users/ELoginState.cs.meta +11 -0
- package/Source/Systems/Users/EThirdPartyAuthenticationProviders.cs +28 -0
- package/Source/Systems/Users/EThirdPartyAuthenticationProviders.cs.meta +11 -0
- package/Source/Systems/Users/LoginState.cs +304 -0
- package/Source/Systems/Users/LoginState.cs.meta +11 -0
- package/Source/Systems/Users/LoginStateResult.cs +126 -0
- package/Source/Systems/Users/LoginStateResult.cs.meta +11 -0
- package/Source/Systems/Users/LoginTokenInfo.cs +224 -0
- package/Source/Systems/Users/LoginTokenInfo.cs.meta +11 -0
- package/Source/Systems/Users/LoginTokenReceived.cs +129 -0
- package/Source/Systems/Users/LoginTokenReceived.cs.meta +11 -0
- package/Source/Systems/Users/LogoutResult.cs +105 -0
- package/Source/Systems/Users/LogoutResult.cs.meta +11 -0
- package/Source/Systems/Users/PingResponseReceived.cs +106 -0
- package/Source/Systems/Users/PingResponseReceived.cs.meta +11 -0
- package/Source/Systems/Users/Profile.cs +367 -0
- package/Source/Systems/Users/Profile.cs.meta +11 -0
- package/Source/Systems/Users/ProfileResult.cs +110 -0
- package/Source/Systems/Users/ProfileResult.cs.meta +11 -0
- package/Source/Systems/Users/ProviderDetailsResult.cs +142 -0
- package/Source/Systems/Users/ProviderDetailsResult.cs.meta +11 -0
- package/Source/Systems/Users/ThirdPartyProviderDetails.cs +231 -0
- package/Source/Systems/Users/ThirdPartyProviderDetails.cs.meta +11 -0
- package/Source/Systems/Users/UserSystem.cs +1468 -0
- package/Source/Systems/Users/UserSystem.cs.meta +11 -0
- package/Source/Systems/Users.meta +7 -0
- package/Source/Systems/Voip/VoipSystem.cs +132 -0
- package/Source/Systems/Voip/VoipSystem.cs.meta +11 -0
- package/Source/Systems/Voip.meta +7 -0
- package/Source/Systems.meta +7 -0
- package/Source/Web/EResponseCodes.cs +83 -0
- package/Source/Web/EResponseCodes.cs.meta +11 -0
- package/Source/Web.meta +7 -0
- package/Source/WrapperHelper.cs +96 -0
- package/Source/WrapperHelper.cs.meta +11 -0
- package/Source.meta +7 -0
- package/android64/libConnectedSpacesPlatform.so +0 -0
- package/android64/libConnectedSpacesPlatform.so.meta +79 -0
- package/android64/libConnectedSpacesPlatform_D.so +0 -0
- package/android64/libConnectedSpacesPlatform_D.so.meta +79 -0
- package/android64.meta +7 -0
- package/package.json +13 -0
- package/package.json.meta +7 -0
- package/windows/ConnectedSpacesPlatform.dll +0 -0
- package/windows/ConnectedSpacesPlatform.dll.meta +79 -0
- package/windows/ConnectedSpacesPlatform_D.dll +0 -0
- package/windows/ConnectedSpacesPlatform_D.dll.meta +79 -0
- package/windows.meta +7 -0
|
@@ -0,0 +1,1601 @@
|
|
|
1
|
+
// WARNING: DO NOT EDIT THIS FILE! IT IS A GENERATED FILE AND
|
|
2
|
+
// ANY CHANGES YOU MAKE WILL BE OVERWRITTEN ON THE NEXT BUILD
|
|
3
|
+
|
|
4
|
+
#nullable enable annotations
|
|
5
|
+
|
|
6
|
+
using System;
|
|
7
|
+
using System.Collections.Generic;
|
|
8
|
+
using System.Reflection;
|
|
9
|
+
using System.Runtime.InteropServices;
|
|
10
|
+
using System.Security;
|
|
11
|
+
using System.Threading.Tasks;
|
|
12
|
+
|
|
13
|
+
namespace Csp.Systems
|
|
14
|
+
{
|
|
15
|
+
/// @ingroup Asset System
|
|
16
|
+
/// <summary>Public facing system that allows uploading/downloading and creation of assets.</summary>
|
|
17
|
+
|
|
18
|
+
public class AssetSystem : Csp.Systems.SystemBase
|
|
19
|
+
{
|
|
20
|
+
internal override string _safeTypeName { get; } = "csp_systems_AssetSystem";
|
|
21
|
+
|
|
22
|
+
#region P/Invoke
|
|
23
|
+
#pragma warning disable IDE1006
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
[
|
|
28
|
+
DllImport(
|
|
29
|
+
#if !UNITY_EDITOR && UNITY_IOS
|
|
30
|
+
"__Internal"
|
|
31
|
+
#elif DEBUG
|
|
32
|
+
"ConnectedSpacesPlatform_D"
|
|
33
|
+
#else
|
|
34
|
+
"ConnectedSpacesPlatform"
|
|
35
|
+
#endif
|
|
36
|
+
),
|
|
37
|
+
SuppressUnmanagedCodeSecurity
|
|
38
|
+
]
|
|
39
|
+
static extern void csp_systems_AssetSystem_Dtor(IntPtr @class);
|
|
40
|
+
|
|
41
|
+
[
|
|
42
|
+
DllImport(
|
|
43
|
+
#if !UNITY_EDITOR && UNITY_IOS
|
|
44
|
+
"__Internal"
|
|
45
|
+
#elif DEBUG
|
|
46
|
+
"ConnectedSpacesPlatform_D"
|
|
47
|
+
#else
|
|
48
|
+
"ConnectedSpacesPlatform"
|
|
49
|
+
#endif
|
|
50
|
+
),
|
|
51
|
+
SuppressUnmanagedCodeSecurity
|
|
52
|
+
]
|
|
53
|
+
static extern void csp_systems_AssetSystem_CreateAssetCollection_void_StringRC_StringRC_StringRC_MapRC_EAssetCollectionTypeC_ArrayRC_AssetCollectionResultCallback(
|
|
54
|
+
IntPtr @class,
|
|
55
|
+
string SpaceId,
|
|
56
|
+
string ParentAssetCollectionId,
|
|
57
|
+
string AssetCollectionName,
|
|
58
|
+
IntPtr Metadata,
|
|
59
|
+
EAssetCollectionType Type,
|
|
60
|
+
IntPtr Tags,
|
|
61
|
+
CreateAssetCollectionCallbackDelegate callback,
|
|
62
|
+
IntPtr callbackStateObject
|
|
63
|
+
);
|
|
64
|
+
|
|
65
|
+
[
|
|
66
|
+
DllImport(
|
|
67
|
+
#if !UNITY_EDITOR && UNITY_IOS
|
|
68
|
+
"__Internal"
|
|
69
|
+
#elif DEBUG
|
|
70
|
+
"ConnectedSpacesPlatform_D"
|
|
71
|
+
#else
|
|
72
|
+
"ConnectedSpacesPlatform"
|
|
73
|
+
#endif
|
|
74
|
+
),
|
|
75
|
+
SuppressUnmanagedCodeSecurity
|
|
76
|
+
]
|
|
77
|
+
static extern void csp_systems_AssetSystem_DeleteAssetCollection_void_AssetCollectionRC_NullResultCallback(
|
|
78
|
+
IntPtr @class,
|
|
79
|
+
IntPtr AssetCollection,
|
|
80
|
+
DeleteAssetCollectionCallbackDelegate callback,
|
|
81
|
+
IntPtr callbackStateObject
|
|
82
|
+
);
|
|
83
|
+
|
|
84
|
+
[
|
|
85
|
+
DllImport(
|
|
86
|
+
#if !UNITY_EDITOR && UNITY_IOS
|
|
87
|
+
"__Internal"
|
|
88
|
+
#elif DEBUG
|
|
89
|
+
"ConnectedSpacesPlatform_D"
|
|
90
|
+
#else
|
|
91
|
+
"ConnectedSpacesPlatform"
|
|
92
|
+
#endif
|
|
93
|
+
),
|
|
94
|
+
SuppressUnmanagedCodeSecurity
|
|
95
|
+
]
|
|
96
|
+
static extern void csp_systems_AssetSystem_GetAssetCollectionById_void_StringRC_AssetCollectionResultCallback(
|
|
97
|
+
IntPtr @class,
|
|
98
|
+
string AssetCollectionId,
|
|
99
|
+
GetAssetCollectionByIdCallbackDelegate callback,
|
|
100
|
+
IntPtr callbackStateObject
|
|
101
|
+
);
|
|
102
|
+
|
|
103
|
+
[
|
|
104
|
+
DllImport(
|
|
105
|
+
#if !UNITY_EDITOR && UNITY_IOS
|
|
106
|
+
"__Internal"
|
|
107
|
+
#elif DEBUG
|
|
108
|
+
"ConnectedSpacesPlatform_D"
|
|
109
|
+
#else
|
|
110
|
+
"ConnectedSpacesPlatform"
|
|
111
|
+
#endif
|
|
112
|
+
),
|
|
113
|
+
SuppressUnmanagedCodeSecurity
|
|
114
|
+
]
|
|
115
|
+
static extern void csp_systems_AssetSystem_GetAssetCollectionByName_void_StringRC_AssetCollectionResultCallback(
|
|
116
|
+
IntPtr @class,
|
|
117
|
+
string AssetCollectionName,
|
|
118
|
+
GetAssetCollectionByNameCallbackDelegate callback,
|
|
119
|
+
IntPtr callbackStateObject
|
|
120
|
+
);
|
|
121
|
+
|
|
122
|
+
[
|
|
123
|
+
DllImport(
|
|
124
|
+
#if !UNITY_EDITOR && UNITY_IOS
|
|
125
|
+
"__Internal"
|
|
126
|
+
#elif DEBUG
|
|
127
|
+
"ConnectedSpacesPlatform_D"
|
|
128
|
+
#else
|
|
129
|
+
"ConnectedSpacesPlatform"
|
|
130
|
+
#endif
|
|
131
|
+
),
|
|
132
|
+
SuppressUnmanagedCodeSecurity
|
|
133
|
+
]
|
|
134
|
+
static extern void csp_systems_AssetSystem_GetAssetCollectionsByIds_void_ArrayRC_AssetCollectionsResultCallback(
|
|
135
|
+
IntPtr @class,
|
|
136
|
+
IntPtr AssetCollectionIds,
|
|
137
|
+
GetAssetCollectionsByIdsCallbackDelegate callback,
|
|
138
|
+
IntPtr callbackStateObject
|
|
139
|
+
);
|
|
140
|
+
|
|
141
|
+
[
|
|
142
|
+
DllImport(
|
|
143
|
+
#if !UNITY_EDITOR && UNITY_IOS
|
|
144
|
+
"__Internal"
|
|
145
|
+
#elif DEBUG
|
|
146
|
+
"ConnectedSpacesPlatform_D"
|
|
147
|
+
#else
|
|
148
|
+
"ConnectedSpacesPlatform"
|
|
149
|
+
#endif
|
|
150
|
+
),
|
|
151
|
+
SuppressUnmanagedCodeSecurity
|
|
152
|
+
]
|
|
153
|
+
static extern void csp_systems_AssetSystem_GetAssetCollectionsByCriteria_void_StringRC_StringRC_EAssetCollectionTypeRC_ArrayRC_ArrayRC_intRC_intRC_AssetCollectionsResultCallback(
|
|
154
|
+
IntPtr @class,
|
|
155
|
+
string SpaceId,
|
|
156
|
+
string AssetCollectionParentId,
|
|
157
|
+
IntPtr AssetCollectionType,
|
|
158
|
+
IntPtr AssetCollectionTags,
|
|
159
|
+
IntPtr AssetCollectionNames,
|
|
160
|
+
IntPtr ResultsSkipNumber,
|
|
161
|
+
IntPtr ResultsMaxNumber,
|
|
162
|
+
GetAssetCollectionsByCriteriaCallbackDelegate callback,
|
|
163
|
+
IntPtr callbackStateObject
|
|
164
|
+
);
|
|
165
|
+
|
|
166
|
+
[
|
|
167
|
+
DllImport(
|
|
168
|
+
#if !UNITY_EDITOR && UNITY_IOS
|
|
169
|
+
"__Internal"
|
|
170
|
+
#elif DEBUG
|
|
171
|
+
"ConnectedSpacesPlatform_D"
|
|
172
|
+
#else
|
|
173
|
+
"ConnectedSpacesPlatform"
|
|
174
|
+
#endif
|
|
175
|
+
),
|
|
176
|
+
SuppressUnmanagedCodeSecurity
|
|
177
|
+
]
|
|
178
|
+
static extern void csp_systems_AssetSystem_UpdateAssetCollectionMetadata_void_AssetCollectionRC_MapRC_AssetCollectionResultCallback(
|
|
179
|
+
IntPtr @class,
|
|
180
|
+
IntPtr AssetCollection,
|
|
181
|
+
IntPtr NewMetadata,
|
|
182
|
+
UpdateAssetCollectionMetadataCallbackDelegate callback,
|
|
183
|
+
IntPtr callbackStateObject
|
|
184
|
+
);
|
|
185
|
+
|
|
186
|
+
[
|
|
187
|
+
DllImport(
|
|
188
|
+
#if !UNITY_EDITOR && UNITY_IOS
|
|
189
|
+
"__Internal"
|
|
190
|
+
#elif DEBUG
|
|
191
|
+
"ConnectedSpacesPlatform_D"
|
|
192
|
+
#else
|
|
193
|
+
"ConnectedSpacesPlatform"
|
|
194
|
+
#endif
|
|
195
|
+
),
|
|
196
|
+
SuppressUnmanagedCodeSecurity
|
|
197
|
+
]
|
|
198
|
+
static extern void csp_systems_AssetSystem_CreateAsset_void_AssetCollectionRC_StringRC_StringRC_EThirdPartyPlatformRC_EAssetType_AssetResultCallback(
|
|
199
|
+
IntPtr @class,
|
|
200
|
+
IntPtr AssetCollection,
|
|
201
|
+
string Name,
|
|
202
|
+
string ThirdPartyPackagedAssetIdentifier,
|
|
203
|
+
IntPtr ThirdPartyPlatform,
|
|
204
|
+
EAssetType Type,
|
|
205
|
+
CreateAssetCallbackDelegate callback,
|
|
206
|
+
IntPtr callbackStateObject
|
|
207
|
+
);
|
|
208
|
+
|
|
209
|
+
[
|
|
210
|
+
DllImport(
|
|
211
|
+
#if !UNITY_EDITOR && UNITY_IOS
|
|
212
|
+
"__Internal"
|
|
213
|
+
#elif DEBUG
|
|
214
|
+
"ConnectedSpacesPlatform_D"
|
|
215
|
+
#else
|
|
216
|
+
"ConnectedSpacesPlatform"
|
|
217
|
+
#endif
|
|
218
|
+
),
|
|
219
|
+
SuppressUnmanagedCodeSecurity
|
|
220
|
+
]
|
|
221
|
+
static extern void csp_systems_AssetSystem_UpdateAsset_void_AssetRC_AssetResultCallback(
|
|
222
|
+
IntPtr @class,
|
|
223
|
+
IntPtr Asset,
|
|
224
|
+
UpdateAssetCallbackDelegate callback,
|
|
225
|
+
IntPtr callbackStateObject
|
|
226
|
+
);
|
|
227
|
+
|
|
228
|
+
[
|
|
229
|
+
DllImport(
|
|
230
|
+
#if !UNITY_EDITOR && UNITY_IOS
|
|
231
|
+
"__Internal"
|
|
232
|
+
#elif DEBUG
|
|
233
|
+
"ConnectedSpacesPlatform_D"
|
|
234
|
+
#else
|
|
235
|
+
"ConnectedSpacesPlatform"
|
|
236
|
+
#endif
|
|
237
|
+
),
|
|
238
|
+
SuppressUnmanagedCodeSecurity
|
|
239
|
+
]
|
|
240
|
+
static extern void csp_systems_AssetSystem_DeleteAsset_void_AssetCollectionRC_AssetRC_NullResultCallback(
|
|
241
|
+
IntPtr @class,
|
|
242
|
+
IntPtr AssetCollection,
|
|
243
|
+
IntPtr Asset,
|
|
244
|
+
DeleteAssetCallbackDelegate callback,
|
|
245
|
+
IntPtr callbackStateObject
|
|
246
|
+
);
|
|
247
|
+
|
|
248
|
+
[
|
|
249
|
+
DllImport(
|
|
250
|
+
#if !UNITY_EDITOR && UNITY_IOS
|
|
251
|
+
"__Internal"
|
|
252
|
+
#elif DEBUG
|
|
253
|
+
"ConnectedSpacesPlatform_D"
|
|
254
|
+
#else
|
|
255
|
+
"ConnectedSpacesPlatform"
|
|
256
|
+
#endif
|
|
257
|
+
),
|
|
258
|
+
SuppressUnmanagedCodeSecurity
|
|
259
|
+
]
|
|
260
|
+
static extern void csp_systems_AssetSystem_GetAssetsInCollection_void_AssetCollectionRC_AssetsResultCallback(
|
|
261
|
+
IntPtr @class,
|
|
262
|
+
IntPtr AssetCollection,
|
|
263
|
+
GetAssetsInCollectionCallbackDelegate callback,
|
|
264
|
+
IntPtr callbackStateObject
|
|
265
|
+
);
|
|
266
|
+
|
|
267
|
+
[
|
|
268
|
+
DllImport(
|
|
269
|
+
#if !UNITY_EDITOR && UNITY_IOS
|
|
270
|
+
"__Internal"
|
|
271
|
+
#elif DEBUG
|
|
272
|
+
"ConnectedSpacesPlatform_D"
|
|
273
|
+
#else
|
|
274
|
+
"ConnectedSpacesPlatform"
|
|
275
|
+
#endif
|
|
276
|
+
),
|
|
277
|
+
SuppressUnmanagedCodeSecurity
|
|
278
|
+
]
|
|
279
|
+
static extern void csp_systems_AssetSystem_GetAssetById_void_StringRC_StringRC_AssetResultCallback(
|
|
280
|
+
IntPtr @class,
|
|
281
|
+
string AssetCollectionId,
|
|
282
|
+
string AssetId,
|
|
283
|
+
GetAssetByIdCallbackDelegate callback,
|
|
284
|
+
IntPtr callbackStateObject
|
|
285
|
+
);
|
|
286
|
+
|
|
287
|
+
[
|
|
288
|
+
DllImport(
|
|
289
|
+
#if !UNITY_EDITOR && UNITY_IOS
|
|
290
|
+
"__Internal"
|
|
291
|
+
#elif DEBUG
|
|
292
|
+
"ConnectedSpacesPlatform_D"
|
|
293
|
+
#else
|
|
294
|
+
"ConnectedSpacesPlatform"
|
|
295
|
+
#endif
|
|
296
|
+
),
|
|
297
|
+
SuppressUnmanagedCodeSecurity
|
|
298
|
+
]
|
|
299
|
+
static extern void csp_systems_AssetSystem_GetAssetsByCollectionIds_void_ArrayRC_AssetsResultCallback(
|
|
300
|
+
IntPtr @class,
|
|
301
|
+
IntPtr AssetCollectionIds,
|
|
302
|
+
GetAssetsByCollectionIdsCallbackDelegate callback,
|
|
303
|
+
IntPtr callbackStateObject
|
|
304
|
+
);
|
|
305
|
+
|
|
306
|
+
[
|
|
307
|
+
DllImport(
|
|
308
|
+
#if !UNITY_EDITOR && UNITY_IOS
|
|
309
|
+
"__Internal"
|
|
310
|
+
#elif DEBUG
|
|
311
|
+
"ConnectedSpacesPlatform_D"
|
|
312
|
+
#else
|
|
313
|
+
"ConnectedSpacesPlatform"
|
|
314
|
+
#endif
|
|
315
|
+
),
|
|
316
|
+
SuppressUnmanagedCodeSecurity
|
|
317
|
+
]
|
|
318
|
+
static extern void csp_systems_AssetSystem_GetAssetsByCriteria_void_ArrayRC_ArrayRC_ArrayRC_ArrayRC_AssetsResultCallback(
|
|
319
|
+
IntPtr @class,
|
|
320
|
+
IntPtr AssetCollectionIds,
|
|
321
|
+
IntPtr AssetIds,
|
|
322
|
+
IntPtr AssetNames,
|
|
323
|
+
IntPtr AssetTypes,
|
|
324
|
+
GetAssetsByCriteriaCallbackDelegate callback,
|
|
325
|
+
IntPtr callbackStateObject
|
|
326
|
+
);
|
|
327
|
+
|
|
328
|
+
[
|
|
329
|
+
DllImport(
|
|
330
|
+
#if !UNITY_EDITOR && UNITY_IOS
|
|
331
|
+
"__Internal"
|
|
332
|
+
#elif DEBUG
|
|
333
|
+
"ConnectedSpacesPlatform_D"
|
|
334
|
+
#else
|
|
335
|
+
"ConnectedSpacesPlatform"
|
|
336
|
+
#endif
|
|
337
|
+
),
|
|
338
|
+
SuppressUnmanagedCodeSecurity
|
|
339
|
+
]
|
|
340
|
+
static extern void csp_systems_AssetSystem_UploadAssetData_void_AssetCollectionRC_AssetRC_AssetDataSourceRC_UriResultCallback(
|
|
341
|
+
IntPtr @class,
|
|
342
|
+
IntPtr AssetCollection,
|
|
343
|
+
IntPtr Asset,
|
|
344
|
+
IntPtr AssetDataSource,
|
|
345
|
+
UploadAssetDataCallbackDelegate callback,
|
|
346
|
+
IntPtr callbackStateObject
|
|
347
|
+
);
|
|
348
|
+
|
|
349
|
+
[
|
|
350
|
+
DllImport(
|
|
351
|
+
#if !UNITY_EDITOR && UNITY_IOS
|
|
352
|
+
"__Internal"
|
|
353
|
+
#elif DEBUG
|
|
354
|
+
"ConnectedSpacesPlatform_D"
|
|
355
|
+
#else
|
|
356
|
+
"ConnectedSpacesPlatform"
|
|
357
|
+
#endif
|
|
358
|
+
),
|
|
359
|
+
SuppressUnmanagedCodeSecurity
|
|
360
|
+
]
|
|
361
|
+
static extern void csp_systems_AssetSystem_UploadAssetDataEx_void_AssetCollectionRC_AssetRC_AssetDataSourceRC_CancellationTokenR_UriResultCallback(
|
|
362
|
+
IntPtr @class,
|
|
363
|
+
IntPtr AssetCollection,
|
|
364
|
+
IntPtr Asset,
|
|
365
|
+
IntPtr AssetDataSource,
|
|
366
|
+
IntPtr CancellationToken,
|
|
367
|
+
UploadAssetDataExCallbackDelegate callback,
|
|
368
|
+
IntPtr callbackStateObject
|
|
369
|
+
);
|
|
370
|
+
|
|
371
|
+
[
|
|
372
|
+
DllImport(
|
|
373
|
+
#if !UNITY_EDITOR && UNITY_IOS
|
|
374
|
+
"__Internal"
|
|
375
|
+
#elif DEBUG
|
|
376
|
+
"ConnectedSpacesPlatform_D"
|
|
377
|
+
#else
|
|
378
|
+
"ConnectedSpacesPlatform"
|
|
379
|
+
#endif
|
|
380
|
+
),
|
|
381
|
+
SuppressUnmanagedCodeSecurity
|
|
382
|
+
]
|
|
383
|
+
static extern void csp_systems_AssetSystem_DownloadAssetData_void_AssetRC_AssetDataResultCallback(
|
|
384
|
+
IntPtr @class,
|
|
385
|
+
IntPtr Asset,
|
|
386
|
+
DownloadAssetDataCallbackDelegate callback,
|
|
387
|
+
IntPtr callbackStateObject
|
|
388
|
+
);
|
|
389
|
+
|
|
390
|
+
[
|
|
391
|
+
DllImport(
|
|
392
|
+
#if !UNITY_EDITOR && UNITY_IOS
|
|
393
|
+
"__Internal"
|
|
394
|
+
#elif DEBUG
|
|
395
|
+
"ConnectedSpacesPlatform_D"
|
|
396
|
+
#else
|
|
397
|
+
"ConnectedSpacesPlatform"
|
|
398
|
+
#endif
|
|
399
|
+
),
|
|
400
|
+
SuppressUnmanagedCodeSecurity
|
|
401
|
+
]
|
|
402
|
+
static extern void csp_systems_AssetSystem_DownloadAssetDataEx_void_AssetRC_CancellationTokenR_AssetDataResultCallback(
|
|
403
|
+
IntPtr @class,
|
|
404
|
+
IntPtr Asset,
|
|
405
|
+
IntPtr CancellationToken,
|
|
406
|
+
DownloadAssetDataExCallbackDelegate callback,
|
|
407
|
+
IntPtr callbackStateObject
|
|
408
|
+
);
|
|
409
|
+
|
|
410
|
+
[
|
|
411
|
+
DllImport(
|
|
412
|
+
#if !UNITY_EDITOR && UNITY_IOS
|
|
413
|
+
"__Internal"
|
|
414
|
+
#elif DEBUG
|
|
415
|
+
"ConnectedSpacesPlatform_D"
|
|
416
|
+
#else
|
|
417
|
+
"ConnectedSpacesPlatform"
|
|
418
|
+
#endif
|
|
419
|
+
),
|
|
420
|
+
SuppressUnmanagedCodeSecurity
|
|
421
|
+
]
|
|
422
|
+
static extern void csp_systems_AssetSystem_GetAssetDataSize_void_AssetRC_UInt64ResultCallback(
|
|
423
|
+
IntPtr @class,
|
|
424
|
+
IntPtr Asset,
|
|
425
|
+
GetAssetDataSizeCallbackDelegate callback,
|
|
426
|
+
IntPtr callbackStateObject
|
|
427
|
+
);
|
|
428
|
+
|
|
429
|
+
[
|
|
430
|
+
DllImport(
|
|
431
|
+
#if !UNITY_EDITOR && UNITY_IOS
|
|
432
|
+
"__Internal"
|
|
433
|
+
#elif DEBUG
|
|
434
|
+
"ConnectedSpacesPlatform_D"
|
|
435
|
+
#else
|
|
436
|
+
"ConnectedSpacesPlatform"
|
|
437
|
+
#endif
|
|
438
|
+
),
|
|
439
|
+
SuppressUnmanagedCodeSecurity
|
|
440
|
+
]
|
|
441
|
+
static extern void csp_systems_AssetSystem_GetLODChain_void_AssetCollectionRC_LODChainResultCallback(
|
|
442
|
+
IntPtr @class,
|
|
443
|
+
IntPtr AssetCollection,
|
|
444
|
+
GetLODChainCallbackDelegate callback,
|
|
445
|
+
IntPtr callbackStateObject
|
|
446
|
+
);
|
|
447
|
+
|
|
448
|
+
[
|
|
449
|
+
DllImport(
|
|
450
|
+
#if !UNITY_EDITOR && UNITY_IOS
|
|
451
|
+
"__Internal"
|
|
452
|
+
#elif DEBUG
|
|
453
|
+
"ConnectedSpacesPlatform_D"
|
|
454
|
+
#else
|
|
455
|
+
"ConnectedSpacesPlatform"
|
|
456
|
+
#endif
|
|
457
|
+
),
|
|
458
|
+
SuppressUnmanagedCodeSecurity
|
|
459
|
+
]
|
|
460
|
+
static extern void csp_systems_AssetSystem_RegisterAssetToLODChain_void_AssetCollectionRC_AssetRC_int_AssetResultCallback(
|
|
461
|
+
IntPtr @class,
|
|
462
|
+
IntPtr AssetCollection,
|
|
463
|
+
IntPtr Asset,
|
|
464
|
+
int LODLevel,
|
|
465
|
+
RegisterAssetToLODChainCallbackDelegate callback,
|
|
466
|
+
IntPtr callbackStateObject
|
|
467
|
+
);
|
|
468
|
+
|
|
469
|
+
[
|
|
470
|
+
DllImport(
|
|
471
|
+
#if !UNITY_EDITOR && UNITY_IOS
|
|
472
|
+
"__Internal"
|
|
473
|
+
#elif DEBUG
|
|
474
|
+
"ConnectedSpacesPlatform_D"
|
|
475
|
+
#else
|
|
476
|
+
"ConnectedSpacesPlatform"
|
|
477
|
+
#endif
|
|
478
|
+
),
|
|
479
|
+
SuppressUnmanagedCodeSecurity
|
|
480
|
+
]
|
|
481
|
+
static extern NativePointer csp_systems_AssetSystem_Ctor();
|
|
482
|
+
|
|
483
|
+
#pragma warning restore IDE1006
|
|
484
|
+
#endregion
|
|
485
|
+
|
|
486
|
+
internal AssetSystem(NativePointer ptr) : base(ptr) { }
|
|
487
|
+
|
|
488
|
+
public AssetSystem(Csp.Systems.SystemBase baseInstance)
|
|
489
|
+
: base(new NativePointer(baseInstance._ptr, baseInstance._ownsPtr ? (byte)1 : (byte)0))
|
|
490
|
+
{
|
|
491
|
+
// Prevent previous instance from freeing underlying pointer when destroyed
|
|
492
|
+
baseInstance._ownsPtr = false;
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
delegate void CreateAssetCollectionCallbackDelegate(IntPtr _StateObject__, NativePointer Result);
|
|
496
|
+
|
|
497
|
+
delegate void DeleteAssetCollectionCallbackDelegate(IntPtr _StateObject__, NativePointer Result);
|
|
498
|
+
|
|
499
|
+
delegate void GetAssetCollectionByIdCallbackDelegate(IntPtr _StateObject__, NativePointer Result);
|
|
500
|
+
|
|
501
|
+
delegate void GetAssetCollectionByNameCallbackDelegate(IntPtr _StateObject__, NativePointer Result);
|
|
502
|
+
|
|
503
|
+
delegate void GetAssetCollectionsByIdsCallbackDelegate(IntPtr _StateObject__, NativePointer Result);
|
|
504
|
+
|
|
505
|
+
delegate void GetAssetCollectionsByCriteriaCallbackDelegate(IntPtr _StateObject__, NativePointer Result);
|
|
506
|
+
|
|
507
|
+
delegate void UpdateAssetCollectionMetadataCallbackDelegate(IntPtr _StateObject__, NativePointer Result);
|
|
508
|
+
|
|
509
|
+
delegate void CreateAssetCallbackDelegate(IntPtr _StateObject__, NativePointer Result);
|
|
510
|
+
|
|
511
|
+
delegate void UpdateAssetCallbackDelegate(IntPtr _StateObject__, NativePointer Result);
|
|
512
|
+
|
|
513
|
+
delegate void DeleteAssetCallbackDelegate(IntPtr _StateObject__, NativePointer Result);
|
|
514
|
+
|
|
515
|
+
delegate void GetAssetsInCollectionCallbackDelegate(IntPtr _StateObject__, NativePointer Result);
|
|
516
|
+
|
|
517
|
+
delegate void GetAssetByIdCallbackDelegate(IntPtr _StateObject__, NativePointer Result);
|
|
518
|
+
|
|
519
|
+
delegate void GetAssetsByCollectionIdsCallbackDelegate(IntPtr _StateObject__, NativePointer Result);
|
|
520
|
+
|
|
521
|
+
delegate void GetAssetsByCriteriaCallbackDelegate(IntPtr _StateObject__, NativePointer Result);
|
|
522
|
+
|
|
523
|
+
delegate void UploadAssetDataCallbackDelegate(IntPtr _StateObject__, NativePointer Result);
|
|
524
|
+
public event EventHandler<ProgressEventArgs>? UploadAssetDataOnProgress;
|
|
525
|
+
|
|
526
|
+
delegate void UploadAssetDataExCallbackDelegate(IntPtr _StateObject__, NativePointer Result);
|
|
527
|
+
public event EventHandler<ProgressEventArgs>? UploadAssetDataExOnProgress;
|
|
528
|
+
|
|
529
|
+
delegate void DownloadAssetDataCallbackDelegate(IntPtr _StateObject__, NativePointer Result);
|
|
530
|
+
|
|
531
|
+
delegate void DownloadAssetDataExCallbackDelegate(IntPtr _StateObject__, NativePointer Result);
|
|
532
|
+
|
|
533
|
+
delegate void GetAssetDataSizeCallbackDelegate(IntPtr _StateObject__, NativePointer Result);
|
|
534
|
+
|
|
535
|
+
delegate void GetLODChainCallbackDelegate(IntPtr _StateObject__, NativePointer Result);
|
|
536
|
+
|
|
537
|
+
delegate void RegisterAssetToLODChainCallbackDelegate(IntPtr _StateObject__, NativePointer Result);
|
|
538
|
+
public event EventHandler<ProgressEventArgs>? RegisterAssetToLODChainOnProgress;
|
|
539
|
+
|
|
540
|
+
~AssetSystem()
|
|
541
|
+
{
|
|
542
|
+
//RealDispose();
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
void RealDispose()
|
|
546
|
+
{
|
|
547
|
+
if (_ownsPtr && !_disposed)
|
|
548
|
+
{
|
|
549
|
+
csp_systems_AssetSystem_Dtor(_ptr);
|
|
550
|
+
_disposed = true;
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
_disposed = true;
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
new public void Dispose()
|
|
557
|
+
{
|
|
558
|
+
RealDispose();
|
|
559
|
+
GC.SuppressFinalize(this);
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
#if !UNITY_EDITOR && ENABLE_IL2CPP
|
|
563
|
+
[AOT.MonoPInvokeCallback (typeof (CreateAssetCollectionCallbackDelegate))]
|
|
564
|
+
#endif
|
|
565
|
+
static void CreateAssetCollectionCallbackDelegateFunction(IntPtr _StateObject__, NativePointer _Result)
|
|
566
|
+
{
|
|
567
|
+
var _handle = (GCHandle)_StateObject__;
|
|
568
|
+
var tcs = (TaskCompletionSource<Csp.Systems.AssetCollectionResult>)_handle.Target;
|
|
569
|
+
var _this = (AssetSystem)tcs.Task.AsyncState;
|
|
570
|
+
|
|
571
|
+
var task_result = new Csp.Systems.AssetCollectionResult(_Result);
|
|
572
|
+
|
|
573
|
+
if (task_result.GetResultCode() == Csp.Services.EResultCode.InProgress)
|
|
574
|
+
{
|
|
575
|
+
return;
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
tcs.SetResult(task_result);
|
|
579
|
+
_handle.Free();
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
static readonly CreateAssetCollectionCallbackDelegate CreateAssetCollectionDelegateInstance =
|
|
583
|
+
CreateAssetCollectionCallbackDelegateFunction;
|
|
584
|
+
|
|
585
|
+
/// <summary>Creates an asset collection.</summary>
|
|
586
|
+
/// <param name="Space">Optional space to associate the asset collection with</param>
|
|
587
|
+
/// <param name="ParentAssetCollectionId">Optional parent asset collection id</param>
|
|
588
|
+
/// <param name="AssetCollectionName">Name of the asset collection</param>
|
|
589
|
+
/// <param name="Metadata">Optional metadata info to be associated with the asset collection</param>
|
|
590
|
+
/// <param name="Type">Type of the new asset collection</param>
|
|
591
|
+
/// <param name="Tags">Optional array of strings to add to the asset collection as tags</param>
|
|
592
|
+
/// <returns>Result class</returns>
|
|
593
|
+
|
|
594
|
+
public Task<Csp.Systems.AssetCollectionResult> CreateAssetCollection(
|
|
595
|
+
string? SpaceId,
|
|
596
|
+
string? ParentAssetCollectionId,
|
|
597
|
+
string AssetCollectionName,
|
|
598
|
+
Csp.Common.Map<string, string>? Metadata,
|
|
599
|
+
Csp.Systems.EAssetCollectionType Type,
|
|
600
|
+
Csp.Common.Array<string>? Tags
|
|
601
|
+
) {
|
|
602
|
+
var tcs = new TaskCompletionSource<Csp.Systems.AssetCollectionResult>(this);
|
|
603
|
+
var handle = GCHandle.Alloc(tcs);
|
|
604
|
+
|
|
605
|
+
csp_systems_AssetSystem_CreateAssetCollection_void_StringRC_StringRC_StringRC_MapRC_EAssetCollectionTypeC_ArrayRC_AssetCollectionResultCallback(
|
|
606
|
+
_ptr,
|
|
607
|
+
SpaceId,
|
|
608
|
+
ParentAssetCollectionId,
|
|
609
|
+
AssetCollectionName,
|
|
610
|
+
Metadata?._ptr ?? IntPtr.Zero,
|
|
611
|
+
Type,
|
|
612
|
+
Tags?._ptr ?? IntPtr.Zero,
|
|
613
|
+
CreateAssetCollectionDelegateInstance,
|
|
614
|
+
(IntPtr)handle
|
|
615
|
+
);
|
|
616
|
+
|
|
617
|
+
return tcs.Task;
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
#if !UNITY_EDITOR && ENABLE_IL2CPP
|
|
621
|
+
[AOT.MonoPInvokeCallback (typeof (DeleteAssetCollectionCallbackDelegate))]
|
|
622
|
+
#endif
|
|
623
|
+
static void DeleteAssetCollectionCallbackDelegateFunction(IntPtr _StateObject__, NativePointer _Result)
|
|
624
|
+
{
|
|
625
|
+
var _handle = (GCHandle)_StateObject__;
|
|
626
|
+
var tcs = (TaskCompletionSource<Csp.Systems.NullResult>)_handle.Target;
|
|
627
|
+
var _this = (AssetSystem)tcs.Task.AsyncState;
|
|
628
|
+
|
|
629
|
+
var task_result = new Csp.Systems.NullResult(_Result);
|
|
630
|
+
|
|
631
|
+
if (task_result.GetResultCode() == Csp.Services.EResultCode.InProgress)
|
|
632
|
+
{
|
|
633
|
+
return;
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
tcs.SetResult(task_result);
|
|
637
|
+
_handle.Free();
|
|
638
|
+
}
|
|
639
|
+
|
|
640
|
+
static readonly DeleteAssetCollectionCallbackDelegate DeleteAssetCollectionDelegateInstance =
|
|
641
|
+
DeleteAssetCollectionCallbackDelegateFunction;
|
|
642
|
+
|
|
643
|
+
/// <summary>Deletes a given asset collection.</summary>
|
|
644
|
+
/// <param name="AssetCollection">Asset collection to delete</param>
|
|
645
|
+
/// <returns>The result for the request</returns>
|
|
646
|
+
|
|
647
|
+
public Task<Csp.Systems.NullResult> DeleteAssetCollection(Csp.Systems.AssetCollection AssetCollection)
|
|
648
|
+
{
|
|
649
|
+
var tcs = new TaskCompletionSource<Csp.Systems.NullResult>(this);
|
|
650
|
+
var handle = GCHandle.Alloc(tcs);
|
|
651
|
+
|
|
652
|
+
csp_systems_AssetSystem_DeleteAssetCollection_void_AssetCollectionRC_NullResultCallback(
|
|
653
|
+
_ptr,
|
|
654
|
+
AssetCollection._ptr,
|
|
655
|
+
DeleteAssetCollectionDelegateInstance,
|
|
656
|
+
(IntPtr)handle
|
|
657
|
+
);
|
|
658
|
+
|
|
659
|
+
return tcs.Task;
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
#if !UNITY_EDITOR && ENABLE_IL2CPP
|
|
663
|
+
[AOT.MonoPInvokeCallback (typeof (GetAssetCollectionByIdCallbackDelegate))]
|
|
664
|
+
#endif
|
|
665
|
+
static void GetAssetCollectionByIdCallbackDelegateFunction(IntPtr _StateObject__, NativePointer _Result)
|
|
666
|
+
{
|
|
667
|
+
var _handle = (GCHandle)_StateObject__;
|
|
668
|
+
var tcs = (TaskCompletionSource<Csp.Systems.AssetCollectionResult>)_handle.Target;
|
|
669
|
+
var _this = (AssetSystem)tcs.Task.AsyncState;
|
|
670
|
+
|
|
671
|
+
var task_result = new Csp.Systems.AssetCollectionResult(_Result);
|
|
672
|
+
|
|
673
|
+
if (task_result.GetResultCode() == Csp.Services.EResultCode.InProgress)
|
|
674
|
+
{
|
|
675
|
+
return;
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
tcs.SetResult(task_result);
|
|
679
|
+
_handle.Free();
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
static readonly GetAssetCollectionByIdCallbackDelegate GetAssetCollectionByIdDelegateInstance =
|
|
683
|
+
GetAssetCollectionByIdCallbackDelegateFunction;
|
|
684
|
+
|
|
685
|
+
/// <summary>Finds an asset collection by its Id.</summary>
|
|
686
|
+
/// <param name="AssetCollectionId">Asset collection to delete</param>
|
|
687
|
+
/// <returns>Result class</returns>
|
|
688
|
+
|
|
689
|
+
public Task<Csp.Systems.AssetCollectionResult> GetAssetCollectionById(string AssetCollectionId)
|
|
690
|
+
{
|
|
691
|
+
var tcs = new TaskCompletionSource<Csp.Systems.AssetCollectionResult>(this);
|
|
692
|
+
var handle = GCHandle.Alloc(tcs);
|
|
693
|
+
|
|
694
|
+
csp_systems_AssetSystem_GetAssetCollectionById_void_StringRC_AssetCollectionResultCallback(
|
|
695
|
+
_ptr,
|
|
696
|
+
AssetCollectionId,
|
|
697
|
+
GetAssetCollectionByIdDelegateInstance,
|
|
698
|
+
(IntPtr)handle
|
|
699
|
+
);
|
|
700
|
+
|
|
701
|
+
return tcs.Task;
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
#if !UNITY_EDITOR && ENABLE_IL2CPP
|
|
705
|
+
[AOT.MonoPInvokeCallback (typeof (GetAssetCollectionByNameCallbackDelegate))]
|
|
706
|
+
#endif
|
|
707
|
+
static void GetAssetCollectionByNameCallbackDelegateFunction(IntPtr _StateObject__, NativePointer _Result)
|
|
708
|
+
{
|
|
709
|
+
var _handle = (GCHandle)_StateObject__;
|
|
710
|
+
var tcs = (TaskCompletionSource<Csp.Systems.AssetCollectionResult>)_handle.Target;
|
|
711
|
+
var _this = (AssetSystem)tcs.Task.AsyncState;
|
|
712
|
+
|
|
713
|
+
var task_result = new Csp.Systems.AssetCollectionResult(_Result);
|
|
714
|
+
|
|
715
|
+
if (task_result.GetResultCode() == Csp.Services.EResultCode.InProgress)
|
|
716
|
+
{
|
|
717
|
+
return;
|
|
718
|
+
}
|
|
719
|
+
|
|
720
|
+
tcs.SetResult(task_result);
|
|
721
|
+
_handle.Free();
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
static readonly GetAssetCollectionByNameCallbackDelegate GetAssetCollectionByNameDelegateInstance =
|
|
725
|
+
GetAssetCollectionByNameCallbackDelegateFunction;
|
|
726
|
+
|
|
727
|
+
/// <summary>Finds an asset collection by its Name.</summary>
|
|
728
|
+
/// <param name="AssetCollectionName">Name of the asset collection to be retrieved</param>
|
|
729
|
+
/// <returns>Result class</returns>
|
|
730
|
+
|
|
731
|
+
public Task<Csp.Systems.AssetCollectionResult> GetAssetCollectionByName(string AssetCollectionName)
|
|
732
|
+
{
|
|
733
|
+
var tcs = new TaskCompletionSource<Csp.Systems.AssetCollectionResult>(this);
|
|
734
|
+
var handle = GCHandle.Alloc(tcs);
|
|
735
|
+
|
|
736
|
+
csp_systems_AssetSystem_GetAssetCollectionByName_void_StringRC_AssetCollectionResultCallback(
|
|
737
|
+
_ptr,
|
|
738
|
+
AssetCollectionName,
|
|
739
|
+
GetAssetCollectionByNameDelegateInstance,
|
|
740
|
+
(IntPtr)handle
|
|
741
|
+
);
|
|
742
|
+
|
|
743
|
+
return tcs.Task;
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
#if !UNITY_EDITOR && ENABLE_IL2CPP
|
|
747
|
+
[AOT.MonoPInvokeCallback (typeof (GetAssetCollectionsByIdsCallbackDelegate))]
|
|
748
|
+
#endif
|
|
749
|
+
static void GetAssetCollectionsByIdsCallbackDelegateFunction(IntPtr _StateObject__, NativePointer _Result)
|
|
750
|
+
{
|
|
751
|
+
var _handle = (GCHandle)_StateObject__;
|
|
752
|
+
var tcs = (TaskCompletionSource<Csp.Systems.AssetCollectionsResult>)_handle.Target;
|
|
753
|
+
var _this = (AssetSystem)tcs.Task.AsyncState;
|
|
754
|
+
|
|
755
|
+
var task_result = new Csp.Systems.AssetCollectionsResult(_Result);
|
|
756
|
+
|
|
757
|
+
if (task_result.GetResultCode() == Csp.Services.EResultCode.InProgress)
|
|
758
|
+
{
|
|
759
|
+
return;
|
|
760
|
+
}
|
|
761
|
+
|
|
762
|
+
tcs.SetResult(task_result);
|
|
763
|
+
_handle.Free();
|
|
764
|
+
}
|
|
765
|
+
|
|
766
|
+
static readonly GetAssetCollectionsByIdsCallbackDelegate GetAssetCollectionsByIdsDelegateInstance =
|
|
767
|
+
GetAssetCollectionsByIdsCallbackDelegateFunction;
|
|
768
|
+
|
|
769
|
+
/// <summary>Finds a collection of asset collections by their Ids.</summary>
|
|
770
|
+
/// <param name="AssetCollectionIds">An array of ids to search for</param>
|
|
771
|
+
/// <returns>Result class</returns>
|
|
772
|
+
|
|
773
|
+
public Task<Csp.Systems.AssetCollectionsResult> GetAssetCollectionsByIds(
|
|
774
|
+
Csp.Common.Array<string> AssetCollectionIds
|
|
775
|
+
) {
|
|
776
|
+
var tcs = new TaskCompletionSource<Csp.Systems.AssetCollectionsResult>(this);
|
|
777
|
+
var handle = GCHandle.Alloc(tcs);
|
|
778
|
+
|
|
779
|
+
csp_systems_AssetSystem_GetAssetCollectionsByIds_void_ArrayRC_AssetCollectionsResultCallback(
|
|
780
|
+
_ptr,
|
|
781
|
+
AssetCollectionIds._ptr,
|
|
782
|
+
GetAssetCollectionsByIdsDelegateInstance,
|
|
783
|
+
(IntPtr)handle
|
|
784
|
+
);
|
|
785
|
+
|
|
786
|
+
return tcs.Task;
|
|
787
|
+
}
|
|
788
|
+
|
|
789
|
+
#if !UNITY_EDITOR && ENABLE_IL2CPP
|
|
790
|
+
[AOT.MonoPInvokeCallback (typeof (GetAssetCollectionsByCriteriaCallbackDelegate))]
|
|
791
|
+
#endif
|
|
792
|
+
static void GetAssetCollectionsByCriteriaCallbackDelegateFunction(IntPtr _StateObject__, NativePointer _Result)
|
|
793
|
+
{
|
|
794
|
+
var _handle = (GCHandle)_StateObject__;
|
|
795
|
+
var tcs = (TaskCompletionSource<Csp.Systems.AssetCollectionsResult>)_handle.Target;
|
|
796
|
+
var _this = (AssetSystem)tcs.Task.AsyncState;
|
|
797
|
+
|
|
798
|
+
var task_result = new Csp.Systems.AssetCollectionsResult(_Result);
|
|
799
|
+
|
|
800
|
+
if (task_result.GetResultCode() == Csp.Services.EResultCode.InProgress)
|
|
801
|
+
{
|
|
802
|
+
return;
|
|
803
|
+
}
|
|
804
|
+
|
|
805
|
+
tcs.SetResult(task_result);
|
|
806
|
+
_handle.Free();
|
|
807
|
+
}
|
|
808
|
+
|
|
809
|
+
static readonly GetAssetCollectionsByCriteriaCallbackDelegate GetAssetCollectionsByCriteriaDelegateInstance =
|
|
810
|
+
GetAssetCollectionsByCriteriaCallbackDelegateFunction;
|
|
811
|
+
|
|
812
|
+
/// <summary>Retrieves asset collections based on the specified search criteria.</summary>
|
|
813
|
+
/// <remarks>Results pagination is supported through the use of ResultsSkipNumber and ResultsMaxNumber.</remarks>
|
|
814
|
+
/// <param name="Space">Optional space to get asset collections associated with it</param>
|
|
815
|
+
/// <param name="AssetCollectionParentId">Optional asset collection parent id to get asset collections associated with it</param>
|
|
816
|
+
/// <param name="AssetCollectionType">Type of the asset collection</param>
|
|
817
|
+
/// <param name="AssetCollectionTags">Optional array of strings representing asset collection tags</param>
|
|
818
|
+
/// <param name="AssetCollectionNames">Optional array of strings representing asset</param>
|
|
819
|
+
/// <remarks>collection names</remarks>
|
|
820
|
+
/// <param name="ResultsSkipNumber">Optional param representing the number of result entries that will be skipped from the result. for no skip pass</param>
|
|
821
|
+
/// <remarks>nullptr.</remarks>
|
|
822
|
+
/// <param name="ResultsMaxNumber">Optional param representing the maximum number of result entries to be retrieved. for all available result</param>
|
|
823
|
+
/// <remarks>entries pass nullptr.</remarks>
|
|
824
|
+
/// <returns>Result class</returns>
|
|
825
|
+
|
|
826
|
+
public Task<Csp.Systems.AssetCollectionsResult> GetAssetCollectionsByCriteria(
|
|
827
|
+
string? SpaceId,
|
|
828
|
+
string? AssetCollectionParentId,
|
|
829
|
+
Csp.Systems.EAssetCollectionType? AssetCollectionType,
|
|
830
|
+
Csp.Common.Array<string>? AssetCollectionTags,
|
|
831
|
+
Csp.Common.Array<string>? AssetCollectionNames,
|
|
832
|
+
int? ResultsSkipNumber,
|
|
833
|
+
int? ResultsMaxNumber
|
|
834
|
+
) {
|
|
835
|
+
var tcs = new TaskCompletionSource<Csp.Systems.AssetCollectionsResult>(this);
|
|
836
|
+
var handle = GCHandle.Alloc(tcs);
|
|
837
|
+
|
|
838
|
+
var AssetCollectionTypePointer = IntPtr.Zero;
|
|
839
|
+
unsafe
|
|
840
|
+
{
|
|
841
|
+
if (AssetCollectionType.HasValue)
|
|
842
|
+
{
|
|
843
|
+
var ptr = stackalloc Csp.Systems.EAssetCollectionType[1];
|
|
844
|
+
*ptr = AssetCollectionType.Value;
|
|
845
|
+
AssetCollectionTypePointer = (IntPtr)ptr;
|
|
846
|
+
}
|
|
847
|
+
}
|
|
848
|
+
var ResultsSkipNumberPointer = IntPtr.Zero;
|
|
849
|
+
unsafe
|
|
850
|
+
{
|
|
851
|
+
if (ResultsSkipNumber.HasValue)
|
|
852
|
+
{
|
|
853
|
+
var ptr = stackalloc int[1];
|
|
854
|
+
*ptr = ResultsSkipNumber.Value;
|
|
855
|
+
ResultsSkipNumberPointer = (IntPtr)ptr;
|
|
856
|
+
}
|
|
857
|
+
}
|
|
858
|
+
var ResultsMaxNumberPointer = IntPtr.Zero;
|
|
859
|
+
unsafe
|
|
860
|
+
{
|
|
861
|
+
if (ResultsMaxNumber.HasValue)
|
|
862
|
+
{
|
|
863
|
+
var ptr = stackalloc int[1];
|
|
864
|
+
*ptr = ResultsMaxNumber.Value;
|
|
865
|
+
ResultsMaxNumberPointer = (IntPtr)ptr;
|
|
866
|
+
}
|
|
867
|
+
}
|
|
868
|
+
|
|
869
|
+
csp_systems_AssetSystem_GetAssetCollectionsByCriteria_void_StringRC_StringRC_EAssetCollectionTypeRC_ArrayRC_ArrayRC_intRC_intRC_AssetCollectionsResultCallback(
|
|
870
|
+
_ptr,
|
|
871
|
+
SpaceId,
|
|
872
|
+
AssetCollectionParentId,
|
|
873
|
+
AssetCollectionTypePointer,
|
|
874
|
+
AssetCollectionTags?._ptr ?? IntPtr.Zero,
|
|
875
|
+
AssetCollectionNames?._ptr ?? IntPtr.Zero,
|
|
876
|
+
ResultsSkipNumberPointer,
|
|
877
|
+
ResultsMaxNumberPointer,
|
|
878
|
+
GetAssetCollectionsByCriteriaDelegateInstance,
|
|
879
|
+
(IntPtr)handle
|
|
880
|
+
);
|
|
881
|
+
|
|
882
|
+
return tcs.Task;
|
|
883
|
+
}
|
|
884
|
+
|
|
885
|
+
#if !UNITY_EDITOR && ENABLE_IL2CPP
|
|
886
|
+
[AOT.MonoPInvokeCallback (typeof (UpdateAssetCollectionMetadataCallbackDelegate))]
|
|
887
|
+
#endif
|
|
888
|
+
static void UpdateAssetCollectionMetadataCallbackDelegateFunction(IntPtr _StateObject__, NativePointer _Result)
|
|
889
|
+
{
|
|
890
|
+
var _handle = (GCHandle)_StateObject__;
|
|
891
|
+
var tcs = (TaskCompletionSource<Csp.Systems.AssetCollectionResult>)_handle.Target;
|
|
892
|
+
var _this = (AssetSystem)tcs.Task.AsyncState;
|
|
893
|
+
|
|
894
|
+
var task_result = new Csp.Systems.AssetCollectionResult(_Result);
|
|
895
|
+
|
|
896
|
+
if (task_result.GetResultCode() == Csp.Services.EResultCode.InProgress)
|
|
897
|
+
{
|
|
898
|
+
return;
|
|
899
|
+
}
|
|
900
|
+
|
|
901
|
+
tcs.SetResult(task_result);
|
|
902
|
+
_handle.Free();
|
|
903
|
+
}
|
|
904
|
+
|
|
905
|
+
static readonly UpdateAssetCollectionMetadataCallbackDelegate UpdateAssetCollectionMetadataDelegateInstance =
|
|
906
|
+
UpdateAssetCollectionMetadataCallbackDelegateFunction;
|
|
907
|
+
|
|
908
|
+
/// <summary>Updates the Metadata field of an Asset Collection</summary>
|
|
909
|
+
/// <param name="AssetCollection">Asset collection to be updated</param>
|
|
910
|
+
/// <param name="NewMetadata">The new metadata information that will replace the previous</param>
|
|
911
|
+
/// <returns>Result class</returns>
|
|
912
|
+
|
|
913
|
+
public Task<Csp.Systems.AssetCollectionResult> UpdateAssetCollectionMetadata(
|
|
914
|
+
Csp.Systems.AssetCollection AssetCollection,
|
|
915
|
+
Csp.Common.Map<string, string> NewMetadata
|
|
916
|
+
) {
|
|
917
|
+
var tcs = new TaskCompletionSource<Csp.Systems.AssetCollectionResult>(this);
|
|
918
|
+
var handle = GCHandle.Alloc(tcs);
|
|
919
|
+
|
|
920
|
+
csp_systems_AssetSystem_UpdateAssetCollectionMetadata_void_AssetCollectionRC_MapRC_AssetCollectionResultCallback(
|
|
921
|
+
_ptr,
|
|
922
|
+
AssetCollection._ptr,
|
|
923
|
+
NewMetadata._ptr,
|
|
924
|
+
UpdateAssetCollectionMetadataDelegateInstance,
|
|
925
|
+
(IntPtr)handle
|
|
926
|
+
);
|
|
927
|
+
|
|
928
|
+
return tcs.Task;
|
|
929
|
+
}
|
|
930
|
+
|
|
931
|
+
#if !UNITY_EDITOR && ENABLE_IL2CPP
|
|
932
|
+
[AOT.MonoPInvokeCallback (typeof (CreateAssetCallbackDelegate))]
|
|
933
|
+
#endif
|
|
934
|
+
static void CreateAssetCallbackDelegateFunction(IntPtr _StateObject__, NativePointer _Result)
|
|
935
|
+
{
|
|
936
|
+
var _handle = (GCHandle)_StateObject__;
|
|
937
|
+
var tcs = (TaskCompletionSource<Csp.Systems.AssetResult>)_handle.Target;
|
|
938
|
+
var _this = (AssetSystem)tcs.Task.AsyncState;
|
|
939
|
+
|
|
940
|
+
var task_result = new Csp.Systems.AssetResult(_Result);
|
|
941
|
+
|
|
942
|
+
if (task_result.GetResultCode() == Csp.Services.EResultCode.InProgress)
|
|
943
|
+
{
|
|
944
|
+
return;
|
|
945
|
+
}
|
|
946
|
+
|
|
947
|
+
tcs.SetResult(task_result);
|
|
948
|
+
_handle.Free();
|
|
949
|
+
}
|
|
950
|
+
|
|
951
|
+
static readonly CreateAssetCallbackDelegate CreateAssetDelegateInstance = CreateAssetCallbackDelegateFunction;
|
|
952
|
+
|
|
953
|
+
/// <summary>Creates a new asset.</summary>
|
|
954
|
+
/// <param name="AssetCollection">The parent collection for the asset to be associated with</param>
|
|
955
|
+
/// <param name="Name">Name of the asset collection</param>
|
|
956
|
+
/// <param name="ThirdPartyPackagedAssetIdentifier">Optional id to a third party packaged asset identifier</param>
|
|
957
|
+
/// <param name="ThirdPartyPlatform">Optional enum class for third part platform</param>
|
|
958
|
+
/// <param name="Type">Type of the asset</param>
|
|
959
|
+
/// <returns>Result class</returns>
|
|
960
|
+
|
|
961
|
+
public Task<Csp.Systems.AssetResult> CreateAsset(
|
|
962
|
+
Csp.Systems.AssetCollection AssetCollection,
|
|
963
|
+
string Name,
|
|
964
|
+
string? ThirdPartyPackagedAssetIdentifier,
|
|
965
|
+
Csp.Systems.EThirdPartyPlatform? ThirdPartyPlatform,
|
|
966
|
+
Csp.Systems.EAssetType Type
|
|
967
|
+
) {
|
|
968
|
+
var tcs = new TaskCompletionSource<Csp.Systems.AssetResult>(this);
|
|
969
|
+
var handle = GCHandle.Alloc(tcs);
|
|
970
|
+
|
|
971
|
+
var ThirdPartyPlatformPointer = IntPtr.Zero;
|
|
972
|
+
unsafe
|
|
973
|
+
{
|
|
974
|
+
if (ThirdPartyPlatform.HasValue)
|
|
975
|
+
{
|
|
976
|
+
var ptr = stackalloc Csp.Systems.EThirdPartyPlatform[1];
|
|
977
|
+
*ptr = ThirdPartyPlatform.Value;
|
|
978
|
+
ThirdPartyPlatformPointer = (IntPtr)ptr;
|
|
979
|
+
}
|
|
980
|
+
}
|
|
981
|
+
|
|
982
|
+
csp_systems_AssetSystem_CreateAsset_void_AssetCollectionRC_StringRC_StringRC_EThirdPartyPlatformRC_EAssetType_AssetResultCallback(
|
|
983
|
+
_ptr,
|
|
984
|
+
AssetCollection._ptr,
|
|
985
|
+
Name,
|
|
986
|
+
ThirdPartyPackagedAssetIdentifier,
|
|
987
|
+
ThirdPartyPlatformPointer,
|
|
988
|
+
Type,
|
|
989
|
+
CreateAssetDelegateInstance,
|
|
990
|
+
(IntPtr)handle
|
|
991
|
+
);
|
|
992
|
+
|
|
993
|
+
return tcs.Task;
|
|
994
|
+
}
|
|
995
|
+
|
|
996
|
+
#if !UNITY_EDITOR && ENABLE_IL2CPP
|
|
997
|
+
[AOT.MonoPInvokeCallback (typeof (UpdateAssetCallbackDelegate))]
|
|
998
|
+
#endif
|
|
999
|
+
static void UpdateAssetCallbackDelegateFunction(IntPtr _StateObject__, NativePointer _Result)
|
|
1000
|
+
{
|
|
1001
|
+
var _handle = (GCHandle)_StateObject__;
|
|
1002
|
+
var tcs = (TaskCompletionSource<Csp.Systems.AssetResult>)_handle.Target;
|
|
1003
|
+
var _this = (AssetSystem)tcs.Task.AsyncState;
|
|
1004
|
+
|
|
1005
|
+
var task_result = new Csp.Systems.AssetResult(_Result);
|
|
1006
|
+
|
|
1007
|
+
if (task_result.GetResultCode() == Csp.Services.EResultCode.InProgress)
|
|
1008
|
+
{
|
|
1009
|
+
return;
|
|
1010
|
+
}
|
|
1011
|
+
|
|
1012
|
+
tcs.SetResult(task_result);
|
|
1013
|
+
_handle.Free();
|
|
1014
|
+
}
|
|
1015
|
+
|
|
1016
|
+
static readonly UpdateAssetCallbackDelegate UpdateAssetDelegateInstance = UpdateAssetCallbackDelegateFunction;
|
|
1017
|
+
|
|
1018
|
+
/// <summary>Update a given asset.</summary>
|
|
1019
|
+
/// <param name="Asset">Asset to update</param>
|
|
1020
|
+
/// <returns>Result class</returns>
|
|
1021
|
+
|
|
1022
|
+
public Task<Csp.Systems.AssetResult> UpdateAsset(Csp.Systems.Asset Asset)
|
|
1023
|
+
{
|
|
1024
|
+
var tcs = new TaskCompletionSource<Csp.Systems.AssetResult>(this);
|
|
1025
|
+
var handle = GCHandle.Alloc(tcs);
|
|
1026
|
+
|
|
1027
|
+
csp_systems_AssetSystem_UpdateAsset_void_AssetRC_AssetResultCallback(
|
|
1028
|
+
_ptr,
|
|
1029
|
+
Asset._ptr,
|
|
1030
|
+
UpdateAssetDelegateInstance,
|
|
1031
|
+
(IntPtr)handle
|
|
1032
|
+
);
|
|
1033
|
+
|
|
1034
|
+
return tcs.Task;
|
|
1035
|
+
}
|
|
1036
|
+
|
|
1037
|
+
#if !UNITY_EDITOR && ENABLE_IL2CPP
|
|
1038
|
+
[AOT.MonoPInvokeCallback (typeof (DeleteAssetCallbackDelegate))]
|
|
1039
|
+
#endif
|
|
1040
|
+
static void DeleteAssetCallbackDelegateFunction(IntPtr _StateObject__, NativePointer _Result)
|
|
1041
|
+
{
|
|
1042
|
+
var _handle = (GCHandle)_StateObject__;
|
|
1043
|
+
var tcs = (TaskCompletionSource<Csp.Systems.NullResult>)_handle.Target;
|
|
1044
|
+
var _this = (AssetSystem)tcs.Task.AsyncState;
|
|
1045
|
+
|
|
1046
|
+
var task_result = new Csp.Systems.NullResult(_Result);
|
|
1047
|
+
|
|
1048
|
+
if (task_result.GetResultCode() == Csp.Services.EResultCode.InProgress)
|
|
1049
|
+
{
|
|
1050
|
+
return;
|
|
1051
|
+
}
|
|
1052
|
+
|
|
1053
|
+
tcs.SetResult(task_result);
|
|
1054
|
+
_handle.Free();
|
|
1055
|
+
}
|
|
1056
|
+
|
|
1057
|
+
static readonly DeleteAssetCallbackDelegate DeleteAssetDelegateInstance = DeleteAssetCallbackDelegateFunction;
|
|
1058
|
+
|
|
1059
|
+
/// <summary>Deletes a given asset.</summary>
|
|
1060
|
+
/// <param name="AssetCollection">The parent collection that the asset is associated with</param>
|
|
1061
|
+
/// <param name="Asset">Asset to delete</param>
|
|
1062
|
+
/// <returns>The result for the request</returns>
|
|
1063
|
+
|
|
1064
|
+
public Task<Csp.Systems.NullResult> DeleteAsset(
|
|
1065
|
+
Csp.Systems.AssetCollection AssetCollection,
|
|
1066
|
+
Csp.Systems.Asset Asset
|
|
1067
|
+
) {
|
|
1068
|
+
var tcs = new TaskCompletionSource<Csp.Systems.NullResult>(this);
|
|
1069
|
+
var handle = GCHandle.Alloc(tcs);
|
|
1070
|
+
|
|
1071
|
+
csp_systems_AssetSystem_DeleteAsset_void_AssetCollectionRC_AssetRC_NullResultCallback(
|
|
1072
|
+
_ptr,
|
|
1073
|
+
AssetCollection._ptr,
|
|
1074
|
+
Asset._ptr,
|
|
1075
|
+
DeleteAssetDelegateInstance,
|
|
1076
|
+
(IntPtr)handle
|
|
1077
|
+
);
|
|
1078
|
+
|
|
1079
|
+
return tcs.Task;
|
|
1080
|
+
}
|
|
1081
|
+
|
|
1082
|
+
#if !UNITY_EDITOR && ENABLE_IL2CPP
|
|
1083
|
+
[AOT.MonoPInvokeCallback (typeof (GetAssetsInCollectionCallbackDelegate))]
|
|
1084
|
+
#endif
|
|
1085
|
+
static void GetAssetsInCollectionCallbackDelegateFunction(IntPtr _StateObject__, NativePointer _Result)
|
|
1086
|
+
{
|
|
1087
|
+
var _handle = (GCHandle)_StateObject__;
|
|
1088
|
+
var tcs = (TaskCompletionSource<Csp.Systems.AssetsResult>)_handle.Target;
|
|
1089
|
+
var _this = (AssetSystem)tcs.Task.AsyncState;
|
|
1090
|
+
|
|
1091
|
+
var task_result = new Csp.Systems.AssetsResult(_Result);
|
|
1092
|
+
|
|
1093
|
+
if (task_result.GetResultCode() == Csp.Services.EResultCode.InProgress)
|
|
1094
|
+
{
|
|
1095
|
+
return;
|
|
1096
|
+
}
|
|
1097
|
+
|
|
1098
|
+
tcs.SetResult(task_result);
|
|
1099
|
+
_handle.Free();
|
|
1100
|
+
}
|
|
1101
|
+
|
|
1102
|
+
static readonly GetAssetsInCollectionCallbackDelegate GetAssetsInCollectionDelegateInstance =
|
|
1103
|
+
GetAssetsInCollectionCallbackDelegateFunction;
|
|
1104
|
+
|
|
1105
|
+
/// <summary>Retrieves all assets in a given asset collection.</summary>
|
|
1106
|
+
/// <param name="AssetCollection">Collection to get all assets from</param>
|
|
1107
|
+
/// <returns>Result class</returns>
|
|
1108
|
+
|
|
1109
|
+
public Task<Csp.Systems.AssetsResult> GetAssetsInCollection(Csp.Systems.AssetCollection AssetCollection)
|
|
1110
|
+
{
|
|
1111
|
+
var tcs = new TaskCompletionSource<Csp.Systems.AssetsResult>(this);
|
|
1112
|
+
var handle = GCHandle.Alloc(tcs);
|
|
1113
|
+
|
|
1114
|
+
csp_systems_AssetSystem_GetAssetsInCollection_void_AssetCollectionRC_AssetsResultCallback(
|
|
1115
|
+
_ptr,
|
|
1116
|
+
AssetCollection._ptr,
|
|
1117
|
+
GetAssetsInCollectionDelegateInstance,
|
|
1118
|
+
(IntPtr)handle
|
|
1119
|
+
);
|
|
1120
|
+
|
|
1121
|
+
return tcs.Task;
|
|
1122
|
+
}
|
|
1123
|
+
|
|
1124
|
+
#if !UNITY_EDITOR && ENABLE_IL2CPP
|
|
1125
|
+
[AOT.MonoPInvokeCallback (typeof (GetAssetByIdCallbackDelegate))]
|
|
1126
|
+
#endif
|
|
1127
|
+
static void GetAssetByIdCallbackDelegateFunction(IntPtr _StateObject__, NativePointer _Result)
|
|
1128
|
+
{
|
|
1129
|
+
var _handle = (GCHandle)_StateObject__;
|
|
1130
|
+
var tcs = (TaskCompletionSource<Csp.Systems.AssetResult>)_handle.Target;
|
|
1131
|
+
var _this = (AssetSystem)tcs.Task.AsyncState;
|
|
1132
|
+
|
|
1133
|
+
var task_result = new Csp.Systems.AssetResult(_Result);
|
|
1134
|
+
|
|
1135
|
+
if (task_result.GetResultCode() == Csp.Services.EResultCode.InProgress)
|
|
1136
|
+
{
|
|
1137
|
+
return;
|
|
1138
|
+
}
|
|
1139
|
+
|
|
1140
|
+
tcs.SetResult(task_result);
|
|
1141
|
+
_handle.Free();
|
|
1142
|
+
}
|
|
1143
|
+
|
|
1144
|
+
static readonly GetAssetByIdCallbackDelegate GetAssetByIdDelegateInstance =
|
|
1145
|
+
GetAssetByIdCallbackDelegateFunction;
|
|
1146
|
+
|
|
1147
|
+
/// <summary>Retrieves the asset specified by the Id</summary>
|
|
1148
|
+
/// <param name="AssetCollectionId">The id of the asset collection containing the asset</param>
|
|
1149
|
+
/// <param name="AssetId">The id of the asset to retrieve</param>
|
|
1150
|
+
/// <returns>Result class</returns>
|
|
1151
|
+
|
|
1152
|
+
public Task<Csp.Systems.AssetResult> GetAssetById(string AssetCollectionId, string AssetId)
|
|
1153
|
+
{
|
|
1154
|
+
var tcs = new TaskCompletionSource<Csp.Systems.AssetResult>(this);
|
|
1155
|
+
var handle = GCHandle.Alloc(tcs);
|
|
1156
|
+
|
|
1157
|
+
csp_systems_AssetSystem_GetAssetById_void_StringRC_StringRC_AssetResultCallback(
|
|
1158
|
+
_ptr,
|
|
1159
|
+
AssetCollectionId,
|
|
1160
|
+
AssetId,
|
|
1161
|
+
GetAssetByIdDelegateInstance,
|
|
1162
|
+
(IntPtr)handle
|
|
1163
|
+
);
|
|
1164
|
+
|
|
1165
|
+
return tcs.Task;
|
|
1166
|
+
}
|
|
1167
|
+
|
|
1168
|
+
#if !UNITY_EDITOR && ENABLE_IL2CPP
|
|
1169
|
+
[AOT.MonoPInvokeCallback (typeof (GetAssetsByCollectionIdsCallbackDelegate))]
|
|
1170
|
+
#endif
|
|
1171
|
+
static void GetAssetsByCollectionIdsCallbackDelegateFunction(IntPtr _StateObject__, NativePointer _Result)
|
|
1172
|
+
{
|
|
1173
|
+
var _handle = (GCHandle)_StateObject__;
|
|
1174
|
+
var tcs = (TaskCompletionSource<Csp.Systems.AssetsResult>)_handle.Target;
|
|
1175
|
+
var _this = (AssetSystem)tcs.Task.AsyncState;
|
|
1176
|
+
|
|
1177
|
+
var task_result = new Csp.Systems.AssetsResult(_Result);
|
|
1178
|
+
|
|
1179
|
+
if (task_result.GetResultCode() == Csp.Services.EResultCode.InProgress)
|
|
1180
|
+
{
|
|
1181
|
+
return;
|
|
1182
|
+
}
|
|
1183
|
+
|
|
1184
|
+
tcs.SetResult(task_result);
|
|
1185
|
+
_handle.Free();
|
|
1186
|
+
}
|
|
1187
|
+
|
|
1188
|
+
static readonly GetAssetsByCollectionIdsCallbackDelegate GetAssetsByCollectionIdsDelegateInstance =
|
|
1189
|
+
GetAssetsByCollectionIdsCallbackDelegateFunction;
|
|
1190
|
+
|
|
1191
|
+
/// <summary>Retrieves all assets that belong to the asset collections with the give Ids.</summary>
|
|
1192
|
+
/// <param name="AssetCollectionIds">Collection of asset collection ids get all assets from</param>
|
|
1193
|
+
/// <returns>Result class</returns>
|
|
1194
|
+
|
|
1195
|
+
public Task<Csp.Systems.AssetsResult> GetAssetsByCollectionIds(Csp.Common.Array<string> AssetCollectionIds)
|
|
1196
|
+
{
|
|
1197
|
+
var tcs = new TaskCompletionSource<Csp.Systems.AssetsResult>(this);
|
|
1198
|
+
var handle = GCHandle.Alloc(tcs);
|
|
1199
|
+
|
|
1200
|
+
csp_systems_AssetSystem_GetAssetsByCollectionIds_void_ArrayRC_AssetsResultCallback(
|
|
1201
|
+
_ptr,
|
|
1202
|
+
AssetCollectionIds._ptr,
|
|
1203
|
+
GetAssetsByCollectionIdsDelegateInstance,
|
|
1204
|
+
(IntPtr)handle
|
|
1205
|
+
);
|
|
1206
|
+
|
|
1207
|
+
return tcs.Task;
|
|
1208
|
+
}
|
|
1209
|
+
|
|
1210
|
+
#if !UNITY_EDITOR && ENABLE_IL2CPP
|
|
1211
|
+
[AOT.MonoPInvokeCallback (typeof (GetAssetsByCriteriaCallbackDelegate))]
|
|
1212
|
+
#endif
|
|
1213
|
+
static void GetAssetsByCriteriaCallbackDelegateFunction(IntPtr _StateObject__, NativePointer _Result)
|
|
1214
|
+
{
|
|
1215
|
+
var _handle = (GCHandle)_StateObject__;
|
|
1216
|
+
var tcs = (TaskCompletionSource<Csp.Systems.AssetsResult>)_handle.Target;
|
|
1217
|
+
var _this = (AssetSystem)tcs.Task.AsyncState;
|
|
1218
|
+
|
|
1219
|
+
var task_result = new Csp.Systems.AssetsResult(_Result);
|
|
1220
|
+
|
|
1221
|
+
if (task_result.GetResultCode() == Csp.Services.EResultCode.InProgress)
|
|
1222
|
+
{
|
|
1223
|
+
return;
|
|
1224
|
+
}
|
|
1225
|
+
|
|
1226
|
+
tcs.SetResult(task_result);
|
|
1227
|
+
_handle.Free();
|
|
1228
|
+
}
|
|
1229
|
+
|
|
1230
|
+
static readonly GetAssetsByCriteriaCallbackDelegate GetAssetsByCriteriaDelegateInstance =
|
|
1231
|
+
GetAssetsByCriteriaCallbackDelegateFunction;
|
|
1232
|
+
|
|
1233
|
+
/// <summary>Retrieves assets based on the specified search criteria.</summary>
|
|
1234
|
+
/// <param name="AssetCollectionIds">The asset collection ids that will be used as search criteria. note that</param>
|
|
1235
|
+
/// <remarks>you have to pass at least one Id.</remarks>
|
|
1236
|
+
/// <param name="AssetIds">Optional array of strings representing asset ids</param>
|
|
1237
|
+
/// <param name="AssetNames">Optional array of strings representing asset names</param>
|
|
1238
|
+
/// <param name="AssetTypes">Optional array of asset types</param>
|
|
1239
|
+
/// <returns>Result class</returns>
|
|
1240
|
+
|
|
1241
|
+
public Task<Csp.Systems.AssetsResult> GetAssetsByCriteria(
|
|
1242
|
+
Csp.Common.Array<string> AssetCollectionIds,
|
|
1243
|
+
Csp.Common.Array<string>? AssetIds,
|
|
1244
|
+
Csp.Common.Array<string>? AssetNames,
|
|
1245
|
+
Csp.Common.Array<Csp.Systems.EAssetType>? AssetTypes
|
|
1246
|
+
) {
|
|
1247
|
+
var tcs = new TaskCompletionSource<Csp.Systems.AssetsResult>(this);
|
|
1248
|
+
var handle = GCHandle.Alloc(tcs);
|
|
1249
|
+
|
|
1250
|
+
csp_systems_AssetSystem_GetAssetsByCriteria_void_ArrayRC_ArrayRC_ArrayRC_ArrayRC_AssetsResultCallback(
|
|
1251
|
+
_ptr,
|
|
1252
|
+
AssetCollectionIds._ptr,
|
|
1253
|
+
AssetIds?._ptr ?? IntPtr.Zero,
|
|
1254
|
+
AssetNames?._ptr ?? IntPtr.Zero,
|
|
1255
|
+
AssetTypes?._ptr ?? IntPtr.Zero,
|
|
1256
|
+
GetAssetsByCriteriaDelegateInstance,
|
|
1257
|
+
(IntPtr)handle
|
|
1258
|
+
);
|
|
1259
|
+
|
|
1260
|
+
return tcs.Task;
|
|
1261
|
+
}
|
|
1262
|
+
|
|
1263
|
+
#if !UNITY_EDITOR && ENABLE_IL2CPP
|
|
1264
|
+
[AOT.MonoPInvokeCallback (typeof (UploadAssetDataCallbackDelegate))]
|
|
1265
|
+
#endif
|
|
1266
|
+
static void UploadAssetDataCallbackDelegateFunction(IntPtr _StateObject__, NativePointer _Result)
|
|
1267
|
+
{
|
|
1268
|
+
var _handle = (GCHandle)_StateObject__;
|
|
1269
|
+
var tcs = (TaskCompletionSource<Csp.Systems.UriResult>)_handle.Target;
|
|
1270
|
+
var _this = (AssetSystem)tcs.Task.AsyncState;
|
|
1271
|
+
|
|
1272
|
+
var task_result = new Csp.Systems.UriResult(_Result);
|
|
1273
|
+
|
|
1274
|
+
if (task_result.GetResultCode() == Csp.Services.EResultCode.InProgress)
|
|
1275
|
+
{
|
|
1276
|
+
_this.UploadAssetDataOnProgress?.Invoke(_this, new ProgressEventArgs(task_result.GetRequestProgress()));
|
|
1277
|
+
|
|
1278
|
+
return;
|
|
1279
|
+
}
|
|
1280
|
+
|
|
1281
|
+
tcs.SetResult(task_result);
|
|
1282
|
+
_handle.Free();
|
|
1283
|
+
}
|
|
1284
|
+
|
|
1285
|
+
static readonly UploadAssetDataCallbackDelegate UploadAssetDataDelegateInstance =
|
|
1286
|
+
UploadAssetDataCallbackDelegateFunction;
|
|
1287
|
+
|
|
1288
|
+
/// <summary>Uploads data for the given asset to CHS from the given source.</summary>
|
|
1289
|
+
/// <param name="AssetCollection">Collection the asset is associated to</param>
|
|
1290
|
+
/// <param name="Asset">Asset to upload data for</param>
|
|
1291
|
+
/// <param name="AssetDataSource">Asset data to upload</param>
|
|
1292
|
+
/// <remarks>AssetDataSource is an interface. A derived class must be passed.</remarks>
|
|
1293
|
+
/// <returns>Result class</returns>
|
|
1294
|
+
|
|
1295
|
+
public Task<Csp.Systems.UriResult> UploadAssetData(
|
|
1296
|
+
Csp.Systems.AssetCollection AssetCollection,
|
|
1297
|
+
Csp.Systems.Asset Asset,
|
|
1298
|
+
Csp.Systems.AssetDataSource AssetDataSource
|
|
1299
|
+
) {
|
|
1300
|
+
var tcs = new TaskCompletionSource<Csp.Systems.UriResult>(this);
|
|
1301
|
+
var handle = GCHandle.Alloc(tcs);
|
|
1302
|
+
|
|
1303
|
+
csp_systems_AssetSystem_UploadAssetData_void_AssetCollectionRC_AssetRC_AssetDataSourceRC_UriResultCallback(
|
|
1304
|
+
_ptr,
|
|
1305
|
+
AssetCollection._ptr,
|
|
1306
|
+
Asset._ptr,
|
|
1307
|
+
((NativeClassWrapper)AssetDataSource)._ptr,
|
|
1308
|
+
UploadAssetDataDelegateInstance,
|
|
1309
|
+
(IntPtr)handle
|
|
1310
|
+
);
|
|
1311
|
+
|
|
1312
|
+
return tcs.Task;
|
|
1313
|
+
}
|
|
1314
|
+
|
|
1315
|
+
#if !UNITY_EDITOR && ENABLE_IL2CPP
|
|
1316
|
+
[AOT.MonoPInvokeCallback (typeof (UploadAssetDataExCallbackDelegate))]
|
|
1317
|
+
#endif
|
|
1318
|
+
static void UploadAssetDataExCallbackDelegateFunction(IntPtr _StateObject__, NativePointer _Result)
|
|
1319
|
+
{
|
|
1320
|
+
var _handle = (GCHandle)_StateObject__;
|
|
1321
|
+
var tcs = (TaskCompletionSource<Csp.Systems.UriResult>)_handle.Target;
|
|
1322
|
+
var _this = (AssetSystem)tcs.Task.AsyncState;
|
|
1323
|
+
|
|
1324
|
+
var task_result = new Csp.Systems.UriResult(_Result);
|
|
1325
|
+
|
|
1326
|
+
if (task_result.GetResultCode() == Csp.Services.EResultCode.InProgress)
|
|
1327
|
+
{
|
|
1328
|
+
_this.UploadAssetDataExOnProgress?.Invoke(
|
|
1329
|
+
_this,
|
|
1330
|
+
new ProgressEventArgs(task_result.GetRequestProgress())
|
|
1331
|
+
);
|
|
1332
|
+
|
|
1333
|
+
return;
|
|
1334
|
+
}
|
|
1335
|
+
|
|
1336
|
+
tcs.SetResult(task_result);
|
|
1337
|
+
_handle.Free();
|
|
1338
|
+
}
|
|
1339
|
+
|
|
1340
|
+
static readonly UploadAssetDataExCallbackDelegate UploadAssetDataExDelegateInstance =
|
|
1341
|
+
UploadAssetDataExCallbackDelegateFunction;
|
|
1342
|
+
|
|
1343
|
+
/// <summary>Uploads data for the given asset to CHS from the given source, taking a CancellationToken to allow cancelling the request.</summary>
|
|
1344
|
+
/// <param name="AssetCollection">Collection the asset is associated to</param>
|
|
1345
|
+
/// <param name="Asset">Asset to upload data for</param>
|
|
1346
|
+
/// <param name="AssetDataSource">Asset data to upload</param>
|
|
1347
|
+
/// <remarks>AssetDataSource is an interface. A derived class must be passed.</remarks>
|
|
1348
|
+
/// <param name="CancellationToken">Token for cancelling upload</param>
|
|
1349
|
+
/// <returns>Result class</returns>
|
|
1350
|
+
|
|
1351
|
+
public Task<Csp.Systems.UriResult> UploadAssetDataEx(
|
|
1352
|
+
Csp.Systems.AssetCollection AssetCollection,
|
|
1353
|
+
Csp.Systems.Asset Asset,
|
|
1354
|
+
Csp.Systems.AssetDataSource AssetDataSource,
|
|
1355
|
+
Csp.Common.CancellationToken CancellationToken
|
|
1356
|
+
) {
|
|
1357
|
+
var tcs = new TaskCompletionSource<Csp.Systems.UriResult>(this);
|
|
1358
|
+
var handle = GCHandle.Alloc(tcs);
|
|
1359
|
+
|
|
1360
|
+
csp_systems_AssetSystem_UploadAssetDataEx_void_AssetCollectionRC_AssetRC_AssetDataSourceRC_CancellationTokenR_UriResultCallback(
|
|
1361
|
+
_ptr,
|
|
1362
|
+
AssetCollection._ptr,
|
|
1363
|
+
Asset._ptr,
|
|
1364
|
+
((NativeClassWrapper)AssetDataSource)._ptr,
|
|
1365
|
+
CancellationToken._ptr,
|
|
1366
|
+
UploadAssetDataExDelegateInstance,
|
|
1367
|
+
(IntPtr)handle
|
|
1368
|
+
);
|
|
1369
|
+
|
|
1370
|
+
return tcs.Task;
|
|
1371
|
+
}
|
|
1372
|
+
|
|
1373
|
+
#if !UNITY_EDITOR && ENABLE_IL2CPP
|
|
1374
|
+
[AOT.MonoPInvokeCallback (typeof (DownloadAssetDataCallbackDelegate))]
|
|
1375
|
+
#endif
|
|
1376
|
+
static void DownloadAssetDataCallbackDelegateFunction(IntPtr _StateObject__, NativePointer _Result)
|
|
1377
|
+
{
|
|
1378
|
+
var _handle = (GCHandle)_StateObject__;
|
|
1379
|
+
var tcs = (TaskCompletionSource<Csp.Systems.AssetDataResult>)_handle.Target;
|
|
1380
|
+
var _this = (AssetSystem)tcs.Task.AsyncState;
|
|
1381
|
+
|
|
1382
|
+
var task_result = new Csp.Systems.AssetDataResult(_Result);
|
|
1383
|
+
|
|
1384
|
+
if (task_result.GetResultCode() == Csp.Services.EResultCode.InProgress)
|
|
1385
|
+
{
|
|
1386
|
+
return;
|
|
1387
|
+
}
|
|
1388
|
+
|
|
1389
|
+
tcs.SetResult(task_result);
|
|
1390
|
+
_handle.Free();
|
|
1391
|
+
}
|
|
1392
|
+
|
|
1393
|
+
static readonly DownloadAssetDataCallbackDelegate DownloadAssetDataDelegateInstance =
|
|
1394
|
+
DownloadAssetDataCallbackDelegateFunction;
|
|
1395
|
+
|
|
1396
|
+
/// <summary>Downloads data for a given Asset from CHS.</summary>
|
|
1397
|
+
/// <param name="Asset">Asset to download data for</param>
|
|
1398
|
+
/// <returns>Result class</returns>
|
|
1399
|
+
|
|
1400
|
+
public Task<Csp.Systems.AssetDataResult> DownloadAssetData(Csp.Systems.Asset Asset)
|
|
1401
|
+
{
|
|
1402
|
+
var tcs = new TaskCompletionSource<Csp.Systems.AssetDataResult>(this);
|
|
1403
|
+
var handle = GCHandle.Alloc(tcs);
|
|
1404
|
+
|
|
1405
|
+
csp_systems_AssetSystem_DownloadAssetData_void_AssetRC_AssetDataResultCallback(
|
|
1406
|
+
_ptr,
|
|
1407
|
+
Asset._ptr,
|
|
1408
|
+
DownloadAssetDataDelegateInstance,
|
|
1409
|
+
(IntPtr)handle
|
|
1410
|
+
);
|
|
1411
|
+
|
|
1412
|
+
return tcs.Task;
|
|
1413
|
+
}
|
|
1414
|
+
|
|
1415
|
+
#if !UNITY_EDITOR && ENABLE_IL2CPP
|
|
1416
|
+
[AOT.MonoPInvokeCallback (typeof (DownloadAssetDataExCallbackDelegate))]
|
|
1417
|
+
#endif
|
|
1418
|
+
static void DownloadAssetDataExCallbackDelegateFunction(IntPtr _StateObject__, NativePointer _Result)
|
|
1419
|
+
{
|
|
1420
|
+
var _handle = (GCHandle)_StateObject__;
|
|
1421
|
+
var tcs = (TaskCompletionSource<Csp.Systems.AssetDataResult>)_handle.Target;
|
|
1422
|
+
var _this = (AssetSystem)tcs.Task.AsyncState;
|
|
1423
|
+
|
|
1424
|
+
var task_result = new Csp.Systems.AssetDataResult(_Result);
|
|
1425
|
+
|
|
1426
|
+
if (task_result.GetResultCode() == Csp.Services.EResultCode.InProgress)
|
|
1427
|
+
{
|
|
1428
|
+
return;
|
|
1429
|
+
}
|
|
1430
|
+
|
|
1431
|
+
tcs.SetResult(task_result);
|
|
1432
|
+
_handle.Free();
|
|
1433
|
+
}
|
|
1434
|
+
|
|
1435
|
+
static readonly DownloadAssetDataExCallbackDelegate DownloadAssetDataExDelegateInstance =
|
|
1436
|
+
DownloadAssetDataExCallbackDelegateFunction;
|
|
1437
|
+
|
|
1438
|
+
/// <summary>Downloads data for a given Asset from CHS, taking a CancellationToken to allow cancelling the request.</summary>
|
|
1439
|
+
/// <param name="Asset">Asset to download data for</param>
|
|
1440
|
+
/// <param name="CancellationToken">Token for cancelling download</param>
|
|
1441
|
+
/// <returns>Result class</returns>
|
|
1442
|
+
|
|
1443
|
+
public Task<Csp.Systems.AssetDataResult> DownloadAssetDataEx(
|
|
1444
|
+
Csp.Systems.Asset Asset,
|
|
1445
|
+
Csp.Common.CancellationToken CancellationToken
|
|
1446
|
+
) {
|
|
1447
|
+
var tcs = new TaskCompletionSource<Csp.Systems.AssetDataResult>(this);
|
|
1448
|
+
var handle = GCHandle.Alloc(tcs);
|
|
1449
|
+
|
|
1450
|
+
csp_systems_AssetSystem_DownloadAssetDataEx_void_AssetRC_CancellationTokenR_AssetDataResultCallback(
|
|
1451
|
+
_ptr,
|
|
1452
|
+
Asset._ptr,
|
|
1453
|
+
CancellationToken._ptr,
|
|
1454
|
+
DownloadAssetDataExDelegateInstance,
|
|
1455
|
+
(IntPtr)handle
|
|
1456
|
+
);
|
|
1457
|
+
|
|
1458
|
+
return tcs.Task;
|
|
1459
|
+
}
|
|
1460
|
+
|
|
1461
|
+
#if !UNITY_EDITOR && ENABLE_IL2CPP
|
|
1462
|
+
[AOT.MonoPInvokeCallback (typeof (GetAssetDataSizeCallbackDelegate))]
|
|
1463
|
+
#endif
|
|
1464
|
+
static void GetAssetDataSizeCallbackDelegateFunction(IntPtr _StateObject__, NativePointer _Result)
|
|
1465
|
+
{
|
|
1466
|
+
var _handle = (GCHandle)_StateObject__;
|
|
1467
|
+
var tcs = (TaskCompletionSource<Csp.Systems.UInt64Result>)_handle.Target;
|
|
1468
|
+
var _this = (AssetSystem)tcs.Task.AsyncState;
|
|
1469
|
+
|
|
1470
|
+
var task_result = new Csp.Systems.UInt64Result(_Result);
|
|
1471
|
+
|
|
1472
|
+
if (task_result.GetResultCode() == Csp.Services.EResultCode.InProgress)
|
|
1473
|
+
{
|
|
1474
|
+
return;
|
|
1475
|
+
}
|
|
1476
|
+
|
|
1477
|
+
tcs.SetResult(task_result);
|
|
1478
|
+
_handle.Free();
|
|
1479
|
+
}
|
|
1480
|
+
|
|
1481
|
+
static readonly GetAssetDataSizeCallbackDelegate GetAssetDataSizeDelegateInstance =
|
|
1482
|
+
GetAssetDataSizeCallbackDelegateFunction;
|
|
1483
|
+
|
|
1484
|
+
/// <summary>Get the size of the data associated with an Asset.</summary>
|
|
1485
|
+
/// <param name="Asset">Asset to get data size for</param>
|
|
1486
|
+
/// <returns>The result for the request</returns>
|
|
1487
|
+
|
|
1488
|
+
public Task<Csp.Systems.UInt64Result> GetAssetDataSize(Csp.Systems.Asset Asset)
|
|
1489
|
+
{
|
|
1490
|
+
var tcs = new TaskCompletionSource<Csp.Systems.UInt64Result>(this);
|
|
1491
|
+
var handle = GCHandle.Alloc(tcs);
|
|
1492
|
+
|
|
1493
|
+
csp_systems_AssetSystem_GetAssetDataSize_void_AssetRC_UInt64ResultCallback(
|
|
1494
|
+
_ptr,
|
|
1495
|
+
Asset._ptr,
|
|
1496
|
+
GetAssetDataSizeDelegateInstance,
|
|
1497
|
+
(IntPtr)handle
|
|
1498
|
+
);
|
|
1499
|
+
|
|
1500
|
+
return tcs.Task;
|
|
1501
|
+
}
|
|
1502
|
+
|
|
1503
|
+
#if !UNITY_EDITOR && ENABLE_IL2CPP
|
|
1504
|
+
[AOT.MonoPInvokeCallback (typeof (GetLODChainCallbackDelegate))]
|
|
1505
|
+
#endif
|
|
1506
|
+
static void GetLODChainCallbackDelegateFunction(IntPtr _StateObject__, NativePointer _Result)
|
|
1507
|
+
{
|
|
1508
|
+
var _handle = (GCHandle)_StateObject__;
|
|
1509
|
+
var tcs = (TaskCompletionSource<Csp.Systems.LODChainResult>)_handle.Target;
|
|
1510
|
+
var _this = (AssetSystem)tcs.Task.AsyncState;
|
|
1511
|
+
|
|
1512
|
+
var task_result = new Csp.Systems.LODChainResult(_Result);
|
|
1513
|
+
|
|
1514
|
+
if (task_result.GetResultCode() == Csp.Services.EResultCode.InProgress)
|
|
1515
|
+
{
|
|
1516
|
+
return;
|
|
1517
|
+
}
|
|
1518
|
+
|
|
1519
|
+
tcs.SetResult(task_result);
|
|
1520
|
+
_handle.Free();
|
|
1521
|
+
}
|
|
1522
|
+
|
|
1523
|
+
static readonly GetLODChainCallbackDelegate GetLODChainDelegateInstance = GetLODChainCallbackDelegateFunction;
|
|
1524
|
+
|
|
1525
|
+
/// <summary>Gets a LOD chain within the given AssetCollection.</summary>
|
|
1526
|
+
/// <param name="AssetCollection">AssetCollection which contains the LOD chain.</param>
|
|
1527
|
+
/// <returns>Result class</returns>
|
|
1528
|
+
|
|
1529
|
+
public Task<Csp.Systems.LODChainResult> GetLODChain(Csp.Systems.AssetCollection AssetCollection)
|
|
1530
|
+
{
|
|
1531
|
+
var tcs = new TaskCompletionSource<Csp.Systems.LODChainResult>(this);
|
|
1532
|
+
var handle = GCHandle.Alloc(tcs);
|
|
1533
|
+
|
|
1534
|
+
csp_systems_AssetSystem_GetLODChain_void_AssetCollectionRC_LODChainResultCallback(
|
|
1535
|
+
_ptr,
|
|
1536
|
+
AssetCollection._ptr,
|
|
1537
|
+
GetLODChainDelegateInstance,
|
|
1538
|
+
(IntPtr)handle
|
|
1539
|
+
);
|
|
1540
|
+
|
|
1541
|
+
return tcs.Task;
|
|
1542
|
+
}
|
|
1543
|
+
|
|
1544
|
+
#if !UNITY_EDITOR && ENABLE_IL2CPP
|
|
1545
|
+
[AOT.MonoPInvokeCallback (typeof (RegisterAssetToLODChainCallbackDelegate))]
|
|
1546
|
+
#endif
|
|
1547
|
+
static void RegisterAssetToLODChainCallbackDelegateFunction(IntPtr _StateObject__, NativePointer _Result)
|
|
1548
|
+
{
|
|
1549
|
+
var _handle = (GCHandle)_StateObject__;
|
|
1550
|
+
var tcs = (TaskCompletionSource<Csp.Systems.AssetResult>)_handle.Target;
|
|
1551
|
+
var _this = (AssetSystem)tcs.Task.AsyncState;
|
|
1552
|
+
|
|
1553
|
+
var task_result = new Csp.Systems.AssetResult(_Result);
|
|
1554
|
+
|
|
1555
|
+
if (task_result.GetResultCode() == Csp.Services.EResultCode.InProgress)
|
|
1556
|
+
{
|
|
1557
|
+
_this.RegisterAssetToLODChainOnProgress?.Invoke(
|
|
1558
|
+
_this,
|
|
1559
|
+
new ProgressEventArgs(task_result.GetRequestProgress())
|
|
1560
|
+
);
|
|
1561
|
+
|
|
1562
|
+
return;
|
|
1563
|
+
}
|
|
1564
|
+
|
|
1565
|
+
tcs.SetResult(task_result);
|
|
1566
|
+
_handle.Free();
|
|
1567
|
+
}
|
|
1568
|
+
|
|
1569
|
+
static readonly RegisterAssetToLODChainCallbackDelegate RegisterAssetToLODChainDelegateInstance =
|
|
1570
|
+
RegisterAssetToLODChainCallbackDelegateFunction;
|
|
1571
|
+
|
|
1572
|
+
/// <summary>Registers an asset to the LOD chain</summary>
|
|
1573
|
+
/// <param name="AssetCollection">AssetCollection which contains the LOD chain.</param>
|
|
1574
|
+
/// <param name="Asset">Asset to register as LOD</param>
|
|
1575
|
+
/// <param name="Asset">LOD level for Asset to be registered to</param>
|
|
1576
|
+
/// <returns>Result class</returns>
|
|
1577
|
+
|
|
1578
|
+
public Task<Csp.Systems.AssetResult> RegisterAssetToLODChain(
|
|
1579
|
+
Csp.Systems.AssetCollection AssetCollection,
|
|
1580
|
+
Csp.Systems.Asset Asset,
|
|
1581
|
+
int LODLevel
|
|
1582
|
+
) {
|
|
1583
|
+
var tcs = new TaskCompletionSource<Csp.Systems.AssetResult>(this);
|
|
1584
|
+
var handle = GCHandle.Alloc(tcs);
|
|
1585
|
+
|
|
1586
|
+
csp_systems_AssetSystem_RegisterAssetToLODChain_void_AssetCollectionRC_AssetRC_int_AssetResultCallback(
|
|
1587
|
+
_ptr,
|
|
1588
|
+
AssetCollection._ptr,
|
|
1589
|
+
Asset._ptr,
|
|
1590
|
+
LODLevel,
|
|
1591
|
+
RegisterAssetToLODChainDelegateInstance,
|
|
1592
|
+
(IntPtr)handle
|
|
1593
|
+
);
|
|
1594
|
+
|
|
1595
|
+
return tcs.Task;
|
|
1596
|
+
}
|
|
1597
|
+
|
|
1598
|
+
protected AssetSystem() { }
|
|
1599
|
+
}
|
|
1600
|
+
}
|
|
1601
|
+
|