connected-spaces-platform.web 4.24.0 → 4.25.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 +43 -3
- package/Debug/ConnectedSpacesPlatform_WASM.wasm +0 -0
- package/Debug/ConnectedSpacesPlatform_WASM.wasm.debug.wasm +0 -0
- package/README.md +13 -1
- package/Release/ConnectedSpacesPlatform_WASM.js +1 -1
- package/Release/ConnectedSpacesPlatform_WASM.wasm +0 -0
- package/connectedspacesplatform.d.ts +127 -1
- package/connectedspacesplatform.js +216 -0
- package/connectedspacesplatform.js.map +1 -1
- package/connectedspacesplatform.ts +396 -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,24 @@ 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
|
+
Num,
|
|
3166
|
+
}
|
|
3167
|
+
}
|
|
3168
|
+
|
|
3134
3169
|
export namespace Multiplayer {
|
|
3135
3170
|
/**
|
|
3136
3171
|
* @description Enumerates the list of properties that can be replicated for an image space component.
|
|
@@ -36572,6 +36607,367 @@ export namespace Multiplayer {
|
|
|
36572
36607
|
}
|
|
36573
36608
|
}
|
|
36574
36609
|
|
|
36610
|
+
export namespace Multiplayer {
|
|
36611
|
+
/**
|
|
36612
|
+
@ingroup GaussianSplatSpaceComponent
|
|
36613
|
+
* @description Data representation of a GaussianSplatSpaceComponent.
|
|
36614
|
+
* 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.
|
|
36615
|
+
* Rather than representing the object as a mesh of triangles, which has a surface but nothing inside, it is instead represented as a volume,
|
|
36616
|
+
* comprising a point cloud of splats (like coloured dots), each of which has a position, colour (with alpha) and covariance (scale on 3 axis).
|
|
36617
|
+
*/
|
|
36618
|
+
export class GaussianSplatSpaceComponent
|
|
36619
|
+
extends Multiplayer.ComponentBase
|
|
36620
|
+
implements
|
|
36621
|
+
Multiplayer.IExternalResourceComponent,
|
|
36622
|
+
Multiplayer.IShadowCasterComponent,
|
|
36623
|
+
Multiplayer.ITransformComponent,
|
|
36624
|
+
Multiplayer.IVisibleComponent,
|
|
36625
|
+
INativeResource
|
|
36626
|
+
{
|
|
36627
|
+
/** @internal */
|
|
36628
|
+
constructor(pointer: NativePointer) {
|
|
36629
|
+
super(pointer);
|
|
36630
|
+
}
|
|
36631
|
+
|
|
36632
|
+
static fromComponentBase(
|
|
36633
|
+
baseInstance: Multiplayer.ComponentBase,
|
|
36634
|
+
): Multiplayer.GaussianSplatSpaceComponent {
|
|
36635
|
+
const nativeClassWrapper = baseInstance as unknown as NativeClassWrapper;
|
|
36636
|
+
return new Multiplayer.GaussianSplatSpaceComponent(
|
|
36637
|
+
new NativePointer(
|
|
36638
|
+
nativeClassWrapper.pointer,
|
|
36639
|
+
nativeClassWrapper.ownsPointer,
|
|
36640
|
+
),
|
|
36641
|
+
);
|
|
36642
|
+
}
|
|
36643
|
+
|
|
36644
|
+
/**
|
|
36645
|
+
* @description Constructs the Gaussian Splat component, and associates it with the specified Parent space entity.
|
|
36646
|
+
* @param parent - The Space entity that owns this component.
|
|
36647
|
+
*/
|
|
36648
|
+
static create_parent(
|
|
36649
|
+
parent: Multiplayer.SpaceEntity,
|
|
36650
|
+
): GaussianSplatSpaceComponent {
|
|
36651
|
+
var _ptr = Module._malloc(8);
|
|
36652
|
+
Module.ccall(
|
|
36653
|
+
"csp_multiplayer_GaussianSplatSpaceComponent_Ctor_SpaceEntityP",
|
|
36654
|
+
"void",
|
|
36655
|
+
["number", "number"],
|
|
36656
|
+
[_ptr, parent.pointer],
|
|
36657
|
+
);
|
|
36658
|
+
var _nPtr = getNativePointer(_ptr);
|
|
36659
|
+
|
|
36660
|
+
return new GaussianSplatSpaceComponent(_nPtr);
|
|
36661
|
+
}
|
|
36662
|
+
|
|
36663
|
+
/**
|
|
36664
|
+
* @description Gets the ID of the asset associated with this component.
|
|
36665
|
+
* NOTE: To retrieve this component's gaussian splat asset, both the Asset ID and the Asset Collection ID are required.
|
|
36666
|
+
* @return The ID of the asset associated with this component.
|
|
36667
|
+
*/
|
|
36668
|
+
|
|
36669
|
+
getExternalResourceAssetId(): string {
|
|
36670
|
+
let _result = Module.ccall(
|
|
36671
|
+
"csp_multiplayer_GaussianSplatSpaceComponent_GetExternalResourceAssetIdC_StringRC",
|
|
36672
|
+
"number",
|
|
36673
|
+
["number"],
|
|
36674
|
+
[this.pointer],
|
|
36675
|
+
);
|
|
36676
|
+
|
|
36677
|
+
const _resultString = Module.UTF8ToString(_result);
|
|
36678
|
+
free(_result);
|
|
36679
|
+
|
|
36680
|
+
_result = _resultString;
|
|
36681
|
+
|
|
36682
|
+
return _result;
|
|
36683
|
+
}
|
|
36684
|
+
|
|
36685
|
+
/**
|
|
36686
|
+
* @description Sets the ID of the asset associated with this component.
|
|
36687
|
+
* NOTE: To retrieve this component's gaussian splat asset, both the Asset ID and the Asset Collection ID are required.
|
|
36688
|
+
* @param value - The ID of the asset associated with this component.
|
|
36689
|
+
*/
|
|
36690
|
+
|
|
36691
|
+
setExternalResourceAssetId(value: string): void {
|
|
36692
|
+
Module.ccall(
|
|
36693
|
+
"csp_multiplayer_GaussianSplatSpaceComponent_SetExternalResourceAssetId_void_StringRC",
|
|
36694
|
+
"void",
|
|
36695
|
+
["number", "string"],
|
|
36696
|
+
[this.pointer, value],
|
|
36697
|
+
);
|
|
36698
|
+
}
|
|
36699
|
+
|
|
36700
|
+
/**
|
|
36701
|
+
* @description Gets the ID of the asset collection associated with this component.
|
|
36702
|
+
* NOTE: To retrieve this component's gaussian splat asset, both the Asset ID and the Asset Collection ID are required.
|
|
36703
|
+
* @return The ID of the asset collection associated with this component.
|
|
36704
|
+
*/
|
|
36705
|
+
|
|
36706
|
+
getExternalResourceAssetCollectionId(): string {
|
|
36707
|
+
let _result = Module.ccall(
|
|
36708
|
+
"csp_multiplayer_GaussianSplatSpaceComponent_GetExternalResourceAssetCollectionIdC_StringRC",
|
|
36709
|
+
"number",
|
|
36710
|
+
["number"],
|
|
36711
|
+
[this.pointer],
|
|
36712
|
+
);
|
|
36713
|
+
|
|
36714
|
+
const _resultString = Module.UTF8ToString(_result);
|
|
36715
|
+
free(_result);
|
|
36716
|
+
|
|
36717
|
+
_result = _resultString;
|
|
36718
|
+
|
|
36719
|
+
return _result;
|
|
36720
|
+
}
|
|
36721
|
+
|
|
36722
|
+
/**
|
|
36723
|
+
* @description Sets the ID of the asset collection associated with this component.
|
|
36724
|
+
* NOTE: To retrieve this component's gaussian splat asset, both the Asset ID and the Asset Collection ID are required.
|
|
36725
|
+
* @param value - The ID of the asset collection associated with this component.
|
|
36726
|
+
*/
|
|
36727
|
+
|
|
36728
|
+
setExternalResourceAssetCollectionId(value: string): void {
|
|
36729
|
+
Module.ccall(
|
|
36730
|
+
"csp_multiplayer_GaussianSplatSpaceComponent_SetExternalResourceAssetCollectionId_void_StringRC",
|
|
36731
|
+
"void",
|
|
36732
|
+
["number", "string"],
|
|
36733
|
+
[this.pointer, value],
|
|
36734
|
+
);
|
|
36735
|
+
}
|
|
36736
|
+
|
|
36737
|
+
/**
|
|
36738
|
+
* \addtogroup ITransformComponent
|
|
36739
|
+
@{
|
|
36740
|
+
@copydoc IPositionComponent::GetPosition()
|
|
36741
|
+
*/
|
|
36742
|
+
|
|
36743
|
+
getPosition(): Common.Vector3 {
|
|
36744
|
+
var _ret = Module._malloc(8);
|
|
36745
|
+
|
|
36746
|
+
Module.ccall(
|
|
36747
|
+
"csp_multiplayer_GaussianSplatSpaceComponent_GetPositionC_Vector3RC",
|
|
36748
|
+
"void",
|
|
36749
|
+
["number", "number"],
|
|
36750
|
+
[_ret, this.pointer],
|
|
36751
|
+
);
|
|
36752
|
+
var _nPtr = new Common.Vector3(getNativePointer(_ret));
|
|
36753
|
+
Module._free(_ret);
|
|
36754
|
+
|
|
36755
|
+
return _nPtr;
|
|
36756
|
+
}
|
|
36757
|
+
|
|
36758
|
+
/**
|
|
36759
|
+
@copydoc IPositionComponent::SetPosition()
|
|
36760
|
+
*/
|
|
36761
|
+
|
|
36762
|
+
setPosition(value: Common.Vector3): void {
|
|
36763
|
+
Module.ccall(
|
|
36764
|
+
"csp_multiplayer_GaussianSplatSpaceComponent_SetPosition_void_Vector3RC",
|
|
36765
|
+
"void",
|
|
36766
|
+
["number", "number"],
|
|
36767
|
+
[this.pointer, value.pointer],
|
|
36768
|
+
);
|
|
36769
|
+
}
|
|
36770
|
+
|
|
36771
|
+
/**
|
|
36772
|
+
@copydoc IRotationComponent::GetRotation()
|
|
36773
|
+
*/
|
|
36774
|
+
|
|
36775
|
+
getRotation(): Common.Vector4 {
|
|
36776
|
+
var _ret = Module._malloc(8);
|
|
36777
|
+
|
|
36778
|
+
Module.ccall(
|
|
36779
|
+
"csp_multiplayer_GaussianSplatSpaceComponent_GetRotationC_Vector4RC",
|
|
36780
|
+
"void",
|
|
36781
|
+
["number", "number"],
|
|
36782
|
+
[_ret, this.pointer],
|
|
36783
|
+
);
|
|
36784
|
+
var _nPtr = new Common.Vector4(getNativePointer(_ret));
|
|
36785
|
+
Module._free(_ret);
|
|
36786
|
+
|
|
36787
|
+
return _nPtr;
|
|
36788
|
+
}
|
|
36789
|
+
|
|
36790
|
+
/**
|
|
36791
|
+
@copydoc IRotationComponent::SetRotation()
|
|
36792
|
+
*/
|
|
36793
|
+
|
|
36794
|
+
setRotation(value: Common.Vector4): void {
|
|
36795
|
+
Module.ccall(
|
|
36796
|
+
"csp_multiplayer_GaussianSplatSpaceComponent_SetRotation_void_Vector4RC",
|
|
36797
|
+
"void",
|
|
36798
|
+
["number", "number"],
|
|
36799
|
+
[this.pointer, value.pointer],
|
|
36800
|
+
);
|
|
36801
|
+
}
|
|
36802
|
+
|
|
36803
|
+
/**
|
|
36804
|
+
@copydoc IScaleComponent::GetScale()
|
|
36805
|
+
*/
|
|
36806
|
+
|
|
36807
|
+
getScale(): Common.Vector3 {
|
|
36808
|
+
var _ret = Module._malloc(8);
|
|
36809
|
+
|
|
36810
|
+
Module.ccall(
|
|
36811
|
+
"csp_multiplayer_GaussianSplatSpaceComponent_GetScaleC_Vector3RC",
|
|
36812
|
+
"void",
|
|
36813
|
+
["number", "number"],
|
|
36814
|
+
[_ret, this.pointer],
|
|
36815
|
+
);
|
|
36816
|
+
var _nPtr = new Common.Vector3(getNativePointer(_ret));
|
|
36817
|
+
Module._free(_ret);
|
|
36818
|
+
|
|
36819
|
+
return _nPtr;
|
|
36820
|
+
}
|
|
36821
|
+
|
|
36822
|
+
/**
|
|
36823
|
+
@copydoc IScaleComponent::SetScale()
|
|
36824
|
+
*/
|
|
36825
|
+
|
|
36826
|
+
setScale(value: Common.Vector3): void {
|
|
36827
|
+
Module.ccall(
|
|
36828
|
+
"csp_multiplayer_GaussianSplatSpaceComponent_SetScale_void_Vector3RC",
|
|
36829
|
+
"void",
|
|
36830
|
+
["number", "number"],
|
|
36831
|
+
[this.pointer, value.pointer],
|
|
36832
|
+
);
|
|
36833
|
+
}
|
|
36834
|
+
|
|
36835
|
+
/**
|
|
36836
|
+
@copydoc ITransformComponent::GetTransform()
|
|
36837
|
+
*/
|
|
36838
|
+
|
|
36839
|
+
getTransform(): Multiplayer.SpaceTransform {
|
|
36840
|
+
var _ret = Module._malloc(8);
|
|
36841
|
+
|
|
36842
|
+
Module.ccall(
|
|
36843
|
+
"csp_multiplayer_GaussianSplatSpaceComponent_GetTransformC_SpaceTransform",
|
|
36844
|
+
"void",
|
|
36845
|
+
["number", "number"],
|
|
36846
|
+
[_ret, this.pointer],
|
|
36847
|
+
);
|
|
36848
|
+
var _nPtr = new Multiplayer.SpaceTransform(getNativePointer(_ret));
|
|
36849
|
+
Module._free(_ret);
|
|
36850
|
+
return _nPtr;
|
|
36851
|
+
}
|
|
36852
|
+
|
|
36853
|
+
/**
|
|
36854
|
+
@copydoc ITransformComonent::SetTransform()
|
|
36855
|
+
*/
|
|
36856
|
+
|
|
36857
|
+
setTransform(value: Multiplayer.SpaceTransform): void {
|
|
36858
|
+
Module.ccall(
|
|
36859
|
+
"csp_multiplayer_GaussianSplatSpaceComponent_SetTransform_void_SpaceTransformRC",
|
|
36860
|
+
"void",
|
|
36861
|
+
["number", "number"],
|
|
36862
|
+
[this.pointer, value.pointer],
|
|
36863
|
+
);
|
|
36864
|
+
}
|
|
36865
|
+
|
|
36866
|
+
/**
|
|
36867
|
+
@}
|
|
36868
|
+
* \addtogroup IVisibleComponent
|
|
36869
|
+
@{
|
|
36870
|
+
@copydoc IVisibleComponent::GetIsVisible()
|
|
36871
|
+
*/
|
|
36872
|
+
|
|
36873
|
+
getIsVisible(): boolean {
|
|
36874
|
+
let _result = Module.ccall(
|
|
36875
|
+
"csp_multiplayer_GaussianSplatSpaceComponent_GetIsVisibleC_bool",
|
|
36876
|
+
"boolean",
|
|
36877
|
+
["number"],
|
|
36878
|
+
[this.pointer],
|
|
36879
|
+
);
|
|
36880
|
+
|
|
36881
|
+
return _result;
|
|
36882
|
+
}
|
|
36883
|
+
|
|
36884
|
+
/**
|
|
36885
|
+
@copydoc IVisibleComponent::SetIsVisible()
|
|
36886
|
+
*/
|
|
36887
|
+
|
|
36888
|
+
setIsVisible(value: boolean): void {
|
|
36889
|
+
Module.ccall(
|
|
36890
|
+
"csp_multiplayer_GaussianSplatSpaceComponent_SetIsVisible_void_bool",
|
|
36891
|
+
"void",
|
|
36892
|
+
["number", "boolean"],
|
|
36893
|
+
[this.pointer, value],
|
|
36894
|
+
);
|
|
36895
|
+
}
|
|
36896
|
+
|
|
36897
|
+
/**
|
|
36898
|
+
@copydoc IVisibleComponent::GetIsARVisible()
|
|
36899
|
+
*/
|
|
36900
|
+
|
|
36901
|
+
getIsARVisible(): boolean {
|
|
36902
|
+
let _result = Module.ccall(
|
|
36903
|
+
"csp_multiplayer_GaussianSplatSpaceComponent_GetIsARVisibleC_bool",
|
|
36904
|
+
"boolean",
|
|
36905
|
+
["number"],
|
|
36906
|
+
[this.pointer],
|
|
36907
|
+
);
|
|
36908
|
+
|
|
36909
|
+
return _result;
|
|
36910
|
+
}
|
|
36911
|
+
|
|
36912
|
+
/**
|
|
36913
|
+
@copydoc IVisibleComponent::SetIsARVisible()
|
|
36914
|
+
*/
|
|
36915
|
+
|
|
36916
|
+
setIsARVisible(value: boolean): void {
|
|
36917
|
+
Module.ccall(
|
|
36918
|
+
"csp_multiplayer_GaussianSplatSpaceComponent_SetIsARVisible_void_bool",
|
|
36919
|
+
"void",
|
|
36920
|
+
["number", "boolean"],
|
|
36921
|
+
[this.pointer, value],
|
|
36922
|
+
);
|
|
36923
|
+
}
|
|
36924
|
+
|
|
36925
|
+
/**
|
|
36926
|
+
@}
|
|
36927
|
+
* \addtogroup IShadowCasterComponent
|
|
36928
|
+
@{
|
|
36929
|
+
@copydoc IShadowCasterComponent::GetIsShadowCaster()
|
|
36930
|
+
*/
|
|
36931
|
+
|
|
36932
|
+
getIsShadowCaster(): boolean {
|
|
36933
|
+
let _result = Module.ccall(
|
|
36934
|
+
"csp_multiplayer_GaussianSplatSpaceComponent_GetIsShadowCasterC_bool",
|
|
36935
|
+
"boolean",
|
|
36936
|
+
["number"],
|
|
36937
|
+
[this.pointer],
|
|
36938
|
+
);
|
|
36939
|
+
|
|
36940
|
+
return _result;
|
|
36941
|
+
}
|
|
36942
|
+
|
|
36943
|
+
/**
|
|
36944
|
+
@copydoc IShadowCasterComponent::SetIsShadowCaster()
|
|
36945
|
+
*/
|
|
36946
|
+
|
|
36947
|
+
setIsShadowCaster(value: boolean): void {
|
|
36948
|
+
Module.ccall(
|
|
36949
|
+
"csp_multiplayer_GaussianSplatSpaceComponent_SetIsShadowCaster_void_bool",
|
|
36950
|
+
"void",
|
|
36951
|
+
["number", "boolean"],
|
|
36952
|
+
[this.pointer, value],
|
|
36953
|
+
);
|
|
36954
|
+
}
|
|
36955
|
+
|
|
36956
|
+
delete(): void {
|
|
36957
|
+
if (this.ownsPointer && !this.disposed) {
|
|
36958
|
+
Module.ccall(
|
|
36959
|
+
"csp_multiplayer_GaussianSplatSpaceComponent_Dtor",
|
|
36960
|
+
"void",
|
|
36961
|
+
["number"],
|
|
36962
|
+
[this.pointer],
|
|
36963
|
+
);
|
|
36964
|
+
|
|
36965
|
+
this.disposed = true;
|
|
36966
|
+
}
|
|
36967
|
+
}
|
|
36968
|
+
}
|
|
36969
|
+
}
|
|
36970
|
+
|
|
36575
36971
|
export namespace Multiplayer {
|
|
36576
36972
|
/**
|
|
36577
36973
|
@ingroup ImageSpaceComponent
|
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.25.0+507",
|
|
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": {
|