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
|
@@ -581,6 +581,14 @@ function csp_multiplayer_FogModeFactory(
|
|
|
581
581
|
}
|
|
582
582
|
ProxyClassFactories["csp_multiplayer_FogMode"] = csp_multiplayer_FogModeFactory;
|
|
583
583
|
|
|
584
|
+
function csp_multiplayer_GaussianSplatPropertyKeysFactory(
|
|
585
|
+
nativePointer: NativePointer,
|
|
586
|
+
): Multiplayer.GaussianSplatPropertyKeys {
|
|
587
|
+
return nativePointer.pointer as Multiplayer.GaussianSplatPropertyKeys;
|
|
588
|
+
}
|
|
589
|
+
ProxyClassFactories["csp_multiplayer_GaussianSplatPropertyKeys"] =
|
|
590
|
+
csp_multiplayer_GaussianSplatPropertyKeysFactory;
|
|
591
|
+
|
|
584
592
|
function csp_multiplayer_ImagePropertyKeysFactory(
|
|
585
593
|
nativePointer: NativePointer,
|
|
586
594
|
): Multiplayer.ImagePropertyKeys {
|
|
@@ -1510,6 +1518,14 @@ function csp_multiplayer_FogSpaceComponentFactory(
|
|
|
1510
1518
|
ProxyClassFactories["csp_multiplayer_FogSpaceComponent"] =
|
|
1511
1519
|
csp_multiplayer_FogSpaceComponentFactory;
|
|
1512
1520
|
|
|
1521
|
+
function csp_multiplayer_GaussianSplatSpaceComponentFactory(
|
|
1522
|
+
nativePointer: NativePointer,
|
|
1523
|
+
): NativeClassWrapper {
|
|
1524
|
+
return new Multiplayer.GaussianSplatSpaceComponent(nativePointer);
|
|
1525
|
+
}
|
|
1526
|
+
ProxyClassFactories["csp_multiplayer_GaussianSplatSpaceComponent"] =
|
|
1527
|
+
csp_multiplayer_GaussianSplatSpaceComponentFactory;
|
|
1528
|
+
|
|
1513
1529
|
function csp_multiplayer_ImageSpaceComponentFactory(
|
|
1514
1530
|
nativePointer: NativePointer,
|
|
1515
1531
|
): NativeClassWrapper {
|
|
@@ -2697,6 +2713,7 @@ export namespace Multiplayer {
|
|
|
2697
2713
|
Fog,
|
|
2698
2714
|
ECommerce,
|
|
2699
2715
|
FiducialMarker,
|
|
2716
|
+
GaussianSplat,
|
|
2700
2717
|
}
|
|
2701
2718
|
}
|
|
2702
2719
|
|
|
@@ -3131,6 +3148,25 @@ export namespace Multiplayer {
|
|
|
3131
3148
|
}
|
|
3132
3149
|
}
|
|
3133
3150
|
|
|
3151
|
+
export namespace Multiplayer {
|
|
3152
|
+
/**
|
|
3153
|
+
* @description Enumerates the list of properties that can be replicated for a Gaussian Splat component.
|
|
3154
|
+
*/
|
|
3155
|
+
export enum GaussianSplatPropertyKeys {
|
|
3156
|
+
Name = 0,
|
|
3157
|
+
ExternalResourceAssetId,
|
|
3158
|
+
ExternalResourceAssetCollectionId,
|
|
3159
|
+
Position,
|
|
3160
|
+
Rotation,
|
|
3161
|
+
Scale,
|
|
3162
|
+
IsVisible,
|
|
3163
|
+
IsARVisible,
|
|
3164
|
+
IsShadowCaster,
|
|
3165
|
+
Tint,
|
|
3166
|
+
Num,
|
|
3167
|
+
}
|
|
3168
|
+
}
|
|
3169
|
+
|
|
3134
3170
|
export namespace Multiplayer {
|
|
3135
3171
|
/**
|
|
3136
3172
|
* @description Enumerates the list of properties that can be replicated for an image space component.
|
|
@@ -3474,6 +3510,7 @@ export namespace Systems {
|
|
|
3474
3510
|
HOLOCAP_VIDEO,
|
|
3475
3511
|
HOLOCAP_AUDIO,
|
|
3476
3512
|
AUDIO,
|
|
3513
|
+
GAUSSIAN_SPLAT,
|
|
3477
3514
|
}
|
|
3478
3515
|
}
|
|
3479
3516
|
|
|
@@ -36572,6 +36609,403 @@ export namespace Multiplayer {
|
|
|
36572
36609
|
}
|
|
36573
36610
|
}
|
|
36574
36611
|
|
|
36612
|
+
export namespace Multiplayer {
|
|
36613
|
+
/**
|
|
36614
|
+
@ingroup GaussianSplatSpaceComponent
|
|
36615
|
+
* @description Data representation of a GaussianSplatSpaceComponent.
|
|
36616
|
+
* 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.
|
|
36617
|
+
* Rather than representing the object as a mesh of triangles, which has a surface but nothing inside, it is instead represented as a volume,
|
|
36618
|
+
* comprising a point cloud of splats (like coloured dots), each of which has a position, colour (with alpha) and covariance (scale on 3 axis).
|
|
36619
|
+
*/
|
|
36620
|
+
export class GaussianSplatSpaceComponent
|
|
36621
|
+
extends Multiplayer.ComponentBase
|
|
36622
|
+
implements
|
|
36623
|
+
Multiplayer.IExternalResourceComponent,
|
|
36624
|
+
Multiplayer.IShadowCasterComponent,
|
|
36625
|
+
Multiplayer.ITransformComponent,
|
|
36626
|
+
Multiplayer.IVisibleComponent,
|
|
36627
|
+
INativeResource
|
|
36628
|
+
{
|
|
36629
|
+
/** @internal */
|
|
36630
|
+
constructor(pointer: NativePointer) {
|
|
36631
|
+
super(pointer);
|
|
36632
|
+
}
|
|
36633
|
+
|
|
36634
|
+
static fromComponentBase(
|
|
36635
|
+
baseInstance: Multiplayer.ComponentBase,
|
|
36636
|
+
): Multiplayer.GaussianSplatSpaceComponent {
|
|
36637
|
+
const nativeClassWrapper = baseInstance as unknown as NativeClassWrapper;
|
|
36638
|
+
return new Multiplayer.GaussianSplatSpaceComponent(
|
|
36639
|
+
new NativePointer(
|
|
36640
|
+
nativeClassWrapper.pointer,
|
|
36641
|
+
nativeClassWrapper.ownsPointer,
|
|
36642
|
+
),
|
|
36643
|
+
);
|
|
36644
|
+
}
|
|
36645
|
+
|
|
36646
|
+
/**
|
|
36647
|
+
* @description Constructs the Gaussian Splat component, and associates it with the specified Parent space entity.
|
|
36648
|
+
* @param parent - The Space entity that owns this component.
|
|
36649
|
+
*/
|
|
36650
|
+
static create_parent(
|
|
36651
|
+
parent: Multiplayer.SpaceEntity,
|
|
36652
|
+
): GaussianSplatSpaceComponent {
|
|
36653
|
+
var _ptr = Module._malloc(8);
|
|
36654
|
+
Module.ccall(
|
|
36655
|
+
"csp_multiplayer_GaussianSplatSpaceComponent_Ctor_SpaceEntityP",
|
|
36656
|
+
"void",
|
|
36657
|
+
["number", "number"],
|
|
36658
|
+
[_ptr, parent.pointer],
|
|
36659
|
+
);
|
|
36660
|
+
var _nPtr = getNativePointer(_ptr);
|
|
36661
|
+
|
|
36662
|
+
return new GaussianSplatSpaceComponent(_nPtr);
|
|
36663
|
+
}
|
|
36664
|
+
|
|
36665
|
+
/**
|
|
36666
|
+
* @description Gets the ID of the asset associated with this component.
|
|
36667
|
+
* NOTE: To retrieve this component's gaussian splat asset, both the Asset ID and the Asset Collection ID are required.
|
|
36668
|
+
* @return The ID of the asset associated with this component.
|
|
36669
|
+
*/
|
|
36670
|
+
|
|
36671
|
+
getExternalResourceAssetId(): string {
|
|
36672
|
+
let _result = Module.ccall(
|
|
36673
|
+
"csp_multiplayer_GaussianSplatSpaceComponent_GetExternalResourceAssetIdC_StringRC",
|
|
36674
|
+
"number",
|
|
36675
|
+
["number"],
|
|
36676
|
+
[this.pointer],
|
|
36677
|
+
);
|
|
36678
|
+
|
|
36679
|
+
const _resultString = Module.UTF8ToString(_result);
|
|
36680
|
+
free(_result);
|
|
36681
|
+
|
|
36682
|
+
_result = _resultString;
|
|
36683
|
+
|
|
36684
|
+
return _result;
|
|
36685
|
+
}
|
|
36686
|
+
|
|
36687
|
+
/**
|
|
36688
|
+
* @description Sets the ID of the asset associated with this component.
|
|
36689
|
+
* NOTE: To retrieve this component's gaussian splat asset, both the Asset ID and the Asset Collection ID are required.
|
|
36690
|
+
* @param value - The ID of the asset associated with this component.
|
|
36691
|
+
*/
|
|
36692
|
+
|
|
36693
|
+
setExternalResourceAssetId(value: string): void {
|
|
36694
|
+
Module.ccall(
|
|
36695
|
+
"csp_multiplayer_GaussianSplatSpaceComponent_SetExternalResourceAssetId_void_StringRC",
|
|
36696
|
+
"void",
|
|
36697
|
+
["number", "string"],
|
|
36698
|
+
[this.pointer, value],
|
|
36699
|
+
);
|
|
36700
|
+
}
|
|
36701
|
+
|
|
36702
|
+
/**
|
|
36703
|
+
* @description Gets the ID of the asset collection associated with this component.
|
|
36704
|
+
* NOTE: To retrieve this component's gaussian splat asset, both the Asset ID and the Asset Collection ID are required.
|
|
36705
|
+
* @return The ID of the asset collection associated with this component.
|
|
36706
|
+
*/
|
|
36707
|
+
|
|
36708
|
+
getExternalResourceAssetCollectionId(): string {
|
|
36709
|
+
let _result = Module.ccall(
|
|
36710
|
+
"csp_multiplayer_GaussianSplatSpaceComponent_GetExternalResourceAssetCollectionIdC_StringRC",
|
|
36711
|
+
"number",
|
|
36712
|
+
["number"],
|
|
36713
|
+
[this.pointer],
|
|
36714
|
+
);
|
|
36715
|
+
|
|
36716
|
+
const _resultString = Module.UTF8ToString(_result);
|
|
36717
|
+
free(_result);
|
|
36718
|
+
|
|
36719
|
+
_result = _resultString;
|
|
36720
|
+
|
|
36721
|
+
return _result;
|
|
36722
|
+
}
|
|
36723
|
+
|
|
36724
|
+
/**
|
|
36725
|
+
* @description Sets the ID of the asset collection associated with this component.
|
|
36726
|
+
* NOTE: To retrieve this component's gaussian splat asset, both the Asset ID and the Asset Collection ID are required.
|
|
36727
|
+
* @param value - The ID of the asset collection associated with this component.
|
|
36728
|
+
*/
|
|
36729
|
+
|
|
36730
|
+
setExternalResourceAssetCollectionId(value: string): void {
|
|
36731
|
+
Module.ccall(
|
|
36732
|
+
"csp_multiplayer_GaussianSplatSpaceComponent_SetExternalResourceAssetCollectionId_void_StringRC",
|
|
36733
|
+
"void",
|
|
36734
|
+
["number", "string"],
|
|
36735
|
+
[this.pointer, value],
|
|
36736
|
+
);
|
|
36737
|
+
}
|
|
36738
|
+
|
|
36739
|
+
/**
|
|
36740
|
+
* \addtogroup ITransformComponent
|
|
36741
|
+
@{
|
|
36742
|
+
@copydoc IPositionComponent::GetPosition()
|
|
36743
|
+
*/
|
|
36744
|
+
|
|
36745
|
+
getPosition(): Common.Vector3 {
|
|
36746
|
+
var _ret = Module._malloc(8);
|
|
36747
|
+
|
|
36748
|
+
Module.ccall(
|
|
36749
|
+
"csp_multiplayer_GaussianSplatSpaceComponent_GetPositionC_Vector3RC",
|
|
36750
|
+
"void",
|
|
36751
|
+
["number", "number"],
|
|
36752
|
+
[_ret, this.pointer],
|
|
36753
|
+
);
|
|
36754
|
+
var _nPtr = new Common.Vector3(getNativePointer(_ret));
|
|
36755
|
+
Module._free(_ret);
|
|
36756
|
+
|
|
36757
|
+
return _nPtr;
|
|
36758
|
+
}
|
|
36759
|
+
|
|
36760
|
+
/**
|
|
36761
|
+
@copydoc IPositionComponent::SetPosition()
|
|
36762
|
+
*/
|
|
36763
|
+
|
|
36764
|
+
setPosition(value: Common.Vector3): void {
|
|
36765
|
+
Module.ccall(
|
|
36766
|
+
"csp_multiplayer_GaussianSplatSpaceComponent_SetPosition_void_Vector3RC",
|
|
36767
|
+
"void",
|
|
36768
|
+
["number", "number"],
|
|
36769
|
+
[this.pointer, value.pointer],
|
|
36770
|
+
);
|
|
36771
|
+
}
|
|
36772
|
+
|
|
36773
|
+
/**
|
|
36774
|
+
@copydoc IRotationComponent::GetRotation()
|
|
36775
|
+
*/
|
|
36776
|
+
|
|
36777
|
+
getRotation(): Common.Vector4 {
|
|
36778
|
+
var _ret = Module._malloc(8);
|
|
36779
|
+
|
|
36780
|
+
Module.ccall(
|
|
36781
|
+
"csp_multiplayer_GaussianSplatSpaceComponent_GetRotationC_Vector4RC",
|
|
36782
|
+
"void",
|
|
36783
|
+
["number", "number"],
|
|
36784
|
+
[_ret, this.pointer],
|
|
36785
|
+
);
|
|
36786
|
+
var _nPtr = new Common.Vector4(getNativePointer(_ret));
|
|
36787
|
+
Module._free(_ret);
|
|
36788
|
+
|
|
36789
|
+
return _nPtr;
|
|
36790
|
+
}
|
|
36791
|
+
|
|
36792
|
+
/**
|
|
36793
|
+
@copydoc IRotationComponent::SetRotation()
|
|
36794
|
+
*/
|
|
36795
|
+
|
|
36796
|
+
setRotation(value: Common.Vector4): void {
|
|
36797
|
+
Module.ccall(
|
|
36798
|
+
"csp_multiplayer_GaussianSplatSpaceComponent_SetRotation_void_Vector4RC",
|
|
36799
|
+
"void",
|
|
36800
|
+
["number", "number"],
|
|
36801
|
+
[this.pointer, value.pointer],
|
|
36802
|
+
);
|
|
36803
|
+
}
|
|
36804
|
+
|
|
36805
|
+
/**
|
|
36806
|
+
@copydoc IScaleComponent::GetScale()
|
|
36807
|
+
*/
|
|
36808
|
+
|
|
36809
|
+
getScale(): Common.Vector3 {
|
|
36810
|
+
var _ret = Module._malloc(8);
|
|
36811
|
+
|
|
36812
|
+
Module.ccall(
|
|
36813
|
+
"csp_multiplayer_GaussianSplatSpaceComponent_GetScaleC_Vector3RC",
|
|
36814
|
+
"void",
|
|
36815
|
+
["number", "number"],
|
|
36816
|
+
[_ret, this.pointer],
|
|
36817
|
+
);
|
|
36818
|
+
var _nPtr = new Common.Vector3(getNativePointer(_ret));
|
|
36819
|
+
Module._free(_ret);
|
|
36820
|
+
|
|
36821
|
+
return _nPtr;
|
|
36822
|
+
}
|
|
36823
|
+
|
|
36824
|
+
/**
|
|
36825
|
+
@copydoc IScaleComponent::SetScale()
|
|
36826
|
+
*/
|
|
36827
|
+
|
|
36828
|
+
setScale(value: Common.Vector3): void {
|
|
36829
|
+
Module.ccall(
|
|
36830
|
+
"csp_multiplayer_GaussianSplatSpaceComponent_SetScale_void_Vector3RC",
|
|
36831
|
+
"void",
|
|
36832
|
+
["number", "number"],
|
|
36833
|
+
[this.pointer, value.pointer],
|
|
36834
|
+
);
|
|
36835
|
+
}
|
|
36836
|
+
|
|
36837
|
+
/**
|
|
36838
|
+
@copydoc ITransformComponent::GetTransform()
|
|
36839
|
+
*/
|
|
36840
|
+
|
|
36841
|
+
getTransform(): Multiplayer.SpaceTransform {
|
|
36842
|
+
var _ret = Module._malloc(8);
|
|
36843
|
+
|
|
36844
|
+
Module.ccall(
|
|
36845
|
+
"csp_multiplayer_GaussianSplatSpaceComponent_GetTransformC_SpaceTransform",
|
|
36846
|
+
"void",
|
|
36847
|
+
["number", "number"],
|
|
36848
|
+
[_ret, this.pointer],
|
|
36849
|
+
);
|
|
36850
|
+
var _nPtr = new Multiplayer.SpaceTransform(getNativePointer(_ret));
|
|
36851
|
+
Module._free(_ret);
|
|
36852
|
+
return _nPtr;
|
|
36853
|
+
}
|
|
36854
|
+
|
|
36855
|
+
/**
|
|
36856
|
+
@copydoc ITransformComonent::SetTransform()
|
|
36857
|
+
*/
|
|
36858
|
+
|
|
36859
|
+
setTransform(value: Multiplayer.SpaceTransform): void {
|
|
36860
|
+
Module.ccall(
|
|
36861
|
+
"csp_multiplayer_GaussianSplatSpaceComponent_SetTransform_void_SpaceTransformRC",
|
|
36862
|
+
"void",
|
|
36863
|
+
["number", "number"],
|
|
36864
|
+
[this.pointer, value.pointer],
|
|
36865
|
+
);
|
|
36866
|
+
}
|
|
36867
|
+
|
|
36868
|
+
/**
|
|
36869
|
+
@}
|
|
36870
|
+
* \addtogroup IVisibleComponent
|
|
36871
|
+
@{
|
|
36872
|
+
@copydoc IVisibleComponent::GetIsVisible()
|
|
36873
|
+
*/
|
|
36874
|
+
|
|
36875
|
+
getIsVisible(): boolean {
|
|
36876
|
+
let _result = Module.ccall(
|
|
36877
|
+
"csp_multiplayer_GaussianSplatSpaceComponent_GetIsVisibleC_bool",
|
|
36878
|
+
"boolean",
|
|
36879
|
+
["number"],
|
|
36880
|
+
[this.pointer],
|
|
36881
|
+
);
|
|
36882
|
+
|
|
36883
|
+
return _result;
|
|
36884
|
+
}
|
|
36885
|
+
|
|
36886
|
+
/**
|
|
36887
|
+
@copydoc IVisibleComponent::SetIsVisible()
|
|
36888
|
+
*/
|
|
36889
|
+
|
|
36890
|
+
setIsVisible(value: boolean): void {
|
|
36891
|
+
Module.ccall(
|
|
36892
|
+
"csp_multiplayer_GaussianSplatSpaceComponent_SetIsVisible_void_bool",
|
|
36893
|
+
"void",
|
|
36894
|
+
["number", "boolean"],
|
|
36895
|
+
[this.pointer, value],
|
|
36896
|
+
);
|
|
36897
|
+
}
|
|
36898
|
+
|
|
36899
|
+
/**
|
|
36900
|
+
@copydoc IVisibleComponent::GetIsARVisible()
|
|
36901
|
+
*/
|
|
36902
|
+
|
|
36903
|
+
getIsARVisible(): boolean {
|
|
36904
|
+
let _result = Module.ccall(
|
|
36905
|
+
"csp_multiplayer_GaussianSplatSpaceComponent_GetIsARVisibleC_bool",
|
|
36906
|
+
"boolean",
|
|
36907
|
+
["number"],
|
|
36908
|
+
[this.pointer],
|
|
36909
|
+
);
|
|
36910
|
+
|
|
36911
|
+
return _result;
|
|
36912
|
+
}
|
|
36913
|
+
|
|
36914
|
+
/**
|
|
36915
|
+
@copydoc IVisibleComponent::SetIsARVisible()
|
|
36916
|
+
*/
|
|
36917
|
+
|
|
36918
|
+
setIsARVisible(value: boolean): void {
|
|
36919
|
+
Module.ccall(
|
|
36920
|
+
"csp_multiplayer_GaussianSplatSpaceComponent_SetIsARVisible_void_bool",
|
|
36921
|
+
"void",
|
|
36922
|
+
["number", "boolean"],
|
|
36923
|
+
[this.pointer, value],
|
|
36924
|
+
);
|
|
36925
|
+
}
|
|
36926
|
+
|
|
36927
|
+
/**
|
|
36928
|
+
@}
|
|
36929
|
+
* \addtogroup IShadowCasterComponent
|
|
36930
|
+
@{
|
|
36931
|
+
@copydoc IShadowCasterComponent::GetIsShadowCaster()
|
|
36932
|
+
*/
|
|
36933
|
+
|
|
36934
|
+
getIsShadowCaster(): boolean {
|
|
36935
|
+
let _result = Module.ccall(
|
|
36936
|
+
"csp_multiplayer_GaussianSplatSpaceComponent_GetIsShadowCasterC_bool",
|
|
36937
|
+
"boolean",
|
|
36938
|
+
["number"],
|
|
36939
|
+
[this.pointer],
|
|
36940
|
+
);
|
|
36941
|
+
|
|
36942
|
+
return _result;
|
|
36943
|
+
}
|
|
36944
|
+
|
|
36945
|
+
/**
|
|
36946
|
+
@copydoc IShadowCasterComponent::SetIsShadowCaster()
|
|
36947
|
+
*/
|
|
36948
|
+
|
|
36949
|
+
setIsShadowCaster(value: boolean): void {
|
|
36950
|
+
Module.ccall(
|
|
36951
|
+
"csp_multiplayer_GaussianSplatSpaceComponent_SetIsShadowCaster_void_bool",
|
|
36952
|
+
"void",
|
|
36953
|
+
["number", "boolean"],
|
|
36954
|
+
[this.pointer, value],
|
|
36955
|
+
);
|
|
36956
|
+
}
|
|
36957
|
+
|
|
36958
|
+
/**
|
|
36959
|
+
@}
|
|
36960
|
+
* @description Gets the tint that should be globally applied to the Gaussian Splat associated with this component.
|
|
36961
|
+
* @return The global tint value, expected to be in RGB color space, with each value normalised between 0...1.
|
|
36962
|
+
*/
|
|
36963
|
+
|
|
36964
|
+
getTint(): Common.Vector3 {
|
|
36965
|
+
var _ret = Module._malloc(8);
|
|
36966
|
+
|
|
36967
|
+
Module.ccall(
|
|
36968
|
+
"csp_multiplayer_GaussianSplatSpaceComponent_GetTintC_Vector3RC",
|
|
36969
|
+
"void",
|
|
36970
|
+
["number", "number"],
|
|
36971
|
+
[_ret, this.pointer],
|
|
36972
|
+
);
|
|
36973
|
+
var _nPtr = new Common.Vector3(getNativePointer(_ret));
|
|
36974
|
+
Module._free(_ret);
|
|
36975
|
+
|
|
36976
|
+
return _nPtr;
|
|
36977
|
+
}
|
|
36978
|
+
|
|
36979
|
+
/**
|
|
36980
|
+
* @description Sets the tint that should be globally applied to the Gaussian Splat.
|
|
36981
|
+
* @param value - The tint value, expected to be in RGB color space, with each value normalised between 0...1.
|
|
36982
|
+
* Defaults to 1,1,1.
|
|
36983
|
+
*/
|
|
36984
|
+
|
|
36985
|
+
setTint(tintValue: Common.Vector3): void {
|
|
36986
|
+
Module.ccall(
|
|
36987
|
+
"csp_multiplayer_GaussianSplatSpaceComponent_SetTint_void_Vector3RC",
|
|
36988
|
+
"void",
|
|
36989
|
+
["number", "number"],
|
|
36990
|
+
[this.pointer, tintValue.pointer],
|
|
36991
|
+
);
|
|
36992
|
+
}
|
|
36993
|
+
|
|
36994
|
+
delete(): void {
|
|
36995
|
+
if (this.ownsPointer && !this.disposed) {
|
|
36996
|
+
Module.ccall(
|
|
36997
|
+
"csp_multiplayer_GaussianSplatSpaceComponent_Dtor",
|
|
36998
|
+
"void",
|
|
36999
|
+
["number"],
|
|
37000
|
+
[this.pointer],
|
|
37001
|
+
);
|
|
37002
|
+
|
|
37003
|
+
this.disposed = true;
|
|
37004
|
+
}
|
|
37005
|
+
}
|
|
37006
|
+
}
|
|
37007
|
+
}
|
|
37008
|
+
|
|
36575
37009
|
export namespace Multiplayer {
|
|
36576
37010
|
/**
|
|
36577
37011
|
@ingroup ImageSpaceComponent
|
|
@@ -42579,6 +43013,51 @@ export namespace Systems {
|
|
|
42579
43013
|
return _promise;
|
|
42580
43014
|
}
|
|
42581
43015
|
|
|
43016
|
+
/**
|
|
43017
|
+
* @description Sets a store to be enabled or disabled in a space.
|
|
43018
|
+
* @param storeName - The store name (URL) to the Shopify store. Do not include the '.shopify.com' part of the url.
|
|
43019
|
+
* @param spaceId - ID of the space the store links to.
|
|
43020
|
+
* @param isEcommerceActive - Bool to set the ecommerce system status to.
|
|
43021
|
+
* @param callback - Callback when asynchronous task finishes
|
|
43022
|
+
*/
|
|
43023
|
+
|
|
43024
|
+
async setECommerceActiveInSpace(
|
|
43025
|
+
storeName: string,
|
|
43026
|
+
spaceId: string,
|
|
43027
|
+
isEcommerceActive: boolean,
|
|
43028
|
+
): Promise<Systems.AddShopifyStoreResult> {
|
|
43029
|
+
var _resolve;
|
|
43030
|
+
|
|
43031
|
+
var _promise = new Promise<Systems.AddShopifyStoreResult>((_r) => {
|
|
43032
|
+
_resolve = _r;
|
|
43033
|
+
});
|
|
43034
|
+
|
|
43035
|
+
var _callbackPtr: number;
|
|
43036
|
+
var _callback = (_stateObject__: number, result) => {
|
|
43037
|
+
var _resultPtr = getNativePointer(result);
|
|
43038
|
+
var _resultInstance = new Systems.AddShopifyStoreResult(_resultPtr);
|
|
43039
|
+
|
|
43040
|
+
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
43041
|
+
return;
|
|
43042
|
+
}
|
|
43043
|
+
|
|
43044
|
+
_resolve(_resultInstance);
|
|
43045
|
+
|
|
43046
|
+
Module.removeFunction(_callbackPtr);
|
|
43047
|
+
};
|
|
43048
|
+
|
|
43049
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
43050
|
+
|
|
43051
|
+
Module.ccall(
|
|
43052
|
+
"csp_systems_ECommerceSystem_SetECommerceActiveInSpace_void_StringRC_StringRC_boolC_SetECommerceActiveResultCallback",
|
|
43053
|
+
"void",
|
|
43054
|
+
["number", "string", "string", "boolean", "number", "number"],
|
|
43055
|
+
[this.pointer, storeName, spaceId, isEcommerceActive, _callbackPtr, 0],
|
|
43056
|
+
);
|
|
43057
|
+
|
|
43058
|
+
return _promise;
|
|
43059
|
+
}
|
|
43060
|
+
|
|
42582
43061
|
/**
|
|
42583
43062
|
* @description Validates a shopify store given a store name and an access token.
|
|
42584
43063
|
* @param storeName - The store name (URL) to the Shopify store. Do not include the '.shopify.com' part of the url.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "connected-spaces-platform.web",
|
|
3
3
|
"displayName": "connected-spaces-platform.web",
|
|
4
|
-
"version": "4.
|
|
4
|
+
"version": "4.26.0+508",
|
|
5
5
|
"description": "This package provides the binaries required to interface with the Connected Spaces Platform API.",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"dependencies": {
|