connected-spaces-platform.web 4.25.0 → 4.26.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 +9 -3
- package/Debug/ConnectedSpacesPlatform_WASM.wasm +0 -0
- package/Debug/ConnectedSpacesPlatform_WASM.wasm.debug.wasm +0 -0
- package/README.md +19 -7
- package/Release/ConnectedSpacesPlatform_WASM.js +1 -1
- package/Release/ConnectedSpacesPlatform_WASM.wasm +0 -0
- package/connectedspacesplatform.d.ts +24 -2
- package/connectedspacesplatform.js +49 -1
- package/connectedspacesplatform.js.map +1 -1
- package/connectedspacesplatform.ts +83 -0
- package/package.json +1 -1
|
Binary file
|
|
@@ -547,7 +547,8 @@ export declare namespace Multiplayer {
|
|
|
547
547
|
IsVisible = 6,
|
|
548
548
|
IsARVisible = 7,
|
|
549
549
|
IsShadowCaster = 8,
|
|
550
|
-
|
|
550
|
+
Tint = 9,
|
|
551
|
+
Num = 10
|
|
551
552
|
}
|
|
552
553
|
}
|
|
553
554
|
export declare namespace Multiplayer {
|
|
@@ -871,7 +872,8 @@ export declare namespace Systems {
|
|
|
871
872
|
SCRIPT_LIBRARY = 5,
|
|
872
873
|
HOLOCAP_VIDEO = 6,
|
|
873
874
|
HOLOCAP_AUDIO = 7,
|
|
874
|
-
AUDIO = 8
|
|
875
|
+
AUDIO = 8,
|
|
876
|
+
GAUSSIAN_SPLAT = 9
|
|
875
877
|
}
|
|
876
878
|
}
|
|
877
879
|
export declare namespace Systems {
|
|
@@ -7217,6 +7219,18 @@ export declare namespace Multiplayer {
|
|
|
7217
7219
|
@copydoc IShadowCasterComponent::SetIsShadowCaster()
|
|
7218
7220
|
*/
|
|
7219
7221
|
setIsShadowCaster(value: boolean): void;
|
|
7222
|
+
/**
|
|
7223
|
+
@}
|
|
7224
|
+
* @description Gets the tint that should be globally applied to the Gaussian Splat associated with this component.
|
|
7225
|
+
* @return The global tint value, expected to be in RGB color space, with each value normalised between 0...1.
|
|
7226
|
+
*/
|
|
7227
|
+
getTint(): Common.Vector3;
|
|
7228
|
+
/**
|
|
7229
|
+
* @description Sets the tint that should be globally applied to the Gaussian Splat.
|
|
7230
|
+
* @param value - The tint value, expected to be in RGB color space, with each value normalised between 0...1.
|
|
7231
|
+
* Defaults to 1,1,1.
|
|
7232
|
+
*/
|
|
7233
|
+
setTint(tintValue: Common.Vector3): void;
|
|
7220
7234
|
delete(): void;
|
|
7221
7235
|
}
|
|
7222
7236
|
}
|
|
@@ -8721,6 +8735,14 @@ export declare namespace Systems {
|
|
|
8721
8735
|
* @param callback - Callback when asynchronous task finishes
|
|
8722
8736
|
*/
|
|
8723
8737
|
addShopifyStore(storeName: string, spaceId: string, isEcommerceActive: boolean, privateAccessToken: string): Promise<Systems.AddShopifyStoreResult>;
|
|
8738
|
+
/**
|
|
8739
|
+
* @description Sets a store to be enabled or disabled in a space.
|
|
8740
|
+
* @param storeName - The store name (URL) to the Shopify store. Do not include the '.shopify.com' part of the url.
|
|
8741
|
+
* @param spaceId - ID of the space the store links to.
|
|
8742
|
+
* @param isEcommerceActive - Bool to set the ecommerce system status to.
|
|
8743
|
+
* @param callback - Callback when asynchronous task finishes
|
|
8744
|
+
*/
|
|
8745
|
+
setECommerceActiveInSpace(storeName: string, spaceId: string, isEcommerceActive: boolean): Promise<Systems.AddShopifyStoreResult>;
|
|
8724
8746
|
/**
|
|
8725
8747
|
* @description Validates a shopify store given a store name and an access token.
|
|
8726
8748
|
* @param storeName - The store name (URL) to the Shopify store. Do not include the '.shopify.com' part of the url.
|
|
@@ -2106,7 +2106,8 @@ export var Multiplayer;
|
|
|
2106
2106
|
GaussianSplatPropertyKeys[GaussianSplatPropertyKeys["IsVisible"] = 6] = "IsVisible";
|
|
2107
2107
|
GaussianSplatPropertyKeys[GaussianSplatPropertyKeys["IsARVisible"] = 7] = "IsARVisible";
|
|
2108
2108
|
GaussianSplatPropertyKeys[GaussianSplatPropertyKeys["IsShadowCaster"] = 8] = "IsShadowCaster";
|
|
2109
|
-
GaussianSplatPropertyKeys[GaussianSplatPropertyKeys["
|
|
2109
|
+
GaussianSplatPropertyKeys[GaussianSplatPropertyKeys["Tint"] = 9] = "Tint";
|
|
2110
|
+
GaussianSplatPropertyKeys[GaussianSplatPropertyKeys["Num"] = 10] = "Num";
|
|
2110
2111
|
})(GaussianSplatPropertyKeys = Multiplayer.GaussianSplatPropertyKeys || (Multiplayer.GaussianSplatPropertyKeys = {}));
|
|
2111
2112
|
})(Multiplayer || (Multiplayer = {}));
|
|
2112
2113
|
(function (Multiplayer) {
|
|
@@ -2453,6 +2454,7 @@ export var Multiplayer;
|
|
|
2453
2454
|
EAssetType[EAssetType["HOLOCAP_VIDEO"] = 6] = "HOLOCAP_VIDEO";
|
|
2454
2455
|
EAssetType[EAssetType["HOLOCAP_AUDIO"] = 7] = "HOLOCAP_AUDIO";
|
|
2455
2456
|
EAssetType[EAssetType["AUDIO"] = 8] = "AUDIO";
|
|
2457
|
+
EAssetType[EAssetType["GAUSSIAN_SPLAT"] = 9] = "GAUSSIAN_SPLAT";
|
|
2456
2458
|
})(EAssetType = Systems.EAssetType || (Systems.EAssetType = {}));
|
|
2457
2459
|
})(Systems || (Systems = {}));
|
|
2458
2460
|
(function (Systems) {
|
|
@@ -16837,6 +16839,26 @@ export class CSPFoundation {
|
|
|
16837
16839
|
setIsShadowCaster(value) {
|
|
16838
16840
|
Module.ccall("csp_multiplayer_GaussianSplatSpaceComponent_SetIsShadowCaster_void_bool", "void", ["number", "boolean"], [this.pointer, value]);
|
|
16839
16841
|
}
|
|
16842
|
+
/**
|
|
16843
|
+
@}
|
|
16844
|
+
* @description Gets the tint that should be globally applied to the Gaussian Splat associated with this component.
|
|
16845
|
+
* @return The global tint value, expected to be in RGB color space, with each value normalised between 0...1.
|
|
16846
|
+
*/
|
|
16847
|
+
getTint() {
|
|
16848
|
+
var _ret = Module._malloc(8);
|
|
16849
|
+
Module.ccall("csp_multiplayer_GaussianSplatSpaceComponent_GetTintC_Vector3RC", "void", ["number", "number"], [_ret, this.pointer]);
|
|
16850
|
+
var _nPtr = new Common.Vector3(getNativePointer(_ret));
|
|
16851
|
+
Module._free(_ret);
|
|
16852
|
+
return _nPtr;
|
|
16853
|
+
}
|
|
16854
|
+
/**
|
|
16855
|
+
* @description Sets the tint that should be globally applied to the Gaussian Splat.
|
|
16856
|
+
* @param value - The tint value, expected to be in RGB color space, with each value normalised between 0...1.
|
|
16857
|
+
* Defaults to 1,1,1.
|
|
16858
|
+
*/
|
|
16859
|
+
setTint(tintValue) {
|
|
16860
|
+
Module.ccall("csp_multiplayer_GaussianSplatSpaceComponent_SetTint_void_Vector3RC", "void", ["number", "number"], [this.pointer, tintValue.pointer]);
|
|
16861
|
+
}
|
|
16840
16862
|
delete() {
|
|
16841
16863
|
if (this.ownsPointer && !this.disposed) {
|
|
16842
16864
|
Module.ccall("csp_multiplayer_GaussianSplatSpaceComponent_Dtor", "void", ["number"], [this.pointer]);
|
|
@@ -20111,6 +20133,32 @@ export class CSPFoundation {
|
|
|
20111
20133
|
]);
|
|
20112
20134
|
return _promise;
|
|
20113
20135
|
}
|
|
20136
|
+
/**
|
|
20137
|
+
* @description Sets a store to be enabled or disabled in a space.
|
|
20138
|
+
* @param storeName - The store name (URL) to the Shopify store. Do not include the '.shopify.com' part of the url.
|
|
20139
|
+
* @param spaceId - ID of the space the store links to.
|
|
20140
|
+
* @param isEcommerceActive - Bool to set the ecommerce system status to.
|
|
20141
|
+
* @param callback - Callback when asynchronous task finishes
|
|
20142
|
+
*/
|
|
20143
|
+
async setECommerceActiveInSpace(storeName, spaceId, isEcommerceActive) {
|
|
20144
|
+
var _resolve;
|
|
20145
|
+
var _promise = new Promise((_r) => {
|
|
20146
|
+
_resolve = _r;
|
|
20147
|
+
});
|
|
20148
|
+
var _callbackPtr;
|
|
20149
|
+
var _callback = (_stateObject__, result) => {
|
|
20150
|
+
var _resultPtr = getNativePointer(result);
|
|
20151
|
+
var _resultInstance = new Systems.AddShopifyStoreResult(_resultPtr);
|
|
20152
|
+
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
20153
|
+
return;
|
|
20154
|
+
}
|
|
20155
|
+
_resolve(_resultInstance);
|
|
20156
|
+
Module.removeFunction(_callbackPtr);
|
|
20157
|
+
};
|
|
20158
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
20159
|
+
Module.ccall("csp_systems_ECommerceSystem_SetECommerceActiveInSpace_void_StringRC_StringRC_boolC_SetECommerceActiveResultCallback", "void", ["number", "string", "string", "boolean", "number", "number"], [this.pointer, storeName, spaceId, isEcommerceActive, _callbackPtr, 0]);
|
|
20160
|
+
return _promise;
|
|
20161
|
+
}
|
|
20114
20162
|
/**
|
|
20115
20163
|
* @description Validates a shopify store given a store name and an access token.
|
|
20116
20164
|
* @param storeName - The store name (URL) to the Shopify store. Do not include the '.shopify.com' part of the url.
|