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.
@@ -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,23 @@ 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
+ Num = 9
551
+ }
552
+ }
535
553
  export declare namespace Multiplayer {
536
554
  /**
537
555
  * @description Enumerates the list of properties that can be replicated for an image space component.
@@ -7094,6 +7112,114 @@ export declare namespace Multiplayer {
7094
7112
  delete(): void;
7095
7113
  }
7096
7114
  }
7115
+ export declare namespace Multiplayer {
7116
+ /**
7117
+ @ingroup GaussianSplatSpaceComponent
7118
+ * @description Data representation of a GaussianSplatSpaceComponent.
7119
+ * 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.
7120
+ * Rather than representing the object as a mesh of triangles, which has a surface but nothing inside, it is instead represented as a volume,
7121
+ * comprising a point cloud of splats (like coloured dots), each of which has a position, colour (with alpha) and covariance (scale on 3 axis).
7122
+ */
7123
+ class GaussianSplatSpaceComponent extends Multiplayer.ComponentBase implements Multiplayer.IExternalResourceComponent, Multiplayer.IShadowCasterComponent, Multiplayer.ITransformComponent, Multiplayer.IVisibleComponent, INativeResource {
7124
+ /** @internal */
7125
+ constructor(pointer: NativePointer);
7126
+ static fromComponentBase(baseInstance: Multiplayer.ComponentBase): Multiplayer.GaussianSplatSpaceComponent;
7127
+ /**
7128
+ * @description Constructs the Gaussian Splat component, and associates it with the specified Parent space entity.
7129
+ * @param parent - The Space entity that owns this component.
7130
+ */
7131
+ static create_parent(parent: Multiplayer.SpaceEntity): GaussianSplatSpaceComponent;
7132
+ /**
7133
+ * @description Gets the ID of the asset associated with this component.
7134
+ * NOTE: To retrieve this component's gaussian splat asset, both the Asset ID and the Asset Collection ID are required.
7135
+ * @return The ID of the asset associated with this component.
7136
+ */
7137
+ getExternalResourceAssetId(): string;
7138
+ /**
7139
+ * @description Sets the ID of the asset associated with this component.
7140
+ * NOTE: To retrieve this component's gaussian splat asset, both the Asset ID and the Asset Collection ID are required.
7141
+ * @param value - The ID of the asset associated with this component.
7142
+ */
7143
+ setExternalResourceAssetId(value: string): void;
7144
+ /**
7145
+ * @description Gets the ID of the asset collection associated with this component.
7146
+ * NOTE: To retrieve this component's gaussian splat asset, both the Asset ID and the Asset Collection ID are required.
7147
+ * @return The ID of the asset collection associated with this component.
7148
+ */
7149
+ getExternalResourceAssetCollectionId(): string;
7150
+ /**
7151
+ * @description Sets the ID of the asset collection associated with this component.
7152
+ * NOTE: To retrieve this component's gaussian splat asset, both the Asset ID and the Asset Collection ID are required.
7153
+ * @param value - The ID of the asset collection associated with this component.
7154
+ */
7155
+ setExternalResourceAssetCollectionId(value: string): void;
7156
+ /**
7157
+ * \addtogroup ITransformComponent
7158
+ @{
7159
+ @copydoc IPositionComponent::GetPosition()
7160
+ */
7161
+ getPosition(): Common.Vector3;
7162
+ /**
7163
+ @copydoc IPositionComponent::SetPosition()
7164
+ */
7165
+ setPosition(value: Common.Vector3): void;
7166
+ /**
7167
+ @copydoc IRotationComponent::GetRotation()
7168
+ */
7169
+ getRotation(): Common.Vector4;
7170
+ /**
7171
+ @copydoc IRotationComponent::SetRotation()
7172
+ */
7173
+ setRotation(value: Common.Vector4): void;
7174
+ /**
7175
+ @copydoc IScaleComponent::GetScale()
7176
+ */
7177
+ getScale(): Common.Vector3;
7178
+ /**
7179
+ @copydoc IScaleComponent::SetScale()
7180
+ */
7181
+ setScale(value: Common.Vector3): void;
7182
+ /**
7183
+ @copydoc ITransformComponent::GetTransform()
7184
+ */
7185
+ getTransform(): Multiplayer.SpaceTransform;
7186
+ /**
7187
+ @copydoc ITransformComonent::SetTransform()
7188
+ */
7189
+ setTransform(value: Multiplayer.SpaceTransform): void;
7190
+ /**
7191
+ @}
7192
+ * \addtogroup IVisibleComponent
7193
+ @{
7194
+ @copydoc IVisibleComponent::GetIsVisible()
7195
+ */
7196
+ getIsVisible(): boolean;
7197
+ /**
7198
+ @copydoc IVisibleComponent::SetIsVisible()
7199
+ */
7200
+ setIsVisible(value: boolean): void;
7201
+ /**
7202
+ @copydoc IVisibleComponent::GetIsARVisible()
7203
+ */
7204
+ getIsARVisible(): boolean;
7205
+ /**
7206
+ @copydoc IVisibleComponent::SetIsARVisible()
7207
+ */
7208
+ setIsARVisible(value: boolean): void;
7209
+ /**
7210
+ @}
7211
+ * \addtogroup IShadowCasterComponent
7212
+ @{
7213
+ @copydoc IShadowCasterComponent::GetIsShadowCaster()
7214
+ */
7215
+ getIsShadowCaster(): boolean;
7216
+ /**
7217
+ @copydoc IShadowCasterComponent::SetIsShadowCaster()
7218
+ */
7219
+ setIsShadowCaster(value: boolean): void;
7220
+ delete(): void;
7221
+ }
7222
+ }
7097
7223
  export declare namespace Multiplayer {
7098
7224
  /**
7099
7225
  @ingroup ImageSpaceComponent
@@ -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,24 @@ 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["Num"] = 9] = "Num";
2110
+ })(GaussianSplatPropertyKeys = Multiplayer.GaussianSplatPropertyKeys || (Multiplayer.GaussianSplatPropertyKeys = {}));
2111
+ })(Multiplayer || (Multiplayer = {}));
2083
2112
  (function (Multiplayer) {
2084
2113
  /**
2085
2114
  * @description Enumerates the list of properties that can be replicated for an image space component.
@@ -16630,6 +16659,193 @@ export class CSPFoundation {
16630
16659
  }
16631
16660
  Multiplayer.FogSpaceComponent = FogSpaceComponent;
16632
16661
  })(Multiplayer || (Multiplayer = {}));
16662
+ (function (Multiplayer) {
16663
+ /**
16664
+ @ingroup GaussianSplatSpaceComponent
16665
+ * @description Data representation of a GaussianSplatSpaceComponent.
16666
+ * 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.
16667
+ * Rather than representing the object as a mesh of triangles, which has a surface but nothing inside, it is instead represented as a volume,
16668
+ * comprising a point cloud of splats (like coloured dots), each of which has a position, colour (with alpha) and covariance (scale on 3 axis).
16669
+ */
16670
+ class GaussianSplatSpaceComponent extends Multiplayer.ComponentBase {
16671
+ /** @internal */
16672
+ constructor(pointer) {
16673
+ super(pointer);
16674
+ }
16675
+ static fromComponentBase(baseInstance) {
16676
+ const nativeClassWrapper = baseInstance;
16677
+ return new Multiplayer.GaussianSplatSpaceComponent(new NativePointer(nativeClassWrapper.pointer, nativeClassWrapper.ownsPointer));
16678
+ }
16679
+ /**
16680
+ * @description Constructs the Gaussian Splat component, and associates it with the specified Parent space entity.
16681
+ * @param parent - The Space entity that owns this component.
16682
+ */
16683
+ static create_parent(parent) {
16684
+ var _ptr = Module._malloc(8);
16685
+ Module.ccall("csp_multiplayer_GaussianSplatSpaceComponent_Ctor_SpaceEntityP", "void", ["number", "number"], [_ptr, parent.pointer]);
16686
+ var _nPtr = getNativePointer(_ptr);
16687
+ return new GaussianSplatSpaceComponent(_nPtr);
16688
+ }
16689
+ /**
16690
+ * @description Gets the ID of the asset associated with this component.
16691
+ * NOTE: To retrieve this component's gaussian splat asset, both the Asset ID and the Asset Collection ID are required.
16692
+ * @return The ID of the asset associated with this component.
16693
+ */
16694
+ getExternalResourceAssetId() {
16695
+ let _result = Module.ccall("csp_multiplayer_GaussianSplatSpaceComponent_GetExternalResourceAssetIdC_StringRC", "number", ["number"], [this.pointer]);
16696
+ const _resultString = Module.UTF8ToString(_result);
16697
+ free(_result);
16698
+ _result = _resultString;
16699
+ return _result;
16700
+ }
16701
+ /**
16702
+ * @description Sets the ID of the asset associated with this component.
16703
+ * NOTE: To retrieve this component's gaussian splat asset, both the Asset ID and the Asset Collection ID are required.
16704
+ * @param value - The ID of the asset associated with this component.
16705
+ */
16706
+ setExternalResourceAssetId(value) {
16707
+ Module.ccall("csp_multiplayer_GaussianSplatSpaceComponent_SetExternalResourceAssetId_void_StringRC", "void", ["number", "string"], [this.pointer, value]);
16708
+ }
16709
+ /**
16710
+ * @description Gets the ID of the asset collection associated with this component.
16711
+ * NOTE: To retrieve this component's gaussian splat asset, both the Asset ID and the Asset Collection ID are required.
16712
+ * @return The ID of the asset collection associated with this component.
16713
+ */
16714
+ getExternalResourceAssetCollectionId() {
16715
+ let _result = Module.ccall("csp_multiplayer_GaussianSplatSpaceComponent_GetExternalResourceAssetCollectionIdC_StringRC", "number", ["number"], [this.pointer]);
16716
+ const _resultString = Module.UTF8ToString(_result);
16717
+ free(_result);
16718
+ _result = _resultString;
16719
+ return _result;
16720
+ }
16721
+ /**
16722
+ * @description Sets the ID of the asset collection associated with this component.
16723
+ * NOTE: To retrieve this component's gaussian splat asset, both the Asset ID and the Asset Collection ID are required.
16724
+ * @param value - The ID of the asset collection associated with this component.
16725
+ */
16726
+ setExternalResourceAssetCollectionId(value) {
16727
+ Module.ccall("csp_multiplayer_GaussianSplatSpaceComponent_SetExternalResourceAssetCollectionId_void_StringRC", "void", ["number", "string"], [this.pointer, value]);
16728
+ }
16729
+ /**
16730
+ * \addtogroup ITransformComponent
16731
+ @{
16732
+ @copydoc IPositionComponent::GetPosition()
16733
+ */
16734
+ getPosition() {
16735
+ var _ret = Module._malloc(8);
16736
+ Module.ccall("csp_multiplayer_GaussianSplatSpaceComponent_GetPositionC_Vector3RC", "void", ["number", "number"], [_ret, this.pointer]);
16737
+ var _nPtr = new Common.Vector3(getNativePointer(_ret));
16738
+ Module._free(_ret);
16739
+ return _nPtr;
16740
+ }
16741
+ /**
16742
+ @copydoc IPositionComponent::SetPosition()
16743
+ */
16744
+ setPosition(value) {
16745
+ Module.ccall("csp_multiplayer_GaussianSplatSpaceComponent_SetPosition_void_Vector3RC", "void", ["number", "number"], [this.pointer, value.pointer]);
16746
+ }
16747
+ /**
16748
+ @copydoc IRotationComponent::GetRotation()
16749
+ */
16750
+ getRotation() {
16751
+ var _ret = Module._malloc(8);
16752
+ Module.ccall("csp_multiplayer_GaussianSplatSpaceComponent_GetRotationC_Vector4RC", "void", ["number", "number"], [_ret, this.pointer]);
16753
+ var _nPtr = new Common.Vector4(getNativePointer(_ret));
16754
+ Module._free(_ret);
16755
+ return _nPtr;
16756
+ }
16757
+ /**
16758
+ @copydoc IRotationComponent::SetRotation()
16759
+ */
16760
+ setRotation(value) {
16761
+ Module.ccall("csp_multiplayer_GaussianSplatSpaceComponent_SetRotation_void_Vector4RC", "void", ["number", "number"], [this.pointer, value.pointer]);
16762
+ }
16763
+ /**
16764
+ @copydoc IScaleComponent::GetScale()
16765
+ */
16766
+ getScale() {
16767
+ var _ret = Module._malloc(8);
16768
+ Module.ccall("csp_multiplayer_GaussianSplatSpaceComponent_GetScaleC_Vector3RC", "void", ["number", "number"], [_ret, this.pointer]);
16769
+ var _nPtr = new Common.Vector3(getNativePointer(_ret));
16770
+ Module._free(_ret);
16771
+ return _nPtr;
16772
+ }
16773
+ /**
16774
+ @copydoc IScaleComponent::SetScale()
16775
+ */
16776
+ setScale(value) {
16777
+ Module.ccall("csp_multiplayer_GaussianSplatSpaceComponent_SetScale_void_Vector3RC", "void", ["number", "number"], [this.pointer, value.pointer]);
16778
+ }
16779
+ /**
16780
+ @copydoc ITransformComponent::GetTransform()
16781
+ */
16782
+ getTransform() {
16783
+ var _ret = Module._malloc(8);
16784
+ Module.ccall("csp_multiplayer_GaussianSplatSpaceComponent_GetTransformC_SpaceTransform", "void", ["number", "number"], [_ret, this.pointer]);
16785
+ var _nPtr = new Multiplayer.SpaceTransform(getNativePointer(_ret));
16786
+ Module._free(_ret);
16787
+ return _nPtr;
16788
+ }
16789
+ /**
16790
+ @copydoc ITransformComonent::SetTransform()
16791
+ */
16792
+ setTransform(value) {
16793
+ Module.ccall("csp_multiplayer_GaussianSplatSpaceComponent_SetTransform_void_SpaceTransformRC", "void", ["number", "number"], [this.pointer, value.pointer]);
16794
+ }
16795
+ /**
16796
+ @}
16797
+ * \addtogroup IVisibleComponent
16798
+ @{
16799
+ @copydoc IVisibleComponent::GetIsVisible()
16800
+ */
16801
+ getIsVisible() {
16802
+ let _result = Module.ccall("csp_multiplayer_GaussianSplatSpaceComponent_GetIsVisibleC_bool", "boolean", ["number"], [this.pointer]);
16803
+ return _result;
16804
+ }
16805
+ /**
16806
+ @copydoc IVisibleComponent::SetIsVisible()
16807
+ */
16808
+ setIsVisible(value) {
16809
+ Module.ccall("csp_multiplayer_GaussianSplatSpaceComponent_SetIsVisible_void_bool", "void", ["number", "boolean"], [this.pointer, value]);
16810
+ }
16811
+ /**
16812
+ @copydoc IVisibleComponent::GetIsARVisible()
16813
+ */
16814
+ getIsARVisible() {
16815
+ let _result = Module.ccall("csp_multiplayer_GaussianSplatSpaceComponent_GetIsARVisibleC_bool", "boolean", ["number"], [this.pointer]);
16816
+ return _result;
16817
+ }
16818
+ /**
16819
+ @copydoc IVisibleComponent::SetIsARVisible()
16820
+ */
16821
+ setIsARVisible(value) {
16822
+ Module.ccall("csp_multiplayer_GaussianSplatSpaceComponent_SetIsARVisible_void_bool", "void", ["number", "boolean"], [this.pointer, value]);
16823
+ }
16824
+ /**
16825
+ @}
16826
+ * \addtogroup IShadowCasterComponent
16827
+ @{
16828
+ @copydoc IShadowCasterComponent::GetIsShadowCaster()
16829
+ */
16830
+ getIsShadowCaster() {
16831
+ let _result = Module.ccall("csp_multiplayer_GaussianSplatSpaceComponent_GetIsShadowCasterC_bool", "boolean", ["number"], [this.pointer]);
16832
+ return _result;
16833
+ }
16834
+ /**
16835
+ @copydoc IShadowCasterComponent::SetIsShadowCaster()
16836
+ */
16837
+ setIsShadowCaster(value) {
16838
+ Module.ccall("csp_multiplayer_GaussianSplatSpaceComponent_SetIsShadowCaster_void_bool", "void", ["number", "boolean"], [this.pointer, value]);
16839
+ }
16840
+ delete() {
16841
+ if (this.ownsPointer && !this.disposed) {
16842
+ Module.ccall("csp_multiplayer_GaussianSplatSpaceComponent_Dtor", "void", ["number"], [this.pointer]);
16843
+ this.disposed = true;
16844
+ }
16845
+ }
16846
+ }
16847
+ Multiplayer.GaussianSplatSpaceComponent = GaussianSplatSpaceComponent;
16848
+ })(Multiplayer || (Multiplayer = {}));
16633
16849
  (function (Multiplayer) {
16634
16850
  /**
16635
16851
  @ingroup ImageSpaceComponent