connected-spaces-platform.web 5.21.0 → 6.0.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 +194 -96
- package/Debug/ConnectedSpacesPlatform_WASM.wasm +0 -0
- package/Debug/ConnectedSpacesPlatform_WASM.wasm.debug.wasm +0 -0
- package/README.md +1 -1
- package/Release/ConnectedSpacesPlatform_WASM.js +1 -1
- package/Release/ConnectedSpacesPlatform_WASM.wasm +0 -0
- package/connectedspacesplatform.d.ts +403 -272
- package/connectedspacesplatform.js +1188 -730
- package/connectedspacesplatform.js.map +1 -1
- package/connectedspacesplatform.ts +2335 -1447
- package/package.json +1 -1
|
@@ -1097,14 +1097,6 @@ function csp_common_Vector4Factory(
|
|
|
1097
1097
|
}
|
|
1098
1098
|
ProxyClassFactories["csp_common_Vector4"] = csp_common_Vector4Factory;
|
|
1099
1099
|
|
|
1100
|
-
function csp_common_InvalidInterfaceUseErrorFactory(
|
|
1101
|
-
nativePointer: NativePointer,
|
|
1102
|
-
): NativeClassWrapper {
|
|
1103
|
-
return new Common.InvalidInterfaceUseError(nativePointer);
|
|
1104
|
-
}
|
|
1105
|
-
ProxyClassFactories["csp_common_InvalidInterfaceUseError"] =
|
|
1106
|
-
csp_common_InvalidInterfaceUseErrorFactory;
|
|
1107
|
-
|
|
1108
1100
|
function csp_common_IJSScriptRunnerFactory(
|
|
1109
1101
|
nativePointer: NativePointer,
|
|
1110
1102
|
): NativeClassWrapper {
|
|
@@ -1113,6 +1105,14 @@ function csp_common_IJSScriptRunnerFactory(
|
|
|
1113
1105
|
ProxyClassFactories["csp_common_IJSScriptRunner"] =
|
|
1114
1106
|
csp_common_IJSScriptRunnerFactory;
|
|
1115
1107
|
|
|
1108
|
+
function csp_common_InvalidInterfaceUseErrorFactory(
|
|
1109
|
+
nativePointer: NativePointer,
|
|
1110
|
+
): NativeClassWrapper {
|
|
1111
|
+
return new Common.InvalidInterfaceUseError(nativePointer);
|
|
1112
|
+
}
|
|
1113
|
+
ProxyClassFactories["csp_common_InvalidInterfaceUseError"] =
|
|
1114
|
+
csp_common_InvalidInterfaceUseErrorFactory;
|
|
1115
|
+
|
|
1116
1116
|
function csp_common_IRealtimeEngineFactory(
|
|
1117
1117
|
nativePointer: NativePointer,
|
|
1118
1118
|
): NativeClassWrapper {
|
|
@@ -1184,14 +1184,6 @@ function csp_multiplayer_SpaceEntityFactory(
|
|
|
1184
1184
|
ProxyClassFactories["csp_multiplayer_SpaceEntity"] =
|
|
1185
1185
|
csp_multiplayer_SpaceEntityFactory;
|
|
1186
1186
|
|
|
1187
|
-
function csp_multiplayer_SpaceEntitySystemFactory(
|
|
1188
|
-
nativePointer: NativePointer,
|
|
1189
|
-
): NativeClassWrapper {
|
|
1190
|
-
return new Multiplayer.SpaceEntitySystem(nativePointer);
|
|
1191
|
-
}
|
|
1192
|
-
ProxyClassFactories["csp_multiplayer_SpaceEntitySystem"] =
|
|
1193
|
-
csp_multiplayer_SpaceEntitySystemFactory;
|
|
1194
|
-
|
|
1195
1187
|
function csp_multiplayer_SpaceTransformFactory(
|
|
1196
1188
|
nativePointer: NativePointer,
|
|
1197
1189
|
): NativeClassWrapper {
|
|
@@ -1248,6 +1240,30 @@ function csp_systems_CSPSceneDataFactory(
|
|
|
1248
1240
|
ProxyClassFactories["csp_systems_CSPSceneData"] =
|
|
1249
1241
|
csp_systems_CSPSceneDataFactory;
|
|
1250
1242
|
|
|
1243
|
+
function csp_systems_VersionMetadataFactory(
|
|
1244
|
+
nativePointer: NativePointer,
|
|
1245
|
+
): NativeClassWrapper {
|
|
1246
|
+
return new Systems.VersionMetadata(nativePointer);
|
|
1247
|
+
}
|
|
1248
|
+
ProxyClassFactories["csp_systems_VersionMetadata"] =
|
|
1249
|
+
csp_systems_VersionMetadataFactory;
|
|
1250
|
+
|
|
1251
|
+
function csp_systems_ServiceStatusFactory(
|
|
1252
|
+
nativePointer: NativePointer,
|
|
1253
|
+
): NativeClassWrapper {
|
|
1254
|
+
return new Systems.ServiceStatus(nativePointer);
|
|
1255
|
+
}
|
|
1256
|
+
ProxyClassFactories["csp_systems_ServiceStatus"] =
|
|
1257
|
+
csp_systems_ServiceStatusFactory;
|
|
1258
|
+
|
|
1259
|
+
function csp_systems_ServicesDeploymentStatusFactory(
|
|
1260
|
+
nativePointer: NativePointer,
|
|
1261
|
+
): NativeClassWrapper {
|
|
1262
|
+
return new Systems.ServicesDeploymentStatus(nativePointer);
|
|
1263
|
+
}
|
|
1264
|
+
ProxyClassFactories["csp_systems_ServicesDeploymentStatus"] =
|
|
1265
|
+
csp_systems_ServicesDeploymentStatusFactory;
|
|
1266
|
+
|
|
1251
1267
|
function csp_systems_SystemBaseFactory(
|
|
1252
1268
|
nativePointer: NativePointer,
|
|
1253
1269
|
): NativeClassWrapper {
|
|
@@ -1492,6 +1508,14 @@ function csp_systems_SequenceFactory(
|
|
|
1492
1508
|
}
|
|
1493
1509
|
ProxyClassFactories["csp_systems_Sequence"] = csp_systems_SequenceFactory;
|
|
1494
1510
|
|
|
1511
|
+
function csp_systems_ApplicationSettingsFactory(
|
|
1512
|
+
nativePointer: NativePointer,
|
|
1513
|
+
): NativeClassWrapper {
|
|
1514
|
+
return new Systems.ApplicationSettings(nativePointer);
|
|
1515
|
+
}
|
|
1516
|
+
ProxyClassFactories["csp_systems_ApplicationSettings"] =
|
|
1517
|
+
csp_systems_ApplicationSettingsFactory;
|
|
1518
|
+
|
|
1495
1519
|
function csp_systems_SettingsCollectionFactory(
|
|
1496
1520
|
nativePointer: NativePointer,
|
|
1497
1521
|
): NativeClassWrapper {
|
|
@@ -1670,6 +1694,14 @@ function csp_common_SequenceChangedNetworkEventDataFactory(
|
|
|
1670
1694
|
ProxyClassFactories["csp_common_SequenceChangedNetworkEventData"] =
|
|
1671
1695
|
csp_common_SequenceChangedNetworkEventDataFactory;
|
|
1672
1696
|
|
|
1697
|
+
function csp_multiplayer_OnlineRealtimeEngineFactory(
|
|
1698
|
+
nativePointer: NativePointer,
|
|
1699
|
+
): NativeClassWrapper {
|
|
1700
|
+
return new Multiplayer.OnlineRealtimeEngine(nativePointer);
|
|
1701
|
+
}
|
|
1702
|
+
ProxyClassFactories["csp_multiplayer_OnlineRealtimeEngine"] =
|
|
1703
|
+
csp_multiplayer_OnlineRealtimeEngineFactory;
|
|
1704
|
+
|
|
1673
1705
|
function csp_multiplayer_AnimatedModelSpaceComponentFactory(
|
|
1674
1706
|
nativePointer: NativePointer,
|
|
1675
1707
|
): NativeClassWrapper {
|
|
@@ -1902,6 +1934,14 @@ function csp_multiplayer_AnnotationThumbnailCollectionResultFactory(
|
|
|
1902
1934
|
ProxyClassFactories["csp_multiplayer_AnnotationThumbnailCollectionResult"] =
|
|
1903
1935
|
csp_multiplayer_AnnotationThumbnailCollectionResultFactory;
|
|
1904
1936
|
|
|
1937
|
+
function csp_systems_ServicesDeploymentStatusResultFactory(
|
|
1938
|
+
nativePointer: NativePointer,
|
|
1939
|
+
): NativeClassWrapper {
|
|
1940
|
+
return new Systems.ServicesDeploymentStatusResult(nativePointer);
|
|
1941
|
+
}
|
|
1942
|
+
ProxyClassFactories["csp_systems_ServicesDeploymentStatusResult"] =
|
|
1943
|
+
csp_systems_ServicesDeploymentStatusResultFactory;
|
|
1944
|
+
|
|
1905
1945
|
function csp_systems_NullResultFactory(
|
|
1906
1946
|
nativePointer: NativePointer,
|
|
1907
1947
|
): NativeClassWrapper {
|
|
@@ -2297,6 +2337,22 @@ function csp_systems_SequenceSystemFactory(
|
|
|
2297
2337
|
ProxyClassFactories["csp_systems_SequenceSystem"] =
|
|
2298
2338
|
csp_systems_SequenceSystemFactory;
|
|
2299
2339
|
|
|
2340
|
+
function csp_systems_ApplicationSettingsResultFactory(
|
|
2341
|
+
nativePointer: NativePointer,
|
|
2342
|
+
): NativeClassWrapper {
|
|
2343
|
+
return new Systems.ApplicationSettingsResult(nativePointer);
|
|
2344
|
+
}
|
|
2345
|
+
ProxyClassFactories["csp_systems_ApplicationSettingsResult"] =
|
|
2346
|
+
csp_systems_ApplicationSettingsResultFactory;
|
|
2347
|
+
|
|
2348
|
+
function csp_systems_ApplicationSettingsSystemFactory(
|
|
2349
|
+
nativePointer: NativePointer,
|
|
2350
|
+
): NativeClassWrapper {
|
|
2351
|
+
return new Systems.ApplicationSettingsSystem(nativePointer);
|
|
2352
|
+
}
|
|
2353
|
+
ProxyClassFactories["csp_systems_ApplicationSettingsSystem"] =
|
|
2354
|
+
csp_systems_ApplicationSettingsSystemFactory;
|
|
2355
|
+
|
|
2300
2356
|
function csp_systems_SettingsCollectionResultFactory(
|
|
2301
2357
|
nativePointer: NativePointer,
|
|
2302
2358
|
): NativeClassWrapper {
|
|
@@ -2655,6 +2711,30 @@ function csp_common_Array_csp_systems_SequenceFactory(
|
|
|
2655
2711
|
ProxyClassFactories["csp_common_Array_csp_systems_Sequence"] =
|
|
2656
2712
|
csp_common_Array_csp_systems_SequenceFactory;
|
|
2657
2713
|
|
|
2714
|
+
function csp_common_Array_csp_systems_VersionMetadataFactory(
|
|
2715
|
+
nativePointer: NativePointer,
|
|
2716
|
+
): NativeClassWrapper {
|
|
2717
|
+
return new Common.Array<Systems.VersionMetadata>(
|
|
2718
|
+
nativePointer,
|
|
2719
|
+
csp_systems_VersionMetadataFactory,
|
|
2720
|
+
"csp_systems_VersionMetadata",
|
|
2721
|
+
);
|
|
2722
|
+
}
|
|
2723
|
+
ProxyClassFactories["csp_common_Array_csp_systems_VersionMetadata"] =
|
|
2724
|
+
csp_common_Array_csp_systems_VersionMetadataFactory;
|
|
2725
|
+
|
|
2726
|
+
function csp_common_Array_csp_systems_ServiceStatusFactory(
|
|
2727
|
+
nativePointer: NativePointer,
|
|
2728
|
+
): NativeClassWrapper {
|
|
2729
|
+
return new Common.Array<Systems.ServiceStatus>(
|
|
2730
|
+
nativePointer,
|
|
2731
|
+
csp_systems_ServiceStatusFactory,
|
|
2732
|
+
"csp_systems_ServiceStatus",
|
|
2733
|
+
);
|
|
2734
|
+
}
|
|
2735
|
+
ProxyClassFactories["csp_common_Array_csp_systems_ServiceStatus"] =
|
|
2736
|
+
csp_common_Array_csp_systems_ServiceStatusFactory;
|
|
2737
|
+
|
|
2658
2738
|
function csp_common_Array_StringFactory(
|
|
2659
2739
|
nativePointer: NativePointer,
|
|
2660
2740
|
): NativeClassWrapper {
|
|
@@ -3417,8 +3497,8 @@ export namespace Common {
|
|
|
3417
3497
|
* @description Enum of concrete types of RealtimeEngines.
|
|
3418
3498
|
*/
|
|
3419
3499
|
export enum RealtimeEngineType {
|
|
3420
|
-
|
|
3421
|
-
|
|
3500
|
+
Online = 0,
|
|
3501
|
+
Offline,
|
|
3422
3502
|
}
|
|
3423
3503
|
}
|
|
3424
3504
|
|
|
@@ -3508,6 +3588,10 @@ export namespace Multiplayer {
|
|
|
3508
3588
|
SET_SCOPES,
|
|
3509
3589
|
START_LISTENING,
|
|
3510
3590
|
STOP_LISTENING,
|
|
3591
|
+
ON_OBJECT_MESSAGE,
|
|
3592
|
+
ON_OBJECT_PATCH,
|
|
3593
|
+
ON_REQUEST_TO_SEND_OBJECT,
|
|
3594
|
+
ON_REQUEST_TO_DISCONNECT,
|
|
3511
3595
|
}
|
|
3512
3596
|
}
|
|
3513
3597
|
|
|
@@ -4731,7 +4815,7 @@ export namespace Systems {
|
|
|
4731
4815
|
}
|
|
4732
4816
|
|
|
4733
4817
|
/**
|
|
4734
|
-
* @description Represents definition for identifying and versioning an external service endpoint
|
|
4818
|
+
* @description Represents definition for identifying and versioning an external service endpoint.
|
|
4735
4819
|
*/
|
|
4736
4820
|
export class ServiceDefinition
|
|
4737
4821
|
extends NativeClassWrapper
|
|
@@ -22727,7 +22811,7 @@ export namespace Common {
|
|
|
22727
22811
|
}
|
|
22728
22812
|
|
|
22729
22813
|
export namespace Common {
|
|
22730
|
-
export class
|
|
22814
|
+
export class IJSScriptRunner
|
|
22731
22815
|
extends NativeClassWrapper
|
|
22732
22816
|
implements INativeResource
|
|
22733
22817
|
{
|
|
@@ -22736,23 +22820,13 @@ export namespace Common {
|
|
|
22736
22820
|
super(pointer);
|
|
22737
22821
|
}
|
|
22738
22822
|
|
|
22739
|
-
|
|
22740
|
-
|
|
22741
|
-
|
|
22742
|
-
"csp_common_InvalidInterfaceUseError_Ctor_StringRC",
|
|
22743
|
-
"void",
|
|
22744
|
-
["number", "string"],
|
|
22745
|
-
[_ptr, msg],
|
|
22746
|
-
);
|
|
22747
|
-
var _nPtr = getNativePointer(_ptr);
|
|
22748
|
-
|
|
22749
|
-
return new InvalidInterfaceUseError(_nPtr);
|
|
22750
|
-
}
|
|
22751
|
-
|
|
22823
|
+
/**
|
|
22824
|
+
* @description Virtual destructor.
|
|
22825
|
+
*/
|
|
22752
22826
|
delete(): void {
|
|
22753
22827
|
if (this.ownsPointer && !this.disposed) {
|
|
22754
22828
|
Module.ccall(
|
|
22755
|
-
"
|
|
22829
|
+
"csp_common_IJSScriptRunner_Dtor",
|
|
22756
22830
|
"void",
|
|
22757
22831
|
["number"],
|
|
22758
22832
|
[this.pointer],
|
|
@@ -22762,30 +22836,24 @@ export namespace Common {
|
|
|
22762
22836
|
}
|
|
22763
22837
|
}
|
|
22764
22838
|
|
|
22765
|
-
|
|
22839
|
+
runScript(contextId: bigint, scriptText: string): boolean {
|
|
22840
|
+
assert(contextId >= Limits.INT64_MIN);
|
|
22841
|
+
assert(contextId <= Limits.INT64_MAX);
|
|
22842
|
+
|
|
22766
22843
|
let _result = Module.ccall(
|
|
22767
|
-
"
|
|
22768
|
-
"
|
|
22769
|
-
["number"],
|
|
22770
|
-
[this.pointer],
|
|
22844
|
+
"csp_common_IJSScriptRunner_RunScript_bool_int64_t_StringRC",
|
|
22845
|
+
"boolean",
|
|
22846
|
+
["number", "bigint", "string"],
|
|
22847
|
+
[this.pointer, contextId, scriptText],
|
|
22771
22848
|
);
|
|
22772
22849
|
|
|
22773
22850
|
return _result;
|
|
22774
22851
|
}
|
|
22775
|
-
|
|
22776
|
-
set msg(value: string) {
|
|
22777
|
-
Module.ccall(
|
|
22778
|
-
"csp_common_InvalidInterfaceUseError__Set_msg",
|
|
22779
|
-
"void",
|
|
22780
|
-
["number", "string"],
|
|
22781
|
-
[this.pointer, value],
|
|
22782
|
-
);
|
|
22783
|
-
}
|
|
22784
22852
|
}
|
|
22785
22853
|
}
|
|
22786
22854
|
|
|
22787
22855
|
export namespace Common {
|
|
22788
|
-
export class
|
|
22856
|
+
export class InvalidInterfaceUseError
|
|
22789
22857
|
extends NativeClassWrapper
|
|
22790
22858
|
implements INativeResource
|
|
22791
22859
|
{
|
|
@@ -22794,13 +22862,23 @@ export namespace Common {
|
|
|
22794
22862
|
super(pointer);
|
|
22795
22863
|
}
|
|
22796
22864
|
|
|
22797
|
-
|
|
22798
|
-
|
|
22799
|
-
|
|
22865
|
+
static create_msg(msg: string): InvalidInterfaceUseError {
|
|
22866
|
+
var _ptr = Module._malloc(8);
|
|
22867
|
+
Module.ccall(
|
|
22868
|
+
"csp_common_InvalidInterfaceUseError_Ctor_StringRC",
|
|
22869
|
+
"void",
|
|
22870
|
+
["number", "string"],
|
|
22871
|
+
[_ptr, msg],
|
|
22872
|
+
);
|
|
22873
|
+
var _nPtr = getNativePointer(_ptr);
|
|
22874
|
+
|
|
22875
|
+
return new InvalidInterfaceUseError(_nPtr);
|
|
22876
|
+
}
|
|
22877
|
+
|
|
22800
22878
|
delete(): void {
|
|
22801
22879
|
if (this.ownsPointer && !this.disposed) {
|
|
22802
22880
|
Module.ccall(
|
|
22803
|
-
"
|
|
22881
|
+
"csp_common_InvalidInterfaceUseError_Dtor",
|
|
22804
22882
|
"void",
|
|
22805
22883
|
["number"],
|
|
22806
22884
|
[this.pointer],
|
|
@@ -22810,19 +22888,25 @@ export namespace Common {
|
|
|
22810
22888
|
}
|
|
22811
22889
|
}
|
|
22812
22890
|
|
|
22813
|
-
|
|
22814
|
-
assert(contextId >= Limits.INT64_MIN);
|
|
22815
|
-
assert(contextId <= Limits.INT64_MAX);
|
|
22816
|
-
|
|
22891
|
+
get msg(): string {
|
|
22817
22892
|
let _result = Module.ccall(
|
|
22818
|
-
"
|
|
22819
|
-
"
|
|
22820
|
-
["number"
|
|
22821
|
-
[this.pointer
|
|
22893
|
+
"csp_common_InvalidInterfaceUseError__Get_msg",
|
|
22894
|
+
"string",
|
|
22895
|
+
["number"],
|
|
22896
|
+
[this.pointer],
|
|
22822
22897
|
);
|
|
22823
22898
|
|
|
22824
22899
|
return _result;
|
|
22825
22900
|
}
|
|
22901
|
+
|
|
22902
|
+
set msg(value: string) {
|
|
22903
|
+
Module.ccall(
|
|
22904
|
+
"csp_common_InvalidInterfaceUseError__Set_msg",
|
|
22905
|
+
"void",
|
|
22906
|
+
["number", "string"],
|
|
22907
|
+
[this.pointer, value],
|
|
22908
|
+
);
|
|
22909
|
+
}
|
|
22826
22910
|
}
|
|
22827
22911
|
}
|
|
22828
22912
|
|
|
@@ -22870,8 +22954,11 @@ export namespace Common {
|
|
|
22870
22954
|
/**
|
|
22871
22955
|
* @description Create and add a SpaceEntity with type Avatar, and relevant components and default states as specified.
|
|
22872
22956
|
* @param name - The entity name of the newly created avatar entity.
|
|
22957
|
+
* @param userId - Id of the user creating this avatar. If your backend data store requires authentication, this will
|
|
22958
|
+
* probably be your username or some similar unique identifier.
|
|
22873
22959
|
* @param spaceTransform - The initial transform to set the SpaceEntity to.
|
|
22874
|
-
* @param
|
|
22960
|
+
* @param isVisible - Whether the avatar defaults to being visible.
|
|
22961
|
+
* @param avatarState - The initial Avatar State to set.
|
|
22875
22962
|
* @param avatarId - The ID to be set on the AvatarSpaceComponent
|
|
22876
22963
|
* @param avatarPlayMode - The Initial AvatarPlayMode to set.
|
|
22877
22964
|
* @param callback - Csp::multiplayer::entitycreatedcallback a callback that executes when the creation is complete,
|
|
@@ -22880,8 +22967,10 @@ export namespace Common {
|
|
|
22880
22967
|
|
|
22881
22968
|
async createAvatar(
|
|
22882
22969
|
name: string,
|
|
22970
|
+
userId: string,
|
|
22883
22971
|
spaceTransform: Multiplayer.SpaceTransform,
|
|
22884
|
-
|
|
22972
|
+
isVisible: boolean,
|
|
22973
|
+
avatarState: Multiplayer.AvatarState,
|
|
22885
22974
|
avatarId: string,
|
|
22886
22975
|
avatarPlayMode: Multiplayer.AvatarPlayMode,
|
|
22887
22976
|
): Promise<Multiplayer.SpaceEntity> {
|
|
@@ -22904,12 +22993,14 @@ export namespace Common {
|
|
|
22904
22993
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
22905
22994
|
|
|
22906
22995
|
Module.ccall(
|
|
22907
|
-
"
|
|
22996
|
+
"csp_common_IRealtimeEngine_CreateAvatar_void_StringRC_StringRC_SpaceTransformRC_bool_AvatarStateRC_StringRC_AvatarPlayModeRC_EntityCreatedCallback",
|
|
22908
22997
|
"void",
|
|
22909
22998
|
[
|
|
22910
22999
|
"number",
|
|
22911
23000
|
"string",
|
|
23001
|
+
"string",
|
|
22912
23002
|
"number",
|
|
23003
|
+
"boolean",
|
|
22913
23004
|
"number",
|
|
22914
23005
|
"string",
|
|
22915
23006
|
"number",
|
|
@@ -22919,8 +23010,10 @@ export namespace Common {
|
|
|
22919
23010
|
[
|
|
22920
23011
|
this.pointer,
|
|
22921
23012
|
name,
|
|
23013
|
+
userId,
|
|
22922
23014
|
spaceTransform.pointer,
|
|
22923
|
-
|
|
23015
|
+
isVisible,
|
|
23016
|
+
avatarState,
|
|
22924
23017
|
avatarId,
|
|
22925
23018
|
avatarPlayMode,
|
|
22926
23019
|
_callbackPtr,
|
|
@@ -22935,6 +23028,8 @@ export namespace Common {
|
|
|
22935
23028
|
* @description Create and add a SpaceEntity, with relevant default values.
|
|
22936
23029
|
* @param name - The name of the newly created SpaceEntity.
|
|
22937
23030
|
* @param spaceTransform - The initial transform to set the SpaceEntity to.
|
|
23031
|
+
* @param parentID - ID of another entity in the space that this entity should be created as a child to. If
|
|
23032
|
+
* empty, entity is created as a root entity.
|
|
22938
23033
|
* @param callback - A callback that executes when the creation is complete,
|
|
22939
23034
|
* which will provide a non-owning pointer to the new SpaceEntity so that it can be used on the local client.
|
|
22940
23035
|
*/
|
|
@@ -22942,6 +23037,7 @@ export namespace Common {
|
|
|
22942
23037
|
async createEntity(
|
|
22943
23038
|
name: string,
|
|
22944
23039
|
spaceTransform: Multiplayer.SpaceTransform,
|
|
23040
|
+
parentID: bigint | null,
|
|
22945
23041
|
): Promise<Multiplayer.SpaceEntity> {
|
|
22946
23042
|
var _resolve;
|
|
22947
23043
|
|
|
@@ -22961,16 +23057,42 @@ export namespace Common {
|
|
|
22961
23057
|
|
|
22962
23058
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
22963
23059
|
|
|
23060
|
+
var parentIDPointer = 0;
|
|
23061
|
+
if (parentID != null) {
|
|
23062
|
+
parentIDPointer = Module._malloc(4);
|
|
23063
|
+
Module.setValue(parentIDPointer, parentID, "i32");
|
|
23064
|
+
}
|
|
23065
|
+
|
|
22964
23066
|
Module.ccall(
|
|
22965
|
-
"
|
|
23067
|
+
"csp_common_IRealtimeEngine_CreateEntity_void_StringRC_SpaceTransformRC_uint64_tRC_EntityCreatedCallback",
|
|
22966
23068
|
"void",
|
|
22967
|
-
["number", "string", "number", "number", "number"],
|
|
22968
|
-
[
|
|
23069
|
+
["number", "string", "number", "bigint", "number", "number"],
|
|
23070
|
+
[
|
|
23071
|
+
this.pointer,
|
|
23072
|
+
name,
|
|
23073
|
+
spaceTransform.pointer,
|
|
23074
|
+
parentIDPointer,
|
|
23075
|
+
_callbackPtr,
|
|
23076
|
+
0,
|
|
23077
|
+
],
|
|
22969
23078
|
);
|
|
22970
23079
|
|
|
23080
|
+
if (parentIDPointer) {
|
|
23081
|
+
Module._free(parentIDPointer);
|
|
23082
|
+
}
|
|
23083
|
+
|
|
22971
23084
|
return _promise;
|
|
22972
23085
|
}
|
|
22973
23086
|
|
|
23087
|
+
addEntity(entityToAdd: Multiplayer.SpaceEntity): void {
|
|
23088
|
+
Module.ccall(
|
|
23089
|
+
"csp_common_IRealtimeEngine_AddEntity_void_SpaceEntityP",
|
|
23090
|
+
"void",
|
|
23091
|
+
["number", "number"],
|
|
23092
|
+
[this.pointer, entityToAdd.pointer],
|
|
23093
|
+
);
|
|
23094
|
+
}
|
|
23095
|
+
|
|
22974
23096
|
/**
|
|
22975
23097
|
* @description Destroy the specified entity.
|
|
22976
23098
|
* @param entity - A non-owning pointer to the entity to be destroyed.
|
|
@@ -23006,6 +23128,8 @@ export namespace Common {
|
|
|
23006
23128
|
/**
|
|
23007
23129
|
* @description Sets a callback to be executed when an entity is fully created.
|
|
23008
23130
|
* /// Only one EntityCreatedCallback may be registered, calling this function again will override whatever was previously set.
|
|
23131
|
+
* The better way to set this and avoid initialisation race conditions is via passing this in the constructor, only use this if you wish to
|
|
23132
|
+
* override or remove this callback.
|
|
23009
23133
|
* /// @param Callback csp::multiplayer::EntityCreatedCallback : the callback to execute.
|
|
23010
23134
|
*/
|
|
23011
23135
|
setEntityCreatedCallback(
|
|
@@ -23277,18 +23401,30 @@ export namespace Common {
|
|
|
23277
23401
|
}
|
|
23278
23402
|
|
|
23279
23403
|
/**
|
|
23280
|
-
* @description
|
|
23281
|
-
*
|
|
23404
|
+
* @description Set Callback that notifies when the OnlineRealtimeEngine is in a valid state
|
|
23405
|
+
* after entering a space, and entity mutation can begin. Users should not mutate entities before receiving this callback.
|
|
23406
|
+
* This callback should be emitted in response to FetchAllEntitiesAndPopulateBuffers completing, either syncronously or asyncronously.
|
|
23407
|
+
* This callback must be set prior to entering a space.
|
|
23408
|
+
* @param fetchCompleteCallback - Callback that notifies when the RealtimeEngine has completed initial
|
|
23409
|
+
* entity fetch
|
|
23282
23410
|
*/
|
|
23283
|
-
|
|
23411
|
+
setEntityFetchCompleteCallback(callback: (arg1: number) => void) {
|
|
23284
23412
|
var _callback = (_stateObject__: number, arg1) => {
|
|
23413
|
+
{
|
|
23414
|
+
const _unfixedValue = arg1;
|
|
23415
|
+
let _fixedValue =
|
|
23416
|
+
_unfixedValue < 0 ? _unfixedValue + 2 ** 32 : _unfixedValue;
|
|
23417
|
+
|
|
23418
|
+
arg1 = _fixedValue;
|
|
23419
|
+
}
|
|
23420
|
+
|
|
23285
23421
|
callback(arg1);
|
|
23286
23422
|
};
|
|
23287
23423
|
|
|
23288
23424
|
var _callbackPtr = Module.addFunction(_callback, "vii");
|
|
23289
23425
|
|
|
23290
23426
|
Module.ccall(
|
|
23291
|
-
"
|
|
23427
|
+
"csp_common_IRealtimeEngine_SetEntityFetchCompleteCallback_void_EntityFetchCompleteCallback",
|
|
23292
23428
|
"void",
|
|
23293
23429
|
["number", "number", "number"],
|
|
23294
23430
|
[this.pointer, _callbackPtr, 0],
|
|
@@ -23801,19 +23937,19 @@ export namespace Multiplayer {
|
|
|
23801
23937
|
/**
|
|
23802
23938
|
* @description Constructor for CSPSceneDescription by deserializing a SceneDescription json file.
|
|
23803
23939
|
* @param sceneDescriptionJson - The SceneDescription to deserialize.
|
|
23804
|
-
* @param entitySystem - The
|
|
23805
|
-
* @param logSystem - The
|
|
23940
|
+
* @param entitySystem - The OnlineRealtimeEngine for this session.
|
|
23941
|
+
* @param logSystem - The OnlineRealtimeEngine for this session.
|
|
23806
23942
|
* @param remoteScriptRunner - The ScriptRunner for this session.
|
|
23807
23943
|
*/
|
|
23808
23944
|
static create_sceneDescriptionJson_entitySystem_logSystem_remoteScriptRunner(
|
|
23809
23945
|
sceneDescriptionJson: string,
|
|
23810
|
-
entitySystem: Multiplayer.
|
|
23946
|
+
entitySystem: Multiplayer.OnlineRealtimeEngine,
|
|
23811
23947
|
logSystem: Common.LogSystem,
|
|
23812
23948
|
remoteScriptRunner: Common.IJSScriptRunner,
|
|
23813
23949
|
): CSPSceneDescription {
|
|
23814
23950
|
var _ptr = Module._malloc(8);
|
|
23815
23951
|
Module.ccall(
|
|
23816
|
-
"
|
|
23952
|
+
"csp_multiplayer_CSPSceneDescription_Ctor_StringRC_OnlineRealtimeEngineR_LogSystemR_IJSScriptRunnerR",
|
|
23817
23953
|
"void",
|
|
23818
23954
|
["number", "string", "number", "number", "number"],
|
|
23819
23955
|
[
|
|
@@ -24052,6 +24188,27 @@ export namespace Multiplayer {
|
|
|
24052
24188
|
return _result;
|
|
24053
24189
|
}
|
|
24054
24190
|
|
|
24191
|
+
/**
|
|
24192
|
+
* @description Get the currently set realtime engine.
|
|
24193
|
+
* @return Non-owning pointer to currently set realtime engine. This should be non-null when in a space, and null before entering, or after
|
|
24194
|
+
* exiting a space.
|
|
24195
|
+
*/
|
|
24196
|
+
|
|
24197
|
+
getOnlineRealtimeEngine(): Multiplayer.OnlineRealtimeEngine {
|
|
24198
|
+
var _ret = Module._malloc(8);
|
|
24199
|
+
|
|
24200
|
+
Module.ccall(
|
|
24201
|
+
"csp_multiplayer_MultiplayerConnection_GetOnlineRealtimeEngineC_OnlineRealtimeEngineP",
|
|
24202
|
+
"void",
|
|
24203
|
+
["number", "number"],
|
|
24204
|
+
[_ret, this.pointer],
|
|
24205
|
+
);
|
|
24206
|
+
var _nPtr = new Multiplayer.OnlineRealtimeEngine(getNativePointer(_ret));
|
|
24207
|
+
Module._free(_ret);
|
|
24208
|
+
|
|
24209
|
+
return _nPtr;
|
|
24210
|
+
}
|
|
24211
|
+
|
|
24055
24212
|
delete(): void {
|
|
24056
24213
|
if (this.ownsPointer && !this.disposed) {
|
|
24057
24214
|
Module.ccall(
|
|
@@ -24273,16 +24430,15 @@ export namespace Multiplayer {
|
|
|
24273
24430
|
|
|
24274
24431
|
/**
|
|
24275
24432
|
* @description Register interest in a network event, such that the NetworkEventBus will call the provided callback when it arrives
|
|
24276
|
-
* @param registration - Registration information, containing a ReceiverID and an EventName.
|
|
24277
|
-
*
|
|
24278
|
-
* @
|
|
24279
|
-
* null.
|
|
24433
|
+
* @param registration - Registration information, containing a ReceiverID and an EventName. Will fail to register if
|
|
24434
|
+
* identical callback registration already registered.
|
|
24435
|
+
* @param callback - Callback to invoke when specified event is received. Will fail to register if null.
|
|
24280
24436
|
*/
|
|
24281
24437
|
|
|
24282
24438
|
listenNetworkEvent(
|
|
24283
24439
|
registration: Multiplayer.NetworkEventRegistration,
|
|
24284
24440
|
callback: (networkEventData: Common.NetworkEventData) => void,
|
|
24285
|
-
):
|
|
24441
|
+
): void {
|
|
24286
24442
|
var _callback = (_stateObject__: number, networkEventData) => {
|
|
24287
24443
|
var _networkEventData = new Common.NetworkEventData(
|
|
24288
24444
|
getNativePointer(networkEventData),
|
|
@@ -24290,53 +24446,44 @@ export namespace Multiplayer {
|
|
|
24290
24446
|
callback(_networkEventData);
|
|
24291
24447
|
};
|
|
24292
24448
|
|
|
24293
|
-
var callbackPtr = Module.addFunction(_callback, "
|
|
24449
|
+
var callbackPtr = Module.addFunction(_callback, "vii");
|
|
24294
24450
|
|
|
24295
|
-
|
|
24296
|
-
"
|
|
24297
|
-
"
|
|
24451
|
+
Module.ccall(
|
|
24452
|
+
"csp_multiplayer_NetworkEventBus_ListenNetworkEvent_void_NetworkEventRegistration_NetworkEventCallback",
|
|
24453
|
+
"void",
|
|
24298
24454
|
["number", "number", "number"],
|
|
24299
24455
|
[this.pointer, registration.pointer, callbackPtr],
|
|
24300
24456
|
);
|
|
24301
|
-
|
|
24302
|
-
return _result;
|
|
24303
24457
|
}
|
|
24304
24458
|
|
|
24305
24459
|
/**
|
|
24306
24460
|
* @description Deregister interest in a network event
|
|
24307
24461
|
* @param registration - Registration information of already registered event, containing a ReceiverID and an EventName.
|
|
24308
|
-
* @return True if the deregistration was successful, false otherwise, such as in the case where Registration was not found
|
|
24309
24462
|
*/
|
|
24310
24463
|
|
|
24311
24464
|
stopListenNetworkEvent(
|
|
24312
24465
|
registration: Multiplayer.NetworkEventRegistration,
|
|
24313
|
-
):
|
|
24314
|
-
|
|
24315
|
-
"
|
|
24316
|
-
"
|
|
24466
|
+
): void {
|
|
24467
|
+
Module.ccall(
|
|
24468
|
+
"csp_multiplayer_NetworkEventBus_StopListenNetworkEvent_void_NetworkEventRegistration",
|
|
24469
|
+
"void",
|
|
24317
24470
|
["number", "number"],
|
|
24318
24471
|
[this.pointer, registration.pointer],
|
|
24319
24472
|
);
|
|
24320
|
-
|
|
24321
|
-
return _result;
|
|
24322
24473
|
}
|
|
24323
24474
|
|
|
24324
24475
|
/**
|
|
24325
24476
|
* @description Deregister interest in all network events registered to a particular EventReceiverId
|
|
24326
24477
|
* @param eventReceiverId - EventReceiverId to deregister.
|
|
24327
|
-
* @return True if the deregistration was successful, false otherwise, such as if no events were found to deregister under the provided
|
|
24328
|
-
* EventReceiverId.
|
|
24329
24478
|
*/
|
|
24330
24479
|
|
|
24331
|
-
stopListenAllNetworkEvents(eventReceiverId: string):
|
|
24332
|
-
|
|
24333
|
-
"
|
|
24334
|
-
"
|
|
24480
|
+
stopListenAllNetworkEvents(eventReceiverId: string): void {
|
|
24481
|
+
Module.ccall(
|
|
24482
|
+
"csp_multiplayer_NetworkEventBus_StopListenAllNetworkEvents_void_StringRC",
|
|
24483
|
+
"void",
|
|
24335
24484
|
["number", "string"],
|
|
24336
24485
|
[this.pointer, eventReceiverId],
|
|
24337
24486
|
);
|
|
24338
|
-
|
|
24339
|
-
return _result;
|
|
24340
24487
|
}
|
|
24341
24488
|
|
|
24342
24489
|
/**
|
|
@@ -24513,13 +24660,13 @@ export namespace Multiplayer {
|
|
|
24513
24660
|
* @description Creates a SpaceEntity instance using the space entity system provided.
|
|
24514
24661
|
*/
|
|
24515
24662
|
static create_entitySystem_scriptRunner_logSystem(
|
|
24516
|
-
entitySystem: Multiplayer.
|
|
24663
|
+
entitySystem: Multiplayer.OnlineRealtimeEngine,
|
|
24517
24664
|
scriptRunner: Common.IJSScriptRunner,
|
|
24518
24665
|
logSystem: Common.LogSystem,
|
|
24519
24666
|
): SpaceEntity {
|
|
24520
24667
|
var _ptr = Module._malloc(8);
|
|
24521
24668
|
Module.ccall(
|
|
24522
|
-
"
|
|
24669
|
+
"csp_multiplayer_SpaceEntity_Ctor_OnlineRealtimeEngineP_IJSScriptRunnerR_LogSystemP",
|
|
24523
24670
|
"void",
|
|
24524
24671
|
["number", "number", "number", "number"],
|
|
24525
24672
|
[_ptr, entitySystem.pointer, scriptRunner.pointer, logSystem.pointer],
|
|
@@ -24920,26 +25067,6 @@ export namespace Multiplayer {
|
|
|
24920
25067
|
return _result;
|
|
24921
25068
|
}
|
|
24922
25069
|
|
|
24923
|
-
/**
|
|
24924
|
-
* @description Get SpaceEntitySystem Object
|
|
24925
|
-
* @return SpaceEntitySystem
|
|
24926
|
-
*/
|
|
24927
|
-
|
|
24928
|
-
getSpaceEntitySystem(): Multiplayer.SpaceEntitySystem {
|
|
24929
|
-
var _ret = Module._malloc(8);
|
|
24930
|
-
|
|
24931
|
-
Module.ccall(
|
|
24932
|
-
"csp_multiplayer_SpaceEntity_GetSpaceEntitySystem_SpaceEntitySystemP",
|
|
24933
|
-
"void",
|
|
24934
|
-
["number", "number"],
|
|
24935
|
-
[_ret, this.pointer],
|
|
24936
|
-
);
|
|
24937
|
-
var _nPtr = new Multiplayer.SpaceEntitySystem(getNativePointer(_ret));
|
|
24938
|
-
Module._free(_ret);
|
|
24939
|
-
|
|
24940
|
-
return _nPtr;
|
|
24941
|
-
}
|
|
24942
|
-
|
|
24943
25070
|
/**
|
|
24944
25071
|
* @description Sets the parent for this entity
|
|
24945
25072
|
* QueueUpdate() should be called afterwards to enable changes to the parent.
|
|
@@ -25432,13 +25559,9 @@ export namespace Multiplayer {
|
|
|
25432
25559
|
|
|
25433
25560
|
export namespace Multiplayer {
|
|
25434
25561
|
/**
|
|
25435
|
-
* @description
|
|
25436
|
-
* /// This provides functions to create and manage multiple player avatars and other objects.
|
|
25437
|
-
* It manages things like queueing updated entities and triggering tick events. Callbacks
|
|
25438
|
-
* can be registered for certain events that occur within the entity system so clients can
|
|
25439
|
-
* react appropriately.
|
|
25562
|
+
* @description Simple class for holding the position, rotation and scale of a transform.
|
|
25440
25563
|
*/
|
|
25441
|
-
export class
|
|
25564
|
+
export class SpaceTransform
|
|
25442
25565
|
extends NativeClassWrapper
|
|
25443
25566
|
implements INativeResource
|
|
25444
25567
|
{
|
|
@@ -25448,967 +25571,179 @@ export namespace Multiplayer {
|
|
|
25448
25571
|
}
|
|
25449
25572
|
|
|
25450
25573
|
/**
|
|
25451
|
-
* @description
|
|
25452
|
-
* @param inName - The name to give the new SpaceEntity.
|
|
25453
|
-
* @param inSpaceTransform - The initial transform to set the SpaceEntity to.
|
|
25454
|
-
* @param isVisible - The initial visibility of the Avatar.
|
|
25455
|
-
* @param inState - The initial Avatar State to set.
|
|
25456
|
-
* @param inAvatarId - The Initial AvatarID to set.
|
|
25457
|
-
* @param inAvatarPlayMode - The Initial AvatarPlayMode to set.
|
|
25458
|
-
* @param callback - EntityCreatedCallback A callback that executes when the creation is complete,
|
|
25459
|
-
* which contains a pointer to the new SpaceEntity so that it can be used on the local client.
|
|
25574
|
+
* @description Default constuctor for the SpaceTransform
|
|
25460
25575
|
*/
|
|
25461
|
-
|
|
25462
|
-
|
|
25463
|
-
name: string,
|
|
25464
|
-
loginState: Common.LoginState,
|
|
25465
|
-
spaceTransform: Multiplayer.SpaceTransform,
|
|
25466
|
-
isVisible: boolean,
|
|
25467
|
-
state: Multiplayer.AvatarState,
|
|
25468
|
-
avatarId: string,
|
|
25469
|
-
avatarPlayMode: Multiplayer.AvatarPlayMode,
|
|
25470
|
-
): Promise<Multiplayer.SpaceEntity> {
|
|
25471
|
-
var _resolve;
|
|
25472
|
-
|
|
25473
|
-
var _promise = new Promise<Multiplayer.SpaceEntity>((_r) => {
|
|
25474
|
-
_resolve = _r;
|
|
25475
|
-
});
|
|
25476
|
-
|
|
25477
|
-
var _callbackPtr: number;
|
|
25478
|
-
var _callback = (_stateObject__: number, arg1) => {
|
|
25479
|
-
var _arg1Ptr = getNativePointer(arg1);
|
|
25480
|
-
var _arg1Instance = new Multiplayer.SpaceEntity(_arg1Ptr);
|
|
25481
|
-
|
|
25482
|
-
_resolve(_arg1Instance);
|
|
25483
|
-
|
|
25484
|
-
Module.removeFunction(_callbackPtr);
|
|
25485
|
-
};
|
|
25486
|
-
|
|
25487
|
-
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
25488
|
-
|
|
25576
|
+
static create(): SpaceTransform {
|
|
25577
|
+
var _ptr = Module._malloc(8);
|
|
25489
25578
|
Module.ccall(
|
|
25490
|
-
"
|
|
25579
|
+
"csp_multiplayer_SpaceTransform_Ctor",
|
|
25491
25580
|
"void",
|
|
25492
|
-
[
|
|
25493
|
-
|
|
25494
|
-
"string",
|
|
25495
|
-
"number",
|
|
25496
|
-
"number",
|
|
25497
|
-
"boolean",
|
|
25498
|
-
"number",
|
|
25499
|
-
"string",
|
|
25500
|
-
"number",
|
|
25501
|
-
"number",
|
|
25502
|
-
"number",
|
|
25503
|
-
],
|
|
25504
|
-
[
|
|
25505
|
-
this.pointer,
|
|
25506
|
-
name,
|
|
25507
|
-
loginState.pointer,
|
|
25508
|
-
spaceTransform.pointer,
|
|
25509
|
-
isVisible,
|
|
25510
|
-
state,
|
|
25511
|
-
avatarId,
|
|
25512
|
-
avatarPlayMode,
|
|
25513
|
-
_callbackPtr,
|
|
25514
|
-
0,
|
|
25515
|
-
],
|
|
25581
|
+
["number"],
|
|
25582
|
+
[_ptr],
|
|
25516
25583
|
);
|
|
25584
|
+
var _nPtr = getNativePointer(_ptr);
|
|
25517
25585
|
|
|
25518
|
-
return
|
|
25586
|
+
return new SpaceTransform(_nPtr);
|
|
25519
25587
|
}
|
|
25520
25588
|
|
|
25521
25589
|
/**
|
|
25522
|
-
* @description
|
|
25523
|
-
* @param
|
|
25524
|
-
* @param
|
|
25525
|
-
* @param
|
|
25526
|
-
* which contains a pointer to the new SpaceEntity so that it can be used on the local client.
|
|
25590
|
+
* @description Custom constructor for the SpaceTransform.
|
|
25591
|
+
* @param position - The position value for the transform.
|
|
25592
|
+
* @param rotation - The rotation value for the transform, will be normalized during multiplication operations.
|
|
25593
|
+
* @param scale - The scale value for the transform.
|
|
25527
25594
|
*/
|
|
25528
|
-
|
|
25529
|
-
|
|
25530
|
-
|
|
25531
|
-
|
|
25532
|
-
):
|
|
25533
|
-
var
|
|
25534
|
-
|
|
25535
|
-
var _promise = new Promise<Multiplayer.SpaceEntity>((_r) => {
|
|
25536
|
-
_resolve = _r;
|
|
25537
|
-
});
|
|
25538
|
-
|
|
25539
|
-
var _callbackPtr: number;
|
|
25540
|
-
var _callback = (_stateObject__: number, arg1) => {
|
|
25541
|
-
var _arg1Ptr = getNativePointer(arg1);
|
|
25542
|
-
var _arg1Instance = new Multiplayer.SpaceEntity(_arg1Ptr);
|
|
25543
|
-
|
|
25544
|
-
_resolve(_arg1Instance);
|
|
25545
|
-
|
|
25546
|
-
Module.removeFunction(_callbackPtr);
|
|
25547
|
-
};
|
|
25548
|
-
|
|
25549
|
-
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
25550
|
-
|
|
25595
|
+
static create_position_rotation_scale(
|
|
25596
|
+
position: Common.Vector3,
|
|
25597
|
+
rotation: Common.Vector4,
|
|
25598
|
+
scale: Common.Vector3,
|
|
25599
|
+
): SpaceTransform {
|
|
25600
|
+
var _ptr = Module._malloc(8);
|
|
25551
25601
|
Module.ccall(
|
|
25552
|
-
"
|
|
25602
|
+
"csp_multiplayer_SpaceTransform_Ctor_Vector3RC_Vector4RC_Vector3RC",
|
|
25553
25603
|
"void",
|
|
25554
|
-
["number", "
|
|
25555
|
-
[
|
|
25604
|
+
["number", "number", "number", "number"],
|
|
25605
|
+
[_ptr, position.pointer, rotation.pointer, scale.pointer],
|
|
25556
25606
|
);
|
|
25607
|
+
var _nPtr = getNativePointer(_ptr);
|
|
25557
25608
|
|
|
25558
|
-
return
|
|
25609
|
+
return new SpaceTransform(_nPtr);
|
|
25559
25610
|
}
|
|
25560
25611
|
|
|
25561
25612
|
/**
|
|
25562
|
-
* @description
|
|
25563
|
-
* @param
|
|
25564
|
-
* @param callback - The callback to execute.
|
|
25613
|
+
* @description Equality operator
|
|
25614
|
+
* @param spaceTransform - Transform
|
|
25565
25615
|
*/
|
|
25616
|
+
// operator==
|
|
25566
25617
|
|
|
25567
|
-
|
|
25568
|
-
|
|
25569
|
-
|
|
25570
|
-
|
|
25571
|
-
|
|
25572
|
-
});
|
|
25618
|
+
/**
|
|
25619
|
+
* @description Inequality operator
|
|
25620
|
+
* @param spaceTransform - Transform
|
|
25621
|
+
*/
|
|
25622
|
+
// operator!=
|
|
25573
25623
|
|
|
25574
|
-
|
|
25575
|
-
|
|
25576
|
-
|
|
25624
|
+
/**
|
|
25625
|
+
* @description Multiplication operator
|
|
25626
|
+
* @param spaceTransform - Transform
|
|
25627
|
+
* NOTE: This performs TRS matrix composition, then decomposes back to Pos, Rot, Scale.
|
|
25628
|
+
*/
|
|
25629
|
+
// operator*
|
|
25577
25630
|
|
|
25578
|
-
|
|
25579
|
-
|
|
25631
|
+
delete(): void {
|
|
25632
|
+
if (this.ownsPointer && !this.disposed) {
|
|
25633
|
+
Module.ccall(
|
|
25634
|
+
"csp_multiplayer_SpaceTransform_Dtor",
|
|
25635
|
+
"void",
|
|
25636
|
+
["number"],
|
|
25637
|
+
[this.pointer],
|
|
25638
|
+
);
|
|
25580
25639
|
|
|
25581
|
-
|
|
25640
|
+
this.disposed = true;
|
|
25641
|
+
}
|
|
25642
|
+
}
|
|
25582
25643
|
|
|
25644
|
+
get position(): Common.Vector3 {
|
|
25645
|
+
const _ptr = Module._malloc(8);
|
|
25583
25646
|
Module.ccall(
|
|
25584
|
-
"
|
|
25647
|
+
"csp_multiplayer_SpaceTransform__Get_Position",
|
|
25585
25648
|
"void",
|
|
25586
|
-
["number", "number"
|
|
25587
|
-
[
|
|
25649
|
+
["number", "number"],
|
|
25650
|
+
[_ptr, this.pointer],
|
|
25588
25651
|
);
|
|
25589
25652
|
|
|
25590
|
-
|
|
25653
|
+
const _nPtr = getNativePointer(_ptr);
|
|
25654
|
+
return new Common.Vector3(_nPtr);
|
|
25591
25655
|
}
|
|
25592
25656
|
|
|
25593
|
-
|
|
25594
|
-
* @description Destroys the local client's view of the specified entity.
|
|
25595
|
-
* @param entity - The entity to be destroyed locally.
|
|
25596
|
-
*/
|
|
25597
|
-
|
|
25598
|
-
localDestroyEntity(entity: Multiplayer.SpaceEntity): void {
|
|
25657
|
+
set position(value: Common.Vector3) {
|
|
25599
25658
|
Module.ccall(
|
|
25600
|
-
"
|
|
25659
|
+
"csp_multiplayer_SpaceTransform__Set_Position",
|
|
25601
25660
|
"void",
|
|
25602
25661
|
["number", "number"],
|
|
25603
|
-
[this.pointer,
|
|
25662
|
+
[this.pointer, value.pointer],
|
|
25604
25663
|
);
|
|
25605
25664
|
}
|
|
25606
25665
|
|
|
25607
|
-
|
|
25608
|
-
|
|
25609
|
-
* @param inName - The name to search.
|
|
25610
|
-
* @return A pointer to the first found match SpaceEntity.
|
|
25611
|
-
*/
|
|
25612
|
-
|
|
25613
|
-
findSpaceEntity(name: string): Multiplayer.SpaceEntity {
|
|
25614
|
-
var _ret = Module._malloc(8);
|
|
25615
|
-
|
|
25666
|
+
get rotation(): Common.Vector4 {
|
|
25667
|
+
const _ptr = Module._malloc(8);
|
|
25616
25668
|
Module.ccall(
|
|
25617
|
-
"
|
|
25669
|
+
"csp_multiplayer_SpaceTransform__Get_Rotation",
|
|
25618
25670
|
"void",
|
|
25619
|
-
["number", "number"
|
|
25620
|
-
[
|
|
25671
|
+
["number", "number"],
|
|
25672
|
+
[_ptr, this.pointer],
|
|
25621
25673
|
);
|
|
25622
|
-
var _nPtr = new Multiplayer.SpaceEntity(getNativePointer(_ret));
|
|
25623
|
-
Module._free(_ret);
|
|
25624
25674
|
|
|
25625
|
-
|
|
25675
|
+
const _nPtr = getNativePointer(_ptr);
|
|
25676
|
+
return new Common.Vector4(_nPtr);
|
|
25626
25677
|
}
|
|
25627
25678
|
|
|
25628
|
-
|
|
25629
|
-
* @description Finds the first SpaceEntity that has the ID EntityId.
|
|
25630
|
-
* @param entityId - The Id to look for.
|
|
25631
|
-
* @return A pointer to the first found match SpaceEntity.
|
|
25632
|
-
*/
|
|
25633
|
-
|
|
25634
|
-
findSpaceEntityById(entityId: bigint): Multiplayer.SpaceEntity {
|
|
25635
|
-
assert(entityId >= Limits.UINT64_MIN);
|
|
25636
|
-
assert(entityId <= Limits.UINT64_MAX);
|
|
25637
|
-
|
|
25638
|
-
var _ret = Module._malloc(8);
|
|
25639
|
-
|
|
25679
|
+
set rotation(value: Common.Vector4) {
|
|
25640
25680
|
Module.ccall(
|
|
25641
|
-
"
|
|
25681
|
+
"csp_multiplayer_SpaceTransform__Set_Rotation",
|
|
25642
25682
|
"void",
|
|
25643
|
-
["number", "number"
|
|
25644
|
-
[
|
|
25683
|
+
["number", "number"],
|
|
25684
|
+
[this.pointer, value.pointer],
|
|
25645
25685
|
);
|
|
25646
|
-
var _nPtr = new Multiplayer.SpaceEntity(getNativePointer(_ret));
|
|
25647
|
-
Module._free(_ret);
|
|
25648
|
-
|
|
25649
|
-
return _nPtr;
|
|
25650
25686
|
}
|
|
25651
25687
|
|
|
25652
|
-
|
|
25653
|
-
|
|
25654
|
-
* @param inName - The name to search.
|
|
25655
|
-
* @return A pointer to the first found match SpaceEntity.
|
|
25656
|
-
*/
|
|
25657
|
-
|
|
25658
|
-
findSpaceAvatar(name: string): Multiplayer.SpaceEntity {
|
|
25659
|
-
var _ret = Module._malloc(8);
|
|
25660
|
-
|
|
25688
|
+
get scale(): Common.Vector3 {
|
|
25689
|
+
const _ptr = Module._malloc(8);
|
|
25661
25690
|
Module.ccall(
|
|
25662
|
-
"
|
|
25691
|
+
"csp_multiplayer_SpaceTransform__Get_Scale",
|
|
25663
25692
|
"void",
|
|
25664
|
-
["number", "number"
|
|
25665
|
-
[
|
|
25693
|
+
["number", "number"],
|
|
25694
|
+
[_ptr, this.pointer],
|
|
25666
25695
|
);
|
|
25667
|
-
var _nPtr = new Multiplayer.SpaceEntity(getNativePointer(_ret));
|
|
25668
|
-
Module._free(_ret);
|
|
25669
25696
|
|
|
25670
|
-
|
|
25697
|
+
const _nPtr = getNativePointer(_ptr);
|
|
25698
|
+
return new Common.Vector3(_nPtr);
|
|
25671
25699
|
}
|
|
25672
25700
|
|
|
25673
|
-
|
|
25674
|
-
* @description Finds the first SpaceEntity of type Object that matches InName.
|
|
25675
|
-
* @param inName - The name to search.
|
|
25676
|
-
* @return A pointer to the first found match SpaceEntity.
|
|
25677
|
-
*/
|
|
25678
|
-
|
|
25679
|
-
findSpaceObject(name: string): Multiplayer.SpaceEntity {
|
|
25680
|
-
var _ret = Module._malloc(8);
|
|
25681
|
-
|
|
25701
|
+
set scale(value: Common.Vector3) {
|
|
25682
25702
|
Module.ccall(
|
|
25683
|
-
"
|
|
25703
|
+
"csp_multiplayer_SpaceTransform__Set_Scale",
|
|
25684
25704
|
"void",
|
|
25685
|
-
["number", "number"
|
|
25686
|
-
[
|
|
25705
|
+
["number", "number"],
|
|
25706
|
+
[this.pointer, value.pointer],
|
|
25687
25707
|
);
|
|
25688
|
-
var _nPtr = new Multiplayer.SpaceEntity(getNativePointer(_ret));
|
|
25689
|
-
Module._free(_ret);
|
|
25690
|
-
|
|
25691
|
-
return _nPtr;
|
|
25692
25708
|
}
|
|
25709
|
+
}
|
|
25710
|
+
}
|
|
25693
25711
|
|
|
25694
|
-
|
|
25695
|
-
|
|
25696
|
-
|
|
25712
|
+
export namespace Multiplayer {
|
|
25713
|
+
/**
|
|
25714
|
+
@ingroup Conversation
|
|
25715
|
+
* @description Contains information about a conversation message.
|
|
25716
|
+
*/
|
|
25717
|
+
export class MessageInfo
|
|
25718
|
+
extends NativeClassWrapper
|
|
25719
|
+
implements INativeResource
|
|
25720
|
+
{
|
|
25721
|
+
/** @internal */
|
|
25722
|
+
constructor(pointer: NativePointer) {
|
|
25723
|
+
super(pointer);
|
|
25724
|
+
}
|
|
25697
25725
|
|
|
25698
|
-
|
|
25726
|
+
static create(): MessageInfo {
|
|
25727
|
+
var _ptr = Module._malloc(8);
|
|
25699
25728
|
Module.ccall(
|
|
25700
|
-
"
|
|
25729
|
+
"csp_multiplayer_MessageInfo_Ctor",
|
|
25701
25730
|
"void",
|
|
25702
25731
|
["number"],
|
|
25703
|
-
[
|
|
25732
|
+
[_ptr],
|
|
25704
25733
|
);
|
|
25705
|
-
|
|
25734
|
+
var _nPtr = getNativePointer(_ptr);
|
|
25706
25735
|
|
|
25707
|
-
|
|
25708
|
-
|
|
25709
|
-
*/
|
|
25736
|
+
return new MessageInfo(_nPtr);
|
|
25737
|
+
}
|
|
25710
25738
|
|
|
25711
|
-
|
|
25739
|
+
static create_conversationId_isConversation_message(
|
|
25740
|
+
conversationId: string,
|
|
25741
|
+
isConversation: boolean,
|
|
25742
|
+
message: string,
|
|
25743
|
+
): MessageInfo {
|
|
25744
|
+
var _ptr = Module._malloc(8);
|
|
25712
25745
|
Module.ccall(
|
|
25713
|
-
"
|
|
25714
|
-
"void",
|
|
25715
|
-
["number"],
|
|
25716
|
-
[this.pointer],
|
|
25717
|
-
);
|
|
25718
|
-
}
|
|
25719
|
-
|
|
25720
|
-
/**
|
|
25721
|
-
* @description Get the number of total entities in the system (both Avatars and Objects).
|
|
25722
|
-
* @return The total number of entities.
|
|
25723
|
-
*/
|
|
25724
|
-
|
|
25725
|
-
getNumEntities(): number {
|
|
25726
|
-
let _result = Module.ccall(
|
|
25727
|
-
"csp_multiplayer_SpaceEntitySystem_GetNumEntitiesC_size_t",
|
|
25728
|
-
"number",
|
|
25729
|
-
["number"],
|
|
25730
|
-
[this.pointer],
|
|
25731
|
-
);
|
|
25732
|
-
|
|
25733
|
-
const _unfixedValue = _result;
|
|
25734
|
-
let _fixedValue =
|
|
25735
|
-
_unfixedValue < 0 ? _unfixedValue + 2 ** 32 : _unfixedValue;
|
|
25736
|
-
_result = _fixedValue;
|
|
25737
|
-
|
|
25738
|
-
return _result;
|
|
25739
|
-
}
|
|
25740
|
-
|
|
25741
|
-
/**
|
|
25742
|
-
* @description Get the number of total Avatars in the system.
|
|
25743
|
-
* @return The total number of Avatar entities.
|
|
25744
|
-
*/
|
|
25745
|
-
|
|
25746
|
-
getNumAvatars(): number {
|
|
25747
|
-
let _result = Module.ccall(
|
|
25748
|
-
"csp_multiplayer_SpaceEntitySystem_GetNumAvatarsC_size_t",
|
|
25749
|
-
"number",
|
|
25750
|
-
["number"],
|
|
25751
|
-
[this.pointer],
|
|
25752
|
-
);
|
|
25753
|
-
|
|
25754
|
-
const _unfixedValue = _result;
|
|
25755
|
-
let _fixedValue =
|
|
25756
|
-
_unfixedValue < 0 ? _unfixedValue + 2 ** 32 : _unfixedValue;
|
|
25757
|
-
_result = _fixedValue;
|
|
25758
|
-
|
|
25759
|
-
return _result;
|
|
25760
|
-
}
|
|
25761
|
-
|
|
25762
|
-
/**
|
|
25763
|
-
* @description Get the number of total Objects in the system.
|
|
25764
|
-
* @return The total number of object entities.
|
|
25765
|
-
*/
|
|
25766
|
-
|
|
25767
|
-
getNumObjects(): number {
|
|
25768
|
-
let _result = Module.ccall(
|
|
25769
|
-
"csp_multiplayer_SpaceEntitySystem_GetNumObjectsC_size_t",
|
|
25770
|
-
"number",
|
|
25771
|
-
["number"],
|
|
25772
|
-
[this.pointer],
|
|
25773
|
-
);
|
|
25774
|
-
|
|
25775
|
-
const _unfixedValue = _result;
|
|
25776
|
-
let _fixedValue =
|
|
25777
|
-
_unfixedValue < 0 ? _unfixedValue + 2 ** 32 : _unfixedValue;
|
|
25778
|
-
_result = _fixedValue;
|
|
25779
|
-
|
|
25780
|
-
return _result;
|
|
25781
|
-
}
|
|
25782
|
-
|
|
25783
|
-
/**
|
|
25784
|
-
* @description Get an Entity (Avatar or Object) by its index.
|
|
25785
|
-
* /// Note this is not currently thread safe and should only be called from the main thread.
|
|
25786
|
-
* /// @param EntityIndex size_t : The index of the entity to get.
|
|
25787
|
-
* @return A pointer to the entity with the given index.
|
|
25788
|
-
*/
|
|
25789
|
-
|
|
25790
|
-
getEntityByIndex(entityIndex: number): Multiplayer.SpaceEntity {
|
|
25791
|
-
assert(Number.isInteger(entityIndex));
|
|
25792
|
-
assert(entityIndex >= Limits.UINT32_MIN);
|
|
25793
|
-
assert(entityIndex <= Limits.UINT32_MAX);
|
|
25794
|
-
|
|
25795
|
-
var _ret = Module._malloc(8);
|
|
25796
|
-
|
|
25797
|
-
Module.ccall(
|
|
25798
|
-
"csp_multiplayer_SpaceEntitySystem_GetEntityByIndex_SpaceEntityP_size_tC",
|
|
25799
|
-
"void",
|
|
25800
|
-
["number", "number", "number"],
|
|
25801
|
-
[_ret, this.pointer, entityIndex],
|
|
25802
|
-
);
|
|
25803
|
-
var _nPtr = new Multiplayer.SpaceEntity(getNativePointer(_ret));
|
|
25804
|
-
Module._free(_ret);
|
|
25805
|
-
|
|
25806
|
-
return _nPtr;
|
|
25807
|
-
}
|
|
25808
|
-
|
|
25809
|
-
/**
|
|
25810
|
-
* @description Get an Avatar by its index.
|
|
25811
|
-
* /// Note this is not currently thread safe and should only be called from the main thread.
|
|
25812
|
-
* /// @param AvatarIndex size_t : The index of the avatar entity to get.
|
|
25813
|
-
* @return A pointer to the avatar entity with the given index.
|
|
25814
|
-
*/
|
|
25815
|
-
|
|
25816
|
-
getAvatarByIndex(avatarIndex: number): Multiplayer.SpaceEntity {
|
|
25817
|
-
assert(Number.isInteger(avatarIndex));
|
|
25818
|
-
assert(avatarIndex >= Limits.UINT32_MIN);
|
|
25819
|
-
assert(avatarIndex <= Limits.UINT32_MAX);
|
|
25820
|
-
|
|
25821
|
-
var _ret = Module._malloc(8);
|
|
25822
|
-
|
|
25823
|
-
Module.ccall(
|
|
25824
|
-
"csp_multiplayer_SpaceEntitySystem_GetAvatarByIndex_SpaceEntityP_size_tC",
|
|
25825
|
-
"void",
|
|
25826
|
-
["number", "number", "number"],
|
|
25827
|
-
[_ret, this.pointer, avatarIndex],
|
|
25828
|
-
);
|
|
25829
|
-
var _nPtr = new Multiplayer.SpaceEntity(getNativePointer(_ret));
|
|
25830
|
-
Module._free(_ret);
|
|
25831
|
-
|
|
25832
|
-
return _nPtr;
|
|
25833
|
-
}
|
|
25834
|
-
|
|
25835
|
-
/**
|
|
25836
|
-
* @description Get an Object by its index.
|
|
25837
|
-
* /// Note this is not currently thread safe and should only be called from the main thread.
|
|
25838
|
-
* /// @param ObjectIndex size_t : The index of the object entity to get.
|
|
25839
|
-
* @return A pointer to the object entity with the given index.
|
|
25840
|
-
*/
|
|
25841
|
-
|
|
25842
|
-
getObjectByIndex(objectIndex: number): Multiplayer.SpaceEntity {
|
|
25843
|
-
assert(Number.isInteger(objectIndex));
|
|
25844
|
-
assert(objectIndex >= Limits.UINT32_MIN);
|
|
25845
|
-
assert(objectIndex <= Limits.UINT32_MAX);
|
|
25846
|
-
|
|
25847
|
-
var _ret = Module._malloc(8);
|
|
25848
|
-
|
|
25849
|
-
Module.ccall(
|
|
25850
|
-
"csp_multiplayer_SpaceEntitySystem_GetObjectByIndex_SpaceEntityP_size_tC",
|
|
25851
|
-
"void",
|
|
25852
|
-
["number", "number", "number"],
|
|
25853
|
-
[_ret, this.pointer, objectIndex],
|
|
25854
|
-
);
|
|
25855
|
-
var _nPtr = new Multiplayer.SpaceEntity(getNativePointer(_ret));
|
|
25856
|
-
Module._free(_ret);
|
|
25857
|
-
|
|
25858
|
-
return _nPtr;
|
|
25859
|
-
}
|
|
25860
|
-
|
|
25861
|
-
/**
|
|
25862
|
-
* @description Add a new entity to the system.
|
|
25863
|
-
* /// This can be called at any time from any thread and internally add the entity to a pending
|
|
25864
|
-
* list which is then updated in a thread safe manner when ProcessPendingEntityOperations
|
|
25865
|
-
* is called from the main thread.
|
|
25866
|
-
* /// @param EntityToAdd SpaceEntity : Pointer to the entity to be added.
|
|
25867
|
-
*/
|
|
25868
|
-
|
|
25869
|
-
addEntity(entityToAdd: Multiplayer.SpaceEntity): void {
|
|
25870
|
-
Module.ccall(
|
|
25871
|
-
"csp_multiplayer_SpaceEntitySystem_AddEntity_void_SpaceEntityP",
|
|
25872
|
-
"void",
|
|
25873
|
-
["number", "number"],
|
|
25874
|
-
[this.pointer, entityToAdd.pointer],
|
|
25875
|
-
);
|
|
25876
|
-
}
|
|
25877
|
-
|
|
25878
|
-
/**
|
|
25879
|
-
* @description Sets a callback to be executed when an entity is remotely created.
|
|
25880
|
-
* /// Only one callback may be registered, calling this function again will override whatever was previously set.
|
|
25881
|
-
* If this is not set, some patch functions may fail.
|
|
25882
|
-
* /// @param Callback EntityCreatedCallback : the callback to execute.
|
|
25883
|
-
*/
|
|
25884
|
-
setEntityCreatedCallback(
|
|
25885
|
-
callback: (arg1: Multiplayer.SpaceEntity) => void,
|
|
25886
|
-
) {
|
|
25887
|
-
var _callback = (_stateObject__: number, arg1) => {
|
|
25888
|
-
var _arg1 = new Multiplayer.SpaceEntity(getNativePointer(arg1));
|
|
25889
|
-
|
|
25890
|
-
callback(_arg1);
|
|
25891
|
-
};
|
|
25892
|
-
|
|
25893
|
-
var _callbackPtr = Module.addFunction(_callback, "vii");
|
|
25894
|
-
|
|
25895
|
-
Module.ccall(
|
|
25896
|
-
"csp_multiplayer_SpaceEntitySystem_SetEntityCreatedCallback_void_EntityCreatedCallback",
|
|
25897
|
-
"void",
|
|
25898
|
-
["number", "number", "number"],
|
|
25899
|
-
[this.pointer, _callbackPtr, 0],
|
|
25900
|
-
);
|
|
25901
|
-
}
|
|
25902
|
-
|
|
25903
|
-
/**
|
|
25904
|
-
* @description Sets a callback to be executed when all existing entities have been retrieved after entering a space.
|
|
25905
|
-
* @param callback - The callback to execute.
|
|
25906
|
-
*/
|
|
25907
|
-
setInitialEntitiesRetrievedCallback(callback: (arg1: boolean) => void) {
|
|
25908
|
-
var _callback = (_stateObject__: number, arg1) => {
|
|
25909
|
-
callback(arg1);
|
|
25910
|
-
};
|
|
25911
|
-
|
|
25912
|
-
var _callbackPtr = Module.addFunction(_callback, "vii");
|
|
25913
|
-
|
|
25914
|
-
Module.ccall(
|
|
25915
|
-
"csp_multiplayer_SpaceEntitySystem_SetInitialEntitiesRetrievedCallback_void_CallbackHandler",
|
|
25916
|
-
"void",
|
|
25917
|
-
["number", "number", "number"],
|
|
25918
|
-
[this.pointer, _callbackPtr, 0],
|
|
25919
|
-
);
|
|
25920
|
-
}
|
|
25921
|
-
|
|
25922
|
-
/**
|
|
25923
|
-
* @description Sets a callback to be executed when the script system is ready to run scripts.
|
|
25924
|
-
* @param callback - The callback to execute.
|
|
25925
|
-
*/
|
|
25926
|
-
setScriptSystemReadyCallback(callback: (arg1: boolean) => void) {
|
|
25927
|
-
var _callback = (_stateObject__: number, arg1) => {
|
|
25928
|
-
callback(arg1);
|
|
25929
|
-
};
|
|
25930
|
-
|
|
25931
|
-
var _callbackPtr = Module.addFunction(_callback, "vii");
|
|
25932
|
-
|
|
25933
|
-
Module.ccall(
|
|
25934
|
-
"csp_multiplayer_SpaceEntitySystem_SetScriptSystemReadyCallback_void_CallbackHandler",
|
|
25935
|
-
"void",
|
|
25936
|
-
["number", "number", "number"],
|
|
25937
|
-
[this.pointer, _callbackPtr, 0],
|
|
25938
|
-
);
|
|
25939
|
-
}
|
|
25940
|
-
|
|
25941
|
-
/**
|
|
25942
|
-
* @description Triggers queuing of the SpaceEntities updated components and replicated data.
|
|
25943
|
-
* /// Causes the replication of a SpaceEntities data on next Tick() or ProcessPendingEntityOperations(). However, this is bound by an
|
|
25944
|
-
* entities rate limit and will only be replicated if there has been sufficient time since the last time the entity sent a message.
|
|
25945
|
-
* /// @param EntityToUpdate SpaceEntity : A pointer to the SpaceEntity to update.
|
|
25946
|
-
*/
|
|
25947
|
-
|
|
25948
|
-
queueEntityUpdate(entityToUpdate: Multiplayer.SpaceEntity): void {
|
|
25949
|
-
Module.ccall(
|
|
25950
|
-
"csp_multiplayer_SpaceEntitySystem_QueueEntityUpdate_void_SpaceEntityP",
|
|
25951
|
-
"void",
|
|
25952
|
-
["number", "number"],
|
|
25953
|
-
[this.pointer, entityToUpdate.pointer],
|
|
25954
|
-
);
|
|
25955
|
-
}
|
|
25956
|
-
|
|
25957
|
-
/**
|
|
25958
|
-
* @description Processes pending entity operations and then calls tick on scripts if necessary.
|
|
25959
|
-
*/
|
|
25960
|
-
|
|
25961
|
-
tickEntities(): void {
|
|
25962
|
-
Module.ccall(
|
|
25963
|
-
"csp_multiplayer_SpaceEntitySystem_TickEntities_void",
|
|
25964
|
-
"void",
|
|
25965
|
-
["number"],
|
|
25966
|
-
[this.pointer],
|
|
25967
|
-
);
|
|
25968
|
-
}
|
|
25969
|
-
|
|
25970
|
-
registerEntityScriptAsModule(newEntity: Multiplayer.SpaceEntity): void {
|
|
25971
|
-
Module.ccall(
|
|
25972
|
-
"csp_multiplayer_SpaceEntitySystem_RegisterEntityScriptAsModule_void_SpaceEntityP",
|
|
25973
|
-
"void",
|
|
25974
|
-
["number", "number"],
|
|
25975
|
-
[this.pointer, newEntity.pointer],
|
|
25976
|
-
);
|
|
25977
|
-
}
|
|
25978
|
-
|
|
25979
|
-
bindNewEntityToScript(newEntity: Multiplayer.SpaceEntity): void {
|
|
25980
|
-
Module.ccall(
|
|
25981
|
-
"csp_multiplayer_SpaceEntitySystem_BindNewEntityToScript_void_SpaceEntityP",
|
|
25982
|
-
"void",
|
|
25983
|
-
["number", "number"],
|
|
25984
|
-
[this.pointer, newEntity.pointer],
|
|
25985
|
-
);
|
|
25986
|
-
}
|
|
25987
|
-
|
|
25988
|
-
/**
|
|
25989
|
-
* @description Sets the script owner for the given entity to the current client
|
|
25990
|
-
* @param entity - A pointer to the entity
|
|
25991
|
-
*/
|
|
25992
|
-
|
|
25993
|
-
claimScriptOwnership(entity: Multiplayer.SpaceEntity): void {
|
|
25994
|
-
Module.ccall(
|
|
25995
|
-
"csp_multiplayer_SpaceEntitySystem_ClaimScriptOwnershipC_void_SpaceEntityP",
|
|
25996
|
-
"void",
|
|
25997
|
-
["number", "number"],
|
|
25998
|
-
[this.pointer, entity.pointer],
|
|
25999
|
-
);
|
|
26000
|
-
}
|
|
26001
|
-
|
|
26002
|
-
/**
|
|
26003
|
-
* @description Adds the entity to a list of entities to be updated on tick
|
|
26004
|
-
* @param entity - A pointer to the entity to be added
|
|
26005
|
-
*/
|
|
26006
|
-
|
|
26007
|
-
markEntityForUpdate(entity: Multiplayer.SpaceEntity): void {
|
|
26008
|
-
Module.ccall(
|
|
26009
|
-
"csp_multiplayer_SpaceEntitySystem_MarkEntityForUpdate_void_SpaceEntityP",
|
|
26010
|
-
"void",
|
|
26011
|
-
["number", "number"],
|
|
26012
|
-
[this.pointer, entity.pointer],
|
|
26013
|
-
);
|
|
26014
|
-
}
|
|
26015
|
-
|
|
26016
|
-
/**
|
|
26017
|
-
* @description Process pending entity adds/removes and Patch message send and receives.
|
|
26018
|
-
* /// Note this should only be called from main thread
|
|
26019
|
-
*/
|
|
26020
|
-
|
|
26021
|
-
processPendingEntityOperations(): void {
|
|
26022
|
-
Module.ccall(
|
|
26023
|
-
"csp_multiplayer_SpaceEntitySystem_ProcessPendingEntityOperations_void",
|
|
26024
|
-
"void",
|
|
26025
|
-
["number"],
|
|
26026
|
-
[this.pointer],
|
|
26027
|
-
);
|
|
26028
|
-
}
|
|
26029
|
-
|
|
26030
|
-
/**
|
|
26031
|
-
* @description Retrieves all entities from the endpoint, calls "GetAllScopedObjects" currently.
|
|
26032
|
-
* /// Note this will generate new entity objects for every entity in the current scopes.
|
|
26033
|
-
* If this is called by a client manually without first deleting all existing tracked entities, it is possible there will be duplicates.
|
|
26034
|
-
* It is highly advised not to call this function unless you know what you are doing.
|
|
26035
|
-
*/
|
|
26036
|
-
|
|
26037
|
-
retrieveAllEntities(): void {
|
|
26038
|
-
Module.ccall(
|
|
26039
|
-
"csp_multiplayer_SpaceEntitySystem_RetrieveAllEntities_void",
|
|
26040
|
-
"void",
|
|
26041
|
-
["number"],
|
|
26042
|
-
[this.pointer],
|
|
26043
|
-
);
|
|
26044
|
-
}
|
|
26045
|
-
|
|
26046
|
-
/**
|
|
26047
|
-
* @description Destroys the client's local view of all currently known entities.
|
|
26048
|
-
* /// They still reside on the server, however they will not be accessible in the client application.
|
|
26049
|
-
*/
|
|
26050
|
-
|
|
26051
|
-
localDestroyAllEntities(): void {
|
|
26052
|
-
Module.ccall(
|
|
26053
|
-
"csp_multiplayer_SpaceEntitySystem_LocalDestroyAllEntities_void",
|
|
26054
|
-
"void",
|
|
26055
|
-
["number"],
|
|
26056
|
-
[this.pointer],
|
|
26057
|
-
);
|
|
26058
|
-
}
|
|
26059
|
-
|
|
26060
|
-
/**
|
|
26061
|
-
* @description Sets the selected state of an entity, if the operation is acceptable.
|
|
26062
|
-
* /// Criteria:
|
|
26063
|
-
* For Selection:
|
|
26064
|
-
* - Entity must be deselected currently
|
|
26065
|
-
* For Deselection:
|
|
26066
|
-
* - Entity must be selected currently
|
|
26067
|
-
* - Entity must be selected by the client attempting the deselection (SpaceEntity::GetSelectingClientID will return this information)
|
|
26068
|
-
* /// @param SelectedState bool : The state to set the entity to, Selected = True, Deselected = false.
|
|
26069
|
-
* @param entity - A pointer to the entity to modify selection state on.
|
|
26070
|
-
* @return True if a selection state change has occurred, false if no change was made (due to one of the above criteria not being met).
|
|
26071
|
-
*/
|
|
26072
|
-
|
|
26073
|
-
setSelectionStateOfEntity(
|
|
26074
|
-
selectedState: boolean,
|
|
26075
|
-
entity: Multiplayer.SpaceEntity,
|
|
26076
|
-
): boolean {
|
|
26077
|
-
let _result = Module.ccall(
|
|
26078
|
-
"csp_multiplayer_SpaceEntitySystem_SetSelectionStateOfEntity_bool_boolC_SpaceEntityP",
|
|
26079
|
-
"boolean",
|
|
26080
|
-
["number", "boolean", "number"],
|
|
26081
|
-
[this.pointer, selectedState, entity.pointer],
|
|
26082
|
-
);
|
|
26083
|
-
|
|
26084
|
-
return _result;
|
|
26085
|
-
}
|
|
26086
|
-
|
|
26087
|
-
/**
|
|
26088
|
-
* @description Enable Leader Election feature.
|
|
26089
|
-
*/
|
|
26090
|
-
|
|
26091
|
-
enableLeaderElection(): void {
|
|
26092
|
-
Module.ccall(
|
|
26093
|
-
"csp_multiplayer_SpaceEntitySystem_EnableLeaderElection_void",
|
|
26094
|
-
"void",
|
|
26095
|
-
["number"],
|
|
26096
|
-
[this.pointer],
|
|
26097
|
-
);
|
|
26098
|
-
}
|
|
26099
|
-
|
|
26100
|
-
/**
|
|
26101
|
-
* @description Disable Leader Election feature.
|
|
26102
|
-
*/
|
|
26103
|
-
|
|
26104
|
-
disableLeaderElection(): void {
|
|
26105
|
-
Module.ccall(
|
|
26106
|
-
"csp_multiplayer_SpaceEntitySystem_DisableLeaderElection_void",
|
|
26107
|
-
"void",
|
|
26108
|
-
["number"],
|
|
26109
|
-
[this.pointer],
|
|
26110
|
-
);
|
|
26111
|
-
}
|
|
26112
|
-
|
|
26113
|
-
/**
|
|
26114
|
-
* @description Check if the Leader Election feature is enabled.
|
|
26115
|
-
* @return True if enabled, false otherwise.
|
|
26116
|
-
*/
|
|
26117
|
-
|
|
26118
|
-
isLeaderElectionEnabled(): boolean {
|
|
26119
|
-
let _result = Module.ccall(
|
|
26120
|
-
"csp_multiplayer_SpaceEntitySystem_IsLeaderElectionEnabledC_bool",
|
|
26121
|
-
"boolean",
|
|
26122
|
-
["number"],
|
|
26123
|
-
[this.pointer],
|
|
26124
|
-
);
|
|
26125
|
-
|
|
26126
|
-
return _result;
|
|
26127
|
-
}
|
|
26128
|
-
|
|
26129
|
-
/**
|
|
26130
|
-
* @description Debug helper to get the id of the currently elected script leader.
|
|
26131
|
-
* @return The id of the leader.
|
|
26132
|
-
*/
|
|
26133
|
-
|
|
26134
|
-
getLeaderId(): bigint {
|
|
26135
|
-
let _result = Module.ccall(
|
|
26136
|
-
"csp_multiplayer_SpaceEntitySystem_GetLeaderIdC_uint64_t",
|
|
26137
|
-
"bigint",
|
|
26138
|
-
["number"],
|
|
26139
|
-
[this.pointer],
|
|
26140
|
-
);
|
|
26141
|
-
|
|
26142
|
-
const _unfixedValue = _result;
|
|
26143
|
-
let _fixedValue =
|
|
26144
|
-
_unfixedValue < 0 ? _unfixedValue + 2n ** 64n : _unfixedValue;
|
|
26145
|
-
_result = _fixedValue;
|
|
26146
|
-
|
|
26147
|
-
return _result;
|
|
26148
|
-
}
|
|
26149
|
-
|
|
26150
|
-
/**
|
|
26151
|
-
* @description Retrieve the state of the patch rate limiter. If true, patches are limited for each individual entity to a fixed rate.
|
|
26152
|
-
* @return True if enabled, false otherwise.
|
|
26153
|
-
*/
|
|
26154
|
-
|
|
26155
|
-
getEntityPatchRateLimitEnabled(): boolean {
|
|
26156
|
-
let _result = Module.ccall(
|
|
26157
|
-
"csp_multiplayer_SpaceEntitySystem_GetEntityPatchRateLimitEnabledC_bool",
|
|
26158
|
-
"boolean",
|
|
26159
|
-
["number"],
|
|
26160
|
-
[this.pointer],
|
|
26161
|
-
);
|
|
26162
|
-
|
|
26163
|
-
return _result;
|
|
26164
|
-
}
|
|
26165
|
-
|
|
26166
|
-
/**
|
|
26167
|
-
* @description Set the state of the patch rate limiter. If true, patches are limited for each individual entity to a fixed rate.
|
|
26168
|
-
* /// This feature is enabled by default and should only be disabled if you are encountering issues.
|
|
26169
|
-
* /// @param Enabled : sets if the feature should be enabled or not.
|
|
26170
|
-
* \rst
|
|
26171
|
-
* .. note::
|
|
26172
|
-
* If disabling this feature, more requests will be made to Magnopus Connected Services,
|
|
26173
|
-
* and consequently more patch merges may occur on the server as a result.
|
|
26174
|
-
* \endrst
|
|
26175
|
-
*/
|
|
26176
|
-
|
|
26177
|
-
setEntityPatchRateLimitEnabled(enabled: boolean): void {
|
|
26178
|
-
Module.ccall(
|
|
26179
|
-
"csp_multiplayer_SpaceEntitySystem_SetEntityPatchRateLimitEnabled_void_bool",
|
|
26180
|
-
"void",
|
|
26181
|
-
["number", "boolean"],
|
|
26182
|
-
[this.pointer, enabled],
|
|
26183
|
-
);
|
|
26184
|
-
}
|
|
26185
|
-
|
|
26186
|
-
/**
|
|
26187
|
-
* @description Retrieves all entities that exist at the root level (do not have a parent entity).
|
|
26188
|
-
* @return A list of root entities.
|
|
26189
|
-
*/
|
|
26190
|
-
|
|
26191
|
-
getRootHierarchyEntities(): Common.List<Multiplayer.SpaceEntity> {
|
|
26192
|
-
var _ret = Module._malloc(8);
|
|
26193
|
-
|
|
26194
|
-
Module.ccall(
|
|
26195
|
-
"csp_multiplayer_SpaceEntitySystem_GetRootHierarchyEntitiesC_ListPC",
|
|
26196
|
-
"void",
|
|
26197
|
-
["number", "number"],
|
|
26198
|
-
[_ret, this.pointer],
|
|
26199
|
-
);
|
|
26200
|
-
var _nPtr = new Common.List<Multiplayer.SpaceEntity>(
|
|
26201
|
-
getNativePointer(_ret),
|
|
26202
|
-
csp_multiplayer_SpaceEntityFactory,
|
|
26203
|
-
"csp_multiplayer_SpaceEntity",
|
|
26204
|
-
);
|
|
26205
|
-
Module._free(_ret);
|
|
26206
|
-
|
|
26207
|
-
return _nPtr;
|
|
26208
|
-
}
|
|
26209
|
-
|
|
26210
|
-
delete(): void {
|
|
26211
|
-
if (this.ownsPointer && !this.disposed) {
|
|
26212
|
-
Module.ccall(
|
|
26213
|
-
"csp_multiplayer_SpaceEntitySystem_Dtor",
|
|
26214
|
-
"void",
|
|
26215
|
-
["number"],
|
|
26216
|
-
[this.pointer],
|
|
26217
|
-
);
|
|
26218
|
-
|
|
26219
|
-
this.disposed = true;
|
|
26220
|
-
}
|
|
26221
|
-
}
|
|
26222
|
-
}
|
|
26223
|
-
}
|
|
26224
|
-
|
|
26225
|
-
export namespace Multiplayer {
|
|
26226
|
-
/**
|
|
26227
|
-
* @description Simple class for holding the position, rotation and scale of a transform.
|
|
26228
|
-
*/
|
|
26229
|
-
export class SpaceTransform
|
|
26230
|
-
extends NativeClassWrapper
|
|
26231
|
-
implements INativeResource
|
|
26232
|
-
{
|
|
26233
|
-
/** @internal */
|
|
26234
|
-
constructor(pointer: NativePointer) {
|
|
26235
|
-
super(pointer);
|
|
26236
|
-
}
|
|
26237
|
-
|
|
26238
|
-
/**
|
|
26239
|
-
* @description Default constuctor for the SpaceTransform
|
|
26240
|
-
*/
|
|
26241
|
-
static create(): SpaceTransform {
|
|
26242
|
-
var _ptr = Module._malloc(8);
|
|
26243
|
-
Module.ccall(
|
|
26244
|
-
"csp_multiplayer_SpaceTransform_Ctor",
|
|
26245
|
-
"void",
|
|
26246
|
-
["number"],
|
|
26247
|
-
[_ptr],
|
|
26248
|
-
);
|
|
26249
|
-
var _nPtr = getNativePointer(_ptr);
|
|
26250
|
-
|
|
26251
|
-
return new SpaceTransform(_nPtr);
|
|
26252
|
-
}
|
|
26253
|
-
|
|
26254
|
-
/**
|
|
26255
|
-
* @description Custom constructor for the SpaceTransform.
|
|
26256
|
-
* @param position - The position value for the transform.
|
|
26257
|
-
* @param rotation - The rotation value for the transform, will be normalized during multiplication operations.
|
|
26258
|
-
* @param scale - The scale value for the transform.
|
|
26259
|
-
*/
|
|
26260
|
-
static create_position_rotation_scale(
|
|
26261
|
-
position: Common.Vector3,
|
|
26262
|
-
rotation: Common.Vector4,
|
|
26263
|
-
scale: Common.Vector3,
|
|
26264
|
-
): SpaceTransform {
|
|
26265
|
-
var _ptr = Module._malloc(8);
|
|
26266
|
-
Module.ccall(
|
|
26267
|
-
"csp_multiplayer_SpaceTransform_Ctor_Vector3RC_Vector4RC_Vector3RC",
|
|
26268
|
-
"void",
|
|
26269
|
-
["number", "number", "number", "number"],
|
|
26270
|
-
[_ptr, position.pointer, rotation.pointer, scale.pointer],
|
|
26271
|
-
);
|
|
26272
|
-
var _nPtr = getNativePointer(_ptr);
|
|
26273
|
-
|
|
26274
|
-
return new SpaceTransform(_nPtr);
|
|
26275
|
-
}
|
|
26276
|
-
|
|
26277
|
-
/**
|
|
26278
|
-
* @description Equality operator
|
|
26279
|
-
* @param spaceTransform - Transform
|
|
26280
|
-
*/
|
|
26281
|
-
// operator==
|
|
26282
|
-
|
|
26283
|
-
/**
|
|
26284
|
-
* @description Inequality operator
|
|
26285
|
-
* @param spaceTransform - Transform
|
|
26286
|
-
*/
|
|
26287
|
-
// operator!=
|
|
26288
|
-
|
|
26289
|
-
/**
|
|
26290
|
-
* @description Multiplication operator
|
|
26291
|
-
* @param spaceTransform - Transform
|
|
26292
|
-
* NOTE: This performs TRS matrix composition, then decomposes back to Pos, Rot, Scale.
|
|
26293
|
-
*/
|
|
26294
|
-
// operator*
|
|
26295
|
-
|
|
26296
|
-
delete(): void {
|
|
26297
|
-
if (this.ownsPointer && !this.disposed) {
|
|
26298
|
-
Module.ccall(
|
|
26299
|
-
"csp_multiplayer_SpaceTransform_Dtor",
|
|
26300
|
-
"void",
|
|
26301
|
-
["number"],
|
|
26302
|
-
[this.pointer],
|
|
26303
|
-
);
|
|
26304
|
-
|
|
26305
|
-
this.disposed = true;
|
|
26306
|
-
}
|
|
26307
|
-
}
|
|
26308
|
-
|
|
26309
|
-
get position(): Common.Vector3 {
|
|
26310
|
-
const _ptr = Module._malloc(8);
|
|
26311
|
-
Module.ccall(
|
|
26312
|
-
"csp_multiplayer_SpaceTransform__Get_Position",
|
|
26313
|
-
"void",
|
|
26314
|
-
["number", "number"],
|
|
26315
|
-
[_ptr, this.pointer],
|
|
26316
|
-
);
|
|
26317
|
-
|
|
26318
|
-
const _nPtr = getNativePointer(_ptr);
|
|
26319
|
-
return new Common.Vector3(_nPtr);
|
|
26320
|
-
}
|
|
26321
|
-
|
|
26322
|
-
set position(value: Common.Vector3) {
|
|
26323
|
-
Module.ccall(
|
|
26324
|
-
"csp_multiplayer_SpaceTransform__Set_Position",
|
|
26325
|
-
"void",
|
|
26326
|
-
["number", "number"],
|
|
26327
|
-
[this.pointer, value.pointer],
|
|
26328
|
-
);
|
|
26329
|
-
}
|
|
26330
|
-
|
|
26331
|
-
get rotation(): Common.Vector4 {
|
|
26332
|
-
const _ptr = Module._malloc(8);
|
|
26333
|
-
Module.ccall(
|
|
26334
|
-
"csp_multiplayer_SpaceTransform__Get_Rotation",
|
|
26335
|
-
"void",
|
|
26336
|
-
["number", "number"],
|
|
26337
|
-
[_ptr, this.pointer],
|
|
26338
|
-
);
|
|
26339
|
-
|
|
26340
|
-
const _nPtr = getNativePointer(_ptr);
|
|
26341
|
-
return new Common.Vector4(_nPtr);
|
|
26342
|
-
}
|
|
26343
|
-
|
|
26344
|
-
set rotation(value: Common.Vector4) {
|
|
26345
|
-
Module.ccall(
|
|
26346
|
-
"csp_multiplayer_SpaceTransform__Set_Rotation",
|
|
26347
|
-
"void",
|
|
26348
|
-
["number", "number"],
|
|
26349
|
-
[this.pointer, value.pointer],
|
|
26350
|
-
);
|
|
26351
|
-
}
|
|
26352
|
-
|
|
26353
|
-
get scale(): Common.Vector3 {
|
|
26354
|
-
const _ptr = Module._malloc(8);
|
|
26355
|
-
Module.ccall(
|
|
26356
|
-
"csp_multiplayer_SpaceTransform__Get_Scale",
|
|
26357
|
-
"void",
|
|
26358
|
-
["number", "number"],
|
|
26359
|
-
[_ptr, this.pointer],
|
|
26360
|
-
);
|
|
26361
|
-
|
|
26362
|
-
const _nPtr = getNativePointer(_ptr);
|
|
26363
|
-
return new Common.Vector3(_nPtr);
|
|
26364
|
-
}
|
|
26365
|
-
|
|
26366
|
-
set scale(value: Common.Vector3) {
|
|
26367
|
-
Module.ccall(
|
|
26368
|
-
"csp_multiplayer_SpaceTransform__Set_Scale",
|
|
26369
|
-
"void",
|
|
26370
|
-
["number", "number"],
|
|
26371
|
-
[this.pointer, value.pointer],
|
|
26372
|
-
);
|
|
26373
|
-
}
|
|
26374
|
-
}
|
|
26375
|
-
}
|
|
26376
|
-
|
|
26377
|
-
export namespace Multiplayer {
|
|
26378
|
-
/**
|
|
26379
|
-
@ingroup Conversation
|
|
26380
|
-
* @description Contains information about a conversation message.
|
|
26381
|
-
*/
|
|
26382
|
-
export class MessageInfo
|
|
26383
|
-
extends NativeClassWrapper
|
|
26384
|
-
implements INativeResource
|
|
26385
|
-
{
|
|
26386
|
-
/** @internal */
|
|
26387
|
-
constructor(pointer: NativePointer) {
|
|
26388
|
-
super(pointer);
|
|
26389
|
-
}
|
|
26390
|
-
|
|
26391
|
-
static create(): MessageInfo {
|
|
26392
|
-
var _ptr = Module._malloc(8);
|
|
26393
|
-
Module.ccall(
|
|
26394
|
-
"csp_multiplayer_MessageInfo_Ctor",
|
|
26395
|
-
"void",
|
|
26396
|
-
["number"],
|
|
26397
|
-
[_ptr],
|
|
26398
|
-
);
|
|
26399
|
-
var _nPtr = getNativePointer(_ptr);
|
|
26400
|
-
|
|
26401
|
-
return new MessageInfo(_nPtr);
|
|
26402
|
-
}
|
|
26403
|
-
|
|
26404
|
-
static create_conversationId_isConversation_message(
|
|
26405
|
-
conversationId: string,
|
|
26406
|
-
isConversation: boolean,
|
|
26407
|
-
message: string,
|
|
26408
|
-
): MessageInfo {
|
|
26409
|
-
var _ptr = Module._malloc(8);
|
|
26410
|
-
Module.ccall(
|
|
26411
|
-
"csp_multiplayer_MessageInfo_Ctor_StringRC_bool_StringRC",
|
|
25746
|
+
"csp_multiplayer_MessageInfo_Ctor_StringRC_bool_StringRC",
|
|
26412
25747
|
"void",
|
|
26413
25748
|
["number", "string", "boolean", "string"],
|
|
26414
25749
|
[_ptr, conversationId, isConversation, message],
|
|
@@ -26451,6 +25786,8 @@ export namespace Multiplayer {
|
|
|
26451
25786
|
return new MessageInfo(_nPtr);
|
|
26452
25787
|
}
|
|
26453
25788
|
|
|
25789
|
+
// operator=
|
|
25790
|
+
|
|
26454
25791
|
delete(): void {
|
|
26455
25792
|
if (this.ownsPointer && !this.disposed) {
|
|
26456
25793
|
Module.ccall(
|
|
@@ -26822,6 +26159,8 @@ export namespace Multiplayer {
|
|
|
26822
26159
|
return new AnnotationData(_nPtr);
|
|
26823
26160
|
}
|
|
26824
26161
|
|
|
26162
|
+
// operator=
|
|
26163
|
+
|
|
26825
26164
|
delete(): void {
|
|
26826
26165
|
if (this.ownsPointer && !this.disposed) {
|
|
26827
26166
|
Module.ccall(
|
|
@@ -27386,6 +26725,304 @@ export namespace Systems {
|
|
|
27386
26725
|
}
|
|
27387
26726
|
}
|
|
27388
26727
|
|
|
26728
|
+
export namespace Systems {
|
|
26729
|
+
/**
|
|
26730
|
+
@ingroup Status System
|
|
26731
|
+
* @description Stores the version and deprecation information for a service
|
|
26732
|
+
*/
|
|
26733
|
+
export class VersionMetadata
|
|
26734
|
+
extends NativeClassWrapper
|
|
26735
|
+
implements INativeResource
|
|
26736
|
+
{
|
|
26737
|
+
/** @internal */
|
|
26738
|
+
constructor(pointer: NativePointer) {
|
|
26739
|
+
super(pointer);
|
|
26740
|
+
}
|
|
26741
|
+
|
|
26742
|
+
static create(): VersionMetadata {
|
|
26743
|
+
var _ptr = Module._malloc(8);
|
|
26744
|
+
Module.ccall(
|
|
26745
|
+
"csp_systems_VersionMetadata_Ctor",
|
|
26746
|
+
"void",
|
|
26747
|
+
["number"],
|
|
26748
|
+
[_ptr],
|
|
26749
|
+
);
|
|
26750
|
+
var _nPtr = getNativePointer(_ptr);
|
|
26751
|
+
|
|
26752
|
+
return new VersionMetadata(_nPtr);
|
|
26753
|
+
}
|
|
26754
|
+
|
|
26755
|
+
delete(): void {
|
|
26756
|
+
if (this.ownsPointer && !this.disposed) {
|
|
26757
|
+
Module.ccall(
|
|
26758
|
+
"csp_systems_VersionMetadata_Dtor",
|
|
26759
|
+
"void",
|
|
26760
|
+
["number"],
|
|
26761
|
+
[this.pointer],
|
|
26762
|
+
);
|
|
26763
|
+
|
|
26764
|
+
this.disposed = true;
|
|
26765
|
+
}
|
|
26766
|
+
}
|
|
26767
|
+
|
|
26768
|
+
get version(): string {
|
|
26769
|
+
let _result = Module.ccall(
|
|
26770
|
+
"csp_systems_VersionMetadata__Get_Version",
|
|
26771
|
+
"string",
|
|
26772
|
+
["number"],
|
|
26773
|
+
[this.pointer],
|
|
26774
|
+
);
|
|
26775
|
+
|
|
26776
|
+
return _result;
|
|
26777
|
+
}
|
|
26778
|
+
|
|
26779
|
+
set version(value: string) {
|
|
26780
|
+
Module.ccall(
|
|
26781
|
+
"csp_systems_VersionMetadata__Set_Version",
|
|
26782
|
+
"void",
|
|
26783
|
+
["number", "string"],
|
|
26784
|
+
[this.pointer, value],
|
|
26785
|
+
);
|
|
26786
|
+
}
|
|
26787
|
+
|
|
26788
|
+
get deprecationDatetime(): string {
|
|
26789
|
+
let _result = Module.ccall(
|
|
26790
|
+
"csp_systems_VersionMetadata__Get_DeprecationDatetime",
|
|
26791
|
+
"string",
|
|
26792
|
+
["number"],
|
|
26793
|
+
[this.pointer],
|
|
26794
|
+
);
|
|
26795
|
+
|
|
26796
|
+
return _result;
|
|
26797
|
+
}
|
|
26798
|
+
|
|
26799
|
+
set deprecationDatetime(value: string) {
|
|
26800
|
+
Module.ccall(
|
|
26801
|
+
"csp_systems_VersionMetadata__Set_DeprecationDatetime",
|
|
26802
|
+
"void",
|
|
26803
|
+
["number", "string"],
|
|
26804
|
+
[this.pointer, value],
|
|
26805
|
+
);
|
|
26806
|
+
}
|
|
26807
|
+
}
|
|
26808
|
+
}
|
|
26809
|
+
|
|
26810
|
+
export namespace Systems {
|
|
26811
|
+
/**
|
|
26812
|
+
@ingroup Status System
|
|
26813
|
+
* @description Stores information about a service, including available versions
|
|
26814
|
+
*/
|
|
26815
|
+
export class ServiceStatus
|
|
26816
|
+
extends NativeClassWrapper
|
|
26817
|
+
implements INativeResource
|
|
26818
|
+
{
|
|
26819
|
+
/** @internal */
|
|
26820
|
+
constructor(pointer: NativePointer) {
|
|
26821
|
+
super(pointer);
|
|
26822
|
+
}
|
|
26823
|
+
|
|
26824
|
+
static create(): ServiceStatus {
|
|
26825
|
+
var _ptr = Module._malloc(8);
|
|
26826
|
+
Module.ccall(
|
|
26827
|
+
"csp_systems_ServiceStatus_Ctor",
|
|
26828
|
+
"void",
|
|
26829
|
+
["number"],
|
|
26830
|
+
[_ptr],
|
|
26831
|
+
);
|
|
26832
|
+
var _nPtr = getNativePointer(_ptr);
|
|
26833
|
+
|
|
26834
|
+
return new ServiceStatus(_nPtr);
|
|
26835
|
+
}
|
|
26836
|
+
|
|
26837
|
+
delete(): void {
|
|
26838
|
+
if (this.ownsPointer && !this.disposed) {
|
|
26839
|
+
Module.ccall(
|
|
26840
|
+
"csp_systems_ServiceStatus_Dtor",
|
|
26841
|
+
"void",
|
|
26842
|
+
["number"],
|
|
26843
|
+
[this.pointer],
|
|
26844
|
+
);
|
|
26845
|
+
|
|
26846
|
+
this.disposed = true;
|
|
26847
|
+
}
|
|
26848
|
+
}
|
|
26849
|
+
|
|
26850
|
+
get reverseProxy(): string {
|
|
26851
|
+
let _result = Module.ccall(
|
|
26852
|
+
"csp_systems_ServiceStatus__Get_ReverseProxy",
|
|
26853
|
+
"string",
|
|
26854
|
+
["number"],
|
|
26855
|
+
[this.pointer],
|
|
26856
|
+
);
|
|
26857
|
+
|
|
26858
|
+
return _result;
|
|
26859
|
+
}
|
|
26860
|
+
|
|
26861
|
+
set reverseProxy(value: string) {
|
|
26862
|
+
Module.ccall(
|
|
26863
|
+
"csp_systems_ServiceStatus__Set_ReverseProxy",
|
|
26864
|
+
"void",
|
|
26865
|
+
["number", "string"],
|
|
26866
|
+
[this.pointer, value],
|
|
26867
|
+
);
|
|
26868
|
+
}
|
|
26869
|
+
|
|
26870
|
+
get name(): string {
|
|
26871
|
+
let _result = Module.ccall(
|
|
26872
|
+
"csp_systems_ServiceStatus__Get_Name",
|
|
26873
|
+
"string",
|
|
26874
|
+
["number"],
|
|
26875
|
+
[this.pointer],
|
|
26876
|
+
);
|
|
26877
|
+
|
|
26878
|
+
return _result;
|
|
26879
|
+
}
|
|
26880
|
+
|
|
26881
|
+
set name(value: string) {
|
|
26882
|
+
Module.ccall(
|
|
26883
|
+
"csp_systems_ServiceStatus__Set_Name",
|
|
26884
|
+
"void",
|
|
26885
|
+
["number", "string"],
|
|
26886
|
+
[this.pointer, value],
|
|
26887
|
+
);
|
|
26888
|
+
}
|
|
26889
|
+
|
|
26890
|
+
get apiVersions(): Common.Array<Systems.VersionMetadata> {
|
|
26891
|
+
const _ptr = Module._malloc(8);
|
|
26892
|
+
Module.ccall(
|
|
26893
|
+
"csp_systems_ServiceStatus__Get_ApiVersions",
|
|
26894
|
+
"void",
|
|
26895
|
+
["number", "number"],
|
|
26896
|
+
[_ptr, this.pointer],
|
|
26897
|
+
);
|
|
26898
|
+
|
|
26899
|
+
const _nPtr = getNativePointer(_ptr);
|
|
26900
|
+
return new Common.Array<Systems.VersionMetadata>(
|
|
26901
|
+
_nPtr,
|
|
26902
|
+
csp_systems_VersionMetadataFactory,
|
|
26903
|
+
"csp_systems_VersionMetadata",
|
|
26904
|
+
);
|
|
26905
|
+
}
|
|
26906
|
+
|
|
26907
|
+
set apiVersions(value: Common.Array<Systems.VersionMetadata>) {
|
|
26908
|
+
Module.ccall(
|
|
26909
|
+
"csp_systems_ServiceStatus__Set_ApiVersions",
|
|
26910
|
+
"void",
|
|
26911
|
+
["number", "number"],
|
|
26912
|
+
[this.pointer, value.pointer],
|
|
26913
|
+
);
|
|
26914
|
+
}
|
|
26915
|
+
|
|
26916
|
+
get currentApiVersion(): string {
|
|
26917
|
+
let _result = Module.ccall(
|
|
26918
|
+
"csp_systems_ServiceStatus__Get_CurrentApiVersion",
|
|
26919
|
+
"string",
|
|
26920
|
+
["number"],
|
|
26921
|
+
[this.pointer],
|
|
26922
|
+
);
|
|
26923
|
+
|
|
26924
|
+
return _result;
|
|
26925
|
+
}
|
|
26926
|
+
|
|
26927
|
+
set currentApiVersion(value: string) {
|
|
26928
|
+
Module.ccall(
|
|
26929
|
+
"csp_systems_ServiceStatus__Set_CurrentApiVersion",
|
|
26930
|
+
"void",
|
|
26931
|
+
["number", "string"],
|
|
26932
|
+
[this.pointer, value],
|
|
26933
|
+
);
|
|
26934
|
+
}
|
|
26935
|
+
}
|
|
26936
|
+
}
|
|
26937
|
+
|
|
26938
|
+
export namespace Systems {
|
|
26939
|
+
/**
|
|
26940
|
+
@ingroup Status System
|
|
26941
|
+
* @description Store information about the current service deployment
|
|
26942
|
+
*/
|
|
26943
|
+
export class ServicesDeploymentStatus
|
|
26944
|
+
extends NativeClassWrapper
|
|
26945
|
+
implements INativeResource
|
|
26946
|
+
{
|
|
26947
|
+
/** @internal */
|
|
26948
|
+
constructor(pointer: NativePointer) {
|
|
26949
|
+
super(pointer);
|
|
26950
|
+
}
|
|
26951
|
+
|
|
26952
|
+
static create(): ServicesDeploymentStatus {
|
|
26953
|
+
var _ptr = Module._malloc(8);
|
|
26954
|
+
Module.ccall(
|
|
26955
|
+
"csp_systems_ServicesDeploymentStatus_Ctor",
|
|
26956
|
+
"void",
|
|
26957
|
+
["number"],
|
|
26958
|
+
[_ptr],
|
|
26959
|
+
);
|
|
26960
|
+
var _nPtr = getNativePointer(_ptr);
|
|
26961
|
+
|
|
26962
|
+
return new ServicesDeploymentStatus(_nPtr);
|
|
26963
|
+
}
|
|
26964
|
+
|
|
26965
|
+
delete(): void {
|
|
26966
|
+
if (this.ownsPointer && !this.disposed) {
|
|
26967
|
+
Module.ccall(
|
|
26968
|
+
"csp_systems_ServicesDeploymentStatus_Dtor",
|
|
26969
|
+
"void",
|
|
26970
|
+
["number"],
|
|
26971
|
+
[this.pointer],
|
|
26972
|
+
);
|
|
26973
|
+
|
|
26974
|
+
this.disposed = true;
|
|
26975
|
+
}
|
|
26976
|
+
}
|
|
26977
|
+
|
|
26978
|
+
get version(): string {
|
|
26979
|
+
let _result = Module.ccall(
|
|
26980
|
+
"csp_systems_ServicesDeploymentStatus__Get_Version",
|
|
26981
|
+
"string",
|
|
26982
|
+
["number"],
|
|
26983
|
+
[this.pointer],
|
|
26984
|
+
);
|
|
26985
|
+
|
|
26986
|
+
return _result;
|
|
26987
|
+
}
|
|
26988
|
+
|
|
26989
|
+
set version(value: string) {
|
|
26990
|
+
Module.ccall(
|
|
26991
|
+
"csp_systems_ServicesDeploymentStatus__Set_Version",
|
|
26992
|
+
"void",
|
|
26993
|
+
["number", "string"],
|
|
26994
|
+
[this.pointer, value],
|
|
26995
|
+
);
|
|
26996
|
+
}
|
|
26997
|
+
|
|
26998
|
+
get services(): Common.Array<Systems.ServiceStatus> {
|
|
26999
|
+
const _ptr = Module._malloc(8);
|
|
27000
|
+
Module.ccall(
|
|
27001
|
+
"csp_systems_ServicesDeploymentStatus__Get_Services",
|
|
27002
|
+
"void",
|
|
27003
|
+
["number", "number"],
|
|
27004
|
+
[_ptr, this.pointer],
|
|
27005
|
+
);
|
|
27006
|
+
|
|
27007
|
+
const _nPtr = getNativePointer(_ptr);
|
|
27008
|
+
return new Common.Array<Systems.ServiceStatus>(
|
|
27009
|
+
_nPtr,
|
|
27010
|
+
csp_systems_ServiceStatusFactory,
|
|
27011
|
+
"csp_systems_ServiceStatus",
|
|
27012
|
+
);
|
|
27013
|
+
}
|
|
27014
|
+
|
|
27015
|
+
set services(value: Common.Array<Systems.ServiceStatus>) {
|
|
27016
|
+
Module.ccall(
|
|
27017
|
+
"csp_systems_ServicesDeploymentStatus__Set_Services",
|
|
27018
|
+
"void",
|
|
27019
|
+
["number", "number"],
|
|
27020
|
+
[this.pointer, value.pointer],
|
|
27021
|
+
);
|
|
27022
|
+
}
|
|
27023
|
+
}
|
|
27024
|
+
}
|
|
27025
|
+
|
|
27389
27026
|
export namespace Systems {
|
|
27390
27027
|
/**
|
|
27391
27028
|
* @description Base class for all Connected Spaces Platform Systems, which enforces passing of a WebClient or NetworkEventBus instance in the constructor
|
|
@@ -27615,6 +27252,26 @@ export namespace Systems {
|
|
|
27615
27252
|
return _nPtr;
|
|
27616
27253
|
}
|
|
27617
27254
|
|
|
27255
|
+
/**
|
|
27256
|
+
* @description Retrieves the Application Settings system.
|
|
27257
|
+
* @return Pointer to the application settings system class
|
|
27258
|
+
*/
|
|
27259
|
+
|
|
27260
|
+
getApplicationSettingsSystem(): Systems.ApplicationSettingsSystem {
|
|
27261
|
+
var _ret = Module._malloc(8);
|
|
27262
|
+
|
|
27263
|
+
Module.ccall(
|
|
27264
|
+
"csp_systems_SystemsManager_GetApplicationSettingsSystem_ApplicationSettingsSystemP",
|
|
27265
|
+
"void",
|
|
27266
|
+
["number", "number"],
|
|
27267
|
+
[_ret, this.pointer],
|
|
27268
|
+
);
|
|
27269
|
+
var _nPtr = new Systems.ApplicationSettingsSystem(getNativePointer(_ret));
|
|
27270
|
+
Module._free(_ret);
|
|
27271
|
+
|
|
27272
|
+
return _nPtr;
|
|
27273
|
+
}
|
|
27274
|
+
|
|
27618
27275
|
/**
|
|
27619
27276
|
* @description Retrieves the Settings system.
|
|
27620
27277
|
* @return Pointer to the settings system class
|
|
@@ -27795,46 +27452,46 @@ export namespace Systems {
|
|
|
27795
27452
|
return _nPtr;
|
|
27796
27453
|
}
|
|
27797
27454
|
|
|
27798
|
-
|
|
27455
|
+
getMultiplayerConnection(): Multiplayer.MultiplayerConnection {
|
|
27799
27456
|
var _ret = Module._malloc(8);
|
|
27800
27457
|
|
|
27801
27458
|
Module.ccall(
|
|
27802
|
-
"
|
|
27459
|
+
"csp_systems_SystemsManager_GetMultiplayerConnection_MultiplayerConnectionP",
|
|
27803
27460
|
"void",
|
|
27804
27461
|
["number", "number"],
|
|
27805
27462
|
[_ret, this.pointer],
|
|
27806
27463
|
);
|
|
27807
|
-
var _nPtr = new Multiplayer.
|
|
27464
|
+
var _nPtr = new Multiplayer.MultiplayerConnection(getNativePointer(_ret));
|
|
27808
27465
|
Module._free(_ret);
|
|
27809
27466
|
|
|
27810
27467
|
return _nPtr;
|
|
27811
27468
|
}
|
|
27812
27469
|
|
|
27813
|
-
|
|
27470
|
+
getEventBus(): Multiplayer.NetworkEventBus {
|
|
27814
27471
|
var _ret = Module._malloc(8);
|
|
27815
27472
|
|
|
27816
27473
|
Module.ccall(
|
|
27817
|
-
"
|
|
27474
|
+
"csp_systems_SystemsManager_GetEventBus_NetworkEventBusP",
|
|
27818
27475
|
"void",
|
|
27819
27476
|
["number", "number"],
|
|
27820
27477
|
[_ret, this.pointer],
|
|
27821
27478
|
);
|
|
27822
|
-
var _nPtr = new Multiplayer.
|
|
27479
|
+
var _nPtr = new Multiplayer.NetworkEventBus(getNativePointer(_ret));
|
|
27823
27480
|
Module._free(_ret);
|
|
27824
27481
|
|
|
27825
27482
|
return _nPtr;
|
|
27826
27483
|
}
|
|
27827
27484
|
|
|
27828
|
-
|
|
27485
|
+
makeOnlineRealtimeEngine(): Multiplayer.OnlineRealtimeEngine {
|
|
27829
27486
|
var _ret = Module._malloc(8);
|
|
27830
27487
|
|
|
27831
27488
|
Module.ccall(
|
|
27832
|
-
"
|
|
27489
|
+
"csp_systems_SystemsManager_MakeOnlineRealtimeEngine_OnlineRealtimeEngineP",
|
|
27833
27490
|
"void",
|
|
27834
27491
|
["number", "number"],
|
|
27835
27492
|
[_ret, this.pointer],
|
|
27836
27493
|
);
|
|
27837
|
-
var _nPtr = new Multiplayer.
|
|
27494
|
+
var _nPtr = new Multiplayer.OnlineRealtimeEngine(getNativePointer(_ret));
|
|
27838
27495
|
Module._free(_ret);
|
|
27839
27496
|
|
|
27840
27497
|
return _nPtr;
|
|
@@ -28244,6 +27901,8 @@ export namespace Systems {
|
|
|
28244
27901
|
return new Asset(_nPtr);
|
|
28245
27902
|
}
|
|
28246
27903
|
|
|
27904
|
+
// operator=
|
|
27905
|
+
|
|
28247
27906
|
delete(): void {
|
|
28248
27907
|
if (this.ownsPointer && !this.disposed) {
|
|
28249
27908
|
Module.ccall(
|
|
@@ -32146,6 +31805,136 @@ export namespace Systems {
|
|
|
32146
31805
|
}
|
|
32147
31806
|
}
|
|
32148
31807
|
|
|
31808
|
+
export namespace Systems {
|
|
31809
|
+
/**
|
|
31810
|
+
@ingroup Application Settings System
|
|
31811
|
+
* @description Represents configuration settings for an application context.
|
|
31812
|
+
*/
|
|
31813
|
+
export class ApplicationSettings
|
|
31814
|
+
extends NativeClassWrapper
|
|
31815
|
+
implements INativeResource
|
|
31816
|
+
{
|
|
31817
|
+
/** @internal */
|
|
31818
|
+
constructor(pointer: NativePointer) {
|
|
31819
|
+
super(pointer);
|
|
31820
|
+
}
|
|
31821
|
+
|
|
31822
|
+
static create(): ApplicationSettings {
|
|
31823
|
+
var _ptr = Module._malloc(8);
|
|
31824
|
+
Module.ccall(
|
|
31825
|
+
"csp_systems_ApplicationSettings_Ctor",
|
|
31826
|
+
"void",
|
|
31827
|
+
["number"],
|
|
31828
|
+
[_ptr],
|
|
31829
|
+
);
|
|
31830
|
+
var _nPtr = getNativePointer(_ptr);
|
|
31831
|
+
|
|
31832
|
+
return new ApplicationSettings(_nPtr);
|
|
31833
|
+
}
|
|
31834
|
+
|
|
31835
|
+
delete(): void {
|
|
31836
|
+
if (this.ownsPointer && !this.disposed) {
|
|
31837
|
+
Module.ccall(
|
|
31838
|
+
"csp_systems_ApplicationSettings_Dtor",
|
|
31839
|
+
"void",
|
|
31840
|
+
["number"],
|
|
31841
|
+
[this.pointer],
|
|
31842
|
+
);
|
|
31843
|
+
|
|
31844
|
+
this.disposed = true;
|
|
31845
|
+
}
|
|
31846
|
+
}
|
|
31847
|
+
|
|
31848
|
+
get applicationName(): string {
|
|
31849
|
+
let _result = Module.ccall(
|
|
31850
|
+
"csp_systems_ApplicationSettings__Get_ApplicationName",
|
|
31851
|
+
"string",
|
|
31852
|
+
["number"],
|
|
31853
|
+
[this.pointer],
|
|
31854
|
+
);
|
|
31855
|
+
|
|
31856
|
+
return _result;
|
|
31857
|
+
}
|
|
31858
|
+
|
|
31859
|
+
set applicationName(value: string) {
|
|
31860
|
+
Module.ccall(
|
|
31861
|
+
"csp_systems_ApplicationSettings__Set_ApplicationName",
|
|
31862
|
+
"void",
|
|
31863
|
+
["number", "string"],
|
|
31864
|
+
[this.pointer, value],
|
|
31865
|
+
);
|
|
31866
|
+
}
|
|
31867
|
+
|
|
31868
|
+
get context(): string {
|
|
31869
|
+
let _result = Module.ccall(
|
|
31870
|
+
"csp_systems_ApplicationSettings__Get_Context",
|
|
31871
|
+
"string",
|
|
31872
|
+
["number"],
|
|
31873
|
+
[this.pointer],
|
|
31874
|
+
);
|
|
31875
|
+
|
|
31876
|
+
return _result;
|
|
31877
|
+
}
|
|
31878
|
+
|
|
31879
|
+
set context(value: string) {
|
|
31880
|
+
Module.ccall(
|
|
31881
|
+
"csp_systems_ApplicationSettings__Set_Context",
|
|
31882
|
+
"void",
|
|
31883
|
+
["number", "string"],
|
|
31884
|
+
[this.pointer, value],
|
|
31885
|
+
);
|
|
31886
|
+
}
|
|
31887
|
+
|
|
31888
|
+
get allowAnonymous(): boolean {
|
|
31889
|
+
let _result = Module.ccall(
|
|
31890
|
+
"csp_systems_ApplicationSettings__Get_AllowAnonymous",
|
|
31891
|
+
"boolean",
|
|
31892
|
+
["number"],
|
|
31893
|
+
[this.pointer],
|
|
31894
|
+
);
|
|
31895
|
+
|
|
31896
|
+
return _result;
|
|
31897
|
+
}
|
|
31898
|
+
|
|
31899
|
+
set allowAnonymous(value: boolean) {
|
|
31900
|
+
Module.ccall(
|
|
31901
|
+
"csp_systems_ApplicationSettings__Set_AllowAnonymous",
|
|
31902
|
+
"void",
|
|
31903
|
+
["number", "boolean"],
|
|
31904
|
+
[this.pointer, value],
|
|
31905
|
+
);
|
|
31906
|
+
}
|
|
31907
|
+
|
|
31908
|
+
get settings(): Common.Map<string, string> {
|
|
31909
|
+
const _ptr = Module._malloc(8);
|
|
31910
|
+
Module.ccall(
|
|
31911
|
+
"csp_systems_ApplicationSettings__Get_Settings",
|
|
31912
|
+
"void",
|
|
31913
|
+
["number", "number"],
|
|
31914
|
+
[_ptr, this.pointer],
|
|
31915
|
+
);
|
|
31916
|
+
|
|
31917
|
+
const _nPtr = getNativePointer(_ptr);
|
|
31918
|
+
return new Common.Map<string, string>(
|
|
31919
|
+
_nPtr,
|
|
31920
|
+
StringFactory,
|
|
31921
|
+
"String",
|
|
31922
|
+
StringFactory,
|
|
31923
|
+
"String",
|
|
31924
|
+
);
|
|
31925
|
+
}
|
|
31926
|
+
|
|
31927
|
+
set settings(value: Common.Map<string, string>) {
|
|
31928
|
+
Module.ccall(
|
|
31929
|
+
"csp_systems_ApplicationSettings__Set_Settings",
|
|
31930
|
+
"void",
|
|
31931
|
+
["number", "number"],
|
|
31932
|
+
[this.pointer, value.pointer],
|
|
31933
|
+
);
|
|
31934
|
+
}
|
|
31935
|
+
}
|
|
31936
|
+
}
|
|
31937
|
+
|
|
32149
31938
|
export namespace Systems {
|
|
32150
31939
|
/**
|
|
32151
31940
|
@ingroup Settings System
|
|
@@ -32698,6 +32487,8 @@ export namespace Systems {
|
|
|
32698
32487
|
return new UserRoleInfo(_nPtr);
|
|
32699
32488
|
}
|
|
32700
32489
|
|
|
32490
|
+
// operator=
|
|
32491
|
+
|
|
32701
32492
|
delete(): void {
|
|
32702
32493
|
if (this.ownsPointer && !this.disposed) {
|
|
32703
32494
|
Module.ccall(
|
|
@@ -32793,6 +32584,8 @@ export namespace Systems {
|
|
|
32793
32584
|
return new InviteUserRoleInfo(_nPtr);
|
|
32794
32585
|
}
|
|
32795
32586
|
|
|
32587
|
+
// operator=
|
|
32588
|
+
|
|
32796
32589
|
delete(): void {
|
|
32797
32590
|
if (this.ownsPointer && !this.disposed) {
|
|
32798
32591
|
Module.ccall(
|
|
@@ -32890,6 +32683,8 @@ export namespace Systems {
|
|
|
32890
32683
|
return new InviteUserRoleInfoCollection(_nPtr);
|
|
32891
32684
|
}
|
|
32892
32685
|
|
|
32686
|
+
// operator=
|
|
32687
|
+
|
|
32893
32688
|
delete(): void {
|
|
32894
32689
|
if (this.ownsPointer && !this.disposed) {
|
|
32895
32690
|
Module.ccall(
|
|
@@ -34842,17 +34637,401 @@ export namespace Systems {
|
|
|
34842
34637
|
["number"],
|
|
34843
34638
|
[this.pointer],
|
|
34844
34639
|
);
|
|
34845
|
-
|
|
34846
|
-
return _result;
|
|
34640
|
+
|
|
34641
|
+
return _result;
|
|
34642
|
+
}
|
|
34643
|
+
}
|
|
34644
|
+
}
|
|
34645
|
+
|
|
34646
|
+
export namespace Common {
|
|
34647
|
+
/**
|
|
34648
|
+
* @description Describes the changes an asset has undergone when the client application is connected to a space.
|
|
34649
|
+
*/
|
|
34650
|
+
export class AssetDetailBlobChangedNetworkEventData
|
|
34651
|
+
extends Common.NetworkEventData
|
|
34652
|
+
implements INativeResource
|
|
34653
|
+
{
|
|
34654
|
+
/** @internal */
|
|
34655
|
+
constructor(pointer: NativePointer) {
|
|
34656
|
+
super(pointer);
|
|
34657
|
+
}
|
|
34658
|
+
|
|
34659
|
+
static fromNetworkEventData(
|
|
34660
|
+
baseInstance: Common.NetworkEventData,
|
|
34661
|
+
): Common.AssetDetailBlobChangedNetworkEventData {
|
|
34662
|
+
const nativeClassWrapper = baseInstance as unknown as NativeClassWrapper;
|
|
34663
|
+
return new Common.AssetDetailBlobChangedNetworkEventData(
|
|
34664
|
+
new NativePointer(
|
|
34665
|
+
nativeClassWrapper.pointer,
|
|
34666
|
+
nativeClassWrapper.ownsPointer,
|
|
34667
|
+
),
|
|
34668
|
+
);
|
|
34669
|
+
}
|
|
34670
|
+
|
|
34671
|
+
static create(): AssetDetailBlobChangedNetworkEventData {
|
|
34672
|
+
var _ptr = Module._malloc(8);
|
|
34673
|
+
Module.ccall(
|
|
34674
|
+
"csp_common_AssetDetailBlobChangedNetworkEventData_Ctor",
|
|
34675
|
+
"void",
|
|
34676
|
+
["number"],
|
|
34677
|
+
[_ptr],
|
|
34678
|
+
);
|
|
34679
|
+
var _nPtr = getNativePointer(_ptr);
|
|
34680
|
+
|
|
34681
|
+
return new AssetDetailBlobChangedNetworkEventData(_nPtr);
|
|
34682
|
+
}
|
|
34683
|
+
|
|
34684
|
+
delete(): void {
|
|
34685
|
+
if (this.ownsPointer && !this.disposed) {
|
|
34686
|
+
Module.ccall(
|
|
34687
|
+
"csp_common_AssetDetailBlobChangedNetworkEventData_Dtor",
|
|
34688
|
+
"void",
|
|
34689
|
+
["number"],
|
|
34690
|
+
[this.pointer],
|
|
34691
|
+
);
|
|
34692
|
+
|
|
34693
|
+
this.disposed = true;
|
|
34694
|
+
}
|
|
34695
|
+
}
|
|
34696
|
+
|
|
34697
|
+
get changeType(): Common.EAssetChangeType {
|
|
34698
|
+
let _result = Module.ccall(
|
|
34699
|
+
"csp_common_AssetDetailBlobChangedNetworkEventData__Get_ChangeType",
|
|
34700
|
+
"number",
|
|
34701
|
+
["number"],
|
|
34702
|
+
[this.pointer],
|
|
34703
|
+
);
|
|
34704
|
+
|
|
34705
|
+
return _result;
|
|
34706
|
+
}
|
|
34707
|
+
|
|
34708
|
+
set changeType(value: Common.EAssetChangeType) {
|
|
34709
|
+
Module.ccall(
|
|
34710
|
+
"csp_common_AssetDetailBlobChangedNetworkEventData__Set_ChangeType",
|
|
34711
|
+
"void",
|
|
34712
|
+
["number", "number"],
|
|
34713
|
+
[this.pointer, value],
|
|
34714
|
+
);
|
|
34715
|
+
}
|
|
34716
|
+
|
|
34717
|
+
get assetId(): string {
|
|
34718
|
+
let _result = Module.ccall(
|
|
34719
|
+
"csp_common_AssetDetailBlobChangedNetworkEventData__Get_AssetId",
|
|
34720
|
+
"string",
|
|
34721
|
+
["number"],
|
|
34722
|
+
[this.pointer],
|
|
34723
|
+
);
|
|
34724
|
+
|
|
34725
|
+
return _result;
|
|
34726
|
+
}
|
|
34727
|
+
|
|
34728
|
+
set assetId(value: string) {
|
|
34729
|
+
Module.ccall(
|
|
34730
|
+
"csp_common_AssetDetailBlobChangedNetworkEventData__Set_AssetId",
|
|
34731
|
+
"void",
|
|
34732
|
+
["number", "string"],
|
|
34733
|
+
[this.pointer, value],
|
|
34734
|
+
);
|
|
34735
|
+
}
|
|
34736
|
+
|
|
34737
|
+
get version(): string {
|
|
34738
|
+
let _result = Module.ccall(
|
|
34739
|
+
"csp_common_AssetDetailBlobChangedNetworkEventData__Get_Version",
|
|
34740
|
+
"string",
|
|
34741
|
+
["number"],
|
|
34742
|
+
[this.pointer],
|
|
34743
|
+
);
|
|
34744
|
+
|
|
34745
|
+
return _result;
|
|
34746
|
+
}
|
|
34747
|
+
|
|
34748
|
+
set version(value: string) {
|
|
34749
|
+
Module.ccall(
|
|
34750
|
+
"csp_common_AssetDetailBlobChangedNetworkEventData__Set_Version",
|
|
34751
|
+
"void",
|
|
34752
|
+
["number", "string"],
|
|
34753
|
+
[this.pointer, value],
|
|
34754
|
+
);
|
|
34755
|
+
}
|
|
34756
|
+
|
|
34757
|
+
get assetType(): Systems.EAssetType {
|
|
34758
|
+
let _result = Module.ccall(
|
|
34759
|
+
"csp_common_AssetDetailBlobChangedNetworkEventData__Get_AssetType",
|
|
34760
|
+
"number",
|
|
34761
|
+
["number"],
|
|
34762
|
+
[this.pointer],
|
|
34763
|
+
);
|
|
34764
|
+
|
|
34765
|
+
return _result;
|
|
34766
|
+
}
|
|
34767
|
+
|
|
34768
|
+
set assetType(value: Systems.EAssetType) {
|
|
34769
|
+
Module.ccall(
|
|
34770
|
+
"csp_common_AssetDetailBlobChangedNetworkEventData__Set_AssetType",
|
|
34771
|
+
"void",
|
|
34772
|
+
["number", "number"],
|
|
34773
|
+
[this.pointer, value],
|
|
34774
|
+
);
|
|
34775
|
+
}
|
|
34776
|
+
|
|
34777
|
+
get assetCollectionId(): string {
|
|
34778
|
+
let _result = Module.ccall(
|
|
34779
|
+
"csp_common_AssetDetailBlobChangedNetworkEventData__Get_AssetCollectionId",
|
|
34780
|
+
"string",
|
|
34781
|
+
["number"],
|
|
34782
|
+
[this.pointer],
|
|
34783
|
+
);
|
|
34784
|
+
|
|
34785
|
+
return _result;
|
|
34786
|
+
}
|
|
34787
|
+
|
|
34788
|
+
set assetCollectionId(value: string) {
|
|
34789
|
+
Module.ccall(
|
|
34790
|
+
"csp_common_AssetDetailBlobChangedNetworkEventData__Set_AssetCollectionId",
|
|
34791
|
+
"void",
|
|
34792
|
+
["number", "string"],
|
|
34793
|
+
[this.pointer, value],
|
|
34794
|
+
);
|
|
34795
|
+
}
|
|
34796
|
+
}
|
|
34797
|
+
}
|
|
34798
|
+
|
|
34799
|
+
export namespace Common {
|
|
34800
|
+
/**
|
|
34801
|
+
* @description Class used to provide details of a conversation message that has been received whilst the client application is connected to a space.
|
|
34802
|
+
*/
|
|
34803
|
+
export class ConversationNetworkEventData
|
|
34804
|
+
extends Common.NetworkEventData
|
|
34805
|
+
implements INativeResource
|
|
34806
|
+
{
|
|
34807
|
+
/** @internal */
|
|
34808
|
+
constructor(pointer: NativePointer) {
|
|
34809
|
+
super(pointer);
|
|
34810
|
+
}
|
|
34811
|
+
|
|
34812
|
+
static fromNetworkEventData(
|
|
34813
|
+
baseInstance: Common.NetworkEventData,
|
|
34814
|
+
): Common.ConversationNetworkEventData {
|
|
34815
|
+
const nativeClassWrapper = baseInstance as unknown as NativeClassWrapper;
|
|
34816
|
+
return new Common.ConversationNetworkEventData(
|
|
34817
|
+
new NativePointer(
|
|
34818
|
+
nativeClassWrapper.pointer,
|
|
34819
|
+
nativeClassWrapper.ownsPointer,
|
|
34820
|
+
),
|
|
34821
|
+
);
|
|
34822
|
+
}
|
|
34823
|
+
|
|
34824
|
+
static create(): ConversationNetworkEventData {
|
|
34825
|
+
var _ptr = Module._malloc(8);
|
|
34826
|
+
Module.ccall(
|
|
34827
|
+
"csp_common_ConversationNetworkEventData_Ctor",
|
|
34828
|
+
"void",
|
|
34829
|
+
["number"],
|
|
34830
|
+
[_ptr],
|
|
34831
|
+
);
|
|
34832
|
+
var _nPtr = getNativePointer(_ptr);
|
|
34833
|
+
|
|
34834
|
+
return new ConversationNetworkEventData(_nPtr);
|
|
34835
|
+
}
|
|
34836
|
+
|
|
34837
|
+
delete(): void {
|
|
34838
|
+
if (this.ownsPointer && !this.disposed) {
|
|
34839
|
+
Module.ccall(
|
|
34840
|
+
"csp_common_ConversationNetworkEventData_Dtor",
|
|
34841
|
+
"void",
|
|
34842
|
+
["number"],
|
|
34843
|
+
[this.pointer],
|
|
34844
|
+
);
|
|
34845
|
+
|
|
34846
|
+
this.disposed = true;
|
|
34847
|
+
}
|
|
34848
|
+
}
|
|
34849
|
+
|
|
34850
|
+
get messageType(): Multiplayer.ConversationEventType {
|
|
34851
|
+
let _result = Module.ccall(
|
|
34852
|
+
"csp_common_ConversationNetworkEventData__Get_MessageType",
|
|
34853
|
+
"number",
|
|
34854
|
+
["number"],
|
|
34855
|
+
[this.pointer],
|
|
34856
|
+
);
|
|
34857
|
+
|
|
34858
|
+
return _result;
|
|
34859
|
+
}
|
|
34860
|
+
|
|
34861
|
+
set messageType(value: Multiplayer.ConversationEventType) {
|
|
34862
|
+
Module.ccall(
|
|
34863
|
+
"csp_common_ConversationNetworkEventData__Set_MessageType",
|
|
34864
|
+
"void",
|
|
34865
|
+
["number", "number"],
|
|
34866
|
+
[this.pointer, value],
|
|
34867
|
+
);
|
|
34868
|
+
}
|
|
34869
|
+
|
|
34870
|
+
get messageInfo(): Multiplayer.MessageInfo {
|
|
34871
|
+
const _ptr = Module._malloc(8);
|
|
34872
|
+
Module.ccall(
|
|
34873
|
+
"csp_common_ConversationNetworkEventData__Get_MessageInfo",
|
|
34874
|
+
"void",
|
|
34875
|
+
["number", "number"],
|
|
34876
|
+
[_ptr, this.pointer],
|
|
34877
|
+
);
|
|
34878
|
+
|
|
34879
|
+
const _nPtr = getNativePointer(_ptr);
|
|
34880
|
+
return new Multiplayer.MessageInfo(_nPtr);
|
|
34881
|
+
}
|
|
34882
|
+
|
|
34883
|
+
set messageInfo(value: Multiplayer.MessageInfo) {
|
|
34884
|
+
Module.ccall(
|
|
34885
|
+
"csp_common_ConversationNetworkEventData__Set_MessageInfo",
|
|
34886
|
+
"void",
|
|
34887
|
+
["number", "number"],
|
|
34888
|
+
[this.pointer, value.pointer],
|
|
34889
|
+
);
|
|
34890
|
+
}
|
|
34891
|
+
}
|
|
34892
|
+
}
|
|
34893
|
+
|
|
34894
|
+
export namespace Common {
|
|
34895
|
+
/**
|
|
34896
|
+
* @description Class used to provide details of a permission change that has happened to a user whilst the client application is connected to a space.
|
|
34897
|
+
*/
|
|
34898
|
+
export class AccessControlChangedNetworkEventData
|
|
34899
|
+
extends Common.NetworkEventData
|
|
34900
|
+
implements INativeResource
|
|
34901
|
+
{
|
|
34902
|
+
/** @internal */
|
|
34903
|
+
constructor(pointer: NativePointer) {
|
|
34904
|
+
super(pointer);
|
|
34905
|
+
}
|
|
34906
|
+
|
|
34907
|
+
static fromNetworkEventData(
|
|
34908
|
+
baseInstance: Common.NetworkEventData,
|
|
34909
|
+
): Common.AccessControlChangedNetworkEventData {
|
|
34910
|
+
const nativeClassWrapper = baseInstance as unknown as NativeClassWrapper;
|
|
34911
|
+
return new Common.AccessControlChangedNetworkEventData(
|
|
34912
|
+
new NativePointer(
|
|
34913
|
+
nativeClassWrapper.pointer,
|
|
34914
|
+
nativeClassWrapper.ownsPointer,
|
|
34915
|
+
),
|
|
34916
|
+
);
|
|
34917
|
+
}
|
|
34918
|
+
|
|
34919
|
+
static create(): AccessControlChangedNetworkEventData {
|
|
34920
|
+
var _ptr = Module._malloc(8);
|
|
34921
|
+
Module.ccall(
|
|
34922
|
+
"csp_common_AccessControlChangedNetworkEventData_Ctor",
|
|
34923
|
+
"void",
|
|
34924
|
+
["number"],
|
|
34925
|
+
[_ptr],
|
|
34926
|
+
);
|
|
34927
|
+
var _nPtr = getNativePointer(_ptr);
|
|
34928
|
+
|
|
34929
|
+
return new AccessControlChangedNetworkEventData(_nPtr);
|
|
34930
|
+
}
|
|
34931
|
+
|
|
34932
|
+
delete(): void {
|
|
34933
|
+
if (this.ownsPointer && !this.disposed) {
|
|
34934
|
+
Module.ccall(
|
|
34935
|
+
"csp_common_AccessControlChangedNetworkEventData_Dtor",
|
|
34936
|
+
"void",
|
|
34937
|
+
["number"],
|
|
34938
|
+
[this.pointer],
|
|
34939
|
+
);
|
|
34940
|
+
|
|
34941
|
+
this.disposed = true;
|
|
34942
|
+
}
|
|
34943
|
+
}
|
|
34944
|
+
|
|
34945
|
+
get spaceId(): string {
|
|
34946
|
+
let _result = Module.ccall(
|
|
34947
|
+
"csp_common_AccessControlChangedNetworkEventData__Get_SpaceId",
|
|
34948
|
+
"string",
|
|
34949
|
+
["number"],
|
|
34950
|
+
[this.pointer],
|
|
34951
|
+
);
|
|
34952
|
+
|
|
34953
|
+
return _result;
|
|
34954
|
+
}
|
|
34955
|
+
|
|
34956
|
+
set spaceId(value: string) {
|
|
34957
|
+
Module.ccall(
|
|
34958
|
+
"csp_common_AccessControlChangedNetworkEventData__Set_SpaceId",
|
|
34959
|
+
"void",
|
|
34960
|
+
["number", "string"],
|
|
34961
|
+
[this.pointer, value],
|
|
34962
|
+
);
|
|
34963
|
+
}
|
|
34964
|
+
|
|
34965
|
+
get userRoles(): Common.Array<Systems.SpaceUserRole> {
|
|
34966
|
+
const _ptr = Module._malloc(8);
|
|
34967
|
+
Module.ccall(
|
|
34968
|
+
"csp_common_AccessControlChangedNetworkEventData__Get_UserRoles",
|
|
34969
|
+
"void",
|
|
34970
|
+
["number", "number"],
|
|
34971
|
+
[_ptr, this.pointer],
|
|
34972
|
+
);
|
|
34973
|
+
|
|
34974
|
+
const _nPtr = getNativePointer(_ptr);
|
|
34975
|
+
return new Common.Array<Systems.SpaceUserRole>(
|
|
34976
|
+
_nPtr,
|
|
34977
|
+
csp_systems_SpaceUserRoleFactory,
|
|
34978
|
+
"csp_systems_SpaceUserRole",
|
|
34979
|
+
);
|
|
34980
|
+
}
|
|
34981
|
+
|
|
34982
|
+
set userRoles(value: Common.Array<Systems.SpaceUserRole>) {
|
|
34983
|
+
Module.ccall(
|
|
34984
|
+
"csp_common_AccessControlChangedNetworkEventData__Set_UserRoles",
|
|
34985
|
+
"void",
|
|
34986
|
+
["number", "number"],
|
|
34987
|
+
[this.pointer, value.pointer],
|
|
34988
|
+
);
|
|
34989
|
+
}
|
|
34990
|
+
|
|
34991
|
+
get changeType(): Common.EPermissionChangeType {
|
|
34992
|
+
let _result = Module.ccall(
|
|
34993
|
+
"csp_common_AccessControlChangedNetworkEventData__Get_ChangeType",
|
|
34994
|
+
"number",
|
|
34995
|
+
["number"],
|
|
34996
|
+
[this.pointer],
|
|
34997
|
+
);
|
|
34998
|
+
|
|
34999
|
+
return _result;
|
|
35000
|
+
}
|
|
35001
|
+
|
|
35002
|
+
set changeType(value: Common.EPermissionChangeType) {
|
|
35003
|
+
Module.ccall(
|
|
35004
|
+
"csp_common_AccessControlChangedNetworkEventData__Set_ChangeType",
|
|
35005
|
+
"void",
|
|
35006
|
+
["number", "number"],
|
|
35007
|
+
[this.pointer, value],
|
|
35008
|
+
);
|
|
35009
|
+
}
|
|
35010
|
+
|
|
35011
|
+
get userId(): string {
|
|
35012
|
+
let _result = Module.ccall(
|
|
35013
|
+
"csp_common_AccessControlChangedNetworkEventData__Get_UserId",
|
|
35014
|
+
"string",
|
|
35015
|
+
["number"],
|
|
35016
|
+
[this.pointer],
|
|
35017
|
+
);
|
|
35018
|
+
|
|
35019
|
+
return _result;
|
|
35020
|
+
}
|
|
35021
|
+
|
|
35022
|
+
set userId(value: string) {
|
|
35023
|
+
Module.ccall(
|
|
35024
|
+
"csp_common_AccessControlChangedNetworkEventData__Set_UserId",
|
|
35025
|
+
"void",
|
|
35026
|
+
["number", "string"],
|
|
35027
|
+
[this.pointer, value],
|
|
35028
|
+
);
|
|
34847
35029
|
}
|
|
34848
35030
|
}
|
|
34849
35031
|
}
|
|
34850
35032
|
|
|
34851
35033
|
export namespace Common {
|
|
34852
|
-
|
|
34853
|
-
* @description Describes the changes an asset has undergone when the client application is connected to a space.
|
|
34854
|
-
*/
|
|
34855
|
-
export class AssetDetailBlobChangedNetworkEventData
|
|
35034
|
+
export class SequenceChangedNetworkEventData
|
|
34856
35035
|
extends Common.NetworkEventData
|
|
34857
35036
|
implements INativeResource
|
|
34858
35037
|
{
|
|
@@ -34863,9 +35042,9 @@ export namespace Common {
|
|
|
34863
35042
|
|
|
34864
35043
|
static fromNetworkEventData(
|
|
34865
35044
|
baseInstance: Common.NetworkEventData,
|
|
34866
|
-
): Common.
|
|
35045
|
+
): Common.SequenceChangedNetworkEventData {
|
|
34867
35046
|
const nativeClassWrapper = baseInstance as unknown as NativeClassWrapper;
|
|
34868
|
-
return new Common.
|
|
35047
|
+
return new Common.SequenceChangedNetworkEventData(
|
|
34869
35048
|
new NativePointer(
|
|
34870
35049
|
nativeClassWrapper.pointer,
|
|
34871
35050
|
nativeClassWrapper.ownsPointer,
|
|
@@ -34873,23 +35052,23 @@ export namespace Common {
|
|
|
34873
35052
|
);
|
|
34874
35053
|
}
|
|
34875
35054
|
|
|
34876
|
-
static create():
|
|
35055
|
+
static create(): SequenceChangedNetworkEventData {
|
|
34877
35056
|
var _ptr = Module._malloc(8);
|
|
34878
35057
|
Module.ccall(
|
|
34879
|
-
"
|
|
35058
|
+
"csp_common_SequenceChangedNetworkEventData_Ctor",
|
|
34880
35059
|
"void",
|
|
34881
35060
|
["number"],
|
|
34882
35061
|
[_ptr],
|
|
34883
35062
|
);
|
|
34884
35063
|
var _nPtr = getNativePointer(_ptr);
|
|
34885
35064
|
|
|
34886
|
-
return new
|
|
35065
|
+
return new SequenceChangedNetworkEventData(_nPtr);
|
|
34887
35066
|
}
|
|
34888
35067
|
|
|
34889
35068
|
delete(): void {
|
|
34890
35069
|
if (this.ownsPointer && !this.disposed) {
|
|
34891
35070
|
Module.ccall(
|
|
34892
|
-
"
|
|
35071
|
+
"csp_common_SequenceChangedNetworkEventData_Dtor",
|
|
34893
35072
|
"void",
|
|
34894
35073
|
["number"],
|
|
34895
35074
|
[this.pointer],
|
|
@@ -34899,9 +35078,9 @@ export namespace Common {
|
|
|
34899
35078
|
}
|
|
34900
35079
|
}
|
|
34901
35080
|
|
|
34902
|
-
get
|
|
35081
|
+
get updateType(): Common.ESequenceUpdateType {
|
|
34903
35082
|
let _result = Module.ccall(
|
|
34904
|
-
"
|
|
35083
|
+
"csp_common_SequenceChangedNetworkEventData__Get_UpdateType",
|
|
34905
35084
|
"number",
|
|
34906
35085
|
["number"],
|
|
34907
35086
|
[this.pointer],
|
|
@@ -34910,18 +35089,18 @@ export namespace Common {
|
|
|
34910
35089
|
return _result;
|
|
34911
35090
|
}
|
|
34912
35091
|
|
|
34913
|
-
set
|
|
35092
|
+
set updateType(value: Common.ESequenceUpdateType) {
|
|
34914
35093
|
Module.ccall(
|
|
34915
|
-
"
|
|
35094
|
+
"csp_common_SequenceChangedNetworkEventData__Set_UpdateType",
|
|
34916
35095
|
"void",
|
|
34917
35096
|
["number", "number"],
|
|
34918
35097
|
[this.pointer, value],
|
|
34919
35098
|
);
|
|
34920
35099
|
}
|
|
34921
35100
|
|
|
34922
|
-
get
|
|
35101
|
+
get key(): string {
|
|
34923
35102
|
let _result = Module.ccall(
|
|
34924
|
-
"
|
|
35103
|
+
"csp_common_SequenceChangedNetworkEventData__Get_Key",
|
|
34925
35104
|
"string",
|
|
34926
35105
|
["number"],
|
|
34927
35106
|
[this.pointer],
|
|
@@ -34930,18 +35109,18 @@ export namespace Common {
|
|
|
34930
35109
|
return _result;
|
|
34931
35110
|
}
|
|
34932
35111
|
|
|
34933
|
-
set
|
|
35112
|
+
set key(value: string) {
|
|
34934
35113
|
Module.ccall(
|
|
34935
|
-
"
|
|
35114
|
+
"csp_common_SequenceChangedNetworkEventData__Set_Key",
|
|
34936
35115
|
"void",
|
|
34937
35116
|
["number", "string"],
|
|
34938
35117
|
[this.pointer, value],
|
|
34939
35118
|
);
|
|
34940
35119
|
}
|
|
34941
35120
|
|
|
34942
|
-
get
|
|
35121
|
+
get newKey(): string {
|
|
34943
35122
|
let _result = Module.ccall(
|
|
34944
|
-
"
|
|
35123
|
+
"csp_common_SequenceChangedNetworkEventData__Get_NewKey",
|
|
34945
35124
|
"string",
|
|
34946
35125
|
["number"],
|
|
34947
35126
|
[this.pointer],
|
|
@@ -34950,63 +35129,49 @@ export namespace Common {
|
|
|
34950
35129
|
return _result;
|
|
34951
35130
|
}
|
|
34952
35131
|
|
|
34953
|
-
set
|
|
35132
|
+
set newKey(value: string) {
|
|
34954
35133
|
Module.ccall(
|
|
34955
|
-
"
|
|
35134
|
+
"csp_common_SequenceChangedNetworkEventData__Set_NewKey",
|
|
34956
35135
|
"void",
|
|
34957
35136
|
["number", "string"],
|
|
34958
35137
|
[this.pointer, value],
|
|
34959
35138
|
);
|
|
34960
35139
|
}
|
|
34961
35140
|
|
|
34962
|
-
get
|
|
34963
|
-
|
|
34964
|
-
"csp_common_AssetDetailBlobChangedNetworkEventData__Get_AssetType",
|
|
34965
|
-
"number",
|
|
34966
|
-
["number"],
|
|
34967
|
-
[this.pointer],
|
|
34968
|
-
);
|
|
34969
|
-
|
|
34970
|
-
return _result;
|
|
34971
|
-
}
|
|
34972
|
-
|
|
34973
|
-
set assetType(value: Systems.EAssetType) {
|
|
35141
|
+
get hotspotData(): Common.HotspotSequenceChangedNetworkEventData {
|
|
35142
|
+
const _ptr = Module._malloc(8);
|
|
34974
35143
|
Module.ccall(
|
|
34975
|
-
"
|
|
35144
|
+
"csp_common_SequenceChangedNetworkEventData__Get_HotspotData",
|
|
34976
35145
|
"void",
|
|
34977
35146
|
["number", "number"],
|
|
34978
|
-
[this.pointer
|
|
34979
|
-
);
|
|
34980
|
-
}
|
|
34981
|
-
|
|
34982
|
-
get assetCollectionId(): string {
|
|
34983
|
-
let _result = Module.ccall(
|
|
34984
|
-
"csp_common_AssetDetailBlobChangedNetworkEventData__Get_AssetCollectionId",
|
|
34985
|
-
"string",
|
|
34986
|
-
["number"],
|
|
34987
|
-
[this.pointer],
|
|
35147
|
+
[_ptr, this.pointer],
|
|
34988
35148
|
);
|
|
34989
35149
|
|
|
34990
|
-
|
|
35150
|
+
const _nPtr = getNativePointer(_ptr);
|
|
35151
|
+
return new Common.HotspotSequenceChangedNetworkEventData(_nPtr);
|
|
34991
35152
|
}
|
|
34992
35153
|
|
|
34993
|
-
set
|
|
35154
|
+
set hotspotData(value: Common.HotspotSequenceChangedNetworkEventData) {
|
|
34994
35155
|
Module.ccall(
|
|
34995
|
-
"
|
|
35156
|
+
"csp_common_SequenceChangedNetworkEventData__Set_HotspotData",
|
|
34996
35157
|
"void",
|
|
34997
|
-
["number", "
|
|
34998
|
-
[this.pointer, value],
|
|
35158
|
+
["number", "number"],
|
|
35159
|
+
[this.pointer, value.pointer],
|
|
34999
35160
|
);
|
|
35000
35161
|
}
|
|
35001
35162
|
}
|
|
35002
35163
|
}
|
|
35003
35164
|
|
|
35004
|
-
export namespace
|
|
35165
|
+
export namespace Multiplayer {
|
|
35005
35166
|
/**
|
|
35006
|
-
* @description Class
|
|
35167
|
+
* @description Class for creating and managing multiplayer objects known as space entities.
|
|
35168
|
+
* /// This provides functions to create and manage multiple player avatars and other objects.
|
|
35169
|
+
* It manages things like queueing updated entities and triggering tick events. Callbacks
|
|
35170
|
+
* can be registered for certain events that occur within the entity system so clients can
|
|
35171
|
+
* react appropriately.
|
|
35007
35172
|
*/
|
|
35008
|
-
export class
|
|
35009
|
-
extends Common.
|
|
35173
|
+
export class OnlineRealtimeEngine
|
|
35174
|
+
extends Common.IRealtimeEngine
|
|
35010
35175
|
implements INativeResource
|
|
35011
35176
|
{
|
|
35012
35177
|
/** @internal */
|
|
@@ -35014,11 +35179,11 @@ export namespace Common {
|
|
|
35014
35179
|
super(pointer);
|
|
35015
35180
|
}
|
|
35016
35181
|
|
|
35017
|
-
static
|
|
35018
|
-
baseInstance: Common.
|
|
35019
|
-
):
|
|
35182
|
+
static fromIRealtimeEngine(
|
|
35183
|
+
baseInstance: Common.IRealtimeEngine,
|
|
35184
|
+
): Multiplayer.OnlineRealtimeEngine {
|
|
35020
35185
|
const nativeClassWrapper = baseInstance as unknown as NativeClassWrapper;
|
|
35021
|
-
return new
|
|
35186
|
+
return new Multiplayer.OnlineRealtimeEngine(
|
|
35022
35187
|
new NativePointer(
|
|
35023
35188
|
nativeClassWrapper.pointer,
|
|
35024
35189
|
nativeClassWrapper.ownsPointer,
|
|
@@ -35026,35 +35191,45 @@ export namespace Common {
|
|
|
35026
35191
|
);
|
|
35027
35192
|
}
|
|
35028
35193
|
|
|
35029
|
-
|
|
35194
|
+
/**
|
|
35195
|
+
* @description OnlineRealtimeEngine constructor
|
|
35196
|
+
* @param inMultiplayerConnection - The multiplayer connection to construct the onlinerealtimeengine with
|
|
35197
|
+
* @param logSystem - Logger such that this system can print status and debug output
|
|
35198
|
+
* @param networkEventBus - Reference the the network event bus, used for leadership election messaging.
|
|
35199
|
+
* @param remoteScriptRunner - Object capable of running a script. Called to execute scripts when the leader
|
|
35200
|
+
* election system
|
|
35201
|
+
*/
|
|
35202
|
+
static create_multiplayerConnection_logSystem_networkEventBus_remoteScriptRunner(
|
|
35203
|
+
multiplayerConnection: Multiplayer.MultiplayerConnection,
|
|
35204
|
+
logSystem: Common.LogSystem,
|
|
35205
|
+
networkEventBus: Multiplayer.NetworkEventBus,
|
|
35206
|
+
remoteScriptRunner: Common.IJSScriptRunner,
|
|
35207
|
+
): OnlineRealtimeEngine {
|
|
35030
35208
|
var _ptr = Module._malloc(8);
|
|
35031
35209
|
Module.ccall(
|
|
35032
|
-
"
|
|
35210
|
+
"csp_multiplayer_OnlineRealtimeEngine_Ctor_MultiplayerConnectionR_LogSystemR_NetworkEventBusR_IJSScriptRunnerR",
|
|
35033
35211
|
"void",
|
|
35034
|
-
["number"],
|
|
35035
|
-
[
|
|
35212
|
+
["number", "number", "number", "number", "number"],
|
|
35213
|
+
[
|
|
35214
|
+
_ptr,
|
|
35215
|
+
multiplayerConnection.pointer,
|
|
35216
|
+
logSystem.pointer,
|
|
35217
|
+
networkEventBus.pointer,
|
|
35218
|
+
remoteScriptRunner.pointer,
|
|
35219
|
+
],
|
|
35036
35220
|
);
|
|
35037
35221
|
var _nPtr = getNativePointer(_ptr);
|
|
35038
35222
|
|
|
35039
|
-
return new
|
|
35223
|
+
return new OnlineRealtimeEngine(_nPtr);
|
|
35040
35224
|
}
|
|
35041
35225
|
|
|
35042
|
-
|
|
35043
|
-
|
|
35044
|
-
|
|
35045
|
-
"csp_common_ConversationNetworkEventData_Dtor",
|
|
35046
|
-
"void",
|
|
35047
|
-
["number"],
|
|
35048
|
-
[this.pointer],
|
|
35049
|
-
);
|
|
35050
|
-
|
|
35051
|
-
this.disposed = true;
|
|
35052
|
-
}
|
|
35053
|
-
}
|
|
35226
|
+
/**
|
|
35227
|
+
* @description Returns the concrete type of the instantiation of the abstract IRealtimeEngine.
|
|
35228
|
+
*/
|
|
35054
35229
|
|
|
35055
|
-
|
|
35230
|
+
getRealtimeEngineType(): Common.RealtimeEngineType {
|
|
35056
35231
|
let _result = Module.ccall(
|
|
35057
|
-
"
|
|
35232
|
+
"csp_multiplayer_OnlineRealtimeEngine_GetRealtimeEngineTypeC_RealtimeEngineType",
|
|
35058
35233
|
"number",
|
|
35059
35234
|
["number"],
|
|
35060
35235
|
[this.pointer],
|
|
@@ -35063,230 +35238,555 @@ export namespace Common {
|
|
|
35063
35238
|
return _result;
|
|
35064
35239
|
}
|
|
35065
35240
|
|
|
35066
|
-
|
|
35241
|
+
/**
|
|
35242
|
+
* @description Create and add a SpaceEntity with type Avatar, and relevant components and default states as specified.
|
|
35243
|
+
* @param name - The entity name of the newly created avatar entity.
|
|
35244
|
+
* @param userId - The Id of the user creating the avatar. This can be fetched from csp::systems::UserSystem::GetLoginState
|
|
35245
|
+
* @param spaceTransform - The initial transform to set the SpaceEntity to.
|
|
35246
|
+
* @param state - The initial Avatar State to set.
|
|
35247
|
+
* @param avatarId - The ID to be set on the AvatarSpaceComponent
|
|
35248
|
+
* @param avatarPlayMode - The Initial AvatarPlayMode to set.
|
|
35249
|
+
* @param callback - Csp::multiplayer::entitycreatedcallback a callback that executes when the creation is complete,
|
|
35250
|
+
* which will provide a non-owning pointer to the new SpaceEntity so that it can be used on the local client.
|
|
35251
|
+
*/
|
|
35252
|
+
|
|
35253
|
+
async createAvatar(
|
|
35254
|
+
name: string,
|
|
35255
|
+
userId: string,
|
|
35256
|
+
spaceTransform: Multiplayer.SpaceTransform,
|
|
35257
|
+
isVisible: boolean,
|
|
35258
|
+
state: Multiplayer.AvatarState,
|
|
35259
|
+
avatarId: string,
|
|
35260
|
+
avatarPlayMode: Multiplayer.AvatarPlayMode,
|
|
35261
|
+
): Promise<Multiplayer.SpaceEntity> {
|
|
35262
|
+
var _resolve;
|
|
35263
|
+
|
|
35264
|
+
var _promise = new Promise<Multiplayer.SpaceEntity>((_r) => {
|
|
35265
|
+
_resolve = _r;
|
|
35266
|
+
});
|
|
35267
|
+
|
|
35268
|
+
var _callbackPtr: number;
|
|
35269
|
+
var _callback = (_stateObject__: number, arg1) => {
|
|
35270
|
+
var _arg1Ptr = getNativePointer(arg1);
|
|
35271
|
+
var _arg1Instance = new Multiplayer.SpaceEntity(_arg1Ptr);
|
|
35272
|
+
|
|
35273
|
+
_resolve(_arg1Instance);
|
|
35274
|
+
|
|
35275
|
+
Module.removeFunction(_callbackPtr);
|
|
35276
|
+
};
|
|
35277
|
+
|
|
35278
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
35279
|
+
|
|
35067
35280
|
Module.ccall(
|
|
35068
|
-
"
|
|
35281
|
+
"csp_multiplayer_OnlineRealtimeEngine_CreateAvatar_void_StringRC_StringRC_SpaceTransformRC_bool_AvatarStateRC_StringRC_AvatarPlayModeRC_EntityCreatedCallback",
|
|
35069
35282
|
"void",
|
|
35070
|
-
[
|
|
35071
|
-
|
|
35283
|
+
[
|
|
35284
|
+
"number",
|
|
35285
|
+
"string",
|
|
35286
|
+
"string",
|
|
35287
|
+
"number",
|
|
35288
|
+
"boolean",
|
|
35289
|
+
"number",
|
|
35290
|
+
"string",
|
|
35291
|
+
"number",
|
|
35292
|
+
"number",
|
|
35293
|
+
"number",
|
|
35294
|
+
],
|
|
35295
|
+
[
|
|
35296
|
+
this.pointer,
|
|
35297
|
+
name,
|
|
35298
|
+
userId,
|
|
35299
|
+
spaceTransform.pointer,
|
|
35300
|
+
isVisible,
|
|
35301
|
+
state,
|
|
35302
|
+
avatarId,
|
|
35303
|
+
avatarPlayMode,
|
|
35304
|
+
_callbackPtr,
|
|
35305
|
+
0,
|
|
35306
|
+
],
|
|
35072
35307
|
);
|
|
35308
|
+
|
|
35309
|
+
return _promise;
|
|
35073
35310
|
}
|
|
35074
35311
|
|
|
35075
|
-
|
|
35076
|
-
|
|
35312
|
+
/**
|
|
35313
|
+
* @description Create and add a SpaceEntity, with relevant default values.
|
|
35314
|
+
* @param name - The name of the newly created SpaceEntity.
|
|
35315
|
+
* @param spaceTransform - The initial transform to set the SpaceEntity to.
|
|
35316
|
+
* @param parentID - ID of another entity in the space that this entity should be created as a child to. If empty,
|
|
35317
|
+
* entity is created as a root entity.
|
|
35318
|
+
* @param callback - A callback that executes when the creation is complete,
|
|
35319
|
+
* which will provide a non-owning pointer to the new SpaceEntity so that it can be used on the local client.
|
|
35320
|
+
*/
|
|
35321
|
+
|
|
35322
|
+
async createEntity(
|
|
35323
|
+
name: string,
|
|
35324
|
+
spaceTransform: Multiplayer.SpaceTransform,
|
|
35325
|
+
parentID: bigint | null,
|
|
35326
|
+
): Promise<Multiplayer.SpaceEntity> {
|
|
35327
|
+
var _resolve;
|
|
35328
|
+
|
|
35329
|
+
var _promise = new Promise<Multiplayer.SpaceEntity>((_r) => {
|
|
35330
|
+
_resolve = _r;
|
|
35331
|
+
});
|
|
35332
|
+
|
|
35333
|
+
var _callbackPtr: number;
|
|
35334
|
+
var _callback = (_stateObject__: number, arg1) => {
|
|
35335
|
+
var _arg1Ptr = getNativePointer(arg1);
|
|
35336
|
+
var _arg1Instance = new Multiplayer.SpaceEntity(_arg1Ptr);
|
|
35337
|
+
|
|
35338
|
+
_resolve(_arg1Instance);
|
|
35339
|
+
|
|
35340
|
+
Module.removeFunction(_callbackPtr);
|
|
35341
|
+
};
|
|
35342
|
+
|
|
35343
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
35344
|
+
|
|
35345
|
+
var parentIDPointer = 0;
|
|
35346
|
+
if (parentID != null) {
|
|
35347
|
+
parentIDPointer = Module._malloc(4);
|
|
35348
|
+
Module.setValue(parentIDPointer, parentID, "i32");
|
|
35349
|
+
}
|
|
35350
|
+
|
|
35077
35351
|
Module.ccall(
|
|
35078
|
-
"
|
|
35352
|
+
"csp_multiplayer_OnlineRealtimeEngine_CreateEntity_void_StringRC_SpaceTransformRC_uint64_tRC_EntityCreatedCallback",
|
|
35079
35353
|
"void",
|
|
35080
|
-
["number", "number"],
|
|
35081
|
-
[
|
|
35354
|
+
["number", "string", "number", "bigint", "number", "number"],
|
|
35355
|
+
[
|
|
35356
|
+
this.pointer,
|
|
35357
|
+
name,
|
|
35358
|
+
spaceTransform.pointer,
|
|
35359
|
+
parentIDPointer,
|
|
35360
|
+
_callbackPtr,
|
|
35361
|
+
0,
|
|
35362
|
+
],
|
|
35082
35363
|
);
|
|
35083
35364
|
|
|
35084
|
-
|
|
35085
|
-
|
|
35365
|
+
if (parentIDPointer) {
|
|
35366
|
+
Module._free(parentIDPointer);
|
|
35367
|
+
}
|
|
35368
|
+
|
|
35369
|
+
return _promise;
|
|
35086
35370
|
}
|
|
35087
35371
|
|
|
35088
|
-
|
|
35372
|
+
/**
|
|
35373
|
+
* @description Add a new entity to the system.
|
|
35374
|
+
* /// This can be called at any time from any thread and internally add the entity to a pending
|
|
35375
|
+
* list which is then updated in a thread safe manner when ProcessPendingEntityOperations
|
|
35376
|
+
* is called from the main thread.
|
|
35377
|
+
* /// @param EntityToAdd SpaceEntity : Pointer to the entity to be added.
|
|
35378
|
+
*/
|
|
35379
|
+
|
|
35380
|
+
addEntity(entityToAdd: Multiplayer.SpaceEntity): void {
|
|
35089
35381
|
Module.ccall(
|
|
35090
|
-
"
|
|
35382
|
+
"csp_multiplayer_OnlineRealtimeEngine_AddEntity_void_SpaceEntityP",
|
|
35091
35383
|
"void",
|
|
35092
35384
|
["number", "number"],
|
|
35093
|
-
[this.pointer,
|
|
35385
|
+
[this.pointer, entityToAdd.pointer],
|
|
35094
35386
|
);
|
|
35095
35387
|
}
|
|
35096
|
-
}
|
|
35097
|
-
}
|
|
35098
35388
|
|
|
35099
|
-
|
|
35100
|
-
|
|
35101
|
-
|
|
35102
|
-
|
|
35103
|
-
|
|
35104
|
-
|
|
35105
|
-
|
|
35106
|
-
|
|
35107
|
-
|
|
35108
|
-
|
|
35109
|
-
|
|
35389
|
+
/**
|
|
35390
|
+
* @description Destroy the specified entity.
|
|
35391
|
+
* @param entity - A non-owning pointer to the entity to be destroyed.
|
|
35392
|
+
* @param callback - A callback that executes when the entity destruction is complete.
|
|
35393
|
+
*/
|
|
35394
|
+
|
|
35395
|
+
async destroyEntity(entity: Multiplayer.SpaceEntity): Promise<boolean> {
|
|
35396
|
+
var _resolve;
|
|
35397
|
+
|
|
35398
|
+
var _promise = new Promise<boolean>((_r) => {
|
|
35399
|
+
_resolve = _r;
|
|
35400
|
+
});
|
|
35401
|
+
|
|
35402
|
+
var _callbackPtr: number;
|
|
35403
|
+
var _callback = (_stateObject__: number, arg1) => {
|
|
35404
|
+
_resolve(!!arg1);
|
|
35405
|
+
|
|
35406
|
+
Module.removeFunction(_callbackPtr);
|
|
35407
|
+
};
|
|
35408
|
+
|
|
35409
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
35410
|
+
|
|
35411
|
+
Module.ccall(
|
|
35412
|
+
"csp_multiplayer_OnlineRealtimeEngine_DestroyEntity_void_SpaceEntityP_CallbackHandler",
|
|
35413
|
+
"void",
|
|
35414
|
+
["number", "number", "number", "number"],
|
|
35415
|
+
[this.pointer, entity.pointer, _callbackPtr, 0],
|
|
35416
|
+
);
|
|
35417
|
+
|
|
35418
|
+
return _promise;
|
|
35110
35419
|
}
|
|
35111
35420
|
|
|
35112
|
-
|
|
35113
|
-
|
|
35114
|
-
|
|
35115
|
-
|
|
35116
|
-
|
|
35117
|
-
|
|
35118
|
-
|
|
35119
|
-
|
|
35120
|
-
|
|
35421
|
+
/**
|
|
35422
|
+
* @description Sets a callback to be executed when an entity is fully created.
|
|
35423
|
+
* /// Only one EntityCreatedCallback may be registered, calling this function again will override whatever was previously set.
|
|
35424
|
+
* /// @param Callback csp::multiplayer::EntityCreatedCallback : the callback to execute.
|
|
35425
|
+
*/
|
|
35426
|
+
setEntityCreatedCallback(
|
|
35427
|
+
callback: (arg1: Multiplayer.SpaceEntity) => void,
|
|
35428
|
+
) {
|
|
35429
|
+
var _callback = (_stateObject__: number, arg1) => {
|
|
35430
|
+
var _arg1 = new Multiplayer.SpaceEntity(getNativePointer(arg1));
|
|
35431
|
+
|
|
35432
|
+
callback(_arg1);
|
|
35433
|
+
};
|
|
35434
|
+
|
|
35435
|
+
var _callbackPtr = Module.addFunction(_callback, "vii");
|
|
35436
|
+
|
|
35437
|
+
Module.ccall(
|
|
35438
|
+
"csp_multiplayer_OnlineRealtimeEngine_SetEntityCreatedCallback_void_EntityCreatedCallback",
|
|
35439
|
+
"void",
|
|
35440
|
+
["number", "number", "number"],
|
|
35441
|
+
[this.pointer, _callbackPtr, 0],
|
|
35121
35442
|
);
|
|
35122
35443
|
}
|
|
35123
35444
|
|
|
35124
|
-
|
|
35125
|
-
|
|
35445
|
+
/**
|
|
35446
|
+
* @description Finds the first found SpaceEntity of a matching Name.
|
|
35447
|
+
* @param name - The name to search.
|
|
35448
|
+
* @return A non-owning pointer to the first found matching SpaceEntity.
|
|
35449
|
+
*/
|
|
35450
|
+
|
|
35451
|
+
findSpaceEntity(name: string): Multiplayer.SpaceEntity {
|
|
35452
|
+
var _ret = Module._malloc(8);
|
|
35453
|
+
|
|
35126
35454
|
Module.ccall(
|
|
35127
|
-
"
|
|
35455
|
+
"csp_multiplayer_OnlineRealtimeEngine_FindSpaceEntity_SpaceEntityP_StringRC",
|
|
35456
|
+
"void",
|
|
35457
|
+
["number", "number", "string"],
|
|
35458
|
+
[_ret, this.pointer, name],
|
|
35459
|
+
);
|
|
35460
|
+
var _nPtr = new Multiplayer.SpaceEntity(getNativePointer(_ret));
|
|
35461
|
+
Module._free(_ret);
|
|
35462
|
+
|
|
35463
|
+
return _nPtr;
|
|
35464
|
+
}
|
|
35465
|
+
|
|
35466
|
+
/**
|
|
35467
|
+
* @description Finds the first found SpaceEntity that has the ID EntityId.
|
|
35468
|
+
* @param entityId - The Id to look for.
|
|
35469
|
+
* @return A non-owning pointer to the first found matching SpaceEntity.
|
|
35470
|
+
*/
|
|
35471
|
+
|
|
35472
|
+
findSpaceEntityById(entityId: bigint): Multiplayer.SpaceEntity {
|
|
35473
|
+
assert(entityId >= Limits.UINT64_MIN);
|
|
35474
|
+
assert(entityId <= Limits.UINT64_MAX);
|
|
35475
|
+
|
|
35476
|
+
var _ret = Module._malloc(8);
|
|
35477
|
+
|
|
35478
|
+
Module.ccall(
|
|
35479
|
+
"csp_multiplayer_OnlineRealtimeEngine_FindSpaceEntityById_SpaceEntityP_uint64_t",
|
|
35480
|
+
"void",
|
|
35481
|
+
["number", "number", "bigint"],
|
|
35482
|
+
[_ret, this.pointer, entityId],
|
|
35483
|
+
);
|
|
35484
|
+
var _nPtr = new Multiplayer.SpaceEntity(getNativePointer(_ret));
|
|
35485
|
+
Module._free(_ret);
|
|
35486
|
+
|
|
35487
|
+
return _nPtr;
|
|
35488
|
+
}
|
|
35489
|
+
|
|
35490
|
+
/**
|
|
35491
|
+
* @description Finds the first found SpaceEntity of a matching Name. The found SpaceEntity will contain an AvatarSpaceComponent.
|
|
35492
|
+
* @param name - The name to search for.
|
|
35493
|
+
* @return A pointer to the first found matching SpaceEntity.
|
|
35494
|
+
*/
|
|
35495
|
+
|
|
35496
|
+
findSpaceAvatar(name: string): Multiplayer.SpaceEntity {
|
|
35497
|
+
var _ret = Module._malloc(8);
|
|
35498
|
+
|
|
35499
|
+
Module.ccall(
|
|
35500
|
+
"csp_multiplayer_OnlineRealtimeEngine_FindSpaceAvatar_SpaceEntityP_StringRC",
|
|
35501
|
+
"void",
|
|
35502
|
+
["number", "number", "string"],
|
|
35503
|
+
[_ret, this.pointer, name],
|
|
35504
|
+
);
|
|
35505
|
+
var _nPtr = new Multiplayer.SpaceEntity(getNativePointer(_ret));
|
|
35506
|
+
Module._free(_ret);
|
|
35507
|
+
|
|
35508
|
+
return _nPtr;
|
|
35509
|
+
}
|
|
35510
|
+
|
|
35511
|
+
/**
|
|
35512
|
+
* @description Finds the first found SpaceEntity of a matching Name. The found SpaceEntity will not contain an AvatarSpaceComponent.
|
|
35513
|
+
* @param name - The name to search for.
|
|
35514
|
+
* @return A pointer to the first found matching SpaceEntity.
|
|
35515
|
+
*/
|
|
35516
|
+
|
|
35517
|
+
findSpaceObject(name: string): Multiplayer.SpaceEntity {
|
|
35518
|
+
var _ret = Module._malloc(8);
|
|
35519
|
+
|
|
35520
|
+
Module.ccall(
|
|
35521
|
+
"csp_multiplayer_OnlineRealtimeEngine_FindSpaceObject_SpaceEntityP_StringRC",
|
|
35522
|
+
"void",
|
|
35523
|
+
["number", "number", "string"],
|
|
35524
|
+
[_ret, this.pointer, name],
|
|
35525
|
+
);
|
|
35526
|
+
var _nPtr = new Multiplayer.SpaceEntity(getNativePointer(_ret));
|
|
35527
|
+
Module._free(_ret);
|
|
35528
|
+
|
|
35529
|
+
return _nPtr;
|
|
35530
|
+
}
|
|
35531
|
+
|
|
35532
|
+
/**
|
|
35533
|
+
* @description Get an Entity by its index.
|
|
35534
|
+
* /// @param EntityIndex size_t : The index of the entity to get.
|
|
35535
|
+
* @return A non-owning pointer to the entity at the given index.
|
|
35536
|
+
*/
|
|
35537
|
+
|
|
35538
|
+
getEntityByIndex(entityIndex: number): Multiplayer.SpaceEntity {
|
|
35539
|
+
assert(Number.isInteger(entityIndex));
|
|
35540
|
+
assert(entityIndex >= Limits.UINT32_MIN);
|
|
35541
|
+
assert(entityIndex <= Limits.UINT32_MAX);
|
|
35542
|
+
|
|
35543
|
+
var _ret = Module._malloc(8);
|
|
35544
|
+
|
|
35545
|
+
Module.ccall(
|
|
35546
|
+
"csp_multiplayer_OnlineRealtimeEngine_GetEntityByIndex_SpaceEntityP_size_t",
|
|
35547
|
+
"void",
|
|
35548
|
+
["number", "number", "number"],
|
|
35549
|
+
[_ret, this.pointer, entityIndex],
|
|
35550
|
+
);
|
|
35551
|
+
var _nPtr = new Multiplayer.SpaceEntity(getNativePointer(_ret));
|
|
35552
|
+
Module._free(_ret);
|
|
35553
|
+
|
|
35554
|
+
return _nPtr;
|
|
35555
|
+
}
|
|
35556
|
+
|
|
35557
|
+
/**
|
|
35558
|
+
* @description Get an Avatar by its index. The returned pointer will be an entity that contains an AvatarSpaceComponent.
|
|
35559
|
+
* /// @param AvatarIndex size_t : The index of the avatar entity to get.
|
|
35560
|
+
* @return A non-owning pointer to the avatar entity with the given index.
|
|
35561
|
+
*/
|
|
35562
|
+
|
|
35563
|
+
getAvatarByIndex(avatarIndex: number): Multiplayer.SpaceEntity {
|
|
35564
|
+
assert(Number.isInteger(avatarIndex));
|
|
35565
|
+
assert(avatarIndex >= Limits.UINT32_MIN);
|
|
35566
|
+
assert(avatarIndex <= Limits.UINT32_MAX);
|
|
35567
|
+
|
|
35568
|
+
var _ret = Module._malloc(8);
|
|
35569
|
+
|
|
35570
|
+
Module.ccall(
|
|
35571
|
+
"csp_multiplayer_OnlineRealtimeEngine_GetAvatarByIndex_SpaceEntityP_size_t",
|
|
35572
|
+
"void",
|
|
35573
|
+
["number", "number", "number"],
|
|
35574
|
+
[_ret, this.pointer, avatarIndex],
|
|
35575
|
+
);
|
|
35576
|
+
var _nPtr = new Multiplayer.SpaceEntity(getNativePointer(_ret));
|
|
35577
|
+
Module._free(_ret);
|
|
35578
|
+
|
|
35579
|
+
return _nPtr;
|
|
35580
|
+
}
|
|
35581
|
+
|
|
35582
|
+
/**
|
|
35583
|
+
* @description Get an Object by its index. The returned pointer will be an entity that does not contain an AvatarSpaceComponent.
|
|
35584
|
+
* /// @param ObjectIndex size_t : The index of the object entity to get.
|
|
35585
|
+
* @return A non-owning pointer to the object entity with the given index.
|
|
35586
|
+
*/
|
|
35587
|
+
|
|
35588
|
+
getObjectByIndex(objectIndex: number): Multiplayer.SpaceEntity {
|
|
35589
|
+
assert(Number.isInteger(objectIndex));
|
|
35590
|
+
assert(objectIndex >= Limits.UINT32_MIN);
|
|
35591
|
+
assert(objectIndex <= Limits.UINT32_MAX);
|
|
35592
|
+
|
|
35593
|
+
var _ret = Module._malloc(8);
|
|
35594
|
+
|
|
35595
|
+
Module.ccall(
|
|
35596
|
+
"csp_multiplayer_OnlineRealtimeEngine_GetObjectByIndex_SpaceEntityP_size_t",
|
|
35128
35597
|
"void",
|
|
35598
|
+
["number", "number", "number"],
|
|
35599
|
+
[_ret, this.pointer, objectIndex],
|
|
35600
|
+
);
|
|
35601
|
+
var _nPtr = new Multiplayer.SpaceEntity(getNativePointer(_ret));
|
|
35602
|
+
Module._free(_ret);
|
|
35603
|
+
|
|
35604
|
+
return _nPtr;
|
|
35605
|
+
}
|
|
35606
|
+
|
|
35607
|
+
/**
|
|
35608
|
+
* @description Get the number of total entities in the system.
|
|
35609
|
+
* @return The total number of entities.
|
|
35610
|
+
*/
|
|
35611
|
+
|
|
35612
|
+
getNumEntities(): number {
|
|
35613
|
+
let _result = Module.ccall(
|
|
35614
|
+
"csp_multiplayer_OnlineRealtimeEngine_GetNumEntitiesC_size_t",
|
|
35615
|
+
"number",
|
|
35616
|
+
["number"],
|
|
35617
|
+
[this.pointer],
|
|
35618
|
+
);
|
|
35619
|
+
|
|
35620
|
+
const _unfixedValue = _result;
|
|
35621
|
+
let _fixedValue =
|
|
35622
|
+
_unfixedValue < 0 ? _unfixedValue + 2 ** 32 : _unfixedValue;
|
|
35623
|
+
_result = _fixedValue;
|
|
35624
|
+
|
|
35625
|
+
return _result;
|
|
35626
|
+
}
|
|
35627
|
+
|
|
35628
|
+
/**
|
|
35629
|
+
* @description Get the number of total Avatars in the system. Avatars are entities that contain AvatarSpaceComponents.
|
|
35630
|
+
* @return The total number of Avatar entities.
|
|
35631
|
+
*/
|
|
35632
|
+
|
|
35633
|
+
getNumAvatars(): number {
|
|
35634
|
+
let _result = Module.ccall(
|
|
35635
|
+
"csp_multiplayer_OnlineRealtimeEngine_GetNumAvatarsC_size_t",
|
|
35636
|
+
"number",
|
|
35129
35637
|
["number"],
|
|
35130
|
-
[
|
|
35638
|
+
[this.pointer],
|
|
35131
35639
|
);
|
|
35132
|
-
var _nPtr = getNativePointer(_ptr);
|
|
35133
|
-
|
|
35134
|
-
return new AccessControlChangedNetworkEventData(_nPtr);
|
|
35135
|
-
}
|
|
35136
35640
|
|
|
35137
|
-
|
|
35138
|
-
|
|
35139
|
-
|
|
35140
|
-
|
|
35141
|
-
"void",
|
|
35142
|
-
["number"],
|
|
35143
|
-
[this.pointer],
|
|
35144
|
-
);
|
|
35641
|
+
const _unfixedValue = _result;
|
|
35642
|
+
let _fixedValue =
|
|
35643
|
+
_unfixedValue < 0 ? _unfixedValue + 2 ** 32 : _unfixedValue;
|
|
35644
|
+
_result = _fixedValue;
|
|
35145
35645
|
|
|
35146
|
-
|
|
35147
|
-
}
|
|
35646
|
+
return _result;
|
|
35148
35647
|
}
|
|
35149
35648
|
|
|
35150
|
-
|
|
35649
|
+
/**
|
|
35650
|
+
* @description Get the number of total Objects in the system. Objects are entities that do not contain AvatarSpaceComponents.
|
|
35651
|
+
* @return The total number of object entities.
|
|
35652
|
+
*/
|
|
35653
|
+
|
|
35654
|
+
getNumObjects(): number {
|
|
35151
35655
|
let _result = Module.ccall(
|
|
35152
|
-
"
|
|
35153
|
-
"
|
|
35656
|
+
"csp_multiplayer_OnlineRealtimeEngine_GetNumObjectsC_size_t",
|
|
35657
|
+
"number",
|
|
35154
35658
|
["number"],
|
|
35155
35659
|
[this.pointer],
|
|
35156
35660
|
);
|
|
35157
35661
|
|
|
35662
|
+
const _unfixedValue = _result;
|
|
35663
|
+
let _fixedValue =
|
|
35664
|
+
_unfixedValue < 0 ? _unfixedValue + 2 ** 32 : _unfixedValue;
|
|
35665
|
+
_result = _fixedValue;
|
|
35666
|
+
|
|
35158
35667
|
return _result;
|
|
35159
35668
|
}
|
|
35160
35669
|
|
|
35161
|
-
|
|
35162
|
-
|
|
35163
|
-
|
|
35164
|
-
|
|
35165
|
-
|
|
35166
|
-
|
|
35167
|
-
);
|
|
35168
|
-
}
|
|
35670
|
+
/**
|
|
35671
|
+
* @description Retrieves all entities that exist at the root level (do not have a parent entity).
|
|
35672
|
+
* @return A list of root entities containing non-owning pointers to entities.
|
|
35673
|
+
*/
|
|
35674
|
+
|
|
35675
|
+
getRootHierarchyEntities(): Common.List<Multiplayer.SpaceEntity> {
|
|
35676
|
+
var _ret = Module._malloc(8);
|
|
35169
35677
|
|
|
35170
|
-
get userRoles(): Common.Array<Systems.SpaceUserRole> {
|
|
35171
|
-
const _ptr = Module._malloc(8);
|
|
35172
35678
|
Module.ccall(
|
|
35173
|
-
"
|
|
35679
|
+
"csp_multiplayer_OnlineRealtimeEngine_GetRootHierarchyEntitiesC_ListPC",
|
|
35174
35680
|
"void",
|
|
35175
35681
|
["number", "number"],
|
|
35176
|
-
[
|
|
35682
|
+
[_ret, this.pointer],
|
|
35177
35683
|
);
|
|
35178
|
-
|
|
35179
|
-
|
|
35180
|
-
|
|
35181
|
-
|
|
35182
|
-
csp_systems_SpaceUserRoleFactory,
|
|
35183
|
-
"csp_systems_SpaceUserRole",
|
|
35684
|
+
var _nPtr = new Common.List<Multiplayer.SpaceEntity>(
|
|
35685
|
+
getNativePointer(_ret),
|
|
35686
|
+
csp_multiplayer_SpaceEntityFactory,
|
|
35687
|
+
"csp_multiplayer_SpaceEntity",
|
|
35184
35688
|
);
|
|
35689
|
+
Module._free(_ret);
|
|
35690
|
+
|
|
35691
|
+
return _nPtr;
|
|
35185
35692
|
}
|
|
35186
35693
|
|
|
35187
|
-
|
|
35694
|
+
/**
|
|
35695
|
+
* @description Adds an entity to a list of entities to be updated when ProcessPendingEntityOperations is called.
|
|
35696
|
+
* From a client perspective, ProcessPendingEntityOperations is normally called via the CSPFoundation::Tick method.
|
|
35697
|
+
* @param entity - A non-owning pointer to the entity to be marked.
|
|
35698
|
+
*/
|
|
35699
|
+
|
|
35700
|
+
markEntityForUpdate(entity: Multiplayer.SpaceEntity): void {
|
|
35188
35701
|
Module.ccall(
|
|
35189
|
-
"
|
|
35702
|
+
"csp_multiplayer_OnlineRealtimeEngine_MarkEntityForUpdate_void_SpaceEntityP",
|
|
35190
35703
|
"void",
|
|
35191
35704
|
["number", "number"],
|
|
35192
|
-
[this.pointer,
|
|
35705
|
+
[this.pointer, entity.pointer],
|
|
35193
35706
|
);
|
|
35194
35707
|
}
|
|
35195
35708
|
|
|
35196
|
-
|
|
35197
|
-
|
|
35198
|
-
|
|
35199
|
-
|
|
35709
|
+
/**
|
|
35710
|
+
* @description Applies any pending changes to entities that have been marked for update.
|
|
35711
|
+
*/
|
|
35712
|
+
|
|
35713
|
+
processPendingEntityOperations(): void {
|
|
35714
|
+
Module.ccall(
|
|
35715
|
+
"csp_multiplayer_OnlineRealtimeEngine_ProcessPendingEntityOperations_void",
|
|
35716
|
+
"void",
|
|
35200
35717
|
["number"],
|
|
35201
35718
|
[this.pointer],
|
|
35202
35719
|
);
|
|
35203
|
-
|
|
35204
|
-
return _result;
|
|
35205
35720
|
}
|
|
35206
35721
|
|
|
35207
|
-
|
|
35722
|
+
/**
|
|
35723
|
+
* @description Sets a callback to be executed when the script system is ready to run scripts.
|
|
35724
|
+
* @param callback - The callback to execute.
|
|
35725
|
+
*/
|
|
35726
|
+
setScriptLeaderReadyCallback(callback: (arg1: boolean) => void) {
|
|
35727
|
+
var _callback = (_stateObject__: number, arg1) => {
|
|
35728
|
+
callback(arg1);
|
|
35729
|
+
};
|
|
35730
|
+
|
|
35731
|
+
var _callbackPtr = Module.addFunction(_callback, "vii");
|
|
35732
|
+
|
|
35208
35733
|
Module.ccall(
|
|
35209
|
-
"
|
|
35734
|
+
"csp_multiplayer_OnlineRealtimeEngine_SetScriptLeaderReadyCallback_void_CallbackHandler",
|
|
35210
35735
|
"void",
|
|
35211
|
-
["number", "number"],
|
|
35212
|
-
[this.pointer,
|
|
35736
|
+
["number", "number", "number"],
|
|
35737
|
+
[this.pointer, _callbackPtr, 0],
|
|
35213
35738
|
);
|
|
35214
35739
|
}
|
|
35215
35740
|
|
|
35216
|
-
|
|
35217
|
-
|
|
35218
|
-
|
|
35219
|
-
|
|
35220
|
-
["number"],
|
|
35221
|
-
[this.pointer],
|
|
35222
|
-
);
|
|
35223
|
-
|
|
35224
|
-
return _result;
|
|
35225
|
-
}
|
|
35741
|
+
/**
|
|
35742
|
+
* @description Sets the script owner for the given entity to the current client
|
|
35743
|
+
* @param entity - A pointer to the entity
|
|
35744
|
+
*/
|
|
35226
35745
|
|
|
35227
|
-
|
|
35746
|
+
claimScriptOwnership(entity: Multiplayer.SpaceEntity): void {
|
|
35228
35747
|
Module.ccall(
|
|
35229
|
-
"
|
|
35748
|
+
"csp_multiplayer_OnlineRealtimeEngine_ClaimScriptOwnershipC_void_SpaceEntityP",
|
|
35230
35749
|
"void",
|
|
35231
|
-
["number", "
|
|
35232
|
-
[this.pointer,
|
|
35750
|
+
["number", "number"],
|
|
35751
|
+
[this.pointer, entity.pointer],
|
|
35233
35752
|
);
|
|
35234
35753
|
}
|
|
35235
|
-
}
|
|
35236
|
-
}
|
|
35237
35754
|
|
|
35238
|
-
|
|
35239
|
-
|
|
35240
|
-
|
|
35241
|
-
implements INativeResource
|
|
35242
|
-
{
|
|
35243
|
-
/** @internal */
|
|
35244
|
-
constructor(pointer: NativePointer) {
|
|
35245
|
-
super(pointer);
|
|
35246
|
-
}
|
|
35755
|
+
/**
|
|
35756
|
+
* @description Enable Leader Election feature.
|
|
35757
|
+
*/
|
|
35247
35758
|
|
|
35248
|
-
|
|
35249
|
-
|
|
35250
|
-
|
|
35251
|
-
|
|
35252
|
-
|
|
35253
|
-
|
|
35254
|
-
nativeClassWrapper.pointer,
|
|
35255
|
-
nativeClassWrapper.ownsPointer,
|
|
35256
|
-
),
|
|
35759
|
+
enableLeaderElection(): void {
|
|
35760
|
+
Module.ccall(
|
|
35761
|
+
"csp_multiplayer_OnlineRealtimeEngine_EnableLeaderElection_void",
|
|
35762
|
+
"void",
|
|
35763
|
+
["number"],
|
|
35764
|
+
[this.pointer],
|
|
35257
35765
|
);
|
|
35258
35766
|
}
|
|
35259
35767
|
|
|
35260
|
-
|
|
35261
|
-
|
|
35768
|
+
/**
|
|
35769
|
+
* @description Disable Leader Election feature.
|
|
35770
|
+
*/
|
|
35771
|
+
|
|
35772
|
+
disableLeaderElection(): void {
|
|
35262
35773
|
Module.ccall(
|
|
35263
|
-
"
|
|
35774
|
+
"csp_multiplayer_OnlineRealtimeEngine_DisableLeaderElection_void",
|
|
35264
35775
|
"void",
|
|
35265
35776
|
["number"],
|
|
35266
|
-
[
|
|
35777
|
+
[this.pointer],
|
|
35267
35778
|
);
|
|
35268
|
-
var _nPtr = getNativePointer(_ptr);
|
|
35269
|
-
|
|
35270
|
-
return new SequenceChangedNetworkEventData(_nPtr);
|
|
35271
35779
|
}
|
|
35272
35780
|
|
|
35273
|
-
|
|
35274
|
-
|
|
35275
|
-
|
|
35276
|
-
|
|
35277
|
-
"void",
|
|
35278
|
-
["number"],
|
|
35279
|
-
[this.pointer],
|
|
35280
|
-
);
|
|
35281
|
-
|
|
35282
|
-
this.disposed = true;
|
|
35283
|
-
}
|
|
35284
|
-
}
|
|
35781
|
+
/**
|
|
35782
|
+
* @description Check if the Leader Election feature is enabled.
|
|
35783
|
+
* @return True if enabled, false otherwise.
|
|
35784
|
+
*/
|
|
35285
35785
|
|
|
35286
|
-
|
|
35786
|
+
isLeaderElectionEnabled(): boolean {
|
|
35287
35787
|
let _result = Module.ccall(
|
|
35288
|
-
"
|
|
35289
|
-
"
|
|
35788
|
+
"csp_multiplayer_OnlineRealtimeEngine_IsLeaderElectionEnabledC_bool",
|
|
35789
|
+
"boolean",
|
|
35290
35790
|
["number"],
|
|
35291
35791
|
[this.pointer],
|
|
35292
35792
|
);
|
|
@@ -35294,19 +35794,36 @@ export namespace Common {
|
|
|
35294
35794
|
return _result;
|
|
35295
35795
|
}
|
|
35296
35796
|
|
|
35297
|
-
|
|
35298
|
-
|
|
35299
|
-
|
|
35300
|
-
|
|
35301
|
-
|
|
35302
|
-
|
|
35797
|
+
/**
|
|
35798
|
+
* @description Debug helper to get the id of the currently elected script leader.
|
|
35799
|
+
* @return The id of the leader.
|
|
35800
|
+
*/
|
|
35801
|
+
|
|
35802
|
+
getLeaderId(): bigint {
|
|
35803
|
+
let _result = Module.ccall(
|
|
35804
|
+
"csp_multiplayer_OnlineRealtimeEngine_GetLeaderIdC_uint64_t",
|
|
35805
|
+
"bigint",
|
|
35806
|
+
["number"],
|
|
35807
|
+
[this.pointer],
|
|
35303
35808
|
);
|
|
35809
|
+
|
|
35810
|
+
const _unfixedValue = _result;
|
|
35811
|
+
let _fixedValue =
|
|
35812
|
+
_unfixedValue < 0 ? _unfixedValue + 2n ** 64n : _unfixedValue;
|
|
35813
|
+
_result = _fixedValue;
|
|
35814
|
+
|
|
35815
|
+
return _result;
|
|
35304
35816
|
}
|
|
35305
35817
|
|
|
35306
|
-
|
|
35818
|
+
/**
|
|
35819
|
+
* @description Retrieve the state of the patch rate limiter. If true, patches are limited for each individual entity to a fixed rate.
|
|
35820
|
+
* @return True if enabled, false otherwise.
|
|
35821
|
+
*/
|
|
35822
|
+
|
|
35823
|
+
getEntityPatchRateLimitEnabled(): boolean {
|
|
35307
35824
|
let _result = Module.ccall(
|
|
35308
|
-
"
|
|
35309
|
-
"
|
|
35825
|
+
"csp_multiplayer_OnlineRealtimeEngine_GetEntityPatchRateLimitEnabledC_bool",
|
|
35826
|
+
"boolean",
|
|
35310
35827
|
["number"],
|
|
35311
35828
|
[this.pointer],
|
|
35312
35829
|
);
|
|
@@ -35314,56 +35831,91 @@ export namespace Common {
|
|
|
35314
35831
|
return _result;
|
|
35315
35832
|
}
|
|
35316
35833
|
|
|
35317
|
-
|
|
35834
|
+
/**
|
|
35835
|
+
* @description Set the state of the patch rate limiter. If true, patches are limited for each individual entity to a fixed rate.
|
|
35836
|
+
* /// This feature is enabled by default and should only be disabled if you are encountering issues.
|
|
35837
|
+
* /// @param Enabled : sets if the feature should be enabled or not.
|
|
35838
|
+
* \rst
|
|
35839
|
+
* .. note::
|
|
35840
|
+
* If disabling this feature, more requests will be made to Magnopus Connected Services,
|
|
35841
|
+
* and consequently more patch merges may occur on the server as a result.
|
|
35842
|
+
* \endrst
|
|
35843
|
+
*/
|
|
35844
|
+
|
|
35845
|
+
setEntityPatchRateLimitEnabled(enabled: boolean): void {
|
|
35318
35846
|
Module.ccall(
|
|
35319
|
-
"
|
|
35847
|
+
"csp_multiplayer_OnlineRealtimeEngine_SetEntityPatchRateLimitEnabled_void_bool",
|
|
35320
35848
|
"void",
|
|
35321
|
-
["number", "
|
|
35322
|
-
[this.pointer,
|
|
35849
|
+
["number", "boolean"],
|
|
35850
|
+
[this.pointer, enabled],
|
|
35323
35851
|
);
|
|
35324
35852
|
}
|
|
35325
35853
|
|
|
35326
|
-
|
|
35327
|
-
|
|
35328
|
-
|
|
35329
|
-
|
|
35854
|
+
/**
|
|
35855
|
+
* @description Locks the entity mutex.
|
|
35856
|
+
*/
|
|
35857
|
+
|
|
35858
|
+
lockEntityUpdate(): void {
|
|
35859
|
+
Module.ccall(
|
|
35860
|
+
"csp_multiplayer_OnlineRealtimeEngine_LockEntityUpdateC_void",
|
|
35861
|
+
"void",
|
|
35330
35862
|
["number"],
|
|
35331
35863
|
[this.pointer],
|
|
35332
35864
|
);
|
|
35333
|
-
|
|
35334
|
-
return _result;
|
|
35335
35865
|
}
|
|
35336
35866
|
|
|
35337
|
-
|
|
35867
|
+
/**
|
|
35868
|
+
* @description Unlocks the entity mutex.
|
|
35869
|
+
*/
|
|
35870
|
+
|
|
35871
|
+
unlockEntityUpdate(): void {
|
|
35338
35872
|
Module.ccall(
|
|
35339
|
-
"
|
|
35873
|
+
"csp_multiplayer_OnlineRealtimeEngine_UnlockEntityUpdateC_void",
|
|
35340
35874
|
"void",
|
|
35341
|
-
["number"
|
|
35342
|
-
[this.pointer
|
|
35875
|
+
["number"],
|
|
35876
|
+
[this.pointer],
|
|
35343
35877
|
);
|
|
35344
35878
|
}
|
|
35345
35879
|
|
|
35346
|
-
|
|
35347
|
-
|
|
35880
|
+
/**
|
|
35881
|
+
* @description Queues a specific entity to update. Used in SpaceEntity to queue updates via passing the this pointer
|
|
35882
|
+
*/
|
|
35883
|
+
|
|
35884
|
+
queueEntityUpdate(entityToUpdate: Multiplayer.SpaceEntity): void {
|
|
35348
35885
|
Module.ccall(
|
|
35349
|
-
"
|
|
35886
|
+
"csp_multiplayer_OnlineRealtimeEngine_QueueEntityUpdate_void_SpaceEntityP",
|
|
35350
35887
|
"void",
|
|
35351
35888
|
["number", "number"],
|
|
35352
|
-
[
|
|
35889
|
+
[this.pointer, entityToUpdate.pointer],
|
|
35353
35890
|
);
|
|
35354
|
-
|
|
35355
|
-
const _nPtr = getNativePointer(_ptr);
|
|
35356
|
-
return new Common.HotspotSequenceChangedNetworkEventData(_nPtr);
|
|
35357
35891
|
}
|
|
35358
35892
|
|
|
35359
|
-
|
|
35893
|
+
/**
|
|
35894
|
+
* @description "Resolves" the entity heirarchy, such that the entity is parented appropriately, and internal buffers are populated appropriately.
|
|
35895
|
+
* (Vague, need more understanding about what this does)
|
|
35896
|
+
*/
|
|
35897
|
+
|
|
35898
|
+
resolveEntityHierarchy(entity: Multiplayer.SpaceEntity): void {
|
|
35360
35899
|
Module.ccall(
|
|
35361
|
-
"
|
|
35900
|
+
"csp_multiplayer_OnlineRealtimeEngine_ResolveEntityHierarchy_void_SpaceEntityP",
|
|
35362
35901
|
"void",
|
|
35363
35902
|
["number", "number"],
|
|
35364
|
-
[this.pointer,
|
|
35903
|
+
[this.pointer, entity.pointer],
|
|
35365
35904
|
);
|
|
35366
35905
|
}
|
|
35906
|
+
|
|
35907
|
+
delete(): void {
|
|
35908
|
+
if (this.ownsPointer && !this.disposed) {
|
|
35909
|
+
Module.ccall(
|
|
35910
|
+
"csp_multiplayer_OnlineRealtimeEngine_Dtor",
|
|
35911
|
+
"void",
|
|
35912
|
+
["number"],
|
|
35913
|
+
[this.pointer],
|
|
35914
|
+
);
|
|
35915
|
+
|
|
35916
|
+
this.disposed = true;
|
|
35917
|
+
}
|
|
35918
|
+
}
|
|
35367
35919
|
}
|
|
35368
35920
|
}
|
|
35369
35921
|
|
|
@@ -45846,6 +46398,67 @@ export namespace Multiplayer {
|
|
|
45846
46398
|
}
|
|
45847
46399
|
}
|
|
45848
46400
|
|
|
46401
|
+
export namespace Systems {
|
|
46402
|
+
/**
|
|
46403
|
+
@ingroup Status System
|
|
46404
|
+
* @description Data class used to contain information when a Response is received from the Status Server
|
|
46405
|
+
*/
|
|
46406
|
+
export class ServicesDeploymentStatusResult
|
|
46407
|
+
extends Systems.ResultBase
|
|
46408
|
+
implements INativeResource
|
|
46409
|
+
{
|
|
46410
|
+
/** @internal */
|
|
46411
|
+
constructor(pointer: NativePointer) {
|
|
46412
|
+
super(pointer);
|
|
46413
|
+
}
|
|
46414
|
+
|
|
46415
|
+
static fromResultBase(
|
|
46416
|
+
baseInstance: Systems.ResultBase,
|
|
46417
|
+
): Systems.ServicesDeploymentStatusResult {
|
|
46418
|
+
const nativeClassWrapper = baseInstance as unknown as NativeClassWrapper;
|
|
46419
|
+
return new Systems.ServicesDeploymentStatusResult(
|
|
46420
|
+
new NativePointer(
|
|
46421
|
+
nativeClassWrapper.pointer,
|
|
46422
|
+
nativeClassWrapper.ownsPointer,
|
|
46423
|
+
),
|
|
46424
|
+
);
|
|
46425
|
+
}
|
|
46426
|
+
|
|
46427
|
+
/**
|
|
46428
|
+
* @description Will return services deployment status for the latest available deployment from the server
|
|
46429
|
+
* @return The latest services deployment status
|
|
46430
|
+
*/
|
|
46431
|
+
|
|
46432
|
+
getLatestServicesDeploymentStatus(): Systems.ServicesDeploymentStatus {
|
|
46433
|
+
var _ret = Module._malloc(8);
|
|
46434
|
+
|
|
46435
|
+
Module.ccall(
|
|
46436
|
+
"csp_systems_ServicesDeploymentStatusResult_GetLatestServicesDeploymentStatusC_ServicesDeploymentStatusRC",
|
|
46437
|
+
"void",
|
|
46438
|
+
["number", "number"],
|
|
46439
|
+
[_ret, this.pointer],
|
|
46440
|
+
);
|
|
46441
|
+
var _nPtr = new Systems.ServicesDeploymentStatus(getNativePointer(_ret));
|
|
46442
|
+
Module._free(_ret);
|
|
46443
|
+
|
|
46444
|
+
return _nPtr;
|
|
46445
|
+
}
|
|
46446
|
+
|
|
46447
|
+
delete(): void {
|
|
46448
|
+
if (this.ownsPointer && !this.disposed) {
|
|
46449
|
+
Module.ccall(
|
|
46450
|
+
"csp_systems_ServicesDeploymentStatusResult_Dtor",
|
|
46451
|
+
"void",
|
|
46452
|
+
["number"],
|
|
46453
|
+
[this.pointer],
|
|
46454
|
+
);
|
|
46455
|
+
|
|
46456
|
+
this.disposed = true;
|
|
46457
|
+
}
|
|
46458
|
+
}
|
|
46459
|
+
}
|
|
46460
|
+
}
|
|
46461
|
+
|
|
45849
46462
|
export namespace Systems {
|
|
45850
46463
|
/**
|
|
45851
46464
|
* @description A result handler that is used to notify a user of an error.
|
|
@@ -52963,43 +53576,195 @@ export namespace Systems {
|
|
|
52963
53576
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
52964
53577
|
|
|
52965
53578
|
Module.ccall(
|
|
52966
|
-
"csp_systems_SequenceSystem_RenameSequence_void_StringRC_StringRC_SequenceResultCallback",
|
|
53579
|
+
"csp_systems_SequenceSystem_RenameSequence_void_StringRC_StringRC_SequenceResultCallback",
|
|
53580
|
+
"void",
|
|
53581
|
+
["number", "string", "string", "number", "number"],
|
|
53582
|
+
[this.pointer, oldSequenceKey, newSequenceKey, _callbackPtr, 0],
|
|
53583
|
+
);
|
|
53584
|
+
|
|
53585
|
+
return _promise;
|
|
53586
|
+
}
|
|
53587
|
+
|
|
53588
|
+
/**
|
|
53589
|
+
* @description Finds sequences based on the given criteria
|
|
53590
|
+
* NOTE: This call will fail (Reason InvalidSequenceKey) if the SequenceKey parameter contains invalid keys, such as spaces, '/' or '%'
|
|
53591
|
+
* @param sequenceKeys - An array of sequence keys to search for
|
|
53592
|
+
* @param sequenceKeys - An optional regex string for searching keys
|
|
53593
|
+
* @param referenceType - The type of reference (GroupId etc.). Must be used with ReferenceIds
|
|
53594
|
+
* @param referenceIds - The ids of the reference. Must be used with ReferenceType
|
|
53595
|
+
* @param metaData - Any additional data relating to the Sequence
|
|
53596
|
+
* @param callback - Callback to call when a response is received
|
|
53597
|
+
*/
|
|
53598
|
+
|
|
53599
|
+
async getSequencesByCriteria(
|
|
53600
|
+
sequenceKeys: Common.Array<string>,
|
|
53601
|
+
keyRegex: string | null,
|
|
53602
|
+
referenceType: string | null,
|
|
53603
|
+
referenceIds: Common.Array<string>,
|
|
53604
|
+
metaData: Common.Map<string, string>,
|
|
53605
|
+
): Promise<Systems.SequencesResult> {
|
|
53606
|
+
var _resolve;
|
|
53607
|
+
|
|
53608
|
+
var _promise = new Promise<Systems.SequencesResult>((_r) => {
|
|
53609
|
+
_resolve = _r;
|
|
53610
|
+
});
|
|
53611
|
+
|
|
53612
|
+
var _callbackPtr: number;
|
|
53613
|
+
var _callback = (_stateObject__: number, result) => {
|
|
53614
|
+
var _resultPtr = getNativePointer(result);
|
|
53615
|
+
var _resultInstance = new Systems.SequencesResult(_resultPtr);
|
|
53616
|
+
|
|
53617
|
+
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
53618
|
+
return;
|
|
53619
|
+
}
|
|
53620
|
+
|
|
53621
|
+
_resolve(_resultInstance);
|
|
53622
|
+
|
|
53623
|
+
Module.removeFunction(_callbackPtr);
|
|
53624
|
+
};
|
|
53625
|
+
|
|
53626
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
53627
|
+
|
|
53628
|
+
Module.ccall(
|
|
53629
|
+
"csp_systems_SequenceSystem_GetSequencesByCriteria_void_ArrayRC_StringRC_StringRC_ArrayRC_MapRC_SequencesResultCallback",
|
|
53630
|
+
"void",
|
|
53631
|
+
[
|
|
53632
|
+
"number",
|
|
53633
|
+
"number",
|
|
53634
|
+
"string",
|
|
53635
|
+
"string",
|
|
53636
|
+
"number",
|
|
53637
|
+
"number",
|
|
53638
|
+
"number",
|
|
53639
|
+
"number",
|
|
53640
|
+
],
|
|
53641
|
+
[
|
|
53642
|
+
this.pointer,
|
|
53643
|
+
sequenceKeys.pointer,
|
|
53644
|
+
keyRegex,
|
|
53645
|
+
referenceType,
|
|
53646
|
+
referenceIds.pointer,
|
|
53647
|
+
metaData.pointer,
|
|
53648
|
+
_callbackPtr,
|
|
53649
|
+
0,
|
|
53650
|
+
],
|
|
53651
|
+
);
|
|
53652
|
+
|
|
53653
|
+
return _promise;
|
|
53654
|
+
}
|
|
53655
|
+
|
|
53656
|
+
/**
|
|
53657
|
+
* @description Finds all sequences that contain the given items
|
|
53658
|
+
* @param items - An array of items which should be searched for
|
|
53659
|
+
* @param referenceType - The type of reference (GroupId etc.). Must be used with ReferenceIds
|
|
53660
|
+
* @param referenceIds - The ids of the reference. Must be used with ReferenceType
|
|
53661
|
+
* @param callback - Callback to call when a response is received
|
|
53662
|
+
*/
|
|
53663
|
+
|
|
53664
|
+
async getAllSequencesContainingItems(
|
|
53665
|
+
items: Common.Array<string>,
|
|
53666
|
+
referenceType: string | null,
|
|
53667
|
+
referenceIds: Common.Array<string>,
|
|
53668
|
+
): Promise<Systems.SequencesResult> {
|
|
53669
|
+
var _resolve;
|
|
53670
|
+
|
|
53671
|
+
var _promise = new Promise<Systems.SequencesResult>((_r) => {
|
|
53672
|
+
_resolve = _r;
|
|
53673
|
+
});
|
|
53674
|
+
|
|
53675
|
+
var _callbackPtr: number;
|
|
53676
|
+
var _callback = (_stateObject__: number, result) => {
|
|
53677
|
+
var _resultPtr = getNativePointer(result);
|
|
53678
|
+
var _resultInstance = new Systems.SequencesResult(_resultPtr);
|
|
53679
|
+
|
|
53680
|
+
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
53681
|
+
return;
|
|
53682
|
+
}
|
|
53683
|
+
|
|
53684
|
+
_resolve(_resultInstance);
|
|
53685
|
+
|
|
53686
|
+
Module.removeFunction(_callbackPtr);
|
|
53687
|
+
};
|
|
53688
|
+
|
|
53689
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
53690
|
+
|
|
53691
|
+
Module.ccall(
|
|
53692
|
+
"csp_systems_SequenceSystem_GetAllSequencesContainingItems_void_ArrayRC_StringRC_ArrayRC_SequencesResultCallback",
|
|
53693
|
+
"void",
|
|
53694
|
+
["number", "number", "string", "number", "number", "number"],
|
|
53695
|
+
[
|
|
53696
|
+
this.pointer,
|
|
53697
|
+
items.pointer,
|
|
53698
|
+
referenceType,
|
|
53699
|
+
referenceIds.pointer,
|
|
53700
|
+
_callbackPtr,
|
|
53701
|
+
0,
|
|
53702
|
+
],
|
|
53703
|
+
);
|
|
53704
|
+
|
|
53705
|
+
return _promise;
|
|
53706
|
+
}
|
|
53707
|
+
|
|
53708
|
+
/**
|
|
53709
|
+
* @description Gets a sequence by it's key
|
|
53710
|
+
* NOTE: This call will fail (Reason InvalidSequenceKey) if the SequenceKey parameter contains invalid keys, such as spaces, '/' or '%'
|
|
53711
|
+
* @param sequenceKey - The unique grouping name
|
|
53712
|
+
* @param callback - Callback to call when a response is received
|
|
53713
|
+
*/
|
|
53714
|
+
|
|
53715
|
+
async getSequence(sequenceKey: string): Promise<Systems.SequenceResult> {
|
|
53716
|
+
var _resolve;
|
|
53717
|
+
|
|
53718
|
+
var _promise = new Promise<Systems.SequenceResult>((_r) => {
|
|
53719
|
+
_resolve = _r;
|
|
53720
|
+
});
|
|
53721
|
+
|
|
53722
|
+
var _callbackPtr: number;
|
|
53723
|
+
var _callback = (_stateObject__: number, result) => {
|
|
53724
|
+
var _resultPtr = getNativePointer(result);
|
|
53725
|
+
var _resultInstance = new Systems.SequenceResult(_resultPtr);
|
|
53726
|
+
|
|
53727
|
+
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
53728
|
+
return;
|
|
53729
|
+
}
|
|
53730
|
+
|
|
53731
|
+
_resolve(_resultInstance);
|
|
53732
|
+
|
|
53733
|
+
Module.removeFunction(_callbackPtr);
|
|
53734
|
+
};
|
|
53735
|
+
|
|
53736
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
53737
|
+
|
|
53738
|
+
Module.ccall(
|
|
53739
|
+
"csp_systems_SequenceSystem_GetSequence_void_StringRC_SequenceResultCallback",
|
|
52967
53740
|
"void",
|
|
52968
|
-
["number", "string", "
|
|
52969
|
-
[this.pointer,
|
|
53741
|
+
["number", "string", "number", "number"],
|
|
53742
|
+
[this.pointer, sequenceKey, _callbackPtr, 0],
|
|
52970
53743
|
);
|
|
52971
53744
|
|
|
52972
53745
|
return _promise;
|
|
52973
53746
|
}
|
|
52974
53747
|
|
|
52975
53748
|
/**
|
|
52976
|
-
* @description
|
|
53749
|
+
* @description Deletes the given sequences. This call will fail if the user isn't a creator of the space
|
|
52977
53750
|
* NOTE: This call will fail (Reason InvalidSequenceKey) if the SequenceKey parameter contains invalid keys, such as spaces, '/' or '%'
|
|
52978
|
-
* @param sequenceKeys - An array of sequence keys to
|
|
52979
|
-
* @param sequenceKeys - An optional regex string for searching keys
|
|
52980
|
-
* @param referenceType - The type of reference (GroupId etc.). Must be used with ReferenceIds
|
|
52981
|
-
* @param referenceIds - The ids of the reference. Must be used with ReferenceType
|
|
52982
|
-
* @param metaData - Any additional data relating to the Sequence
|
|
53751
|
+
* @param sequenceKeys - An array of sequence keys to delete
|
|
52983
53752
|
* @param callback - Callback to call when a response is received
|
|
52984
53753
|
*/
|
|
52985
53754
|
|
|
52986
|
-
async
|
|
53755
|
+
async deleteSequences(
|
|
52987
53756
|
sequenceKeys: Common.Array<string>,
|
|
52988
|
-
|
|
52989
|
-
referenceType: string | null,
|
|
52990
|
-
referenceIds: Common.Array<string>,
|
|
52991
|
-
metaData: Common.Map<string, string>,
|
|
52992
|
-
): Promise<Systems.SequencesResult> {
|
|
53757
|
+
): Promise<Systems.NullResult> {
|
|
52993
53758
|
var _resolve;
|
|
52994
53759
|
|
|
52995
|
-
var _promise = new Promise<Systems.
|
|
53760
|
+
var _promise = new Promise<Systems.NullResult>((_r) => {
|
|
52996
53761
|
_resolve = _r;
|
|
52997
53762
|
});
|
|
52998
53763
|
|
|
52999
53764
|
var _callbackPtr: number;
|
|
53000
53765
|
var _callback = (_stateObject__: number, result) => {
|
|
53001
53766
|
var _resultPtr = getNativePointer(result);
|
|
53002
|
-
var _resultInstance = new Systems.
|
|
53767
|
+
var _resultInstance = new Systems.NullResult(_resultPtr);
|
|
53003
53768
|
|
|
53004
53769
|
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
53005
53770
|
return;
|
|
@@ -53013,103 +53778,171 @@ export namespace Systems {
|
|
|
53013
53778
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
53014
53779
|
|
|
53015
53780
|
Module.ccall(
|
|
53016
|
-
"
|
|
53781
|
+
"csp_systems_SequenceSystem_DeleteSequences_void_ArrayRC_NullResultCallback",
|
|
53017
53782
|
"void",
|
|
53018
|
-
[
|
|
53019
|
-
|
|
53020
|
-
"number",
|
|
53021
|
-
"string",
|
|
53022
|
-
"string",
|
|
53023
|
-
"number",
|
|
53024
|
-
"number",
|
|
53025
|
-
"number",
|
|
53026
|
-
"number",
|
|
53027
|
-
],
|
|
53028
|
-
[
|
|
53029
|
-
this.pointer,
|
|
53030
|
-
sequenceKeys.pointer,
|
|
53031
|
-
keyRegex,
|
|
53032
|
-
referenceType,
|
|
53033
|
-
referenceIds.pointer,
|
|
53034
|
-
metaData.pointer,
|
|
53035
|
-
_callbackPtr,
|
|
53036
|
-
0,
|
|
53037
|
-
],
|
|
53783
|
+
["number", "number", "number", "number"],
|
|
53784
|
+
[this.pointer, sequenceKeys.pointer, _callbackPtr, 0],
|
|
53038
53785
|
);
|
|
53039
53786
|
|
|
53040
53787
|
return _promise;
|
|
53041
53788
|
}
|
|
53042
53789
|
|
|
53043
53790
|
/**
|
|
53044
|
-
* @description
|
|
53045
|
-
* @param
|
|
53046
|
-
* @param referenceType - The type of reference (GroupId etc.). Must be used with ReferenceIds
|
|
53047
|
-
* @param referenceIds - The ids of the reference. Must be used with ReferenceType
|
|
53048
|
-
* @param callback - Callback to call when a response is received
|
|
53791
|
+
* @description Sets a callback for a sequence changed event.
|
|
53792
|
+
* @param callback - Callback to receive data for the sequence that has been changed.
|
|
53049
53793
|
*/
|
|
53794
|
+
setSequenceChangedCallback(
|
|
53795
|
+
callback: (arg1: Common.SequenceChangedNetworkEventData) => void,
|
|
53796
|
+
) {
|
|
53797
|
+
var _callback = (_stateObject__: number, arg1) => {
|
|
53798
|
+
var _arg1 = new Common.SequenceChangedNetworkEventData(
|
|
53799
|
+
getNativePointer(arg1),
|
|
53800
|
+
);
|
|
53050
53801
|
|
|
53051
|
-
|
|
53052
|
-
|
|
53053
|
-
referenceType: string | null,
|
|
53054
|
-
referenceIds: Common.Array<string>,
|
|
53055
|
-
): Promise<Systems.SequencesResult> {
|
|
53056
|
-
var _resolve;
|
|
53802
|
+
callback(_arg1);
|
|
53803
|
+
};
|
|
53057
53804
|
|
|
53058
|
-
var
|
|
53059
|
-
_resolve = _r;
|
|
53060
|
-
});
|
|
53805
|
+
var _callbackPtr = Module.addFunction(_callback, "vii");
|
|
53061
53806
|
|
|
53062
|
-
|
|
53063
|
-
|
|
53064
|
-
|
|
53065
|
-
|
|
53807
|
+
Module.ccall(
|
|
53808
|
+
"csp_systems_SequenceSystem_SetSequenceChangedCallback_void_SequenceChangedCallbackHandler",
|
|
53809
|
+
"void",
|
|
53810
|
+
["number", "number", "number"],
|
|
53811
|
+
[this.pointer, _callbackPtr, 0],
|
|
53812
|
+
);
|
|
53813
|
+
}
|
|
53066
53814
|
|
|
53067
|
-
|
|
53068
|
-
|
|
53069
|
-
|
|
53815
|
+
/**
|
|
53816
|
+
* @description Registers the system to listen for the named event.
|
|
53817
|
+
*/
|
|
53070
53818
|
|
|
53071
|
-
|
|
53819
|
+
registerSystemCallback(): void {
|
|
53820
|
+
Module.ccall(
|
|
53821
|
+
"csp_systems_SequenceSystem_RegisterSystemCallback_void",
|
|
53822
|
+
"void",
|
|
53823
|
+
["number"],
|
|
53824
|
+
[this.pointer],
|
|
53825
|
+
);
|
|
53826
|
+
}
|
|
53072
53827
|
|
|
53073
|
-
|
|
53074
|
-
|
|
53828
|
+
/**
|
|
53829
|
+
* @description Deregisters the system from listening for the named event.
|
|
53830
|
+
*/
|
|
53075
53831
|
|
|
53076
|
-
|
|
53832
|
+
deregisterSystemCallback(): void {
|
|
53833
|
+
Module.ccall(
|
|
53834
|
+
"csp_systems_SequenceSystem_DeregisterSystemCallback_void",
|
|
53835
|
+
"void",
|
|
53836
|
+
["number"],
|
|
53837
|
+
[this.pointer],
|
|
53838
|
+
);
|
|
53839
|
+
}
|
|
53840
|
+
}
|
|
53841
|
+
}
|
|
53842
|
+
|
|
53843
|
+
export namespace Systems {
|
|
53844
|
+
/**
|
|
53845
|
+
@ingroup Application Settings System
|
|
53846
|
+
* @description Represents the result of a request for application settings.
|
|
53847
|
+
*/
|
|
53848
|
+
export class ApplicationSettingsResult
|
|
53849
|
+
extends Systems.ResultBase
|
|
53850
|
+
implements INativeResource
|
|
53851
|
+
{
|
|
53852
|
+
/** @internal */
|
|
53853
|
+
constructor(pointer: NativePointer) {
|
|
53854
|
+
super(pointer);
|
|
53855
|
+
}
|
|
53856
|
+
|
|
53857
|
+
static fromResultBase(
|
|
53858
|
+
baseInstance: Systems.ResultBase,
|
|
53859
|
+
): Systems.ApplicationSettingsResult {
|
|
53860
|
+
const nativeClassWrapper = baseInstance as unknown as NativeClassWrapper;
|
|
53861
|
+
return new Systems.ApplicationSettingsResult(
|
|
53862
|
+
new NativePointer(
|
|
53863
|
+
nativeClassWrapper.pointer,
|
|
53864
|
+
nativeClassWrapper.ownsPointer,
|
|
53865
|
+
),
|
|
53866
|
+
);
|
|
53867
|
+
}
|
|
53868
|
+
|
|
53869
|
+
getApplicationSettings(): Systems.ApplicationSettings {
|
|
53870
|
+
var _ret = Module._malloc(8);
|
|
53077
53871
|
|
|
53078
53872
|
Module.ccall(
|
|
53079
|
-
"
|
|
53873
|
+
"csp_systems_ApplicationSettingsResult_GetApplicationSettingsC_ApplicationSettingsRC",
|
|
53080
53874
|
"void",
|
|
53081
|
-
["number", "number"
|
|
53082
|
-
[
|
|
53083
|
-
this.pointer,
|
|
53084
|
-
items.pointer,
|
|
53085
|
-
referenceType,
|
|
53086
|
-
referenceIds.pointer,
|
|
53087
|
-
_callbackPtr,
|
|
53088
|
-
0,
|
|
53089
|
-
],
|
|
53875
|
+
["number", "number"],
|
|
53876
|
+
[_ret, this.pointer],
|
|
53090
53877
|
);
|
|
53878
|
+
var _nPtr = new Systems.ApplicationSettings(getNativePointer(_ret));
|
|
53879
|
+
Module._free(_ret);
|
|
53091
53880
|
|
|
53092
|
-
return
|
|
53881
|
+
return _nPtr;
|
|
53882
|
+
}
|
|
53883
|
+
|
|
53884
|
+
delete(): void {
|
|
53885
|
+
if (this.ownsPointer && !this.disposed) {
|
|
53886
|
+
Module.ccall(
|
|
53887
|
+
"csp_systems_ApplicationSettingsResult_Dtor",
|
|
53888
|
+
"void",
|
|
53889
|
+
["number"],
|
|
53890
|
+
[this.pointer],
|
|
53891
|
+
);
|
|
53892
|
+
|
|
53893
|
+
this.disposed = true;
|
|
53894
|
+
}
|
|
53895
|
+
}
|
|
53896
|
+
}
|
|
53897
|
+
}
|
|
53898
|
+
|
|
53899
|
+
export namespace Systems {
|
|
53900
|
+
/**
|
|
53901
|
+
@ingroup Application Settings System
|
|
53902
|
+
* @description Public facing system that allows interfacing with Magnopus Connected Services' application settings service.
|
|
53903
|
+
*/
|
|
53904
|
+
export class ApplicationSettingsSystem extends Systems.SystemBase {
|
|
53905
|
+
/** @internal */
|
|
53906
|
+
constructor(pointer: NativePointer) {
|
|
53907
|
+
super(pointer);
|
|
53908
|
+
}
|
|
53909
|
+
|
|
53910
|
+
static fromSystemBase(
|
|
53911
|
+
baseInstance: Systems.SystemBase,
|
|
53912
|
+
): Systems.ApplicationSettingsSystem {
|
|
53913
|
+
const nativeClassWrapper = baseInstance as unknown as NativeClassWrapper;
|
|
53914
|
+
return new Systems.ApplicationSettingsSystem(
|
|
53915
|
+
new NativePointer(
|
|
53916
|
+
nativeClassWrapper.pointer,
|
|
53917
|
+
nativeClassWrapper.ownsPointer,
|
|
53918
|
+
),
|
|
53919
|
+
);
|
|
53093
53920
|
}
|
|
53094
53921
|
|
|
53095
53922
|
/**
|
|
53096
|
-
* @description
|
|
53097
|
-
*
|
|
53098
|
-
* @param
|
|
53099
|
-
* @param
|
|
53923
|
+
* @description Asynchronously retrieves application settings for a specific context.
|
|
53924
|
+
* @param applicationName - The name of the application for which settings are requested.
|
|
53925
|
+
* @param context - The specific context whose settings should be retrieved.
|
|
53926
|
+
* @param keys - Array of setting keys to retrieve. If not provided, all settings
|
|
53927
|
+
* for the context are returned.
|
|
53928
|
+
* @param callback - Callback when asynchronous task finishes.
|
|
53100
53929
|
*/
|
|
53101
53930
|
|
|
53102
|
-
async
|
|
53931
|
+
async getSettingsByContext(
|
|
53932
|
+
applicationName: string,
|
|
53933
|
+
context: string,
|
|
53934
|
+
keys: Common.Array<string> | null,
|
|
53935
|
+
): Promise<Systems.ApplicationSettingsResult> {
|
|
53103
53936
|
var _resolve;
|
|
53104
53937
|
|
|
53105
|
-
var _promise = new Promise<Systems.
|
|
53938
|
+
var _promise = new Promise<Systems.ApplicationSettingsResult>((_r) => {
|
|
53106
53939
|
_resolve = _r;
|
|
53107
53940
|
});
|
|
53108
53941
|
|
|
53109
53942
|
var _callbackPtr: number;
|
|
53110
53943
|
var _callback = (_stateObject__: number, result) => {
|
|
53111
53944
|
var _resultPtr = getNativePointer(result);
|
|
53112
|
-
var _resultInstance = new Systems.
|
|
53945
|
+
var _resultInstance = new Systems.ApplicationSettingsResult(_resultPtr);
|
|
53113
53946
|
|
|
53114
53947
|
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
53115
53948
|
return;
|
|
@@ -53123,35 +53956,48 @@ export namespace Systems {
|
|
|
53123
53956
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
53124
53957
|
|
|
53125
53958
|
Module.ccall(
|
|
53126
|
-
"
|
|
53959
|
+
"csp_systems_ApplicationSettingsSystem_GetSettingsByContext_void_StringRC_StringRC_ArrayRC_ApplicationSettingsResultCallback",
|
|
53127
53960
|
"void",
|
|
53128
|
-
["number", "string", "number", "number"],
|
|
53129
|
-
[
|
|
53961
|
+
["number", "string", "string", "number", "number", "number"],
|
|
53962
|
+
[
|
|
53963
|
+
this.pointer,
|
|
53964
|
+
applicationName,
|
|
53965
|
+
context,
|
|
53966
|
+
keys != null ? keys.pointer : 0,
|
|
53967
|
+
_callbackPtr,
|
|
53968
|
+
0,
|
|
53969
|
+
],
|
|
53130
53970
|
);
|
|
53131
53971
|
|
|
53132
53972
|
return _promise;
|
|
53133
53973
|
}
|
|
53134
53974
|
|
|
53135
53975
|
/**
|
|
53136
|
-
* @description
|
|
53137
|
-
*
|
|
53138
|
-
* @param
|
|
53139
|
-
* @param
|
|
53976
|
+
* @description Asynchronously retrieves application settings for a specific context without requiring authentication.
|
|
53977
|
+
* @param tenant - The tenant identifier under which the application and settings are scoped.
|
|
53978
|
+
* @param applicationName - The name of the application for which settings are requested.
|
|
53979
|
+
* @param context - The specific context whose settings should be retrieved.
|
|
53980
|
+
* @param keys - Array of setting keys to retrieve. If not provided, all settings
|
|
53981
|
+
* for the context are returned.
|
|
53982
|
+
* @param callback - Callback when asynchronous task finishes.
|
|
53140
53983
|
*/
|
|
53141
53984
|
|
|
53142
|
-
async
|
|
53143
|
-
|
|
53144
|
-
|
|
53985
|
+
async getSettingsByContextAnonymous(
|
|
53986
|
+
tenant: string,
|
|
53987
|
+
applicationName: string,
|
|
53988
|
+
context: string,
|
|
53989
|
+
keys: Common.Array<string> | null,
|
|
53990
|
+
): Promise<Systems.ApplicationSettingsResult> {
|
|
53145
53991
|
var _resolve;
|
|
53146
53992
|
|
|
53147
|
-
var _promise = new Promise<Systems.
|
|
53993
|
+
var _promise = new Promise<Systems.ApplicationSettingsResult>((_r) => {
|
|
53148
53994
|
_resolve = _r;
|
|
53149
53995
|
});
|
|
53150
53996
|
|
|
53151
53997
|
var _callbackPtr: number;
|
|
53152
53998
|
var _callback = (_stateObject__: number, result) => {
|
|
53153
53999
|
var _resultPtr = getNativePointer(result);
|
|
53154
|
-
var _resultInstance = new Systems.
|
|
54000
|
+
var _resultInstance = new Systems.ApplicationSettingsResult(_resultPtr);
|
|
53155
54001
|
|
|
53156
54002
|
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
53157
54003
|
return;
|
|
@@ -53165,65 +54011,22 @@ export namespace Systems {
|
|
|
53165
54011
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
53166
54012
|
|
|
53167
54013
|
Module.ccall(
|
|
53168
|
-
"
|
|
54014
|
+
"csp_systems_ApplicationSettingsSystem_GetSettingsByContextAnonymous_void_StringRC_StringRC_StringRC_ArrayRC_ApplicationSettingsResultCallback",
|
|
53169
54015
|
"void",
|
|
53170
|
-
["number", "number", "number", "number"],
|
|
53171
|
-
[
|
|
54016
|
+
["number", "string", "string", "string", "number", "number", "number"],
|
|
54017
|
+
[
|
|
54018
|
+
this.pointer,
|
|
54019
|
+
tenant,
|
|
54020
|
+
applicationName,
|
|
54021
|
+
context,
|
|
54022
|
+
keys != null ? keys.pointer : 0,
|
|
54023
|
+
_callbackPtr,
|
|
54024
|
+
0,
|
|
54025
|
+
],
|
|
53172
54026
|
);
|
|
53173
54027
|
|
|
53174
54028
|
return _promise;
|
|
53175
54029
|
}
|
|
53176
|
-
|
|
53177
|
-
/**
|
|
53178
|
-
* @description Sets a callback for a sequence changed event.
|
|
53179
|
-
* @param callback - Callback to receive data for the sequence that has been changed.
|
|
53180
|
-
*/
|
|
53181
|
-
setSequenceChangedCallback(
|
|
53182
|
-
callback: (arg1: Common.SequenceChangedNetworkEventData) => void,
|
|
53183
|
-
) {
|
|
53184
|
-
var _callback = (_stateObject__: number, arg1) => {
|
|
53185
|
-
var _arg1 = new Common.SequenceChangedNetworkEventData(
|
|
53186
|
-
getNativePointer(arg1),
|
|
53187
|
-
);
|
|
53188
|
-
|
|
53189
|
-
callback(_arg1);
|
|
53190
|
-
};
|
|
53191
|
-
|
|
53192
|
-
var _callbackPtr = Module.addFunction(_callback, "vii");
|
|
53193
|
-
|
|
53194
|
-
Module.ccall(
|
|
53195
|
-
"csp_systems_SequenceSystem_SetSequenceChangedCallback_void_SequenceChangedCallbackHandler",
|
|
53196
|
-
"void",
|
|
53197
|
-
["number", "number", "number"],
|
|
53198
|
-
[this.pointer, _callbackPtr, 0],
|
|
53199
|
-
);
|
|
53200
|
-
}
|
|
53201
|
-
|
|
53202
|
-
/**
|
|
53203
|
-
* @description Registers the system to listen for the named event.
|
|
53204
|
-
*/
|
|
53205
|
-
|
|
53206
|
-
registerSystemCallback(): void {
|
|
53207
|
-
Module.ccall(
|
|
53208
|
-
"csp_systems_SequenceSystem_RegisterSystemCallback_void",
|
|
53209
|
-
"void",
|
|
53210
|
-
["number"],
|
|
53211
|
-
[this.pointer],
|
|
53212
|
-
);
|
|
53213
|
-
}
|
|
53214
|
-
|
|
53215
|
-
/**
|
|
53216
|
-
* @description Deregisters the system from listening for the named event.
|
|
53217
|
-
*/
|
|
53218
|
-
|
|
53219
|
-
deregisterSystemCallback(): void {
|
|
53220
|
-
Module.ccall(
|
|
53221
|
-
"csp_systems_SequenceSystem_DeregisterSystemCallback_void",
|
|
53222
|
-
"void",
|
|
53223
|
-
["number"],
|
|
53224
|
-
[this.pointer],
|
|
53225
|
-
);
|
|
53226
|
-
}
|
|
53227
54030
|
}
|
|
53228
54031
|
}
|
|
53229
54032
|
|
|
@@ -54189,6 +54992,8 @@ export namespace Systems {
|
|
|
54189
54992
|
return new Space(_nPtr);
|
|
54190
54993
|
}
|
|
54191
54994
|
|
|
54995
|
+
// operator=
|
|
54996
|
+
|
|
54192
54997
|
delete(): void {
|
|
54193
54998
|
if (this.ownsPointer && !this.disposed) {
|
|
54194
54999
|
Module.ccall(
|
|
@@ -55008,25 +55813,32 @@ export namespace Systems {
|
|
|
55008
55813
|
|
|
55009
55814
|
/**
|
|
55010
55815
|
* @description Enter a space if you have permission to, based on the Space settings.
|
|
55011
|
-
*
|
|
55012
|
-
*
|
|
55816
|
+
* Registers the user as in the space on the backend service, and calls csp::common::IRealtimeEngine::FetchAllEntitiesAndPopulateBuffers.
|
|
55817
|
+
* The initial load behaviour will differ based on the concrete IRealtimeEngine passed to this function.
|
|
55013
55818
|
* If user does not have permission to discover or enter the space, callback will be called with EResultCode::Failed and
|
|
55014
55819
|
* ERequestFailureReason::UserSpaceAccessDenied
|
|
55015
55820
|
* @param space - Space to enter into
|
|
55821
|
+
* @param realtimeEngine - RealtimeEngine to load the space with. This object belongs to the caller, and does not
|
|
55822
|
+
* transfer ownership. Once the space is loaded, the caller should be sure to maintain the lifetime of the RealtimeEngine so long
|
|
55823
|
+
* as the space is active. Once the caller has called csp::systems::SpaceSystem::ExitSpace and received the callback, then they are
|
|
55824
|
+
* free to release the memory.
|
|
55016
55825
|
* @param callback - Callback when asynchronous task finishes
|
|
55017
55826
|
*/
|
|
55018
55827
|
|
|
55019
|
-
async enterSpace(
|
|
55828
|
+
async enterSpace(
|
|
55829
|
+
spaceId: string,
|
|
55830
|
+
realtimeEngine: Common.IRealtimeEngine,
|
|
55831
|
+
): Promise<Systems.SpaceResult> {
|
|
55020
55832
|
var _resolve;
|
|
55021
55833
|
|
|
55022
|
-
var _promise = new Promise<Systems.
|
|
55834
|
+
var _promise = new Promise<Systems.SpaceResult>((_r) => {
|
|
55023
55835
|
_resolve = _r;
|
|
55024
55836
|
});
|
|
55025
55837
|
|
|
55026
55838
|
var _callbackPtr: number;
|
|
55027
55839
|
var _callback = (_stateObject__: number, result) => {
|
|
55028
55840
|
var _resultPtr = getNativePointer(result);
|
|
55029
|
-
var _resultInstance = new Systems.
|
|
55841
|
+
var _resultInstance = new Systems.SpaceResult(_resultPtr);
|
|
55030
55842
|
|
|
55031
55843
|
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
55032
55844
|
return;
|
|
@@ -55040,10 +55852,10 @@ export namespace Systems {
|
|
|
55040
55852
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
55041
55853
|
|
|
55042
55854
|
Module.ccall(
|
|
55043
|
-
"
|
|
55855
|
+
"csp_systems_SpaceSystem_EnterSpace_void_StringRC_IRealtimeEngineP_SpaceResultCallback",
|
|
55044
55856
|
"void",
|
|
55045
|
-
["number", "string", "number", "number"],
|
|
55046
|
-
[this.pointer, spaceId, _callbackPtr, 0],
|
|
55857
|
+
["number", "string", "number", "number", "number"],
|
|
55858
|
+
[this.pointer, spaceId, realtimeEngine.pointer, _callbackPtr, 0],
|
|
55047
55859
|
);
|
|
55048
55860
|
|
|
55049
55861
|
return _promise;
|
|
@@ -59798,6 +60610,42 @@ export namespace Common {
|
|
|
59798
60610
|
return _inst;
|
|
59799
60611
|
}
|
|
59800
60612
|
|
|
60613
|
+
static ofcsp_systems_VersionMetadata(): Array<Systems.VersionMetadata> {
|
|
60614
|
+
var _ret = Module._malloc(8);
|
|
60615
|
+
Module.ccall(
|
|
60616
|
+
"csp_common_Array_Ctor_csp_systems_VersionMetadata",
|
|
60617
|
+
"void",
|
|
60618
|
+
["number"],
|
|
60619
|
+
[_ret],
|
|
60620
|
+
);
|
|
60621
|
+
var _inst = new Array<Systems.VersionMetadata>(
|
|
60622
|
+
getNativePointer(_ret),
|
|
60623
|
+
csp_systems_VersionMetadataFactory,
|
|
60624
|
+
"csp_systems_VersionMetadata",
|
|
60625
|
+
);
|
|
60626
|
+
Module._free(_ret);
|
|
60627
|
+
|
|
60628
|
+
return _inst;
|
|
60629
|
+
}
|
|
60630
|
+
|
|
60631
|
+
static ofcsp_systems_ServiceStatus(): Array<Systems.ServiceStatus> {
|
|
60632
|
+
var _ret = Module._malloc(8);
|
|
60633
|
+
Module.ccall(
|
|
60634
|
+
"csp_common_Array_Ctor_csp_systems_ServiceStatus",
|
|
60635
|
+
"void",
|
|
60636
|
+
["number"],
|
|
60637
|
+
[_ret],
|
|
60638
|
+
);
|
|
60639
|
+
var _inst = new Array<Systems.ServiceStatus>(
|
|
60640
|
+
getNativePointer(_ret),
|
|
60641
|
+
csp_systems_ServiceStatusFactory,
|
|
60642
|
+
"csp_systems_ServiceStatus",
|
|
60643
|
+
);
|
|
60644
|
+
Module._free(_ret);
|
|
60645
|
+
|
|
60646
|
+
return _inst;
|
|
60647
|
+
}
|
|
60648
|
+
|
|
59801
60649
|
static ofString(): Array<string> {
|
|
59802
60650
|
var _ret = Module._malloc(8);
|
|
59803
60651
|
Module.ccall("csp_common_Array_Ctor_String", "void", ["number"], [_ret]);
|
|
@@ -60573,6 +61421,46 @@ export namespace Common {
|
|
|
60573
61421
|
return _inst;
|
|
60574
61422
|
}
|
|
60575
61423
|
|
|
61424
|
+
static ofcsp_systems_VersionMetadata_number(
|
|
61425
|
+
size: number,
|
|
61426
|
+
): Array<Systems.VersionMetadata> {
|
|
61427
|
+
var _ret = Module._malloc(8);
|
|
61428
|
+
Module.ccall(
|
|
61429
|
+
"csp_common_Array_Conv_size_tC_csp_systems_VersionMetadata",
|
|
61430
|
+
"void",
|
|
61431
|
+
["number", "number"],
|
|
61432
|
+
[_ret, size],
|
|
61433
|
+
);
|
|
61434
|
+
var _inst = new Array<Systems.VersionMetadata>(
|
|
61435
|
+
getNativePointer(_ret),
|
|
61436
|
+
csp_systems_VersionMetadataFactory,
|
|
61437
|
+
"csp_systems_VersionMetadata",
|
|
61438
|
+
);
|
|
61439
|
+
Module._free(_ret);
|
|
61440
|
+
|
|
61441
|
+
return _inst;
|
|
61442
|
+
}
|
|
61443
|
+
|
|
61444
|
+
static ofcsp_systems_ServiceStatus_number(
|
|
61445
|
+
size: number,
|
|
61446
|
+
): Array<Systems.ServiceStatus> {
|
|
61447
|
+
var _ret = Module._malloc(8);
|
|
61448
|
+
Module.ccall(
|
|
61449
|
+
"csp_common_Array_Conv_size_tC_csp_systems_ServiceStatus",
|
|
61450
|
+
"void",
|
|
61451
|
+
["number", "number"],
|
|
61452
|
+
[_ret, size],
|
|
61453
|
+
);
|
|
61454
|
+
var _inst = new Array<Systems.ServiceStatus>(
|
|
61455
|
+
getNativePointer(_ret),
|
|
61456
|
+
csp_systems_ServiceStatusFactory,
|
|
61457
|
+
"csp_systems_ServiceStatus",
|
|
61458
|
+
);
|
|
61459
|
+
Module._free(_ret);
|
|
61460
|
+
|
|
61461
|
+
return _inst;
|
|
61462
|
+
}
|
|
61463
|
+
|
|
60576
61464
|
static ofString_number(size: number): Array<string> {
|
|
60577
61465
|
var _ret = Module._malloc(8);
|
|
60578
61466
|
Module.ccall(
|