connected-spaces-platform.web 5.8.1 → 5.9.0
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/Debug/ConnectedSpacesPlatform_WASM.js +4 -4
- package/Debug/ConnectedSpacesPlatform_WASM.wasm +0 -0
- package/Debug/ConnectedSpacesPlatform_WASM.wasm.debug.wasm +0 -0
- package/README.md +1 -1
- package/Release/ConnectedSpacesPlatform_WASM.js +1 -1
- package/Release/ConnectedSpacesPlatform_WASM.wasm +0 -0
- package/connectedspacesplatform.d.ts +7 -3
- package/connectedspacesplatform.js +16 -4
- package/connectedspacesplatform.js.map +1 -1
- package/connectedspacesplatform.ts +19 -5
- package/package.json +1 -1
|
Binary file
|
|
@@ -9744,9 +9744,11 @@ export declare namespace Systems {
|
|
|
9744
9744
|
* @description Creates a new material backed by an AssetCollection/Asset.
|
|
9745
9745
|
* @param name - The name of the new material.
|
|
9746
9746
|
* @param spaceId - The space id this material is associated with.
|
|
9747
|
+
* @param metadata - The metadata to be associated with the created material.
|
|
9748
|
+
* @param assetTags - Tags to be associated with the created material.
|
|
9747
9749
|
* @param callback - Callback when asynchronous task finishes.
|
|
9748
9750
|
*/
|
|
9749
|
-
createMaterial(name: string, spaceId: string): Promise<Systems.GLTFMaterialResult>;
|
|
9751
|
+
createMaterial(name: string, spaceId: string, metadata: Common.Map<string, string>, assetTags: Common.Array<string>): Promise<Systems.GLTFMaterialResult>;
|
|
9750
9752
|
/**
|
|
9751
9753
|
* @description Updates an existing material's properties.
|
|
9752
9754
|
* The material should be retrieved through GetMaterials or GetMaterial.
|
|
@@ -9777,7 +9779,7 @@ export declare namespace Systems {
|
|
|
9777
9779
|
*/
|
|
9778
9780
|
getMaterial(assetCollectionId: string, assetId: string): Promise<Systems.GLTFMaterialResult>;
|
|
9779
9781
|
/**
|
|
9780
|
-
* @description Sets a callback for an asset changed event.
|
|
9782
|
+
* @description Sets a callback for an asset changed event. Triggered when assets, such as textures or meshes, are modified
|
|
9781
9783
|
* @param callback - Callback to receive data for the asset that has been changed.
|
|
9782
9784
|
*/
|
|
9783
9785
|
setAssetDetailBlobChangedCallback(callback: (arg1: Multiplayer.AssetDetailBlobParams) => void): void;
|
|
@@ -12069,7 +12071,9 @@ export declare namespace Systems {
|
|
|
12069
12071
|
getCheckoutSessionUrl(tier: Systems.TierNames): Promise<Systems.StringResult>;
|
|
12070
12072
|
/**
|
|
12071
12073
|
* @description Sets a callback for an access control changed event.
|
|
12072
|
-
*
|
|
12074
|
+
* /// Occurs when a user's permissions are altered, impacting their ability to interact with specific spaces.
|
|
12075
|
+
* Clients can use this event to reflect access levels in real time.
|
|
12076
|
+
* /// @param Callback UserPermissionsChangedCallbackHandler: Callback to receive data for the user permissions that has been changed.
|
|
12073
12077
|
*/
|
|
12074
12078
|
setUserPermissionsChangedCallback(callback: (arg1: Multiplayer.UserPermissionsParams) => void): void;
|
|
12075
12079
|
/**
|
|
@@ -22077,9 +22077,11 @@ export class CSPFoundation {
|
|
|
22077
22077
|
* @description Creates a new material backed by an AssetCollection/Asset.
|
|
22078
22078
|
* @param name - The name of the new material.
|
|
22079
22079
|
* @param spaceId - The space id this material is associated with.
|
|
22080
|
+
* @param metadata - The metadata to be associated with the created material.
|
|
22081
|
+
* @param assetTags - Tags to be associated with the created material.
|
|
22080
22082
|
* @param callback - Callback when asynchronous task finishes.
|
|
22081
22083
|
*/
|
|
22082
|
-
async createMaterial(name, spaceId) {
|
|
22084
|
+
async createMaterial(name, spaceId, metadata, assetTags) {
|
|
22083
22085
|
var _resolve;
|
|
22084
22086
|
var _promise = new Promise((_r) => {
|
|
22085
22087
|
_resolve = _r;
|
|
@@ -22095,7 +22097,15 @@ export class CSPFoundation {
|
|
|
22095
22097
|
Module.removeFunction(_callbackPtr);
|
|
22096
22098
|
};
|
|
22097
22099
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
22098
|
-
Module.ccall("
|
|
22100
|
+
Module.ccall("csp_systems_AssetSystem_CreateMaterial_void_StringRC_StringRC_MapRC_ArrayRC_GLTFMaterialResultCallback", "void", ["number", "string", "string", "number", "number", "number", "number"], [
|
|
22101
|
+
this.pointer,
|
|
22102
|
+
name,
|
|
22103
|
+
spaceId,
|
|
22104
|
+
metadata.pointer,
|
|
22105
|
+
assetTags.pointer,
|
|
22106
|
+
_callbackPtr,
|
|
22107
|
+
0,
|
|
22108
|
+
]);
|
|
22099
22109
|
return _promise;
|
|
22100
22110
|
}
|
|
22101
22111
|
/**
|
|
@@ -22200,7 +22210,7 @@ export class CSPFoundation {
|
|
|
22200
22210
|
return _promise;
|
|
22201
22211
|
}
|
|
22202
22212
|
/**
|
|
22203
|
-
* @description Sets a callback for an asset changed event.
|
|
22213
|
+
* @description Sets a callback for an asset changed event. Triggered when assets, such as textures or meshes, are modified
|
|
22204
22214
|
* @param callback - Callback to receive data for the asset that has been changed.
|
|
22205
22215
|
*/
|
|
22206
22216
|
setAssetDetailBlobChangedCallback(callback) {
|
|
@@ -28804,7 +28814,9 @@ export class CSPFoundation {
|
|
|
28804
28814
|
}
|
|
28805
28815
|
/**
|
|
28806
28816
|
* @description Sets a callback for an access control changed event.
|
|
28807
|
-
*
|
|
28817
|
+
* /// Occurs when a user's permissions are altered, impacting their ability to interact with specific spaces.
|
|
28818
|
+
* Clients can use this event to reflect access levels in real time.
|
|
28819
|
+
* /// @param Callback UserPermissionsChangedCallbackHandler: Callback to receive data for the user permissions that has been changed.
|
|
28808
28820
|
*/
|
|
28809
28821
|
setUserPermissionsChangedCallback(callback) {
|
|
28810
28822
|
var _callback = (_stateObject__, arg1) => {
|