connected-spaces-platform.web 4.28.0 → 4.29.1
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 +38 -4
- package/Debug/ConnectedSpacesPlatform_WASM.wasm +0 -0
- package/Debug/ConnectedSpacesPlatform_WASM.wasm.debug.wasm +0 -0
- package/README.md +9 -23
- package/Release/ConnectedSpacesPlatform_WASM.js +1 -1
- package/Release/ConnectedSpacesPlatform_WASM.wasm +0 -0
- package/connectedspacesplatform.d.ts +108 -2
- package/connectedspacesplatform.js +191 -2
- package/connectedspacesplatform.js.map +1 -1
- package/connectedspacesplatform.ts +352 -4
- package/package.json +1 -1
- package/ConnectedSpacesPlatform_WASM.d.ts +0 -2
|
@@ -597,6 +597,22 @@ function csp_multiplayer_GaussianSplatPropertyKeysFactory(
|
|
|
597
597
|
ProxyClassFactories["csp_multiplayer_GaussianSplatPropertyKeys"] =
|
|
598
598
|
csp_multiplayer_GaussianSplatPropertyKeysFactory;
|
|
599
599
|
|
|
600
|
+
function csp_multiplayer_HotspotTypeFactory(
|
|
601
|
+
nativePointer: NativePointer,
|
|
602
|
+
): Multiplayer.HotspotType {
|
|
603
|
+
return nativePointer.pointer as Multiplayer.HotspotType;
|
|
604
|
+
}
|
|
605
|
+
ProxyClassFactories["csp_multiplayer_HotspotType"] =
|
|
606
|
+
csp_multiplayer_HotspotTypeFactory;
|
|
607
|
+
|
|
608
|
+
function csp_multiplayer_HotspotPropertyKeysFactory(
|
|
609
|
+
nativePointer: NativePointer,
|
|
610
|
+
): Multiplayer.HotspotPropertyKeys {
|
|
611
|
+
return nativePointer.pointer as Multiplayer.HotspotPropertyKeys;
|
|
612
|
+
}
|
|
613
|
+
ProxyClassFactories["csp_multiplayer_HotspotPropertyKeys"] =
|
|
614
|
+
csp_multiplayer_HotspotPropertyKeysFactory;
|
|
615
|
+
|
|
600
616
|
function csp_multiplayer_ImagePropertyKeysFactory(
|
|
601
617
|
nativePointer: NativePointer,
|
|
602
618
|
): Multiplayer.ImagePropertyKeys {
|
|
@@ -1574,6 +1590,14 @@ function csp_multiplayer_GaussianSplatSpaceComponentFactory(
|
|
|
1574
1590
|
ProxyClassFactories["csp_multiplayer_GaussianSplatSpaceComponent"] =
|
|
1575
1591
|
csp_multiplayer_GaussianSplatSpaceComponentFactory;
|
|
1576
1592
|
|
|
1593
|
+
function csp_multiplayer_HotspotSpaceComponentFactory(
|
|
1594
|
+
nativePointer: NativePointer,
|
|
1595
|
+
): NativeClassWrapper {
|
|
1596
|
+
return new Multiplayer.HotspotSpaceComponent(nativePointer);
|
|
1597
|
+
}
|
|
1598
|
+
ProxyClassFactories["csp_multiplayer_HotspotSpaceComponent"] =
|
|
1599
|
+
csp_multiplayer_HotspotSpaceComponentFactory;
|
|
1600
|
+
|
|
1577
1601
|
function csp_multiplayer_ImageSpaceComponentFactory(
|
|
1578
1602
|
nativePointer: NativePointer,
|
|
1579
1603
|
): NativeClassWrapper {
|
|
@@ -2850,6 +2874,8 @@ export namespace Multiplayer {
|
|
|
2850
2874
|
ECommerce,
|
|
2851
2875
|
FiducialMarker,
|
|
2852
2876
|
GaussianSplat,
|
|
2877
|
+
Text,
|
|
2878
|
+
Hotspot,
|
|
2853
2879
|
}
|
|
2854
2880
|
}
|
|
2855
2881
|
|
|
@@ -3311,6 +3337,28 @@ export namespace Multiplayer {
|
|
|
3311
3337
|
}
|
|
3312
3338
|
}
|
|
3313
3339
|
|
|
3340
|
+
export namespace Multiplayer {
|
|
3341
|
+
export enum HotspotType {
|
|
3342
|
+
TeleportHotspot = 0,
|
|
3343
|
+
SpawnHotspot,
|
|
3344
|
+
}
|
|
3345
|
+
}
|
|
3346
|
+
|
|
3347
|
+
export namespace Multiplayer {
|
|
3348
|
+
/**
|
|
3349
|
+
* @description Enumerates the list of properties that can be replicated for an Hotspot space component.
|
|
3350
|
+
*/
|
|
3351
|
+
export enum HotspotPropertyKeys {
|
|
3352
|
+
Position,
|
|
3353
|
+
Rotation,
|
|
3354
|
+
Name,
|
|
3355
|
+
HotspotType,
|
|
3356
|
+
IsVisible,
|
|
3357
|
+
IsARVisible,
|
|
3358
|
+
Num,
|
|
3359
|
+
}
|
|
3360
|
+
}
|
|
3361
|
+
|
|
3314
3362
|
export namespace Multiplayer {
|
|
3315
3363
|
/**
|
|
3316
3364
|
* @description Enumerates the list of properties that can be replicated for an image space component.
|
|
@@ -4587,6 +4635,26 @@ export class EndpointURIs
|
|
|
4587
4635
|
[this.pointer, value],
|
|
4588
4636
|
);
|
|
4589
4637
|
}
|
|
4638
|
+
|
|
4639
|
+
get maintenanceWindowURI(): string {
|
|
4640
|
+
let _result = Module.ccall(
|
|
4641
|
+
"csp_EndpointURIs__Get_MaintenanceWindowURI",
|
|
4642
|
+
"string",
|
|
4643
|
+
["number"],
|
|
4644
|
+
[this.pointer],
|
|
4645
|
+
);
|
|
4646
|
+
|
|
4647
|
+
return _result;
|
|
4648
|
+
}
|
|
4649
|
+
|
|
4650
|
+
set maintenanceWindowURI(value: string) {
|
|
4651
|
+
Module.ccall(
|
|
4652
|
+
"csp_EndpointURIs__Set_MaintenanceWindowURI",
|
|
4653
|
+
"void",
|
|
4654
|
+
["number", "string"],
|
|
4655
|
+
[this.pointer, value],
|
|
4656
|
+
);
|
|
4657
|
+
}
|
|
4590
4658
|
}
|
|
4591
4659
|
|
|
4592
4660
|
/**
|
|
@@ -37740,6 +37808,284 @@ export namespace Multiplayer {
|
|
|
37740
37808
|
}
|
|
37741
37809
|
}
|
|
37742
37810
|
|
|
37811
|
+
export namespace Multiplayer {
|
|
37812
|
+
/**
|
|
37813
|
+
@ingroup HotspotSpaceComponent
|
|
37814
|
+
* @description Data representation of an HotspotSpaceComponent.
|
|
37815
|
+
*/
|
|
37816
|
+
export class HotspotSpaceComponent
|
|
37817
|
+
extends Multiplayer.ComponentBase
|
|
37818
|
+
implements
|
|
37819
|
+
Multiplayer.IPositionComponent,
|
|
37820
|
+
Multiplayer.IRotationComponent,
|
|
37821
|
+
Multiplayer.IVisibleComponent,
|
|
37822
|
+
INativeResource
|
|
37823
|
+
{
|
|
37824
|
+
/** @internal */
|
|
37825
|
+
constructor(pointer: NativePointer) {
|
|
37826
|
+
super(pointer);
|
|
37827
|
+
}
|
|
37828
|
+
|
|
37829
|
+
static fromComponentBase(
|
|
37830
|
+
baseInstance: Multiplayer.ComponentBase,
|
|
37831
|
+
): Multiplayer.HotspotSpaceComponent {
|
|
37832
|
+
const nativeClassWrapper = baseInstance as unknown as NativeClassWrapper;
|
|
37833
|
+
return new Multiplayer.HotspotSpaceComponent(
|
|
37834
|
+
new NativePointer(
|
|
37835
|
+
nativeClassWrapper.pointer,
|
|
37836
|
+
nativeClassWrapper.ownsPointer,
|
|
37837
|
+
),
|
|
37838
|
+
);
|
|
37839
|
+
}
|
|
37840
|
+
|
|
37841
|
+
/**
|
|
37842
|
+
* @description Constructs the Hotspot space component, and associates it with the specified Parent space entity.
|
|
37843
|
+
* @param parent - The Space entity that owns this component.
|
|
37844
|
+
*/
|
|
37845
|
+
static create_parent(
|
|
37846
|
+
parent: Multiplayer.SpaceEntity,
|
|
37847
|
+
): HotspotSpaceComponent {
|
|
37848
|
+
var _ptr = Module._malloc(8);
|
|
37849
|
+
Module.ccall(
|
|
37850
|
+
"csp_multiplayer_HotspotSpaceComponent_Ctor_SpaceEntityP",
|
|
37851
|
+
"void",
|
|
37852
|
+
["number", "number"],
|
|
37853
|
+
[_ptr, parent.pointer],
|
|
37854
|
+
);
|
|
37855
|
+
var _nPtr = getNativePointer(_ptr);
|
|
37856
|
+
|
|
37857
|
+
return new HotspotSpaceComponent(_nPtr);
|
|
37858
|
+
}
|
|
37859
|
+
|
|
37860
|
+
/**
|
|
37861
|
+
* @description Gets the Name of the Hotspot.
|
|
37862
|
+
* @return The Name of the Hotspot.
|
|
37863
|
+
*/
|
|
37864
|
+
|
|
37865
|
+
getName(): string {
|
|
37866
|
+
let _result = Module.ccall(
|
|
37867
|
+
"csp_multiplayer_HotspotSpaceComponent_GetNameC_StringRC",
|
|
37868
|
+
"number",
|
|
37869
|
+
["number"],
|
|
37870
|
+
[this.pointer],
|
|
37871
|
+
);
|
|
37872
|
+
|
|
37873
|
+
const _resultString = Module.UTF8ToString(_result);
|
|
37874
|
+
free(_result);
|
|
37875
|
+
|
|
37876
|
+
_result = _resultString;
|
|
37877
|
+
|
|
37878
|
+
return _result;
|
|
37879
|
+
}
|
|
37880
|
+
|
|
37881
|
+
/**
|
|
37882
|
+
* @description Sets the Name of this Hotspot.
|
|
37883
|
+
* @param value - The Name of this Hotspot.
|
|
37884
|
+
*/
|
|
37885
|
+
|
|
37886
|
+
setName(value: string): void {
|
|
37887
|
+
Module.ccall(
|
|
37888
|
+
"csp_multiplayer_HotspotSpaceComponent_SetName_void_StringRC",
|
|
37889
|
+
"void",
|
|
37890
|
+
["number", "string"],
|
|
37891
|
+
[this.pointer, value],
|
|
37892
|
+
);
|
|
37893
|
+
}
|
|
37894
|
+
|
|
37895
|
+
/**
|
|
37896
|
+
* @description Gets the HotspotType of this Hotspot.
|
|
37897
|
+
*/
|
|
37898
|
+
|
|
37899
|
+
getHotspotType(): Multiplayer.HotspotType {
|
|
37900
|
+
let _result = Module.ccall(
|
|
37901
|
+
"csp_multiplayer_HotspotSpaceComponent_GetHotspotTypeC_HotspotType",
|
|
37902
|
+
"number",
|
|
37903
|
+
["number"],
|
|
37904
|
+
[this.pointer],
|
|
37905
|
+
);
|
|
37906
|
+
|
|
37907
|
+
return _result;
|
|
37908
|
+
}
|
|
37909
|
+
|
|
37910
|
+
/**
|
|
37911
|
+
* @description Sets the HotspotType of this Hotspot.
|
|
37912
|
+
* @param value - The Type of the Hotspot.
|
|
37913
|
+
*/
|
|
37914
|
+
|
|
37915
|
+
setHotspotType(value: Multiplayer.HotspotType): void {
|
|
37916
|
+
Module.ccall(
|
|
37917
|
+
"csp_multiplayer_HotspotSpaceComponent_SetHotspotType_void_HotspotType",
|
|
37918
|
+
"void",
|
|
37919
|
+
["number", "number"],
|
|
37920
|
+
[this.pointer, value],
|
|
37921
|
+
);
|
|
37922
|
+
}
|
|
37923
|
+
|
|
37924
|
+
/**
|
|
37925
|
+
* @description Gets a unique identifier for this component in the hierarchy.
|
|
37926
|
+
* NOTE: This does not give a complete hierarchy path, only the entityId of the parent for the component.
|
|
37927
|
+
* @return Componentid'.
|
|
37928
|
+
*/
|
|
37929
|
+
|
|
37930
|
+
getUniqueComponentId(): string {
|
|
37931
|
+
let _result = Module.ccall(
|
|
37932
|
+
"csp_multiplayer_HotspotSpaceComponent_GetUniqueComponentIdC_StringRC",
|
|
37933
|
+
"number",
|
|
37934
|
+
["number"],
|
|
37935
|
+
[this.pointer],
|
|
37936
|
+
);
|
|
37937
|
+
|
|
37938
|
+
const _resultString = Module.UTF8ToString(_result);
|
|
37939
|
+
free(_result);
|
|
37940
|
+
|
|
37941
|
+
_result = _resultString;
|
|
37942
|
+
|
|
37943
|
+
return _result;
|
|
37944
|
+
}
|
|
37945
|
+
|
|
37946
|
+
/**
|
|
37947
|
+
* \addtogroup IPositionComponent
|
|
37948
|
+
@{
|
|
37949
|
+
@copydoc IPositionComponent::GetPosition()
|
|
37950
|
+
*/
|
|
37951
|
+
|
|
37952
|
+
getPosition(): Common.Vector3 {
|
|
37953
|
+
var _ret = Module._malloc(8);
|
|
37954
|
+
|
|
37955
|
+
Module.ccall(
|
|
37956
|
+
"csp_multiplayer_HotspotSpaceComponent_GetPositionC_Vector3RC",
|
|
37957
|
+
"void",
|
|
37958
|
+
["number", "number"],
|
|
37959
|
+
[_ret, this.pointer],
|
|
37960
|
+
);
|
|
37961
|
+
var _nPtr = new Common.Vector3(getNativePointer(_ret));
|
|
37962
|
+
Module._free(_ret);
|
|
37963
|
+
|
|
37964
|
+
return _nPtr;
|
|
37965
|
+
}
|
|
37966
|
+
|
|
37967
|
+
/**
|
|
37968
|
+
@copydoc IPositionComponent::SetPosition()
|
|
37969
|
+
*/
|
|
37970
|
+
|
|
37971
|
+
setPosition(value: Common.Vector3): void {
|
|
37972
|
+
Module.ccall(
|
|
37973
|
+
"csp_multiplayer_HotspotSpaceComponent_SetPosition_void_Vector3RC",
|
|
37974
|
+
"void",
|
|
37975
|
+
["number", "number"],
|
|
37976
|
+
[this.pointer, value.pointer],
|
|
37977
|
+
);
|
|
37978
|
+
}
|
|
37979
|
+
|
|
37980
|
+
/**
|
|
37981
|
+
@}
|
|
37982
|
+
* \addtogroup IRotationComponent
|
|
37983
|
+
@{
|
|
37984
|
+
@copydoc IRotationComponent::GetRotation()
|
|
37985
|
+
*/
|
|
37986
|
+
|
|
37987
|
+
getRotation(): Common.Vector4 {
|
|
37988
|
+
var _ret = Module._malloc(8);
|
|
37989
|
+
|
|
37990
|
+
Module.ccall(
|
|
37991
|
+
"csp_multiplayer_HotspotSpaceComponent_GetRotationC_Vector4RC",
|
|
37992
|
+
"void",
|
|
37993
|
+
["number", "number"],
|
|
37994
|
+
[_ret, this.pointer],
|
|
37995
|
+
);
|
|
37996
|
+
var _nPtr = new Common.Vector4(getNativePointer(_ret));
|
|
37997
|
+
Module._free(_ret);
|
|
37998
|
+
|
|
37999
|
+
return _nPtr;
|
|
38000
|
+
}
|
|
38001
|
+
|
|
38002
|
+
/**
|
|
38003
|
+
@copydoc IRotationComponent::SetRotation()
|
|
38004
|
+
*/
|
|
38005
|
+
|
|
38006
|
+
setRotation(value: Common.Vector4): void {
|
|
38007
|
+
Module.ccall(
|
|
38008
|
+
"csp_multiplayer_HotspotSpaceComponent_SetRotation_void_Vector4RC",
|
|
38009
|
+
"void",
|
|
38010
|
+
["number", "number"],
|
|
38011
|
+
[this.pointer, value.pointer],
|
|
38012
|
+
);
|
|
38013
|
+
}
|
|
38014
|
+
|
|
38015
|
+
/**
|
|
38016
|
+
@}
|
|
38017
|
+
* \addtogroup IVisibleComponent
|
|
38018
|
+
@{
|
|
38019
|
+
@copydoc IVisibleComponent::GetIsVisible()
|
|
38020
|
+
*/
|
|
38021
|
+
|
|
38022
|
+
getIsVisible(): boolean {
|
|
38023
|
+
let _result = Module.ccall(
|
|
38024
|
+
"csp_multiplayer_HotspotSpaceComponent_GetIsVisibleC_bool",
|
|
38025
|
+
"boolean",
|
|
38026
|
+
["number"],
|
|
38027
|
+
[this.pointer],
|
|
38028
|
+
);
|
|
38029
|
+
|
|
38030
|
+
return _result;
|
|
38031
|
+
}
|
|
38032
|
+
|
|
38033
|
+
/**
|
|
38034
|
+
@copydoc IVisibleComponent::SetIsVisible()
|
|
38035
|
+
*/
|
|
38036
|
+
|
|
38037
|
+
setIsVisible(value: boolean): void {
|
|
38038
|
+
Module.ccall(
|
|
38039
|
+
"csp_multiplayer_HotspotSpaceComponent_SetIsVisible_void_bool",
|
|
38040
|
+
"void",
|
|
38041
|
+
["number", "boolean"],
|
|
38042
|
+
[this.pointer, value],
|
|
38043
|
+
);
|
|
38044
|
+
}
|
|
38045
|
+
|
|
38046
|
+
/**
|
|
38047
|
+
@copydoc IVisibleComponent::GetIsARVisible()
|
|
38048
|
+
*/
|
|
38049
|
+
|
|
38050
|
+
getIsARVisible(): boolean {
|
|
38051
|
+
let _result = Module.ccall(
|
|
38052
|
+
"csp_multiplayer_HotspotSpaceComponent_GetIsARVisibleC_bool",
|
|
38053
|
+
"boolean",
|
|
38054
|
+
["number"],
|
|
38055
|
+
[this.pointer],
|
|
38056
|
+
);
|
|
38057
|
+
|
|
38058
|
+
return _result;
|
|
38059
|
+
}
|
|
38060
|
+
|
|
38061
|
+
/**
|
|
38062
|
+
@copydoc IVisibleComponent::SetIsARVisible()
|
|
38063
|
+
*/
|
|
38064
|
+
|
|
38065
|
+
setIsARVisible(value: boolean): void {
|
|
38066
|
+
Module.ccall(
|
|
38067
|
+
"csp_multiplayer_HotspotSpaceComponent_SetIsARVisible_void_bool",
|
|
38068
|
+
"void",
|
|
38069
|
+
["number", "boolean"],
|
|
38070
|
+
[this.pointer, value],
|
|
38071
|
+
);
|
|
38072
|
+
}
|
|
38073
|
+
|
|
38074
|
+
delete(): void {
|
|
38075
|
+
if (this.ownsPointer && !this.disposed) {
|
|
38076
|
+
Module.ccall(
|
|
38077
|
+
"csp_multiplayer_HotspotSpaceComponent_Dtor",
|
|
38078
|
+
"void",
|
|
38079
|
+
["number"],
|
|
38080
|
+
[this.pointer],
|
|
38081
|
+
);
|
|
38082
|
+
|
|
38083
|
+
this.disposed = true;
|
|
38084
|
+
}
|
|
38085
|
+
}
|
|
38086
|
+
}
|
|
38087
|
+
}
|
|
38088
|
+
|
|
37743
38089
|
export namespace Multiplayer {
|
|
37744
38090
|
/**
|
|
37745
38091
|
@ingroup ImageSpaceComponent
|
|
@@ -45536,7 +45882,9 @@ export namespace Systems {
|
|
|
45536
45882
|
* @param callback - Callback when asynchronous task finishes
|
|
45537
45883
|
*/
|
|
45538
45884
|
|
|
45539
|
-
async getMaintenanceInfo(
|
|
45885
|
+
async getMaintenanceInfo(
|
|
45886
|
+
maintenanceURL: string,
|
|
45887
|
+
): Promise<Systems.MaintenanceInfoResult> {
|
|
45540
45888
|
var _resolve;
|
|
45541
45889
|
|
|
45542
45890
|
var _promise = new Promise<Systems.MaintenanceInfoResult>((_r) => {
|
|
@@ -45560,10 +45908,10 @@ export namespace Systems {
|
|
|
45560
45908
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
45561
45909
|
|
|
45562
45910
|
Module.ccall(
|
|
45563
|
-
"
|
|
45911
|
+
"csp_systems_MaintenanceSystem_GetMaintenanceInfo_void_StringRC_MaintenanceInfoCallback",
|
|
45564
45912
|
"void",
|
|
45565
|
-
["number", "number", "number"],
|
|
45566
|
-
[this.pointer, _callbackPtr, 0],
|
|
45913
|
+
["number", "string", "number", "number"],
|
|
45914
|
+
[this.pointer, maintenanceURL, _callbackPtr, 0],
|
|
45567
45915
|
);
|
|
45568
45916
|
|
|
45569
45917
|
return _promise;
|
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.29.1+518",
|
|
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": {
|