connected-spaces-platform.web 4.24.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 +49 -3
- package/Debug/ConnectedSpacesPlatform_WASM.wasm +0 -0
- package/Debug/ConnectedSpacesPlatform_WASM.wasm.debug.wasm +0 -0
- package/README.md +26 -2
- package/Release/ConnectedSpacesPlatform_WASM.js +1 -1
- package/Release/ConnectedSpacesPlatform_WASM.wasm +0 -0
- package/connectedspacesplatform.d.ts +150 -2
- package/connectedspacesplatform.js +264 -0
- package/connectedspacesplatform.js.map +1 -1
- package/connectedspacesplatform.ts +479 -0
- package/package.json +1 -1
|
Binary file
|
|
@@ -127,7 +127,8 @@ export declare namespace Multiplayer {
|
|
|
127
127
|
Reflection = 20,
|
|
128
128
|
Fog = 21,
|
|
129
129
|
ECommerce = 22,
|
|
130
|
-
FiducialMarker = 23
|
|
130
|
+
FiducialMarker = 23,
|
|
131
|
+
GaussianSplat = 24
|
|
131
132
|
}
|
|
132
133
|
}
|
|
133
134
|
export declare namespace Multiplayer {
|
|
@@ -532,6 +533,24 @@ export declare namespace Multiplayer {
|
|
|
532
533
|
Exponential2 = 2
|
|
533
534
|
}
|
|
534
535
|
}
|
|
536
|
+
export declare namespace Multiplayer {
|
|
537
|
+
/**
|
|
538
|
+
* @description Enumerates the list of properties that can be replicated for a Gaussian Splat component.
|
|
539
|
+
*/
|
|
540
|
+
enum GaussianSplatPropertyKeys {
|
|
541
|
+
Name = 0,
|
|
542
|
+
ExternalResourceAssetId = 1,
|
|
543
|
+
ExternalResourceAssetCollectionId = 2,
|
|
544
|
+
Position = 3,
|
|
545
|
+
Rotation = 4,
|
|
546
|
+
Scale = 5,
|
|
547
|
+
IsVisible = 6,
|
|
548
|
+
IsARVisible = 7,
|
|
549
|
+
IsShadowCaster = 8,
|
|
550
|
+
Tint = 9,
|
|
551
|
+
Num = 10
|
|
552
|
+
}
|
|
553
|
+
}
|
|
535
554
|
export declare namespace Multiplayer {
|
|
536
555
|
/**
|
|
537
556
|
* @description Enumerates the list of properties that can be replicated for an image space component.
|
|
@@ -853,7 +872,8 @@ export declare namespace Systems {
|
|
|
853
872
|
SCRIPT_LIBRARY = 5,
|
|
854
873
|
HOLOCAP_VIDEO = 6,
|
|
855
874
|
HOLOCAP_AUDIO = 7,
|
|
856
|
-
AUDIO = 8
|
|
875
|
+
AUDIO = 8,
|
|
876
|
+
GAUSSIAN_SPLAT = 9
|
|
857
877
|
}
|
|
858
878
|
}
|
|
859
879
|
export declare namespace Systems {
|
|
@@ -7094,6 +7114,126 @@ export declare namespace Multiplayer {
|
|
|
7094
7114
|
delete(): void;
|
|
7095
7115
|
}
|
|
7096
7116
|
}
|
|
7117
|
+
export declare namespace Multiplayer {
|
|
7118
|
+
/**
|
|
7119
|
+
@ingroup GaussianSplatSpaceComponent
|
|
7120
|
+
* @description Data representation of a GaussianSplatSpaceComponent.
|
|
7121
|
+
* Gaussian Splatting is a technique for real-time 3D reconstruction and rendering of an object or environment using images taken from multiple points of view.
|
|
7122
|
+
* Rather than representing the object as a mesh of triangles, which has a surface but nothing inside, it is instead represented as a volume,
|
|
7123
|
+
* comprising a point cloud of splats (like coloured dots), each of which has a position, colour (with alpha) and covariance (scale on 3 axis).
|
|
7124
|
+
*/
|
|
7125
|
+
class GaussianSplatSpaceComponent extends Multiplayer.ComponentBase implements Multiplayer.IExternalResourceComponent, Multiplayer.IShadowCasterComponent, Multiplayer.ITransformComponent, Multiplayer.IVisibleComponent, INativeResource {
|
|
7126
|
+
/** @internal */
|
|
7127
|
+
constructor(pointer: NativePointer);
|
|
7128
|
+
static fromComponentBase(baseInstance: Multiplayer.ComponentBase): Multiplayer.GaussianSplatSpaceComponent;
|
|
7129
|
+
/**
|
|
7130
|
+
* @description Constructs the Gaussian Splat component, and associates it with the specified Parent space entity.
|
|
7131
|
+
* @param parent - The Space entity that owns this component.
|
|
7132
|
+
*/
|
|
7133
|
+
static create_parent(parent: Multiplayer.SpaceEntity): GaussianSplatSpaceComponent;
|
|
7134
|
+
/**
|
|
7135
|
+
* @description Gets the ID of the asset associated with this component.
|
|
7136
|
+
* NOTE: To retrieve this component's gaussian splat asset, both the Asset ID and the Asset Collection ID are required.
|
|
7137
|
+
* @return The ID of the asset associated with this component.
|
|
7138
|
+
*/
|
|
7139
|
+
getExternalResourceAssetId(): string;
|
|
7140
|
+
/**
|
|
7141
|
+
* @description Sets the ID of the asset associated with this component.
|
|
7142
|
+
* NOTE: To retrieve this component's gaussian splat asset, both the Asset ID and the Asset Collection ID are required.
|
|
7143
|
+
* @param value - The ID of the asset associated with this component.
|
|
7144
|
+
*/
|
|
7145
|
+
setExternalResourceAssetId(value: string): void;
|
|
7146
|
+
/**
|
|
7147
|
+
* @description Gets the ID of the asset collection associated with this component.
|
|
7148
|
+
* NOTE: To retrieve this component's gaussian splat asset, both the Asset ID and the Asset Collection ID are required.
|
|
7149
|
+
* @return The ID of the asset collection associated with this component.
|
|
7150
|
+
*/
|
|
7151
|
+
getExternalResourceAssetCollectionId(): string;
|
|
7152
|
+
/**
|
|
7153
|
+
* @description Sets the ID of the asset collection associated with this component.
|
|
7154
|
+
* NOTE: To retrieve this component's gaussian splat asset, both the Asset ID and the Asset Collection ID are required.
|
|
7155
|
+
* @param value - The ID of the asset collection associated with this component.
|
|
7156
|
+
*/
|
|
7157
|
+
setExternalResourceAssetCollectionId(value: string): void;
|
|
7158
|
+
/**
|
|
7159
|
+
* \addtogroup ITransformComponent
|
|
7160
|
+
@{
|
|
7161
|
+
@copydoc IPositionComponent::GetPosition()
|
|
7162
|
+
*/
|
|
7163
|
+
getPosition(): Common.Vector3;
|
|
7164
|
+
/**
|
|
7165
|
+
@copydoc IPositionComponent::SetPosition()
|
|
7166
|
+
*/
|
|
7167
|
+
setPosition(value: Common.Vector3): void;
|
|
7168
|
+
/**
|
|
7169
|
+
@copydoc IRotationComponent::GetRotation()
|
|
7170
|
+
*/
|
|
7171
|
+
getRotation(): Common.Vector4;
|
|
7172
|
+
/**
|
|
7173
|
+
@copydoc IRotationComponent::SetRotation()
|
|
7174
|
+
*/
|
|
7175
|
+
setRotation(value: Common.Vector4): void;
|
|
7176
|
+
/**
|
|
7177
|
+
@copydoc IScaleComponent::GetScale()
|
|
7178
|
+
*/
|
|
7179
|
+
getScale(): Common.Vector3;
|
|
7180
|
+
/**
|
|
7181
|
+
@copydoc IScaleComponent::SetScale()
|
|
7182
|
+
*/
|
|
7183
|
+
setScale(value: Common.Vector3): void;
|
|
7184
|
+
/**
|
|
7185
|
+
@copydoc ITransformComponent::GetTransform()
|
|
7186
|
+
*/
|
|
7187
|
+
getTransform(): Multiplayer.SpaceTransform;
|
|
7188
|
+
/**
|
|
7189
|
+
@copydoc ITransformComonent::SetTransform()
|
|
7190
|
+
*/
|
|
7191
|
+
setTransform(value: Multiplayer.SpaceTransform): void;
|
|
7192
|
+
/**
|
|
7193
|
+
@}
|
|
7194
|
+
* \addtogroup IVisibleComponent
|
|
7195
|
+
@{
|
|
7196
|
+
@copydoc IVisibleComponent::GetIsVisible()
|
|
7197
|
+
*/
|
|
7198
|
+
getIsVisible(): boolean;
|
|
7199
|
+
/**
|
|
7200
|
+
@copydoc IVisibleComponent::SetIsVisible()
|
|
7201
|
+
*/
|
|
7202
|
+
setIsVisible(value: boolean): void;
|
|
7203
|
+
/**
|
|
7204
|
+
@copydoc IVisibleComponent::GetIsARVisible()
|
|
7205
|
+
*/
|
|
7206
|
+
getIsARVisible(): boolean;
|
|
7207
|
+
/**
|
|
7208
|
+
@copydoc IVisibleComponent::SetIsARVisible()
|
|
7209
|
+
*/
|
|
7210
|
+
setIsARVisible(value: boolean): void;
|
|
7211
|
+
/**
|
|
7212
|
+
@}
|
|
7213
|
+
* \addtogroup IShadowCasterComponent
|
|
7214
|
+
@{
|
|
7215
|
+
@copydoc IShadowCasterComponent::GetIsShadowCaster()
|
|
7216
|
+
*/
|
|
7217
|
+
getIsShadowCaster(): boolean;
|
|
7218
|
+
/**
|
|
7219
|
+
@copydoc IShadowCasterComponent::SetIsShadowCaster()
|
|
7220
|
+
*/
|
|
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;
|
|
7234
|
+
delete(): void;
|
|
7235
|
+
}
|
|
7236
|
+
}
|
|
7097
7237
|
export declare namespace Multiplayer {
|
|
7098
7238
|
/**
|
|
7099
7239
|
@ingroup ImageSpaceComponent
|
|
@@ -8595,6 +8735,14 @@ export declare namespace Systems {
|
|
|
8595
8735
|
* @param callback - Callback when asynchronous task finishes
|
|
8596
8736
|
*/
|
|
8597
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>;
|
|
8598
8746
|
/**
|
|
8599
8747
|
* @description Validates a shopify store given a store name and an access token.
|
|
8600
8748
|
* @param storeName - The store name (URL) to the Shopify store. Do not include the '.shopify.com' part of the url.
|
|
@@ -418,6 +418,11 @@ function csp_multiplayer_FogModeFactory(nativePointer) {
|
|
|
418
418
|
return nativePointer.pointer;
|
|
419
419
|
}
|
|
420
420
|
ProxyClassFactories["csp_multiplayer_FogMode"] = csp_multiplayer_FogModeFactory;
|
|
421
|
+
function csp_multiplayer_GaussianSplatPropertyKeysFactory(nativePointer) {
|
|
422
|
+
return nativePointer.pointer;
|
|
423
|
+
}
|
|
424
|
+
ProxyClassFactories["csp_multiplayer_GaussianSplatPropertyKeys"] =
|
|
425
|
+
csp_multiplayer_GaussianSplatPropertyKeysFactory;
|
|
421
426
|
function csp_multiplayer_ImagePropertyKeysFactory(nativePointer) {
|
|
422
427
|
return nativePointer.pointer;
|
|
423
428
|
}
|
|
@@ -987,6 +992,11 @@ function csp_multiplayer_FogSpaceComponentFactory(nativePointer) {
|
|
|
987
992
|
}
|
|
988
993
|
ProxyClassFactories["csp_multiplayer_FogSpaceComponent"] =
|
|
989
994
|
csp_multiplayer_FogSpaceComponentFactory;
|
|
995
|
+
function csp_multiplayer_GaussianSplatSpaceComponentFactory(nativePointer) {
|
|
996
|
+
return new Multiplayer.GaussianSplatSpaceComponent(nativePointer);
|
|
997
|
+
}
|
|
998
|
+
ProxyClassFactories["csp_multiplayer_GaussianSplatSpaceComponent"] =
|
|
999
|
+
csp_multiplayer_GaussianSplatSpaceComponentFactory;
|
|
990
1000
|
function csp_multiplayer_ImageSpaceComponentFactory(nativePointer) {
|
|
991
1001
|
return new Multiplayer.ImageSpaceComponent(nativePointer);
|
|
992
1002
|
}
|
|
@@ -1647,6 +1657,7 @@ export var Multiplayer;
|
|
|
1647
1657
|
ComponentType[ComponentType["Fog"] = 21] = "Fog";
|
|
1648
1658
|
ComponentType[ComponentType["ECommerce"] = 22] = "ECommerce";
|
|
1649
1659
|
ComponentType[ComponentType["FiducialMarker"] = 23] = "FiducialMarker";
|
|
1660
|
+
ComponentType[ComponentType["GaussianSplat"] = 24] = "GaussianSplat";
|
|
1650
1661
|
})(ComponentType = Multiplayer.ComponentType || (Multiplayer.ComponentType = {}));
|
|
1651
1662
|
})(Multiplayer || (Multiplayer = {}));
|
|
1652
1663
|
(function (Multiplayer) {
|
|
@@ -2080,6 +2091,25 @@ export var Multiplayer;
|
|
|
2080
2091
|
FogMode[FogMode["Exponential2"] = 2] = "Exponential2";
|
|
2081
2092
|
})(FogMode = Multiplayer.FogMode || (Multiplayer.FogMode = {}));
|
|
2082
2093
|
})(Multiplayer || (Multiplayer = {}));
|
|
2094
|
+
(function (Multiplayer) {
|
|
2095
|
+
/**
|
|
2096
|
+
* @description Enumerates the list of properties that can be replicated for a Gaussian Splat component.
|
|
2097
|
+
*/
|
|
2098
|
+
let GaussianSplatPropertyKeys;
|
|
2099
|
+
(function (GaussianSplatPropertyKeys) {
|
|
2100
|
+
GaussianSplatPropertyKeys[GaussianSplatPropertyKeys["Name"] = 0] = "Name";
|
|
2101
|
+
GaussianSplatPropertyKeys[GaussianSplatPropertyKeys["ExternalResourceAssetId"] = 1] = "ExternalResourceAssetId";
|
|
2102
|
+
GaussianSplatPropertyKeys[GaussianSplatPropertyKeys["ExternalResourceAssetCollectionId"] = 2] = "ExternalResourceAssetCollectionId";
|
|
2103
|
+
GaussianSplatPropertyKeys[GaussianSplatPropertyKeys["Position"] = 3] = "Position";
|
|
2104
|
+
GaussianSplatPropertyKeys[GaussianSplatPropertyKeys["Rotation"] = 4] = "Rotation";
|
|
2105
|
+
GaussianSplatPropertyKeys[GaussianSplatPropertyKeys["Scale"] = 5] = "Scale";
|
|
2106
|
+
GaussianSplatPropertyKeys[GaussianSplatPropertyKeys["IsVisible"] = 6] = "IsVisible";
|
|
2107
|
+
GaussianSplatPropertyKeys[GaussianSplatPropertyKeys["IsARVisible"] = 7] = "IsARVisible";
|
|
2108
|
+
GaussianSplatPropertyKeys[GaussianSplatPropertyKeys["IsShadowCaster"] = 8] = "IsShadowCaster";
|
|
2109
|
+
GaussianSplatPropertyKeys[GaussianSplatPropertyKeys["Tint"] = 9] = "Tint";
|
|
2110
|
+
GaussianSplatPropertyKeys[GaussianSplatPropertyKeys["Num"] = 10] = "Num";
|
|
2111
|
+
})(GaussianSplatPropertyKeys = Multiplayer.GaussianSplatPropertyKeys || (Multiplayer.GaussianSplatPropertyKeys = {}));
|
|
2112
|
+
})(Multiplayer || (Multiplayer = {}));
|
|
2083
2113
|
(function (Multiplayer) {
|
|
2084
2114
|
/**
|
|
2085
2115
|
* @description Enumerates the list of properties that can be replicated for an image space component.
|
|
@@ -2424,6 +2454,7 @@ export var Multiplayer;
|
|
|
2424
2454
|
EAssetType[EAssetType["HOLOCAP_VIDEO"] = 6] = "HOLOCAP_VIDEO";
|
|
2425
2455
|
EAssetType[EAssetType["HOLOCAP_AUDIO"] = 7] = "HOLOCAP_AUDIO";
|
|
2426
2456
|
EAssetType[EAssetType["AUDIO"] = 8] = "AUDIO";
|
|
2457
|
+
EAssetType[EAssetType["GAUSSIAN_SPLAT"] = 9] = "GAUSSIAN_SPLAT";
|
|
2427
2458
|
})(EAssetType = Systems.EAssetType || (Systems.EAssetType = {}));
|
|
2428
2459
|
})(Systems || (Systems = {}));
|
|
2429
2460
|
(function (Systems) {
|
|
@@ -16630,6 +16661,213 @@ export class CSPFoundation {
|
|
|
16630
16661
|
}
|
|
16631
16662
|
Multiplayer.FogSpaceComponent = FogSpaceComponent;
|
|
16632
16663
|
})(Multiplayer || (Multiplayer = {}));
|
|
16664
|
+
(function (Multiplayer) {
|
|
16665
|
+
/**
|
|
16666
|
+
@ingroup GaussianSplatSpaceComponent
|
|
16667
|
+
* @description Data representation of a GaussianSplatSpaceComponent.
|
|
16668
|
+
* Gaussian Splatting is a technique for real-time 3D reconstruction and rendering of an object or environment using images taken from multiple points of view.
|
|
16669
|
+
* Rather than representing the object as a mesh of triangles, which has a surface but nothing inside, it is instead represented as a volume,
|
|
16670
|
+
* comprising a point cloud of splats (like coloured dots), each of which has a position, colour (with alpha) and covariance (scale on 3 axis).
|
|
16671
|
+
*/
|
|
16672
|
+
class GaussianSplatSpaceComponent extends Multiplayer.ComponentBase {
|
|
16673
|
+
/** @internal */
|
|
16674
|
+
constructor(pointer) {
|
|
16675
|
+
super(pointer);
|
|
16676
|
+
}
|
|
16677
|
+
static fromComponentBase(baseInstance) {
|
|
16678
|
+
const nativeClassWrapper = baseInstance;
|
|
16679
|
+
return new Multiplayer.GaussianSplatSpaceComponent(new NativePointer(nativeClassWrapper.pointer, nativeClassWrapper.ownsPointer));
|
|
16680
|
+
}
|
|
16681
|
+
/**
|
|
16682
|
+
* @description Constructs the Gaussian Splat component, and associates it with the specified Parent space entity.
|
|
16683
|
+
* @param parent - The Space entity that owns this component.
|
|
16684
|
+
*/
|
|
16685
|
+
static create_parent(parent) {
|
|
16686
|
+
var _ptr = Module._malloc(8);
|
|
16687
|
+
Module.ccall("csp_multiplayer_GaussianSplatSpaceComponent_Ctor_SpaceEntityP", "void", ["number", "number"], [_ptr, parent.pointer]);
|
|
16688
|
+
var _nPtr = getNativePointer(_ptr);
|
|
16689
|
+
return new GaussianSplatSpaceComponent(_nPtr);
|
|
16690
|
+
}
|
|
16691
|
+
/**
|
|
16692
|
+
* @description Gets the ID of the asset associated with this component.
|
|
16693
|
+
* NOTE: To retrieve this component's gaussian splat asset, both the Asset ID and the Asset Collection ID are required.
|
|
16694
|
+
* @return The ID of the asset associated with this component.
|
|
16695
|
+
*/
|
|
16696
|
+
getExternalResourceAssetId() {
|
|
16697
|
+
let _result = Module.ccall("csp_multiplayer_GaussianSplatSpaceComponent_GetExternalResourceAssetIdC_StringRC", "number", ["number"], [this.pointer]);
|
|
16698
|
+
const _resultString = Module.UTF8ToString(_result);
|
|
16699
|
+
free(_result);
|
|
16700
|
+
_result = _resultString;
|
|
16701
|
+
return _result;
|
|
16702
|
+
}
|
|
16703
|
+
/**
|
|
16704
|
+
* @description Sets the ID of the asset associated with this component.
|
|
16705
|
+
* NOTE: To retrieve this component's gaussian splat asset, both the Asset ID and the Asset Collection ID are required.
|
|
16706
|
+
* @param value - The ID of the asset associated with this component.
|
|
16707
|
+
*/
|
|
16708
|
+
setExternalResourceAssetId(value) {
|
|
16709
|
+
Module.ccall("csp_multiplayer_GaussianSplatSpaceComponent_SetExternalResourceAssetId_void_StringRC", "void", ["number", "string"], [this.pointer, value]);
|
|
16710
|
+
}
|
|
16711
|
+
/**
|
|
16712
|
+
* @description Gets the ID of the asset collection associated with this component.
|
|
16713
|
+
* NOTE: To retrieve this component's gaussian splat asset, both the Asset ID and the Asset Collection ID are required.
|
|
16714
|
+
* @return The ID of the asset collection associated with this component.
|
|
16715
|
+
*/
|
|
16716
|
+
getExternalResourceAssetCollectionId() {
|
|
16717
|
+
let _result = Module.ccall("csp_multiplayer_GaussianSplatSpaceComponent_GetExternalResourceAssetCollectionIdC_StringRC", "number", ["number"], [this.pointer]);
|
|
16718
|
+
const _resultString = Module.UTF8ToString(_result);
|
|
16719
|
+
free(_result);
|
|
16720
|
+
_result = _resultString;
|
|
16721
|
+
return _result;
|
|
16722
|
+
}
|
|
16723
|
+
/**
|
|
16724
|
+
* @description Sets the ID of the asset collection associated with this component.
|
|
16725
|
+
* NOTE: To retrieve this component's gaussian splat asset, both the Asset ID and the Asset Collection ID are required.
|
|
16726
|
+
* @param value - The ID of the asset collection associated with this component.
|
|
16727
|
+
*/
|
|
16728
|
+
setExternalResourceAssetCollectionId(value) {
|
|
16729
|
+
Module.ccall("csp_multiplayer_GaussianSplatSpaceComponent_SetExternalResourceAssetCollectionId_void_StringRC", "void", ["number", "string"], [this.pointer, value]);
|
|
16730
|
+
}
|
|
16731
|
+
/**
|
|
16732
|
+
* \addtogroup ITransformComponent
|
|
16733
|
+
@{
|
|
16734
|
+
@copydoc IPositionComponent::GetPosition()
|
|
16735
|
+
*/
|
|
16736
|
+
getPosition() {
|
|
16737
|
+
var _ret = Module._malloc(8);
|
|
16738
|
+
Module.ccall("csp_multiplayer_GaussianSplatSpaceComponent_GetPositionC_Vector3RC", "void", ["number", "number"], [_ret, this.pointer]);
|
|
16739
|
+
var _nPtr = new Common.Vector3(getNativePointer(_ret));
|
|
16740
|
+
Module._free(_ret);
|
|
16741
|
+
return _nPtr;
|
|
16742
|
+
}
|
|
16743
|
+
/**
|
|
16744
|
+
@copydoc IPositionComponent::SetPosition()
|
|
16745
|
+
*/
|
|
16746
|
+
setPosition(value) {
|
|
16747
|
+
Module.ccall("csp_multiplayer_GaussianSplatSpaceComponent_SetPosition_void_Vector3RC", "void", ["number", "number"], [this.pointer, value.pointer]);
|
|
16748
|
+
}
|
|
16749
|
+
/**
|
|
16750
|
+
@copydoc IRotationComponent::GetRotation()
|
|
16751
|
+
*/
|
|
16752
|
+
getRotation() {
|
|
16753
|
+
var _ret = Module._malloc(8);
|
|
16754
|
+
Module.ccall("csp_multiplayer_GaussianSplatSpaceComponent_GetRotationC_Vector4RC", "void", ["number", "number"], [_ret, this.pointer]);
|
|
16755
|
+
var _nPtr = new Common.Vector4(getNativePointer(_ret));
|
|
16756
|
+
Module._free(_ret);
|
|
16757
|
+
return _nPtr;
|
|
16758
|
+
}
|
|
16759
|
+
/**
|
|
16760
|
+
@copydoc IRotationComponent::SetRotation()
|
|
16761
|
+
*/
|
|
16762
|
+
setRotation(value) {
|
|
16763
|
+
Module.ccall("csp_multiplayer_GaussianSplatSpaceComponent_SetRotation_void_Vector4RC", "void", ["number", "number"], [this.pointer, value.pointer]);
|
|
16764
|
+
}
|
|
16765
|
+
/**
|
|
16766
|
+
@copydoc IScaleComponent::GetScale()
|
|
16767
|
+
*/
|
|
16768
|
+
getScale() {
|
|
16769
|
+
var _ret = Module._malloc(8);
|
|
16770
|
+
Module.ccall("csp_multiplayer_GaussianSplatSpaceComponent_GetScaleC_Vector3RC", "void", ["number", "number"], [_ret, this.pointer]);
|
|
16771
|
+
var _nPtr = new Common.Vector3(getNativePointer(_ret));
|
|
16772
|
+
Module._free(_ret);
|
|
16773
|
+
return _nPtr;
|
|
16774
|
+
}
|
|
16775
|
+
/**
|
|
16776
|
+
@copydoc IScaleComponent::SetScale()
|
|
16777
|
+
*/
|
|
16778
|
+
setScale(value) {
|
|
16779
|
+
Module.ccall("csp_multiplayer_GaussianSplatSpaceComponent_SetScale_void_Vector3RC", "void", ["number", "number"], [this.pointer, value.pointer]);
|
|
16780
|
+
}
|
|
16781
|
+
/**
|
|
16782
|
+
@copydoc ITransformComponent::GetTransform()
|
|
16783
|
+
*/
|
|
16784
|
+
getTransform() {
|
|
16785
|
+
var _ret = Module._malloc(8);
|
|
16786
|
+
Module.ccall("csp_multiplayer_GaussianSplatSpaceComponent_GetTransformC_SpaceTransform", "void", ["number", "number"], [_ret, this.pointer]);
|
|
16787
|
+
var _nPtr = new Multiplayer.SpaceTransform(getNativePointer(_ret));
|
|
16788
|
+
Module._free(_ret);
|
|
16789
|
+
return _nPtr;
|
|
16790
|
+
}
|
|
16791
|
+
/**
|
|
16792
|
+
@copydoc ITransformComonent::SetTransform()
|
|
16793
|
+
*/
|
|
16794
|
+
setTransform(value) {
|
|
16795
|
+
Module.ccall("csp_multiplayer_GaussianSplatSpaceComponent_SetTransform_void_SpaceTransformRC", "void", ["number", "number"], [this.pointer, value.pointer]);
|
|
16796
|
+
}
|
|
16797
|
+
/**
|
|
16798
|
+
@}
|
|
16799
|
+
* \addtogroup IVisibleComponent
|
|
16800
|
+
@{
|
|
16801
|
+
@copydoc IVisibleComponent::GetIsVisible()
|
|
16802
|
+
*/
|
|
16803
|
+
getIsVisible() {
|
|
16804
|
+
let _result = Module.ccall("csp_multiplayer_GaussianSplatSpaceComponent_GetIsVisibleC_bool", "boolean", ["number"], [this.pointer]);
|
|
16805
|
+
return _result;
|
|
16806
|
+
}
|
|
16807
|
+
/**
|
|
16808
|
+
@copydoc IVisibleComponent::SetIsVisible()
|
|
16809
|
+
*/
|
|
16810
|
+
setIsVisible(value) {
|
|
16811
|
+
Module.ccall("csp_multiplayer_GaussianSplatSpaceComponent_SetIsVisible_void_bool", "void", ["number", "boolean"], [this.pointer, value]);
|
|
16812
|
+
}
|
|
16813
|
+
/**
|
|
16814
|
+
@copydoc IVisibleComponent::GetIsARVisible()
|
|
16815
|
+
*/
|
|
16816
|
+
getIsARVisible() {
|
|
16817
|
+
let _result = Module.ccall("csp_multiplayer_GaussianSplatSpaceComponent_GetIsARVisibleC_bool", "boolean", ["number"], [this.pointer]);
|
|
16818
|
+
return _result;
|
|
16819
|
+
}
|
|
16820
|
+
/**
|
|
16821
|
+
@copydoc IVisibleComponent::SetIsARVisible()
|
|
16822
|
+
*/
|
|
16823
|
+
setIsARVisible(value) {
|
|
16824
|
+
Module.ccall("csp_multiplayer_GaussianSplatSpaceComponent_SetIsARVisible_void_bool", "void", ["number", "boolean"], [this.pointer, value]);
|
|
16825
|
+
}
|
|
16826
|
+
/**
|
|
16827
|
+
@}
|
|
16828
|
+
* \addtogroup IShadowCasterComponent
|
|
16829
|
+
@{
|
|
16830
|
+
@copydoc IShadowCasterComponent::GetIsShadowCaster()
|
|
16831
|
+
*/
|
|
16832
|
+
getIsShadowCaster() {
|
|
16833
|
+
let _result = Module.ccall("csp_multiplayer_GaussianSplatSpaceComponent_GetIsShadowCasterC_bool", "boolean", ["number"], [this.pointer]);
|
|
16834
|
+
return _result;
|
|
16835
|
+
}
|
|
16836
|
+
/**
|
|
16837
|
+
@copydoc IShadowCasterComponent::SetIsShadowCaster()
|
|
16838
|
+
*/
|
|
16839
|
+
setIsShadowCaster(value) {
|
|
16840
|
+
Module.ccall("csp_multiplayer_GaussianSplatSpaceComponent_SetIsShadowCaster_void_bool", "void", ["number", "boolean"], [this.pointer, value]);
|
|
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
|
+
}
|
|
16862
|
+
delete() {
|
|
16863
|
+
if (this.ownsPointer && !this.disposed) {
|
|
16864
|
+
Module.ccall("csp_multiplayer_GaussianSplatSpaceComponent_Dtor", "void", ["number"], [this.pointer]);
|
|
16865
|
+
this.disposed = true;
|
|
16866
|
+
}
|
|
16867
|
+
}
|
|
16868
|
+
}
|
|
16869
|
+
Multiplayer.GaussianSplatSpaceComponent = GaussianSplatSpaceComponent;
|
|
16870
|
+
})(Multiplayer || (Multiplayer = {}));
|
|
16633
16871
|
(function (Multiplayer) {
|
|
16634
16872
|
/**
|
|
16635
16873
|
@ingroup ImageSpaceComponent
|
|
@@ -19895,6 +20133,32 @@ export class CSPFoundation {
|
|
|
19895
20133
|
]);
|
|
19896
20134
|
return _promise;
|
|
19897
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
|
+
}
|
|
19898
20162
|
/**
|
|
19899
20163
|
* @description Validates a shopify store given a store name and an access token.
|
|
19900
20164
|
* @param storeName - The store name (URL) to the Shopify store. Do not include the '.shopify.com' part of the url.
|