connected-spaces-platform.web 5.0.0 → 5.1.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/ConnectedSpacesPlatform_WASM.d.ts +2 -0
- package/Debug/ConnectedSpacesPlatform_WASM.js +192 -6
- package/Debug/ConnectedSpacesPlatform_WASM.wasm +0 -0
- package/Debug/ConnectedSpacesPlatform_WASM.wasm.debug.wasm +0 -0
- package/README.md +4 -2
- package/Release/ConnectedSpacesPlatform_WASM.js +1 -1
- package/Release/ConnectedSpacesPlatform_WASM.wasm +0 -0
- package/connectedspacesplatform.d.ts +11466 -11079
- package/connectedspacesplatform.js +28405 -27327
- package/connectedspacesplatform.js.map +1 -1
- package/connectedspacesplatform.ts +1951 -26
- package/package.json +1 -1
|
@@ -168,10 +168,7 @@ export class Limits {
|
|
|
168
168
|
}
|
|
169
169
|
|
|
170
170
|
class NativePointer {
|
|
171
|
-
constructor(
|
|
172
|
-
public pointer: number,
|
|
173
|
-
public ownsOwnData: boolean,
|
|
174
|
-
) {}
|
|
171
|
+
constructor(public pointer: number, public ownsOwnData: boolean) {}
|
|
175
172
|
}
|
|
176
173
|
|
|
177
174
|
function getNativePointer(pointer: number): NativePointer {
|
|
@@ -1026,6 +1023,14 @@ function csp_multiplayer_SequenceChangedParamsFactory(
|
|
|
1026
1023
|
ProxyClassFactories["csp_multiplayer_SequenceChangedParams"] =
|
|
1027
1024
|
csp_multiplayer_SequenceChangedParamsFactory;
|
|
1028
1025
|
|
|
1026
|
+
function csp_multiplayer_SequenceHierarchyChangedParamsFactory(
|
|
1027
|
+
nativePointer: NativePointer,
|
|
1028
|
+
): NativeClassWrapper {
|
|
1029
|
+
return new Multiplayer.SequenceHierarchyChangedParams(nativePointer);
|
|
1030
|
+
}
|
|
1031
|
+
ProxyClassFactories["csp_multiplayer_SequenceHierarchyChangedParams"] =
|
|
1032
|
+
csp_multiplayer_SequenceHierarchyChangedParamsFactory;
|
|
1033
|
+
|
|
1029
1034
|
function csp_multiplayer_MultiplayerConnectionFactory(
|
|
1030
1035
|
nativePointer: NativePointer,
|
|
1031
1036
|
): NativeClassWrapper {
|
|
@@ -1042,6 +1047,14 @@ function csp_multiplayer_ReplicatedValueFactory(
|
|
|
1042
1047
|
ProxyClassFactories["csp_multiplayer_ReplicatedValue"] =
|
|
1043
1048
|
csp_multiplayer_ReplicatedValueFactory;
|
|
1044
1049
|
|
|
1050
|
+
function csp_multiplayer_SequenceHierarchyFactory(
|
|
1051
|
+
nativePointer: NativePointer,
|
|
1052
|
+
): NativeClassWrapper {
|
|
1053
|
+
return new Multiplayer.SequenceHierarchy(nativePointer);
|
|
1054
|
+
}
|
|
1055
|
+
ProxyClassFactories["csp_multiplayer_SequenceHierarchy"] =
|
|
1056
|
+
csp_multiplayer_SequenceHierarchyFactory;
|
|
1057
|
+
|
|
1045
1058
|
function csp_multiplayer_ComponentUpdateInfoFactory(
|
|
1046
1059
|
nativePointer: NativePointer,
|
|
1047
1060
|
): NativeClassWrapper {
|
|
@@ -1281,6 +1294,14 @@ function csp_systems_TicketedEventVendorAuthInfoFactory(
|
|
|
1281
1294
|
ProxyClassFactories["csp_systems_TicketedEventVendorAuthInfo"] =
|
|
1282
1295
|
csp_systems_TicketedEventVendorAuthInfoFactory;
|
|
1283
1296
|
|
|
1297
|
+
function csp_systems_HotspotGroupFactory(
|
|
1298
|
+
nativePointer: NativePointer,
|
|
1299
|
+
): NativeClassWrapper {
|
|
1300
|
+
return new Systems.HotspotGroup(nativePointer);
|
|
1301
|
+
}
|
|
1302
|
+
ProxyClassFactories["csp_systems_HotspotGroup"] =
|
|
1303
|
+
csp_systems_HotspotGroupFactory;
|
|
1304
|
+
|
|
1284
1305
|
function csp_systems_LogSystemFactory(
|
|
1285
1306
|
nativePointer: NativePointer,
|
|
1286
1307
|
): NativeClassWrapper {
|
|
@@ -1512,6 +1533,22 @@ function csp_systems_VoipSystemFactory(
|
|
|
1512
1533
|
}
|
|
1513
1534
|
ProxyClassFactories["csp_systems_VoipSystem"] = csp_systems_VoipSystemFactory;
|
|
1514
1535
|
|
|
1536
|
+
function csp_multiplayer_SequenceHierarchyResultFactory(
|
|
1537
|
+
nativePointer: NativePointer,
|
|
1538
|
+
): NativeClassWrapper {
|
|
1539
|
+
return new Multiplayer.SequenceHierarchyResult(nativePointer);
|
|
1540
|
+
}
|
|
1541
|
+
ProxyClassFactories["csp_multiplayer_SequenceHierarchyResult"] =
|
|
1542
|
+
csp_multiplayer_SequenceHierarchyResultFactory;
|
|
1543
|
+
|
|
1544
|
+
function csp_multiplayer_SequenceHierarchyCollectionResultFactory(
|
|
1545
|
+
nativePointer: NativePointer,
|
|
1546
|
+
): NativeClassWrapper {
|
|
1547
|
+
return new Multiplayer.SequenceHierarchyCollectionResult(nativePointer);
|
|
1548
|
+
}
|
|
1549
|
+
ProxyClassFactories["csp_multiplayer_SequenceHierarchyCollectionResult"] =
|
|
1550
|
+
csp_multiplayer_SequenceHierarchyCollectionResultFactory;
|
|
1551
|
+
|
|
1515
1552
|
function csp_multiplayer_AnimatedModelSpaceComponentFactory(
|
|
1516
1553
|
nativePointer: NativePointer,
|
|
1517
1554
|
): NativeClassWrapper {
|
|
@@ -1964,6 +2001,30 @@ function csp_systems_GraphQLSystemFactory(
|
|
|
1964
2001
|
ProxyClassFactories["csp_systems_GraphQLSystem"] =
|
|
1965
2002
|
csp_systems_GraphQLSystemFactory;
|
|
1966
2003
|
|
|
2004
|
+
function csp_systems_HotspotGroupResultFactory(
|
|
2005
|
+
nativePointer: NativePointer,
|
|
2006
|
+
): NativeClassWrapper {
|
|
2007
|
+
return new Systems.HotspotGroupResult(nativePointer);
|
|
2008
|
+
}
|
|
2009
|
+
ProxyClassFactories["csp_systems_HotspotGroupResult"] =
|
|
2010
|
+
csp_systems_HotspotGroupResultFactory;
|
|
2011
|
+
|
|
2012
|
+
function csp_systems_HotspotGroupsResultFactory(
|
|
2013
|
+
nativePointer: NativePointer,
|
|
2014
|
+
): NativeClassWrapper {
|
|
2015
|
+
return new Systems.HotspotGroupsResult(nativePointer);
|
|
2016
|
+
}
|
|
2017
|
+
ProxyClassFactories["csp_systems_HotspotGroupsResult"] =
|
|
2018
|
+
csp_systems_HotspotGroupsResultFactory;
|
|
2019
|
+
|
|
2020
|
+
function csp_systems_HotspotSequenceSystemFactory(
|
|
2021
|
+
nativePointer: NativePointer,
|
|
2022
|
+
): NativeClassWrapper {
|
|
2023
|
+
return new Systems.HotspotSequenceSystem(nativePointer);
|
|
2024
|
+
}
|
|
2025
|
+
ProxyClassFactories["csp_systems_HotspotSequenceSystem"] =
|
|
2026
|
+
csp_systems_HotspotSequenceSystemFactory;
|
|
2027
|
+
|
|
1967
2028
|
function csp_systems_MaintenanceInfoResultFactory(
|
|
1968
2029
|
nativePointer: NativePointer,
|
|
1969
2030
|
): NativeClassWrapper {
|
|
@@ -2352,6 +2413,26 @@ function csp_common_Array_csp_systems_SpaceUserRoleFactory(
|
|
|
2352
2413
|
ProxyClassFactories["csp_common_Array_csp_systems_SpaceUserRole"] =
|
|
2353
2414
|
csp_common_Array_csp_systems_SpaceUserRoleFactory;
|
|
2354
2415
|
|
|
2416
|
+
function csp_common_Array_uint64_tFactory(
|
|
2417
|
+
nativePointer: NativePointer,
|
|
2418
|
+
): NativeClassWrapper {
|
|
2419
|
+
return new Common.Array<bigint>(nativePointer, NumberFactory, "uint64_t");
|
|
2420
|
+
}
|
|
2421
|
+
ProxyClassFactories["csp_common_Array_uint64_t"] =
|
|
2422
|
+
csp_common_Array_uint64_tFactory;
|
|
2423
|
+
|
|
2424
|
+
function csp_common_Array_csp_multiplayer_SequenceHierarchyFactory(
|
|
2425
|
+
nativePointer: NativePointer,
|
|
2426
|
+
): NativeClassWrapper {
|
|
2427
|
+
return new Common.Array<Multiplayer.SequenceHierarchy>(
|
|
2428
|
+
nativePointer,
|
|
2429
|
+
csp_multiplayer_SequenceHierarchyFactory,
|
|
2430
|
+
"csp_multiplayer_SequenceHierarchy",
|
|
2431
|
+
);
|
|
2432
|
+
}
|
|
2433
|
+
ProxyClassFactories["csp_common_Array_csp_multiplayer_SequenceHierarchy"] =
|
|
2434
|
+
csp_common_Array_csp_multiplayer_SequenceHierarchyFactory;
|
|
2435
|
+
|
|
2355
2436
|
function csp_common_Array_csp_multiplayer_MessageInfoFactory(
|
|
2356
2437
|
nativePointer: NativePointer,
|
|
2357
2438
|
): NativeClassWrapper {
|
|
@@ -2527,6 +2608,18 @@ function csp_common_Array_csp_systems_TicketedEventFactory(
|
|
|
2527
2608
|
ProxyClassFactories["csp_common_Array_csp_systems_TicketedEvent"] =
|
|
2528
2609
|
csp_common_Array_csp_systems_TicketedEventFactory;
|
|
2529
2610
|
|
|
2611
|
+
function csp_common_Array_csp_systems_HotspotGroupFactory(
|
|
2612
|
+
nativePointer: NativePointer,
|
|
2613
|
+
): NativeClassWrapper {
|
|
2614
|
+
return new Common.Array<Systems.HotspotGroup>(
|
|
2615
|
+
nativePointer,
|
|
2616
|
+
csp_systems_HotspotGroupFactory,
|
|
2617
|
+
"csp_systems_HotspotGroup",
|
|
2618
|
+
);
|
|
2619
|
+
}
|
|
2620
|
+
ProxyClassFactories["csp_common_Array_csp_systems_HotspotGroup"] =
|
|
2621
|
+
csp_common_Array_csp_systems_HotspotGroupFactory;
|
|
2622
|
+
|
|
2530
2623
|
function csp_common_Array_csp_systems_MaintenanceInfoFactory(
|
|
2531
2624
|
nativePointer: NativePointer,
|
|
2532
2625
|
): NativeClassWrapper {
|
|
@@ -2794,6 +2887,18 @@ function csp_common_Array_csp_common_Map_String_StringFactory(
|
|
|
2794
2887
|
ProxyClassFactories["csp_common_Array_csp_common_Map_String_String"] =
|
|
2795
2888
|
csp_common_Array_csp_common_Map_String_StringFactory;
|
|
2796
2889
|
|
|
2890
|
+
function csp_common_List_csp_multiplayer_SpaceEntityFactory(
|
|
2891
|
+
nativePointer: NativePointer,
|
|
2892
|
+
): NativeClassWrapper {
|
|
2893
|
+
return new Common.List<Multiplayer.SpaceEntity>(
|
|
2894
|
+
nativePointer,
|
|
2895
|
+
csp_multiplayer_SpaceEntityFactory,
|
|
2896
|
+
"csp_multiplayer_SpaceEntity",
|
|
2897
|
+
);
|
|
2898
|
+
}
|
|
2899
|
+
ProxyClassFactories["csp_common_List_csp_multiplayer_SpaceEntity"] =
|
|
2900
|
+
csp_common_List_csp_multiplayer_SpaceEntityFactory;
|
|
2901
|
+
|
|
2797
2902
|
function csp_common_List_StringFactory(
|
|
2798
2903
|
nativePointer: NativePointer,
|
|
2799
2904
|
): NativeClassWrapper {
|
|
@@ -2963,6 +3068,7 @@ export namespace Multiplayer {
|
|
|
2963
3068
|
export enum ESequenceUpdateType {
|
|
2964
3069
|
Create,
|
|
2965
3070
|
Update,
|
|
3071
|
+
Rename,
|
|
2966
3072
|
Delete,
|
|
2967
3073
|
}
|
|
2968
3074
|
}
|
|
@@ -3051,6 +3157,7 @@ export namespace Multiplayer {
|
|
|
3051
3157
|
UPDATE_FLAGS_SELECTION_ID = 32,
|
|
3052
3158
|
UPDATE_FLAGS_THIRD_PARTY_REF = 64,
|
|
3053
3159
|
UPDATE_FLAGS_THIRD_PARTY_PLATFORM = 128,
|
|
3160
|
+
UPDATE_FLAGS_PARENT = 256,
|
|
3054
3161
|
}
|
|
3055
3162
|
}
|
|
3056
3163
|
|
|
@@ -3071,7 +3178,7 @@ export namespace Multiplayer {
|
|
|
3071
3178
|
* @description Enumerates the list of properties that can be replicated for an animated model component.
|
|
3072
3179
|
*/
|
|
3073
3180
|
export enum AnimatedModelPropertyKeys {
|
|
3074
|
-
|
|
3181
|
+
Name_DEPRECATED = 0,
|
|
3075
3182
|
ExternalResourceAssetId,
|
|
3076
3183
|
ExternalResourceAssetCollectionId,
|
|
3077
3184
|
Position,
|
|
@@ -3209,7 +3316,7 @@ export namespace Multiplayer {
|
|
|
3209
3316
|
* @description Enumerates the list of properties that can be replicated for a button component.
|
|
3210
3317
|
*/
|
|
3211
3318
|
export enum ButtonPropertyKeys {
|
|
3212
|
-
|
|
3319
|
+
Name_DEPRECATED = 0,
|
|
3213
3320
|
LabelText,
|
|
3214
3321
|
IconAssetId,
|
|
3215
3322
|
AssetCollectionId,
|
|
@@ -3316,7 +3423,7 @@ export namespace Multiplayer {
|
|
|
3316
3423
|
* @description The list of properties defined within an external link component.
|
|
3317
3424
|
*/
|
|
3318
3425
|
export enum ExternalLinkPropertyKeys {
|
|
3319
|
-
|
|
3426
|
+
Name_DEPRECATED = 0,
|
|
3320
3427
|
LinkUrl,
|
|
3321
3428
|
Position,
|
|
3322
3429
|
Rotation,
|
|
@@ -3334,7 +3441,7 @@ export namespace Multiplayer {
|
|
|
3334
3441
|
* @description Enumerates the list of properties that can be replicated for a fiducial marker space component.
|
|
3335
3442
|
*/
|
|
3336
3443
|
export enum FiducialMarkerPropertyKeys {
|
|
3337
|
-
|
|
3444
|
+
Name_DEPRECATED,
|
|
3338
3445
|
MarkerAssetId,
|
|
3339
3446
|
AssetCollectionId,
|
|
3340
3447
|
Position,
|
|
@@ -3385,7 +3492,7 @@ export namespace Multiplayer {
|
|
|
3385
3492
|
* @description Enumerates the list of properties that can be replicated for a Gaussian Splat component.
|
|
3386
3493
|
*/
|
|
3387
3494
|
export enum GaussianSplatPropertyKeys {
|
|
3388
|
-
|
|
3495
|
+
Name_DEPRECATED = 0,
|
|
3389
3496
|
ExternalResourceAssetId,
|
|
3390
3497
|
ExternalResourceAssetCollectionId,
|
|
3391
3498
|
Position,
|
|
@@ -3406,7 +3513,7 @@ export namespace Multiplayer {
|
|
|
3406
3513
|
export enum HotspotPropertyKeys {
|
|
3407
3514
|
Position,
|
|
3408
3515
|
Rotation,
|
|
3409
|
-
|
|
3516
|
+
Name_DEPRECATED,
|
|
3410
3517
|
IsTeleportPoint,
|
|
3411
3518
|
IsSpawnPoint,
|
|
3412
3519
|
IsVisible,
|
|
@@ -3420,7 +3527,7 @@ export namespace Multiplayer {
|
|
|
3420
3527
|
* @description Enumerates the list of properties that can be replicated for an image space component.
|
|
3421
3528
|
*/
|
|
3422
3529
|
export enum ImagePropertyKeys {
|
|
3423
|
-
|
|
3530
|
+
Name_DEPRECATED,
|
|
3424
3531
|
ImageAssetId,
|
|
3425
3532
|
AssetCollectionId,
|
|
3426
3533
|
Position,
|
|
@@ -3486,7 +3593,7 @@ export namespace Multiplayer {
|
|
|
3486
3593
|
* @description Enumerates the list of properties that can be replicated for a light component.
|
|
3487
3594
|
*/
|
|
3488
3595
|
export enum LightPropertyKeys {
|
|
3489
|
-
|
|
3596
|
+
Name_DEPRECATED = 0,
|
|
3490
3597
|
LightType,
|
|
3491
3598
|
Color,
|
|
3492
3599
|
Intensity,
|
|
@@ -3528,7 +3635,7 @@ export namespace Multiplayer {
|
|
|
3528
3635
|
* @description Enumerates the list of properties that can be replicated for a reflection component.
|
|
3529
3636
|
*/
|
|
3530
3637
|
export enum ReflectionPropertyKeys {
|
|
3531
|
-
|
|
3638
|
+
Name_DEPRECATED,
|
|
3532
3639
|
ReflectionAssetId,
|
|
3533
3640
|
AssetCollectionId,
|
|
3534
3641
|
Position,
|
|
@@ -3588,7 +3695,7 @@ export namespace Multiplayer {
|
|
|
3588
3695
|
* @description Enumerates the list of properties that can be replicated for a static model component.
|
|
3589
3696
|
*/
|
|
3590
3697
|
export enum StaticModelPropertyKeys {
|
|
3591
|
-
|
|
3698
|
+
Name_DEPRECATED = 0,
|
|
3592
3699
|
ExternalResourceAssetId,
|
|
3593
3700
|
ExternalResourceAssetCollectionId,
|
|
3594
3701
|
Position,
|
|
@@ -3663,7 +3770,7 @@ export namespace Multiplayer {
|
|
|
3663
3770
|
* @description Enumerates the list of properties that can be replicated for a video player component.
|
|
3664
3771
|
*/
|
|
3665
3772
|
export enum VideoPlayerPropertyKeys {
|
|
3666
|
-
|
|
3773
|
+
Name_DEPRECATED = 0,
|
|
3667
3774
|
VideoAssetId,
|
|
3668
3775
|
VideoAssetURL,
|
|
3669
3776
|
AssetCollectionId,
|
|
@@ -3751,6 +3858,7 @@ export namespace Systems {
|
|
|
3751
3858
|
ShopifyInvalidStoreName,
|
|
3752
3859
|
UserShopifyLimitReached,
|
|
3753
3860
|
UserTokenRefreshFailed,
|
|
3861
|
+
InvalidSequenceKey,
|
|
3754
3862
|
}
|
|
3755
3863
|
}
|
|
3756
3864
|
|
|
@@ -4211,6 +4319,12 @@ export namespace Multiplayer {
|
|
|
4211
4319
|
*/
|
|
4212
4320
|
nextValueIsNull: () => boolean;
|
|
4213
4321
|
|
|
4322
|
+
/**
|
|
4323
|
+
* @description Checks if the next value is an array.
|
|
4324
|
+
* @return True if the next value is null, false otherwise.
|
|
4325
|
+
*/
|
|
4326
|
+
nextValueIsArray: () => boolean;
|
|
4327
|
+
|
|
4214
4328
|
/**
|
|
4215
4329
|
* @description Puts the deserialiser into array processing mode to begin reading from an array.
|
|
4216
4330
|
* @param outLength - A reference to variable to store the length of the array.
|
|
@@ -20915,6 +21029,36 @@ export namespace Common {
|
|
|
20915
21029
|
return new Vector3(_nPtr);
|
|
20916
21030
|
}
|
|
20917
21031
|
|
|
21032
|
+
/**
|
|
21033
|
+
* @description Member by member addition with another Vector3
|
|
21034
|
+
* @param vector3 - Other
|
|
21035
|
+
*/
|
|
21036
|
+
// operator+
|
|
21037
|
+
|
|
21038
|
+
/**
|
|
21039
|
+
* @description Subtracts another Vector3 from this one
|
|
21040
|
+
* @param vector3 - Other
|
|
21041
|
+
*/
|
|
21042
|
+
// operator-
|
|
21043
|
+
|
|
21044
|
+
/**
|
|
21045
|
+
* @description Divides the Vector3 by divisor
|
|
21046
|
+
* @param float - Divisor
|
|
21047
|
+
*/
|
|
21048
|
+
// operator/
|
|
21049
|
+
|
|
21050
|
+
/**
|
|
21051
|
+
* @description Member by member multiplication with another Vector3
|
|
21052
|
+
* @param vector3 - Other
|
|
21053
|
+
*/
|
|
21054
|
+
// operator*
|
|
21055
|
+
|
|
21056
|
+
/**
|
|
21057
|
+
* @description Multiplies the Vector3 by a scalar
|
|
21058
|
+
* @param float - Scalar
|
|
21059
|
+
*/
|
|
21060
|
+
// operator*
|
|
21061
|
+
|
|
20918
21062
|
delete(): void {
|
|
20919
21063
|
if (this.ownsPointer && !this.disposed) {
|
|
20920
21064
|
Module.ccall(
|
|
@@ -21091,6 +21235,36 @@ export namespace Common {
|
|
|
21091
21235
|
return new Vector4(_nPtr);
|
|
21092
21236
|
}
|
|
21093
21237
|
|
|
21238
|
+
/**
|
|
21239
|
+
* @description Member by member addition with another Vector4
|
|
21240
|
+
* @param vector4 - Other
|
|
21241
|
+
*/
|
|
21242
|
+
// operator+
|
|
21243
|
+
|
|
21244
|
+
/**
|
|
21245
|
+
* @description Subtracts another Vector4 from this one
|
|
21246
|
+
* @param vector4 - Other
|
|
21247
|
+
*/
|
|
21248
|
+
// operator-
|
|
21249
|
+
|
|
21250
|
+
/**
|
|
21251
|
+
* @description Divides the Vector4 by divisor
|
|
21252
|
+
* @param float - Divisor
|
|
21253
|
+
*/
|
|
21254
|
+
// operator/
|
|
21255
|
+
|
|
21256
|
+
/**
|
|
21257
|
+
* @description Member by member multiplication with another Vector4
|
|
21258
|
+
* @param vector4 - Other
|
|
21259
|
+
*/
|
|
21260
|
+
// operator*
|
|
21261
|
+
|
|
21262
|
+
/**
|
|
21263
|
+
* @description Multiplies the Vector4 by a scalar
|
|
21264
|
+
* @param float - Scalar
|
|
21265
|
+
*/
|
|
21266
|
+
// operator*
|
|
21267
|
+
|
|
21094
21268
|
delete(): void {
|
|
21095
21269
|
if (this.ownsPointer && !this.disposed) {
|
|
21096
21270
|
Module.ccall(
|
|
@@ -21362,6 +21536,40 @@ export namespace Multiplayer {
|
|
|
21362
21536
|
[this.pointer, action, actionParams],
|
|
21363
21537
|
);
|
|
21364
21538
|
}
|
|
21539
|
+
|
|
21540
|
+
/**
|
|
21541
|
+
* @description Gets the name of the component.
|
|
21542
|
+
*/
|
|
21543
|
+
|
|
21544
|
+
getComponentName(): string {
|
|
21545
|
+
let _result = Module.ccall(
|
|
21546
|
+
"csp_multiplayer_ComponentBase_GetComponentNameC_StringRC",
|
|
21547
|
+
"number",
|
|
21548
|
+
["number"],
|
|
21549
|
+
[this.pointer],
|
|
21550
|
+
);
|
|
21551
|
+
|
|
21552
|
+
const _resultString = Module.UTF8ToString(_result);
|
|
21553
|
+
free(_result);
|
|
21554
|
+
|
|
21555
|
+
_result = _resultString;
|
|
21556
|
+
|
|
21557
|
+
return _result;
|
|
21558
|
+
}
|
|
21559
|
+
|
|
21560
|
+
/**
|
|
21561
|
+
* @description Sets the name for the component.
|
|
21562
|
+
* @param value - - The new name to assign to the componenent.
|
|
21563
|
+
*/
|
|
21564
|
+
|
|
21565
|
+
setComponentName(value: string): void {
|
|
21566
|
+
Module.ccall(
|
|
21567
|
+
"csp_multiplayer_ComponentBase_SetComponentName_void_StringRC",
|
|
21568
|
+
"void",
|
|
21569
|
+
["number", "string"],
|
|
21570
|
+
[this.pointer, value],
|
|
21571
|
+
);
|
|
21572
|
+
}
|
|
21365
21573
|
}
|
|
21366
21574
|
}
|
|
21367
21575
|
|
|
@@ -21812,6 +22020,110 @@ export namespace Multiplayer {
|
|
|
21812
22020
|
}
|
|
21813
22021
|
}
|
|
21814
22022
|
|
|
22023
|
+
export namespace Multiplayer {
|
|
22024
|
+
export class SequenceHierarchyChangedParams
|
|
22025
|
+
extends NativeClassWrapper
|
|
22026
|
+
implements INativeResource
|
|
22027
|
+
{
|
|
22028
|
+
/** @internal */
|
|
22029
|
+
constructor(pointer: NativePointer) {
|
|
22030
|
+
super(pointer);
|
|
22031
|
+
}
|
|
22032
|
+
|
|
22033
|
+
static create(): SequenceHierarchyChangedParams {
|
|
22034
|
+
var _ptr = Module._malloc(8);
|
|
22035
|
+
Module.ccall(
|
|
22036
|
+
"csp_multiplayer_SequenceHierarchyChangedParams_Ctor",
|
|
22037
|
+
"void",
|
|
22038
|
+
["number"],
|
|
22039
|
+
[_ptr],
|
|
22040
|
+
);
|
|
22041
|
+
var _nPtr = getNativePointer(_ptr);
|
|
22042
|
+
|
|
22043
|
+
return new SequenceHierarchyChangedParams(_nPtr);
|
|
22044
|
+
}
|
|
22045
|
+
|
|
22046
|
+
delete(): void {
|
|
22047
|
+
if (this.ownsPointer && !this.disposed) {
|
|
22048
|
+
Module.ccall(
|
|
22049
|
+
"csp_multiplayer_SequenceHierarchyChangedParams_Dtor",
|
|
22050
|
+
"void",
|
|
22051
|
+
["number"],
|
|
22052
|
+
[this.pointer],
|
|
22053
|
+
);
|
|
22054
|
+
|
|
22055
|
+
this.disposed = true;
|
|
22056
|
+
}
|
|
22057
|
+
}
|
|
22058
|
+
|
|
22059
|
+
get updateType(): Multiplayer.ESequenceUpdateType {
|
|
22060
|
+
let _result = Module.ccall(
|
|
22061
|
+
"csp_multiplayer_SequenceHierarchyChangedParams__Get_UpdateType",
|
|
22062
|
+
"number",
|
|
22063
|
+
["number"],
|
|
22064
|
+
[this.pointer],
|
|
22065
|
+
);
|
|
22066
|
+
|
|
22067
|
+
return _result;
|
|
22068
|
+
}
|
|
22069
|
+
|
|
22070
|
+
set updateType(value: Multiplayer.ESequenceUpdateType) {
|
|
22071
|
+
Module.ccall(
|
|
22072
|
+
"csp_multiplayer_SequenceHierarchyChangedParams__Set_UpdateType",
|
|
22073
|
+
"void",
|
|
22074
|
+
["number", "number"],
|
|
22075
|
+
[this.pointer, value],
|
|
22076
|
+
);
|
|
22077
|
+
}
|
|
22078
|
+
|
|
22079
|
+
get parentId(): bigint {
|
|
22080
|
+
let _result = Module.ccall(
|
|
22081
|
+
"csp_multiplayer_SequenceHierarchyChangedParams__Get_ParentId",
|
|
22082
|
+
"bigint",
|
|
22083
|
+
["number"],
|
|
22084
|
+
[this.pointer],
|
|
22085
|
+
);
|
|
22086
|
+
|
|
22087
|
+
const _unfixedValue = _result;
|
|
22088
|
+
let _fixedValue =
|
|
22089
|
+
_unfixedValue < 0 ? _unfixedValue + 2n ** 64n : _unfixedValue;
|
|
22090
|
+
|
|
22091
|
+
_result = _fixedValue;
|
|
22092
|
+
|
|
22093
|
+
return _result;
|
|
22094
|
+
}
|
|
22095
|
+
|
|
22096
|
+
set parentId(value: bigint) {
|
|
22097
|
+
Module.ccall(
|
|
22098
|
+
"csp_multiplayer_SequenceHierarchyChangedParams__Set_ParentId",
|
|
22099
|
+
"void",
|
|
22100
|
+
["number", "bigint"],
|
|
22101
|
+
[this.pointer, value],
|
|
22102
|
+
);
|
|
22103
|
+
}
|
|
22104
|
+
|
|
22105
|
+
get isRoot(): boolean {
|
|
22106
|
+
let _result = Module.ccall(
|
|
22107
|
+
"csp_multiplayer_SequenceHierarchyChangedParams__Get_IsRoot",
|
|
22108
|
+
"boolean",
|
|
22109
|
+
["number"],
|
|
22110
|
+
[this.pointer],
|
|
22111
|
+
);
|
|
22112
|
+
|
|
22113
|
+
return _result;
|
|
22114
|
+
}
|
|
22115
|
+
|
|
22116
|
+
set isRoot(value: boolean) {
|
|
22117
|
+
Module.ccall(
|
|
22118
|
+
"csp_multiplayer_SequenceHierarchyChangedParams__Set_IsRoot",
|
|
22119
|
+
"void",
|
|
22120
|
+
["number", "boolean"],
|
|
22121
|
+
[this.pointer, value],
|
|
22122
|
+
);
|
|
22123
|
+
}
|
|
22124
|
+
}
|
|
22125
|
+
}
|
|
22126
|
+
|
|
21815
22127
|
export namespace Multiplayer {
|
|
21816
22128
|
/**
|
|
21817
22129
|
@ingroup Multiplayer
|
|
@@ -22641,6 +22953,108 @@ export namespace Multiplayer {
|
|
|
22641
22953
|
}
|
|
22642
22954
|
}
|
|
22643
22955
|
|
|
22956
|
+
export namespace Multiplayer {
|
|
22957
|
+
/**
|
|
22958
|
+
@ingroup Space Entity System
|
|
22959
|
+
* @description Class which exposes data that is relevent to entity hierarchies, which comes from the underlying Sequence System.
|
|
22960
|
+
* This allows users to manage the ordering of child entites within their parent.
|
|
22961
|
+
*/
|
|
22962
|
+
export class SequenceHierarchy
|
|
22963
|
+
extends NativeClassWrapper
|
|
22964
|
+
implements INativeResource
|
|
22965
|
+
{
|
|
22966
|
+
/** @internal */
|
|
22967
|
+
constructor(pointer: NativePointer) {
|
|
22968
|
+
super(pointer);
|
|
22969
|
+
}
|
|
22970
|
+
|
|
22971
|
+
hasParent(): boolean {
|
|
22972
|
+
let _result = Module.ccall(
|
|
22973
|
+
"csp_multiplayer_SequenceHierarchy_HasParentC_bool",
|
|
22974
|
+
"boolean",
|
|
22975
|
+
["number"],
|
|
22976
|
+
[this.pointer],
|
|
22977
|
+
);
|
|
22978
|
+
|
|
22979
|
+
return _result;
|
|
22980
|
+
}
|
|
22981
|
+
|
|
22982
|
+
static create(): SequenceHierarchy {
|
|
22983
|
+
var _ptr = Module._malloc(8);
|
|
22984
|
+
Module.ccall(
|
|
22985
|
+
"csp_multiplayer_SequenceHierarchy_Ctor",
|
|
22986
|
+
"void",
|
|
22987
|
+
["number"],
|
|
22988
|
+
[_ptr],
|
|
22989
|
+
);
|
|
22990
|
+
var _nPtr = getNativePointer(_ptr);
|
|
22991
|
+
|
|
22992
|
+
return new SequenceHierarchy(_nPtr);
|
|
22993
|
+
}
|
|
22994
|
+
|
|
22995
|
+
delete(): void {
|
|
22996
|
+
if (this.ownsPointer && !this.disposed) {
|
|
22997
|
+
Module.ccall(
|
|
22998
|
+
"csp_multiplayer_SequenceHierarchy_Dtor",
|
|
22999
|
+
"void",
|
|
23000
|
+
["number"],
|
|
23001
|
+
[this.pointer],
|
|
23002
|
+
);
|
|
23003
|
+
|
|
23004
|
+
this.disposed = true;
|
|
23005
|
+
}
|
|
23006
|
+
}
|
|
23007
|
+
|
|
23008
|
+
get ids(): Common.Array<bigint> {
|
|
23009
|
+
const _ptr = Module._malloc(8);
|
|
23010
|
+
Module.ccall(
|
|
23011
|
+
"csp_multiplayer_SequenceHierarchy__Get_Ids",
|
|
23012
|
+
"void",
|
|
23013
|
+
["number", "number"],
|
|
23014
|
+
[_ptr, this.pointer],
|
|
23015
|
+
);
|
|
23016
|
+
|
|
23017
|
+
const _nPtr = getNativePointer(_ptr);
|
|
23018
|
+
return new Common.Array<bigint>(_nPtr, NumberFactory, "uint64_t");
|
|
23019
|
+
}
|
|
23020
|
+
|
|
23021
|
+
set ids(value: Common.Array<bigint>) {
|
|
23022
|
+
Module.ccall(
|
|
23023
|
+
"csp_multiplayer_SequenceHierarchy__Set_Ids",
|
|
23024
|
+
"void",
|
|
23025
|
+
["number", "number"],
|
|
23026
|
+
[this.pointer, value.pointer],
|
|
23027
|
+
);
|
|
23028
|
+
}
|
|
23029
|
+
|
|
23030
|
+
get parentId(): bigint {
|
|
23031
|
+
let _result = Module.ccall(
|
|
23032
|
+
"csp_multiplayer_SequenceHierarchy__Get_ParentId",
|
|
23033
|
+
"bigint",
|
|
23034
|
+
["number"],
|
|
23035
|
+
[this.pointer],
|
|
23036
|
+
);
|
|
23037
|
+
|
|
23038
|
+
const _unfixedValue = _result;
|
|
23039
|
+
let _fixedValue =
|
|
23040
|
+
_unfixedValue < 0 ? _unfixedValue + 2n ** 64n : _unfixedValue;
|
|
23041
|
+
|
|
23042
|
+
_result = _fixedValue;
|
|
23043
|
+
|
|
23044
|
+
return _result;
|
|
23045
|
+
}
|
|
23046
|
+
|
|
23047
|
+
set parentId(value: bigint) {
|
|
23048
|
+
Module.ccall(
|
|
23049
|
+
"csp_multiplayer_SequenceHierarchy__Set_ParentId",
|
|
23050
|
+
"void",
|
|
23051
|
+
["number", "bigint"],
|
|
23052
|
+
[this.pointer, value],
|
|
23053
|
+
);
|
|
23054
|
+
}
|
|
23055
|
+
}
|
|
23056
|
+
}
|
|
23057
|
+
|
|
22644
23058
|
export namespace Multiplayer {
|
|
22645
23059
|
/**
|
|
22646
23060
|
* @description Info class that specifies a type of update and the ID of a component the update is applied to.
|
|
@@ -22889,6 +23303,25 @@ export namespace Multiplayer {
|
|
|
22889
23303
|
return _nPtr;
|
|
22890
23304
|
}
|
|
22891
23305
|
|
|
23306
|
+
/**
|
|
23307
|
+
* @description Get the Global SpaceTransform of the SpaceEntity, derived from it's parent.
|
|
23308
|
+
* @return SpaceTransform.
|
|
23309
|
+
*/
|
|
23310
|
+
|
|
23311
|
+
getGlobalTransform(): Multiplayer.SpaceTransform {
|
|
23312
|
+
var _ret = Module._malloc(8);
|
|
23313
|
+
|
|
23314
|
+
Module.ccall(
|
|
23315
|
+
"csp_multiplayer_SpaceEntity_GetGlobalTransformC_SpaceTransform",
|
|
23316
|
+
"void",
|
|
23317
|
+
["number", "number"],
|
|
23318
|
+
[_ret, this.pointer],
|
|
23319
|
+
);
|
|
23320
|
+
var _nPtr = new Multiplayer.SpaceTransform(getNativePointer(_ret));
|
|
23321
|
+
Module._free(_ret);
|
|
23322
|
+
return _nPtr;
|
|
23323
|
+
}
|
|
23324
|
+
|
|
22892
23325
|
/**
|
|
22893
23326
|
* @description Get the position of the SpaceEntity, in world space.
|
|
22894
23327
|
* @return Position.
|
|
@@ -22909,6 +23342,25 @@ export namespace Multiplayer {
|
|
|
22909
23342
|
return _nPtr;
|
|
22910
23343
|
}
|
|
22911
23344
|
|
|
23345
|
+
/**
|
|
23346
|
+
* @description Get the Global position of the SpaceEntity, in world space, derived from it's parent.
|
|
23347
|
+
* @return Position.
|
|
23348
|
+
*/
|
|
23349
|
+
|
|
23350
|
+
getGlobalPosition(): Common.Vector3 {
|
|
23351
|
+
var _ret = Module._malloc(8);
|
|
23352
|
+
|
|
23353
|
+
Module.ccall(
|
|
23354
|
+
"csp_multiplayer_SpaceEntity_GetGlobalPositionC_Vector3",
|
|
23355
|
+
"void",
|
|
23356
|
+
["number", "number"],
|
|
23357
|
+
[_ret, this.pointer],
|
|
23358
|
+
);
|
|
23359
|
+
var _nPtr = new Common.Vector3(getNativePointer(_ret));
|
|
23360
|
+
Module._free(_ret);
|
|
23361
|
+
return _nPtr;
|
|
23362
|
+
}
|
|
23363
|
+
|
|
22912
23364
|
/**
|
|
22913
23365
|
* @description Set the position of the SpaceEntity, in world space.
|
|
22914
23366
|
* @param value - The position to set.
|
|
@@ -22943,6 +23395,25 @@ export namespace Multiplayer {
|
|
|
22943
23395
|
return _nPtr;
|
|
22944
23396
|
}
|
|
22945
23397
|
|
|
23398
|
+
/**
|
|
23399
|
+
* @description Get the Global rotation of the SpaceEntity, derived from it's parent.
|
|
23400
|
+
* @return Rotation.
|
|
23401
|
+
*/
|
|
23402
|
+
|
|
23403
|
+
getGlobalRotation(): Common.Vector4 {
|
|
23404
|
+
var _ret = Module._malloc(8);
|
|
23405
|
+
|
|
23406
|
+
Module.ccall(
|
|
23407
|
+
"csp_multiplayer_SpaceEntity_GetGlobalRotationC_Vector4",
|
|
23408
|
+
"void",
|
|
23409
|
+
["number", "number"],
|
|
23410
|
+
[_ret, this.pointer],
|
|
23411
|
+
);
|
|
23412
|
+
var _nPtr = new Common.Vector4(getNativePointer(_ret));
|
|
23413
|
+
Module._free(_ret);
|
|
23414
|
+
return _nPtr;
|
|
23415
|
+
}
|
|
23416
|
+
|
|
22946
23417
|
/**
|
|
22947
23418
|
* @description Set the rotation of the SpaceEntity.
|
|
22948
23419
|
* @param value - The rotation to set.
|
|
@@ -22977,6 +23448,25 @@ export namespace Multiplayer {
|
|
|
22977
23448
|
return _nPtr;
|
|
22978
23449
|
}
|
|
22979
23450
|
|
|
23451
|
+
/**
|
|
23452
|
+
* @description Get the Global scale of the SpaceEntity, derived from it's parent.
|
|
23453
|
+
* @return Scale.
|
|
23454
|
+
*/
|
|
23455
|
+
|
|
23456
|
+
getGlobalScale(): Common.Vector3 {
|
|
23457
|
+
var _ret = Module._malloc(8);
|
|
23458
|
+
|
|
23459
|
+
Module.ccall(
|
|
23460
|
+
"csp_multiplayer_SpaceEntity_GetGlobalScaleC_Vector3",
|
|
23461
|
+
"void",
|
|
23462
|
+
["number", "number"],
|
|
23463
|
+
[_ret, this.pointer],
|
|
23464
|
+
);
|
|
23465
|
+
var _nPtr = new Common.Vector3(getNativePointer(_ret));
|
|
23466
|
+
Module._free(_ret);
|
|
23467
|
+
return _nPtr;
|
|
23468
|
+
}
|
|
23469
|
+
|
|
22980
23470
|
/**
|
|
22981
23471
|
* @description Set the scale of the SpaceEntity.
|
|
22982
23472
|
* @param value - The scale to set.
|
|
@@ -23110,6 +23600,122 @@ export namespace Multiplayer {
|
|
|
23110
23600
|
return _nPtr;
|
|
23111
23601
|
}
|
|
23112
23602
|
|
|
23603
|
+
/**
|
|
23604
|
+
* @description Sets the parent for this entity
|
|
23605
|
+
* QueueUpdate() should be called afterwards to enable changes to the parent.
|
|
23606
|
+
* @param parentId - Uint64_t the new parent id of this entity.
|
|
23607
|
+
*/
|
|
23608
|
+
|
|
23609
|
+
setParentId(parentId: bigint): void {
|
|
23610
|
+
assert(parentId >= Limits.UINT64_MIN);
|
|
23611
|
+
assert(parentId <= Limits.UINT64_MAX);
|
|
23612
|
+
|
|
23613
|
+
Module.ccall(
|
|
23614
|
+
"csp_multiplayer_SpaceEntity_SetParentId_void_uint64_t",
|
|
23615
|
+
"void",
|
|
23616
|
+
["number", "bigint"],
|
|
23617
|
+
[this.pointer, parentId],
|
|
23618
|
+
);
|
|
23619
|
+
}
|
|
23620
|
+
|
|
23621
|
+
/**
|
|
23622
|
+
* @description Removes the parent entity
|
|
23623
|
+
* QueueUpdate() should be called afterwards to enable changes to the parent.
|
|
23624
|
+
*/
|
|
23625
|
+
|
|
23626
|
+
removeParentEntity(): void {
|
|
23627
|
+
Module.ccall(
|
|
23628
|
+
"csp_multiplayer_SpaceEntity_RemoveParentEntity_void",
|
|
23629
|
+
"void",
|
|
23630
|
+
["number"],
|
|
23631
|
+
[this.pointer],
|
|
23632
|
+
);
|
|
23633
|
+
}
|
|
23634
|
+
|
|
23635
|
+
/**
|
|
23636
|
+
* @description Gets the parent of this entity
|
|
23637
|
+
* @return SpaceEntity
|
|
23638
|
+
*/
|
|
23639
|
+
|
|
23640
|
+
getParentEntity(): Multiplayer.SpaceEntity {
|
|
23641
|
+
var _ret = Module._malloc(8);
|
|
23642
|
+
|
|
23643
|
+
Module.ccall(
|
|
23644
|
+
"csp_multiplayer_SpaceEntity_GetParentEntityC_SpaceEntityP",
|
|
23645
|
+
"void",
|
|
23646
|
+
["number", "number"],
|
|
23647
|
+
[_ret, this.pointer],
|
|
23648
|
+
);
|
|
23649
|
+
var _nPtr = new Multiplayer.SpaceEntity(getNativePointer(_ret));
|
|
23650
|
+
Module._free(_ret);
|
|
23651
|
+
|
|
23652
|
+
return _nPtr;
|
|
23653
|
+
}
|
|
23654
|
+
|
|
23655
|
+
/**
|
|
23656
|
+
* @description Create a new entity with this entity as it's parent
|
|
23657
|
+
* @param inName - The name to give the new SpaceEntity.
|
|
23658
|
+
* @param inSpaceTransform - The initial transform to set the SpaceEntity to.
|
|
23659
|
+
* @param callback - A callback that executes when the creation is complete,
|
|
23660
|
+
* which contains a pointer to the new SpaceEntity so that it can be used on the local client.
|
|
23661
|
+
*/
|
|
23662
|
+
|
|
23663
|
+
async createChildEntity(
|
|
23664
|
+
name: string,
|
|
23665
|
+
spaceTransform: Multiplayer.SpaceTransform,
|
|
23666
|
+
): Promise<Multiplayer.SpaceEntity> {
|
|
23667
|
+
var _resolve;
|
|
23668
|
+
|
|
23669
|
+
var _promise = new Promise<Multiplayer.SpaceEntity>((_r) => {
|
|
23670
|
+
_resolve = _r;
|
|
23671
|
+
});
|
|
23672
|
+
|
|
23673
|
+
var _callbackPtr: number;
|
|
23674
|
+
var _callback = (_stateObject__: number, arg1) => {
|
|
23675
|
+
var _arg1Ptr = getNativePointer(arg1);
|
|
23676
|
+
var _arg1Instance = new Multiplayer.SpaceEntity(_arg1Ptr);
|
|
23677
|
+
|
|
23678
|
+
_resolve(_arg1Instance);
|
|
23679
|
+
|
|
23680
|
+
Module.removeFunction(_callbackPtr);
|
|
23681
|
+
};
|
|
23682
|
+
|
|
23683
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
23684
|
+
|
|
23685
|
+
Module.ccall(
|
|
23686
|
+
"csp_multiplayer_SpaceEntity_CreateChildEntity_void_StringRC_SpaceTransformRC_EntityCreatedCallback",
|
|
23687
|
+
"void",
|
|
23688
|
+
["number", "string", "number", "number", "number"],
|
|
23689
|
+
[this.pointer, name, spaceTransform.pointer, _callbackPtr, 0],
|
|
23690
|
+
);
|
|
23691
|
+
|
|
23692
|
+
return _promise;
|
|
23693
|
+
}
|
|
23694
|
+
|
|
23695
|
+
/**
|
|
23696
|
+
* @description Gets the children of this entity
|
|
23697
|
+
* @return Csp::common::list<spaceentity>
|
|
23698
|
+
*/
|
|
23699
|
+
|
|
23700
|
+
getChildEntities(): Common.List<Multiplayer.SpaceEntity> {
|
|
23701
|
+
var _ret = Module._malloc(8);
|
|
23702
|
+
|
|
23703
|
+
Module.ccall(
|
|
23704
|
+
"csp_multiplayer_SpaceEntity_GetChildEntitiesC_ListPC",
|
|
23705
|
+
"void",
|
|
23706
|
+
["number", "number"],
|
|
23707
|
+
[_ret, this.pointer],
|
|
23708
|
+
);
|
|
23709
|
+
var _nPtr = new Common.List<Multiplayer.SpaceEntity>(
|
|
23710
|
+
getNativePointer(_ret),
|
|
23711
|
+
csp_multiplayer_SpaceEntityFactory,
|
|
23712
|
+
"csp_multiplayer_SpaceEntity",
|
|
23713
|
+
);
|
|
23714
|
+
Module._free(_ret);
|
|
23715
|
+
|
|
23716
|
+
return _nPtr;
|
|
23717
|
+
}
|
|
23718
|
+
|
|
23113
23719
|
/**
|
|
23114
23720
|
* @description Queues an update which will be executed on next Tick() or ProcessPendingEntityOperations(). Not a blocking or async function.
|
|
23115
23721
|
*/
|
|
@@ -24266,6 +24872,324 @@ export namespace Multiplayer {
|
|
|
24266
24872
|
[this.pointer, enabled],
|
|
24267
24873
|
);
|
|
24268
24874
|
}
|
|
24875
|
+
|
|
24876
|
+
/**
|
|
24877
|
+
* @description Retrieves all entites that exist at the root level (do not have a parent entity).
|
|
24878
|
+
* @return A list of root entities.
|
|
24879
|
+
*/
|
|
24880
|
+
|
|
24881
|
+
getRootHierarchyEntities(): Common.List<Multiplayer.SpaceEntity> {
|
|
24882
|
+
var _ret = Module._malloc(8);
|
|
24883
|
+
|
|
24884
|
+
Module.ccall(
|
|
24885
|
+
"csp_multiplayer_SpaceEntitySystem_GetRootHierarchyEntitiesC_ListPC",
|
|
24886
|
+
"void",
|
|
24887
|
+
["number", "number"],
|
|
24888
|
+
[_ret, this.pointer],
|
|
24889
|
+
);
|
|
24890
|
+
var _nPtr = new Common.List<Multiplayer.SpaceEntity>(
|
|
24891
|
+
getNativePointer(_ret),
|
|
24892
|
+
csp_multiplayer_SpaceEntityFactory,
|
|
24893
|
+
"csp_multiplayer_SpaceEntity",
|
|
24894
|
+
);
|
|
24895
|
+
Module._free(_ret);
|
|
24896
|
+
|
|
24897
|
+
return _nPtr;
|
|
24898
|
+
}
|
|
24899
|
+
|
|
24900
|
+
/**
|
|
24901
|
+
* @description Creates an entity hierarchy for a given parent entity id. Pass null to create a hiererchy for the root.
|
|
24902
|
+
* @param parentId - An optional parent. Pass null to create a hiererchy for the root.
|
|
24903
|
+
* @param hierarchyItemIds - An array of entity ids.
|
|
24904
|
+
* @param callback - A callback when the asynchronous task finishes.
|
|
24905
|
+
*/
|
|
24906
|
+
|
|
24907
|
+
async createSequenceHierarchy(
|
|
24908
|
+
parentId: bigint | null,
|
|
24909
|
+
hierarchyItemIds: Common.Array<bigint>,
|
|
24910
|
+
): Promise<Multiplayer.SequenceHierarchyResult> {
|
|
24911
|
+
var _resolve;
|
|
24912
|
+
|
|
24913
|
+
var _promise = new Promise<Multiplayer.SequenceHierarchyResult>((_r) => {
|
|
24914
|
+
_resolve = _r;
|
|
24915
|
+
});
|
|
24916
|
+
|
|
24917
|
+
var _callbackPtr: number;
|
|
24918
|
+
var _callback = (_stateObject__: number, result) => {
|
|
24919
|
+
var _resultPtr = getNativePointer(result);
|
|
24920
|
+
var _resultInstance = new Multiplayer.SequenceHierarchyResult(
|
|
24921
|
+
_resultPtr,
|
|
24922
|
+
);
|
|
24923
|
+
|
|
24924
|
+
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
24925
|
+
return;
|
|
24926
|
+
}
|
|
24927
|
+
|
|
24928
|
+
_resolve(_resultInstance);
|
|
24929
|
+
|
|
24930
|
+
Module.removeFunction(_callbackPtr);
|
|
24931
|
+
};
|
|
24932
|
+
|
|
24933
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
24934
|
+
|
|
24935
|
+
var parentIdPointer = 0;
|
|
24936
|
+
if (parentId != null) {
|
|
24937
|
+
parentIdPointer = Module._malloc(4);
|
|
24938
|
+
Module.setValue(parentIdPointer, parentId, "i32");
|
|
24939
|
+
}
|
|
24940
|
+
|
|
24941
|
+
Module.ccall(
|
|
24942
|
+
"csp_multiplayer_SpaceEntitySystem_CreateSequenceHierarchy_void_uint64_tRC_ArrayRC_SequenceHierarchyResultCallback",
|
|
24943
|
+
"void",
|
|
24944
|
+
["number", "bigint", "number", "number", "number"],
|
|
24945
|
+
[
|
|
24946
|
+
this.pointer,
|
|
24947
|
+
parentIdPointer,
|
|
24948
|
+
hierarchyItemIds.pointer,
|
|
24949
|
+
_callbackPtr,
|
|
24950
|
+
0,
|
|
24951
|
+
],
|
|
24952
|
+
);
|
|
24953
|
+
|
|
24954
|
+
if (parentIdPointer) {
|
|
24955
|
+
Module._free(parentIdPointer);
|
|
24956
|
+
}
|
|
24957
|
+
|
|
24958
|
+
return _promise;
|
|
24959
|
+
}
|
|
24960
|
+
|
|
24961
|
+
/**
|
|
24962
|
+
* @description Updates an entity hierarchy for a given parent entity id. Pass null to update the root.
|
|
24963
|
+
* This will create a hierarchy if it doesnt exist.
|
|
24964
|
+
* @param parentId - An optional parent. Pass null to create a hiererchy for the root.
|
|
24965
|
+
* @param hierarchyItemIds - An array of entity ids.
|
|
24966
|
+
* @param callback - A callback when the asynchronous task finishes.
|
|
24967
|
+
*/
|
|
24968
|
+
|
|
24969
|
+
async updateSequenceHierarchy(
|
|
24970
|
+
parentId: bigint | null,
|
|
24971
|
+
hierarchyItemIds: Common.Array<bigint>,
|
|
24972
|
+
): Promise<Multiplayer.SequenceHierarchyResult> {
|
|
24973
|
+
var _resolve;
|
|
24974
|
+
|
|
24975
|
+
var _promise = new Promise<Multiplayer.SequenceHierarchyResult>((_r) => {
|
|
24976
|
+
_resolve = _r;
|
|
24977
|
+
});
|
|
24978
|
+
|
|
24979
|
+
var _callbackPtr: number;
|
|
24980
|
+
var _callback = (_stateObject__: number, result) => {
|
|
24981
|
+
var _resultPtr = getNativePointer(result);
|
|
24982
|
+
var _resultInstance = new Multiplayer.SequenceHierarchyResult(
|
|
24983
|
+
_resultPtr,
|
|
24984
|
+
);
|
|
24985
|
+
|
|
24986
|
+
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
24987
|
+
return;
|
|
24988
|
+
}
|
|
24989
|
+
|
|
24990
|
+
_resolve(_resultInstance);
|
|
24991
|
+
|
|
24992
|
+
Module.removeFunction(_callbackPtr);
|
|
24993
|
+
};
|
|
24994
|
+
|
|
24995
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
24996
|
+
|
|
24997
|
+
var parentIdPointer = 0;
|
|
24998
|
+
if (parentId != null) {
|
|
24999
|
+
parentIdPointer = Module._malloc(4);
|
|
25000
|
+
Module.setValue(parentIdPointer, parentId, "i32");
|
|
25001
|
+
}
|
|
25002
|
+
|
|
25003
|
+
Module.ccall(
|
|
25004
|
+
"csp_multiplayer_SpaceEntitySystem_UpdateSequenceHierarchy_void_uint64_tRC_ArrayRC_SequenceHierarchyResultCallback",
|
|
25005
|
+
"void",
|
|
25006
|
+
["number", "bigint", "number", "number", "number"],
|
|
25007
|
+
[
|
|
25008
|
+
this.pointer,
|
|
25009
|
+
parentIdPointer,
|
|
25010
|
+
hierarchyItemIds.pointer,
|
|
25011
|
+
_callbackPtr,
|
|
25012
|
+
0,
|
|
25013
|
+
],
|
|
25014
|
+
);
|
|
25015
|
+
|
|
25016
|
+
if (parentIdPointer) {
|
|
25017
|
+
Module._free(parentIdPointer);
|
|
25018
|
+
}
|
|
25019
|
+
|
|
25020
|
+
return _promise;
|
|
25021
|
+
}
|
|
25022
|
+
|
|
25023
|
+
/**
|
|
25024
|
+
* @description Gets an entity hierarchy for a given parent entity id. Pass null to get the root hierarchy.
|
|
25025
|
+
* @param parentId - An optional parent. Pass null to get the root hierarchy.
|
|
25026
|
+
* @param callback - A callback when the asynchronous task finishes.
|
|
25027
|
+
*/
|
|
25028
|
+
|
|
25029
|
+
async getSequenceHierarchy(
|
|
25030
|
+
parentId: bigint | null,
|
|
25031
|
+
): Promise<Multiplayer.SequenceHierarchyResult> {
|
|
25032
|
+
var _resolve;
|
|
25033
|
+
|
|
25034
|
+
var _promise = new Promise<Multiplayer.SequenceHierarchyResult>((_r) => {
|
|
25035
|
+
_resolve = _r;
|
|
25036
|
+
});
|
|
25037
|
+
|
|
25038
|
+
var _callbackPtr: number;
|
|
25039
|
+
var _callback = (_stateObject__: number, result) => {
|
|
25040
|
+
var _resultPtr = getNativePointer(result);
|
|
25041
|
+
var _resultInstance = new Multiplayer.SequenceHierarchyResult(
|
|
25042
|
+
_resultPtr,
|
|
25043
|
+
);
|
|
25044
|
+
|
|
25045
|
+
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
25046
|
+
return;
|
|
25047
|
+
}
|
|
25048
|
+
|
|
25049
|
+
_resolve(_resultInstance);
|
|
25050
|
+
|
|
25051
|
+
Module.removeFunction(_callbackPtr);
|
|
25052
|
+
};
|
|
25053
|
+
|
|
25054
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
25055
|
+
|
|
25056
|
+
var parentIdPointer = 0;
|
|
25057
|
+
if (parentId != null) {
|
|
25058
|
+
parentIdPointer = Module._malloc(4);
|
|
25059
|
+
Module.setValue(parentIdPointer, parentId, "i32");
|
|
25060
|
+
}
|
|
25061
|
+
|
|
25062
|
+
Module.ccall(
|
|
25063
|
+
"csp_multiplayer_SpaceEntitySystem_GetSequenceHierarchy_void_uint64_tRC_SequenceHierarchyResultCallback",
|
|
25064
|
+
"void",
|
|
25065
|
+
["number", "bigint", "number", "number"],
|
|
25066
|
+
[this.pointer, parentIdPointer, _callbackPtr, 0],
|
|
25067
|
+
);
|
|
25068
|
+
|
|
25069
|
+
if (parentIdPointer) {
|
|
25070
|
+
Module._free(parentIdPointer);
|
|
25071
|
+
}
|
|
25072
|
+
|
|
25073
|
+
return _promise;
|
|
25074
|
+
}
|
|
25075
|
+
|
|
25076
|
+
/**
|
|
25077
|
+
* @description Gets all hierarchies for a space
|
|
25078
|
+
* @param callback - A callback when the asynchronous task finishes.
|
|
25079
|
+
*/
|
|
25080
|
+
|
|
25081
|
+
async getAllSequenceHierarchies(): Promise<Multiplayer.SequenceHierarchyCollectionResult> {
|
|
25082
|
+
var _resolve;
|
|
25083
|
+
|
|
25084
|
+
var _promise = new Promise<Multiplayer.SequenceHierarchyCollectionResult>(
|
|
25085
|
+
(_r) => {
|
|
25086
|
+
_resolve = _r;
|
|
25087
|
+
},
|
|
25088
|
+
);
|
|
25089
|
+
|
|
25090
|
+
var _callbackPtr: number;
|
|
25091
|
+
var _callback = (_stateObject__: number, result) => {
|
|
25092
|
+
var _resultPtr = getNativePointer(result);
|
|
25093
|
+
var _resultInstance = new Multiplayer.SequenceHierarchyCollectionResult(
|
|
25094
|
+
_resultPtr,
|
|
25095
|
+
);
|
|
25096
|
+
|
|
25097
|
+
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
25098
|
+
return;
|
|
25099
|
+
}
|
|
25100
|
+
|
|
25101
|
+
_resolve(_resultInstance);
|
|
25102
|
+
|
|
25103
|
+
Module.removeFunction(_callbackPtr);
|
|
25104
|
+
};
|
|
25105
|
+
|
|
25106
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
25107
|
+
|
|
25108
|
+
Module.ccall(
|
|
25109
|
+
"csp_multiplayer_SpaceEntitySystem_GetAllSequenceHierarchies_void_SequenceHierarchyCollectionResultCallback",
|
|
25110
|
+
"void",
|
|
25111
|
+
["number", "number", "number"],
|
|
25112
|
+
[this.pointer, _callbackPtr, 0],
|
|
25113
|
+
);
|
|
25114
|
+
|
|
25115
|
+
return _promise;
|
|
25116
|
+
}
|
|
25117
|
+
|
|
25118
|
+
/**
|
|
25119
|
+
* @description Deletes an entity hierarchy for a given parent entity id. Pass null to delete the root hierarchy.
|
|
25120
|
+
* @param parentId - An optional parent. Pass null to get the root hierarchy.
|
|
25121
|
+
* @param callback - A callback when the asynchronous task finishes.
|
|
25122
|
+
*/
|
|
25123
|
+
|
|
25124
|
+
async deleteSequenceHierarchy(
|
|
25125
|
+
parentId: bigint | null,
|
|
25126
|
+
): Promise<Systems.NullResult> {
|
|
25127
|
+
var _resolve;
|
|
25128
|
+
|
|
25129
|
+
var _promise = new Promise<Systems.NullResult>((_r) => {
|
|
25130
|
+
_resolve = _r;
|
|
25131
|
+
});
|
|
25132
|
+
|
|
25133
|
+
var _callbackPtr: number;
|
|
25134
|
+
var _callback = (_stateObject__: number, result) => {
|
|
25135
|
+
var _resultPtr = getNativePointer(result);
|
|
25136
|
+
var _resultInstance = new Systems.NullResult(_resultPtr);
|
|
25137
|
+
|
|
25138
|
+
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
25139
|
+
return;
|
|
25140
|
+
}
|
|
25141
|
+
|
|
25142
|
+
_resolve(_resultInstance);
|
|
25143
|
+
|
|
25144
|
+
Module.removeFunction(_callbackPtr);
|
|
25145
|
+
};
|
|
25146
|
+
|
|
25147
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
25148
|
+
|
|
25149
|
+
var parentIdPointer = 0;
|
|
25150
|
+
if (parentId != null) {
|
|
25151
|
+
parentIdPointer = Module._malloc(4);
|
|
25152
|
+
Module.setValue(parentIdPointer, parentId, "i32");
|
|
25153
|
+
}
|
|
25154
|
+
|
|
25155
|
+
Module.ccall(
|
|
25156
|
+
"csp_multiplayer_SpaceEntitySystem_DeleteSequenceHierarchy_void_uint64_tRC_NullResultCallback",
|
|
25157
|
+
"void",
|
|
25158
|
+
["number", "bigint", "number", "number"],
|
|
25159
|
+
[this.pointer, parentIdPointer, _callbackPtr, 0],
|
|
25160
|
+
);
|
|
25161
|
+
|
|
25162
|
+
if (parentIdPointer) {
|
|
25163
|
+
Module._free(parentIdPointer);
|
|
25164
|
+
}
|
|
25165
|
+
|
|
25166
|
+
return _promise;
|
|
25167
|
+
}
|
|
25168
|
+
|
|
25169
|
+
/**
|
|
25170
|
+
* @description Sets a callback for a sequence hierarchy changed event.
|
|
25171
|
+
* @param callback - Callback to receive data for the sequence hierarchy that has been changed.
|
|
25172
|
+
*/
|
|
25173
|
+
setSequenceHierarchyChangedCallback(
|
|
25174
|
+
callback: (arg1: Multiplayer.SequenceHierarchyChangedParams) => void,
|
|
25175
|
+
) {
|
|
25176
|
+
var _callback = (_stateObject__: number, arg1) => {
|
|
25177
|
+
var _arg1 = new Multiplayer.SequenceHierarchyChangedParams(
|
|
25178
|
+
getNativePointer(arg1),
|
|
25179
|
+
);
|
|
25180
|
+
|
|
25181
|
+
callback(_arg1);
|
|
25182
|
+
};
|
|
25183
|
+
|
|
25184
|
+
var _callbackPtr = Module.addFunction(_callback, "vii");
|
|
25185
|
+
|
|
25186
|
+
Module.ccall(
|
|
25187
|
+
"csp_multiplayer_SpaceEntitySystem_SetSequenceHierarchyChangedCallback_void_SequenceHierarchyChangedCallbackHandler",
|
|
25188
|
+
"void",
|
|
25189
|
+
["number", "number", "number"],
|
|
25190
|
+
[this.pointer, _callbackPtr, 0],
|
|
25191
|
+
);
|
|
25192
|
+
}
|
|
24269
25193
|
}
|
|
24270
25194
|
}
|
|
24271
25195
|
|
|
@@ -24321,6 +25245,19 @@ export namespace Multiplayer {
|
|
|
24321
25245
|
return new SpaceTransform(_nPtr);
|
|
24322
25246
|
}
|
|
24323
25247
|
|
|
25248
|
+
/**
|
|
25249
|
+
* @description Equality operator
|
|
25250
|
+
* @param spaceTransform - Transform
|
|
25251
|
+
*/
|
|
25252
|
+
// operator==
|
|
25253
|
+
|
|
25254
|
+
/**
|
|
25255
|
+
* @description Multiplication operator
|
|
25256
|
+
* @param spaceTransform - Transform
|
|
25257
|
+
* NOTE: This mimics the operations of a matrix transform multiplication, but converts the back into a recognisable form.
|
|
25258
|
+
*/
|
|
25259
|
+
// operator*
|
|
25260
|
+
|
|
24324
25261
|
delete(): void {
|
|
24325
25262
|
if (this.ownsPointer && !this.disposed) {
|
|
24326
25263
|
Module.ccall(
|
|
@@ -25721,6 +26658,26 @@ export namespace Systems {
|
|
|
25721
26658
|
return _nPtr;
|
|
25722
26659
|
}
|
|
25723
26660
|
|
|
26661
|
+
/**
|
|
26662
|
+
* @description Retrieves the HotspotSequenceSystem system.
|
|
26663
|
+
* @return Pointer to the hotspotsequencesystem system class
|
|
26664
|
+
*/
|
|
26665
|
+
|
|
26666
|
+
getHotspotSequenceSystem(): Systems.HotspotSequenceSystem {
|
|
26667
|
+
var _ret = Module._malloc(8);
|
|
26668
|
+
|
|
26669
|
+
Module.ccall(
|
|
26670
|
+
"csp_systems_SystemsManager_GetHotspotSequenceSystem_HotspotSequenceSystemP",
|
|
26671
|
+
"void",
|
|
26672
|
+
["number", "number"],
|
|
26673
|
+
[_ret, this.pointer],
|
|
26674
|
+
);
|
|
26675
|
+
var _nPtr = new Systems.HotspotSequenceSystem(getNativePointer(_ret));
|
|
26676
|
+
Module._free(_ret);
|
|
26677
|
+
|
|
26678
|
+
return _nPtr;
|
|
26679
|
+
}
|
|
26680
|
+
|
|
25724
26681
|
getSpaceEntitySystem(): Multiplayer.SpaceEntitySystem {
|
|
25725
26682
|
var _ret = Module._malloc(8);
|
|
25726
26683
|
|
|
@@ -28910,6 +29867,85 @@ export namespace Systems {
|
|
|
28910
29867
|
}
|
|
28911
29868
|
}
|
|
28912
29869
|
|
|
29870
|
+
export namespace Systems {
|
|
29871
|
+
/**
|
|
29872
|
+
@ingroup HotspotSequence System
|
|
29873
|
+
* @description A basic class abstraction for a Hot Spot Group, including name, and items within the group.
|
|
29874
|
+
*/
|
|
29875
|
+
export class HotspotGroup
|
|
29876
|
+
extends NativeClassWrapper
|
|
29877
|
+
implements INativeResource
|
|
29878
|
+
{
|
|
29879
|
+
/** @internal */
|
|
29880
|
+
constructor(pointer: NativePointer) {
|
|
29881
|
+
super(pointer);
|
|
29882
|
+
}
|
|
29883
|
+
|
|
29884
|
+
static create(): HotspotGroup {
|
|
29885
|
+
var _ptr = Module._malloc(8);
|
|
29886
|
+
Module.ccall("csp_systems_HotspotGroup_Ctor", "void", ["number"], [_ptr]);
|
|
29887
|
+
var _nPtr = getNativePointer(_ptr);
|
|
29888
|
+
|
|
29889
|
+
return new HotspotGroup(_nPtr);
|
|
29890
|
+
}
|
|
29891
|
+
|
|
29892
|
+
delete(): void {
|
|
29893
|
+
if (this.ownsPointer && !this.disposed) {
|
|
29894
|
+
Module.ccall(
|
|
29895
|
+
"csp_systems_HotspotGroup_Dtor",
|
|
29896
|
+
"void",
|
|
29897
|
+
["number"],
|
|
29898
|
+
[this.pointer],
|
|
29899
|
+
);
|
|
29900
|
+
|
|
29901
|
+
this.disposed = true;
|
|
29902
|
+
}
|
|
29903
|
+
}
|
|
29904
|
+
|
|
29905
|
+
get name(): string {
|
|
29906
|
+
let _result = Module.ccall(
|
|
29907
|
+
"csp_systems_HotspotGroup__Get_Name",
|
|
29908
|
+
"string",
|
|
29909
|
+
["number"],
|
|
29910
|
+
[this.pointer],
|
|
29911
|
+
);
|
|
29912
|
+
|
|
29913
|
+
return _result;
|
|
29914
|
+
}
|
|
29915
|
+
|
|
29916
|
+
set name(value: string) {
|
|
29917
|
+
Module.ccall(
|
|
29918
|
+
"csp_systems_HotspotGroup__Set_Name",
|
|
29919
|
+
"void",
|
|
29920
|
+
["number", "string"],
|
|
29921
|
+
[this.pointer, value],
|
|
29922
|
+
);
|
|
29923
|
+
}
|
|
29924
|
+
|
|
29925
|
+
get items(): Common.Array<string> {
|
|
29926
|
+
const _ptr = Module._malloc(8);
|
|
29927
|
+
Module.ccall(
|
|
29928
|
+
"csp_systems_HotspotGroup__Get_Items",
|
|
29929
|
+
"void",
|
|
29930
|
+
["number", "number"],
|
|
29931
|
+
[_ptr, this.pointer],
|
|
29932
|
+
);
|
|
29933
|
+
|
|
29934
|
+
const _nPtr = getNativePointer(_ptr);
|
|
29935
|
+
return new Common.Array<string>(_nPtr, StringFactory, "String");
|
|
29936
|
+
}
|
|
29937
|
+
|
|
29938
|
+
set items(value: Common.Array<string>) {
|
|
29939
|
+
Module.ccall(
|
|
29940
|
+
"csp_systems_HotspotGroup__Set_Items",
|
|
29941
|
+
"void",
|
|
29942
|
+
["number", "number"],
|
|
29943
|
+
[this.pointer, value.pointer],
|
|
29944
|
+
);
|
|
29945
|
+
}
|
|
29946
|
+
}
|
|
29947
|
+
}
|
|
29948
|
+
|
|
28913
29949
|
export namespace Systems {
|
|
28914
29950
|
/**
|
|
28915
29951
|
* @description A Connected Spaces Platform level Logger for debugging or printing to console, also handles logging to a file.
|
|
@@ -30243,6 +31279,34 @@ export namespace Systems {
|
|
|
30243
31279
|
[this.pointer, value.pointer],
|
|
30244
31280
|
);
|
|
30245
31281
|
}
|
|
31282
|
+
|
|
31283
|
+
get metaData(): Common.Map<string, string> {
|
|
31284
|
+
const _ptr = Module._malloc(8);
|
|
31285
|
+
Module.ccall(
|
|
31286
|
+
"csp_systems_Sequence__Get_MetaData",
|
|
31287
|
+
"void",
|
|
31288
|
+
["number", "number"],
|
|
31289
|
+
[_ptr, this.pointer],
|
|
31290
|
+
);
|
|
31291
|
+
|
|
31292
|
+
const _nPtr = getNativePointer(_ptr);
|
|
31293
|
+
return new Common.Map<string, string>(
|
|
31294
|
+
_nPtr,
|
|
31295
|
+
StringFactory,
|
|
31296
|
+
"String",
|
|
31297
|
+
StringFactory,
|
|
31298
|
+
"String",
|
|
31299
|
+
);
|
|
31300
|
+
}
|
|
31301
|
+
|
|
31302
|
+
set metaData(value: Common.Map<string, string>) {
|
|
31303
|
+
Module.ccall(
|
|
31304
|
+
"csp_systems_Sequence__Set_MetaData",
|
|
31305
|
+
"void",
|
|
31306
|
+
["number", "number"],
|
|
31307
|
+
[this.pointer, value.pointer],
|
|
31308
|
+
);
|
|
31309
|
+
}
|
|
30246
31310
|
}
|
|
30247
31311
|
}
|
|
30248
31312
|
|
|
@@ -32986,6 +34050,130 @@ export namespace Systems {
|
|
|
32986
34050
|
}
|
|
32987
34051
|
}
|
|
32988
34052
|
|
|
34053
|
+
export namespace Multiplayer {
|
|
34054
|
+
/**
|
|
34055
|
+
@ingroup Space Entity System
|
|
34056
|
+
* @description Data class used to contain information when attempting to get a sequence hierarchy
|
|
34057
|
+
*/
|
|
34058
|
+
export class SequenceHierarchyResult
|
|
34059
|
+
extends Systems.ResultBase
|
|
34060
|
+
implements INativeResource
|
|
34061
|
+
{
|
|
34062
|
+
/** @internal */
|
|
34063
|
+
constructor(pointer: NativePointer) {
|
|
34064
|
+
super(pointer);
|
|
34065
|
+
}
|
|
34066
|
+
|
|
34067
|
+
static fromResultBase(
|
|
34068
|
+
baseInstance: Systems.ResultBase,
|
|
34069
|
+
): Multiplayer.SequenceHierarchyResult {
|
|
34070
|
+
const nativeClassWrapper = baseInstance as unknown as NativeClassWrapper;
|
|
34071
|
+
return new Multiplayer.SequenceHierarchyResult(
|
|
34072
|
+
new NativePointer(
|
|
34073
|
+
nativeClassWrapper.pointer,
|
|
34074
|
+
nativeClassWrapper.ownsPointer,
|
|
34075
|
+
),
|
|
34076
|
+
);
|
|
34077
|
+
}
|
|
34078
|
+
|
|
34079
|
+
/**
|
|
34080
|
+
* @description Retreives the SequenceHierarchy from the result.
|
|
34081
|
+
*/
|
|
34082
|
+
|
|
34083
|
+
getSequenceHierarchy(): Multiplayer.SequenceHierarchy {
|
|
34084
|
+
var _ret = Module._malloc(8);
|
|
34085
|
+
|
|
34086
|
+
Module.ccall(
|
|
34087
|
+
"csp_multiplayer_SequenceHierarchyResult_GetSequenceHierarchyC_SequenceHierarchyRC",
|
|
34088
|
+
"void",
|
|
34089
|
+
["number", "number"],
|
|
34090
|
+
[_ret, this.pointer],
|
|
34091
|
+
);
|
|
34092
|
+
var _nPtr = new Multiplayer.SequenceHierarchy(getNativePointer(_ret));
|
|
34093
|
+
Module._free(_ret);
|
|
34094
|
+
|
|
34095
|
+
return _nPtr;
|
|
34096
|
+
}
|
|
34097
|
+
|
|
34098
|
+
delete(): void {
|
|
34099
|
+
if (this.ownsPointer && !this.disposed) {
|
|
34100
|
+
Module.ccall(
|
|
34101
|
+
"csp_multiplayer_SequenceHierarchyResult_Dtor",
|
|
34102
|
+
"void",
|
|
34103
|
+
["number"],
|
|
34104
|
+
[this.pointer],
|
|
34105
|
+
);
|
|
34106
|
+
|
|
34107
|
+
this.disposed = true;
|
|
34108
|
+
}
|
|
34109
|
+
}
|
|
34110
|
+
}
|
|
34111
|
+
}
|
|
34112
|
+
|
|
34113
|
+
export namespace Multiplayer {
|
|
34114
|
+
/**
|
|
34115
|
+
@ingroup Space Entity System
|
|
34116
|
+
* @description Data class used to contain information when attempting to get an array of sequence hierachies
|
|
34117
|
+
*/
|
|
34118
|
+
export class SequenceHierarchyCollectionResult
|
|
34119
|
+
extends Systems.ResultBase
|
|
34120
|
+
implements INativeResource
|
|
34121
|
+
{
|
|
34122
|
+
/** @internal */
|
|
34123
|
+
constructor(pointer: NativePointer) {
|
|
34124
|
+
super(pointer);
|
|
34125
|
+
}
|
|
34126
|
+
|
|
34127
|
+
static fromResultBase(
|
|
34128
|
+
baseInstance: Systems.ResultBase,
|
|
34129
|
+
): Multiplayer.SequenceHierarchyCollectionResult {
|
|
34130
|
+
const nativeClassWrapper = baseInstance as unknown as NativeClassWrapper;
|
|
34131
|
+
return new Multiplayer.SequenceHierarchyCollectionResult(
|
|
34132
|
+
new NativePointer(
|
|
34133
|
+
nativeClassWrapper.pointer,
|
|
34134
|
+
nativeClassWrapper.ownsPointer,
|
|
34135
|
+
),
|
|
34136
|
+
);
|
|
34137
|
+
}
|
|
34138
|
+
|
|
34139
|
+
/**
|
|
34140
|
+
* @description Retreives the SequenceHierarchies from the result.
|
|
34141
|
+
*/
|
|
34142
|
+
|
|
34143
|
+
getSequenceHierarchyCollection(): Common.Array<Multiplayer.SequenceHierarchy> {
|
|
34144
|
+
var _ret = Module._malloc(8);
|
|
34145
|
+
|
|
34146
|
+
Module.ccall(
|
|
34147
|
+
"csp_multiplayer_SequenceHierarchyCollectionResult_GetSequenceHierarchyCollectionC_ArrayRC",
|
|
34148
|
+
"void",
|
|
34149
|
+
["number", "number"],
|
|
34150
|
+
[_ret, this.pointer],
|
|
34151
|
+
);
|
|
34152
|
+
var _nPtr = new Common.Array<Multiplayer.SequenceHierarchy>(
|
|
34153
|
+
getNativePointer(_ret),
|
|
34154
|
+
csp_multiplayer_SequenceHierarchyFactory,
|
|
34155
|
+
"csp_multiplayer_SequenceHierarchy",
|
|
34156
|
+
);
|
|
34157
|
+
Module._free(_ret);
|
|
34158
|
+
|
|
34159
|
+
return _nPtr;
|
|
34160
|
+
}
|
|
34161
|
+
|
|
34162
|
+
delete(): void {
|
|
34163
|
+
if (this.ownsPointer && !this.disposed) {
|
|
34164
|
+
Module.ccall(
|
|
34165
|
+
"csp_multiplayer_SequenceHierarchyCollectionResult_Dtor",
|
|
34166
|
+
"void",
|
|
34167
|
+
["number"],
|
|
34168
|
+
[this.pointer],
|
|
34169
|
+
);
|
|
34170
|
+
|
|
34171
|
+
this.disposed = true;
|
|
34172
|
+
}
|
|
34173
|
+
}
|
|
34174
|
+
}
|
|
34175
|
+
}
|
|
34176
|
+
|
|
32989
34177
|
export namespace Multiplayer {
|
|
32990
34178
|
/**
|
|
32991
34179
|
@ingroup AnimatedModelSpaceComponent
|
|
@@ -36491,6 +37679,9 @@ export namespace Multiplayer {
|
|
|
36491
37679
|
/**
|
|
36492
37680
|
* @description Gets the name of this external link component.
|
|
36493
37681
|
*/
|
|
37682
|
+
/** @deprecated
|
|
37683
|
+
Deprecated in favour of ComponentBase::GetComponentName()
|
|
37684
|
+
*/
|
|
36494
37685
|
|
|
36495
37686
|
getName(): string {
|
|
36496
37687
|
let _result = Module.ccall(
|
|
@@ -36512,6 +37703,9 @@ export namespace Multiplayer {
|
|
|
36512
37703
|
* @description Sets the name for this external link component.
|
|
36513
37704
|
* @param value - - The new name to assign to this external link componenent.
|
|
36514
37705
|
*/
|
|
37706
|
+
/** @deprecated
|
|
37707
|
+
Deprecated in favour of ComponentBase::SetComponentName()
|
|
37708
|
+
*/
|
|
36515
37709
|
|
|
36516
37710
|
setName(value: string): void {
|
|
36517
37711
|
Module.ccall(
|
|
@@ -36876,6 +38070,9 @@ export namespace Multiplayer {
|
|
|
36876
38070
|
* @description Gets the name of this fiducial marker space component.
|
|
36877
38071
|
* @return The name of this fiducial marker space component.
|
|
36878
38072
|
*/
|
|
38073
|
+
/** @deprecated
|
|
38074
|
+
Deprecated in favour of ComponentBase::GetComponentName()
|
|
38075
|
+
*/
|
|
36879
38076
|
|
|
36880
38077
|
getName(): string {
|
|
36881
38078
|
let _result = Module.ccall(
|
|
@@ -36897,6 +38094,9 @@ export namespace Multiplayer {
|
|
|
36897
38094
|
* @description Sets the name of this fiducial marker space component.
|
|
36898
38095
|
* @param value - The name of this fiducial marker space component.
|
|
36899
38096
|
*/
|
|
38097
|
+
/** @deprecated
|
|
38098
|
+
Deprecated in favour of ComponentBase::SetComponentName()
|
|
38099
|
+
*/
|
|
36900
38100
|
|
|
36901
38101
|
setName(value: string): void {
|
|
36902
38102
|
Module.ccall(
|
|
@@ -38197,6 +39397,9 @@ export namespace Multiplayer {
|
|
|
38197
39397
|
* @description Gets the Name of the Hotspot.
|
|
38198
39398
|
* @return The Name of the Hotspot.
|
|
38199
39399
|
*/
|
|
39400
|
+
/** @deprecated
|
|
39401
|
+
Deprecated in favour of ComponentBase::GetComponentName()
|
|
39402
|
+
*/
|
|
38200
39403
|
|
|
38201
39404
|
getName(): string {
|
|
38202
39405
|
let _result = Module.ccall(
|
|
@@ -38218,6 +39421,9 @@ export namespace Multiplayer {
|
|
|
38218
39421
|
* @description Sets the Name of this Hotspot.
|
|
38219
39422
|
* @param value - The Name of this Hotspot.
|
|
38220
39423
|
*/
|
|
39424
|
+
/** @deprecated
|
|
39425
|
+
Deprecated in favour of ComponentBase::SetComponentName()
|
|
39426
|
+
*/
|
|
38221
39427
|
|
|
38222
39428
|
setName(value: string): void {
|
|
38223
39429
|
Module.ccall(
|
|
@@ -38501,6 +39707,9 @@ export namespace Multiplayer {
|
|
|
38501
39707
|
* @description Gets the name of this image space component.
|
|
38502
39708
|
* @return The name of this image space component.
|
|
38503
39709
|
*/
|
|
39710
|
+
/** @deprecated
|
|
39711
|
+
Deprecated in favour of ComponentBase::GetComponentName()
|
|
39712
|
+
*/
|
|
38504
39713
|
|
|
38505
39714
|
getName(): string {
|
|
38506
39715
|
let _result = Module.ccall(
|
|
@@ -38522,6 +39731,9 @@ export namespace Multiplayer {
|
|
|
38522
39731
|
* @description Sets the name of this image space component.
|
|
38523
39732
|
* @param value - The name of this image space component.
|
|
38524
39733
|
*/
|
|
39734
|
+
/** @deprecated
|
|
39735
|
+
Deprecated in favour of ComponentBase::SetComponentName()
|
|
39736
|
+
*/
|
|
38525
39737
|
|
|
38526
39738
|
setName(value: string): void {
|
|
38527
39739
|
Module.ccall(
|
|
@@ -39740,6 +40952,9 @@ export namespace Multiplayer {
|
|
|
39740
40952
|
* @description Get the name of the Reflection component.
|
|
39741
40953
|
* @return Csp::common::string specifying the component name.
|
|
39742
40954
|
*/
|
|
40955
|
+
/** @deprecated
|
|
40956
|
+
Deprecated in favour of ComponentBase::GetComponentName()
|
|
40957
|
+
*/
|
|
39743
40958
|
|
|
39744
40959
|
getName(): string {
|
|
39745
40960
|
let _result = Module.ccall(
|
|
@@ -39761,6 +40976,9 @@ export namespace Multiplayer {
|
|
|
39761
40976
|
* @description Set the name for the Reflection component.
|
|
39762
40977
|
* @param value - Name for the Reflection component.
|
|
39763
40978
|
*/
|
|
40979
|
+
/** @deprecated
|
|
40980
|
+
Deprecated in favour of ComponentBase::SetComponentName()
|
|
40981
|
+
*/
|
|
39764
40982
|
|
|
39765
40983
|
setName(value: string): void {
|
|
39766
40984
|
Module.ccall(
|
|
@@ -41195,6 +42413,9 @@ export namespace Multiplayer {
|
|
|
41195
42413
|
* @description Gets the name of this video player.
|
|
41196
42414
|
* @return The name of this video player.
|
|
41197
42415
|
*/
|
|
42416
|
+
/** @deprecated
|
|
42417
|
+
Deprecated in favour of ComponentBase::GetComponentName()
|
|
42418
|
+
*/
|
|
41198
42419
|
|
|
41199
42420
|
getName(): string {
|
|
41200
42421
|
let _result = Module.ccall(
|
|
@@ -41216,6 +42437,9 @@ export namespace Multiplayer {
|
|
|
41216
42437
|
* @description Sets the name of this video player.
|
|
41217
42438
|
* @param value - The name of this video player.
|
|
41218
42439
|
*/
|
|
42440
|
+
/** @deprecated
|
|
42441
|
+
Deprecated in favour of ComponentBase::SetComponentName()
|
|
42442
|
+
*/
|
|
41219
42443
|
|
|
41220
42444
|
setName(value: string): void {
|
|
41221
42445
|
Module.ccall(
|
|
@@ -46096,6 +47320,426 @@ export namespace Systems {
|
|
|
46096
47320
|
}
|
|
46097
47321
|
}
|
|
46098
47322
|
|
|
47323
|
+
export namespace Systems {
|
|
47324
|
+
/**
|
|
47325
|
+
@ingroup HotspotSequence System
|
|
47326
|
+
* @description Data class used to contain information when attempting to get a Hot Spot Group.
|
|
47327
|
+
*/
|
|
47328
|
+
export class HotspotGroupResult
|
|
47329
|
+
extends Systems.ResultBase
|
|
47330
|
+
implements INativeResource
|
|
47331
|
+
{
|
|
47332
|
+
/** @internal */
|
|
47333
|
+
constructor(pointer: NativePointer) {
|
|
47334
|
+
super(pointer);
|
|
47335
|
+
}
|
|
47336
|
+
|
|
47337
|
+
static fromResultBase(
|
|
47338
|
+
baseInstance: Systems.ResultBase,
|
|
47339
|
+
): Systems.HotspotGroupResult {
|
|
47340
|
+
const nativeClassWrapper = baseInstance as unknown as NativeClassWrapper;
|
|
47341
|
+
return new Systems.HotspotGroupResult(
|
|
47342
|
+
new NativePointer(
|
|
47343
|
+
nativeClassWrapper.pointer,
|
|
47344
|
+
nativeClassWrapper.ownsPointer,
|
|
47345
|
+
),
|
|
47346
|
+
);
|
|
47347
|
+
}
|
|
47348
|
+
|
|
47349
|
+
getHotspotGroup(): Systems.HotspotGroup {
|
|
47350
|
+
var _ret = Module._malloc(8);
|
|
47351
|
+
|
|
47352
|
+
Module.ccall(
|
|
47353
|
+
"csp_systems_HotspotGroupResult_GetHotspotGroupC_HotspotGroupRC",
|
|
47354
|
+
"void",
|
|
47355
|
+
["number", "number"],
|
|
47356
|
+
[_ret, this.pointer],
|
|
47357
|
+
);
|
|
47358
|
+
var _nPtr = new Systems.HotspotGroup(getNativePointer(_ret));
|
|
47359
|
+
Module._free(_ret);
|
|
47360
|
+
|
|
47361
|
+
return _nPtr;
|
|
47362
|
+
}
|
|
47363
|
+
|
|
47364
|
+
delete(): void {
|
|
47365
|
+
if (this.ownsPointer && !this.disposed) {
|
|
47366
|
+
Module.ccall(
|
|
47367
|
+
"csp_systems_HotspotGroupResult_Dtor",
|
|
47368
|
+
"void",
|
|
47369
|
+
["number"],
|
|
47370
|
+
[this.pointer],
|
|
47371
|
+
);
|
|
47372
|
+
|
|
47373
|
+
this.disposed = true;
|
|
47374
|
+
}
|
|
47375
|
+
}
|
|
47376
|
+
}
|
|
47377
|
+
}
|
|
47378
|
+
|
|
47379
|
+
export namespace Systems {
|
|
47380
|
+
/**
|
|
47381
|
+
@ingroup HotspotSequence System
|
|
47382
|
+
* @description Data class used to contain information when attempting to get a Hot Spot Group.
|
|
47383
|
+
*/
|
|
47384
|
+
export class HotspotGroupsResult
|
|
47385
|
+
extends Systems.ResultBase
|
|
47386
|
+
implements INativeResource
|
|
47387
|
+
{
|
|
47388
|
+
/** @internal */
|
|
47389
|
+
constructor(pointer: NativePointer) {
|
|
47390
|
+
super(pointer);
|
|
47391
|
+
}
|
|
47392
|
+
|
|
47393
|
+
static fromResultBase(
|
|
47394
|
+
baseInstance: Systems.ResultBase,
|
|
47395
|
+
): Systems.HotspotGroupsResult {
|
|
47396
|
+
const nativeClassWrapper = baseInstance as unknown as NativeClassWrapper;
|
|
47397
|
+
return new Systems.HotspotGroupsResult(
|
|
47398
|
+
new NativePointer(
|
|
47399
|
+
nativeClassWrapper.pointer,
|
|
47400
|
+
nativeClassWrapper.ownsPointer,
|
|
47401
|
+
),
|
|
47402
|
+
);
|
|
47403
|
+
}
|
|
47404
|
+
|
|
47405
|
+
getHotspotGroups(): Common.Array<Systems.HotspotGroup> {
|
|
47406
|
+
var _ret = Module._malloc(8);
|
|
47407
|
+
|
|
47408
|
+
Module.ccall(
|
|
47409
|
+
"csp_systems_HotspotGroupsResult_GetHotspotGroupsC_ArrayRC",
|
|
47410
|
+
"void",
|
|
47411
|
+
["number", "number"],
|
|
47412
|
+
[_ret, this.pointer],
|
|
47413
|
+
);
|
|
47414
|
+
var _nPtr = new Common.Array<Systems.HotspotGroup>(
|
|
47415
|
+
getNativePointer(_ret),
|
|
47416
|
+
csp_systems_HotspotGroupFactory,
|
|
47417
|
+
"csp_systems_HotspotGroup",
|
|
47418
|
+
);
|
|
47419
|
+
Module._free(_ret);
|
|
47420
|
+
|
|
47421
|
+
return _nPtr;
|
|
47422
|
+
}
|
|
47423
|
+
|
|
47424
|
+
delete(): void {
|
|
47425
|
+
if (this.ownsPointer && !this.disposed) {
|
|
47426
|
+
Module.ccall(
|
|
47427
|
+
"csp_systems_HotspotGroupsResult_Dtor",
|
|
47428
|
+
"void",
|
|
47429
|
+
["number"],
|
|
47430
|
+
[this.pointer],
|
|
47431
|
+
);
|
|
47432
|
+
|
|
47433
|
+
this.disposed = true;
|
|
47434
|
+
}
|
|
47435
|
+
}
|
|
47436
|
+
}
|
|
47437
|
+
}
|
|
47438
|
+
|
|
47439
|
+
export namespace Systems {
|
|
47440
|
+
/**
|
|
47441
|
+
@ingroup HotspotSequenceSystem System
|
|
47442
|
+
* @description Public facing system that allows the management of groupings of hotspots in a space.
|
|
47443
|
+
*/
|
|
47444
|
+
export class HotspotSequenceSystem
|
|
47445
|
+
extends Systems.SystemBase
|
|
47446
|
+
implements INativeResource
|
|
47447
|
+
{
|
|
47448
|
+
/** @internal */
|
|
47449
|
+
constructor(pointer: NativePointer) {
|
|
47450
|
+
super(pointer);
|
|
47451
|
+
}
|
|
47452
|
+
|
|
47453
|
+
static fromSystemBase(
|
|
47454
|
+
baseInstance: Systems.SystemBase,
|
|
47455
|
+
): Systems.HotspotSequenceSystem {
|
|
47456
|
+
const nativeClassWrapper = baseInstance as unknown as NativeClassWrapper;
|
|
47457
|
+
return new Systems.HotspotSequenceSystem(
|
|
47458
|
+
new NativePointer(
|
|
47459
|
+
nativeClassWrapper.pointer,
|
|
47460
|
+
nativeClassWrapper.ownsPointer,
|
|
47461
|
+
),
|
|
47462
|
+
);
|
|
47463
|
+
}
|
|
47464
|
+
|
|
47465
|
+
static create_sequenceSystem_spaceSystem(
|
|
47466
|
+
sequenceSystem: Systems.SequenceSystem,
|
|
47467
|
+
spaceSystem: Systems.SpaceSystem,
|
|
47468
|
+
): HotspotSequenceSystem {
|
|
47469
|
+
var _ptr = Module._malloc(8);
|
|
47470
|
+
Module.ccall(
|
|
47471
|
+
"csp_systems_HotspotSequenceSystem_Ctor_SequenceSystemP_SpaceSystemP",
|
|
47472
|
+
"void",
|
|
47473
|
+
["number", "number", "number"],
|
|
47474
|
+
[_ptr, sequenceSystem.pointer, spaceSystem.pointer],
|
|
47475
|
+
);
|
|
47476
|
+
var _nPtr = getNativePointer(_ptr);
|
|
47477
|
+
|
|
47478
|
+
return new HotspotSequenceSystem(_nPtr);
|
|
47479
|
+
}
|
|
47480
|
+
|
|
47481
|
+
/**
|
|
47482
|
+
* @description Create a Hotspot group
|
|
47483
|
+
* @param groupName - The unique grouping name
|
|
47484
|
+
* @param hotspotIds - Set of hotspot ids to add to the group
|
|
47485
|
+
* @param callback - Callback to call when a response is received
|
|
47486
|
+
*/
|
|
47487
|
+
|
|
47488
|
+
async createHotspotGroup(
|
|
47489
|
+
groupName: string,
|
|
47490
|
+
hotspotIds: Common.Array<string>,
|
|
47491
|
+
): Promise<Systems.HotspotGroupResult> {
|
|
47492
|
+
var _resolve;
|
|
47493
|
+
|
|
47494
|
+
var _promise = new Promise<Systems.HotspotGroupResult>((_r) => {
|
|
47495
|
+
_resolve = _r;
|
|
47496
|
+
});
|
|
47497
|
+
|
|
47498
|
+
var _callbackPtr: number;
|
|
47499
|
+
var _callback = (_stateObject__: number, result) => {
|
|
47500
|
+
var _resultPtr = getNativePointer(result);
|
|
47501
|
+
var _resultInstance = new Systems.HotspotGroupResult(_resultPtr);
|
|
47502
|
+
|
|
47503
|
+
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
47504
|
+
return;
|
|
47505
|
+
}
|
|
47506
|
+
|
|
47507
|
+
_resolve(_resultInstance);
|
|
47508
|
+
|
|
47509
|
+
Module.removeFunction(_callbackPtr);
|
|
47510
|
+
};
|
|
47511
|
+
|
|
47512
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
47513
|
+
|
|
47514
|
+
Module.ccall(
|
|
47515
|
+
"csp_systems_HotspotSequenceSystem_CreateHotspotGroup_void_StringRC_ArrayRC_HotspotGroupResultCallback",
|
|
47516
|
+
"void",
|
|
47517
|
+
["number", "string", "number", "number", "number"],
|
|
47518
|
+
[this.pointer, groupName, hotspotIds.pointer, _callbackPtr, 0],
|
|
47519
|
+
);
|
|
47520
|
+
|
|
47521
|
+
return _promise;
|
|
47522
|
+
}
|
|
47523
|
+
|
|
47524
|
+
/**
|
|
47525
|
+
* @description Rename a Hotspot group
|
|
47526
|
+
* @param currentGroupName - The unique grouping name
|
|
47527
|
+
* @param newGroupName - The unique grouping name
|
|
47528
|
+
* @param callback - Callback to call when a response is received
|
|
47529
|
+
*/
|
|
47530
|
+
|
|
47531
|
+
async renameHotspotGroup(
|
|
47532
|
+
groupName: string,
|
|
47533
|
+
newGroupName: string,
|
|
47534
|
+
): Promise<Systems.HotspotGroupResult> {
|
|
47535
|
+
var _resolve;
|
|
47536
|
+
|
|
47537
|
+
var _promise = new Promise<Systems.HotspotGroupResult>((_r) => {
|
|
47538
|
+
_resolve = _r;
|
|
47539
|
+
});
|
|
47540
|
+
|
|
47541
|
+
var _callbackPtr: number;
|
|
47542
|
+
var _callback = (_stateObject__: number, result) => {
|
|
47543
|
+
var _resultPtr = getNativePointer(result);
|
|
47544
|
+
var _resultInstance = new Systems.HotspotGroupResult(_resultPtr);
|
|
47545
|
+
|
|
47546
|
+
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
47547
|
+
return;
|
|
47548
|
+
}
|
|
47549
|
+
|
|
47550
|
+
_resolve(_resultInstance);
|
|
47551
|
+
|
|
47552
|
+
Module.removeFunction(_callbackPtr);
|
|
47553
|
+
};
|
|
47554
|
+
|
|
47555
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
47556
|
+
|
|
47557
|
+
Module.ccall(
|
|
47558
|
+
"csp_systems_HotspotSequenceSystem_RenameHotspotGroup_void_StringRC_StringRC_HotspotGroupResultCallback",
|
|
47559
|
+
"void",
|
|
47560
|
+
["number", "string", "string", "number", "number"],
|
|
47561
|
+
[this.pointer, groupName, newGroupName, _callbackPtr, 0],
|
|
47562
|
+
);
|
|
47563
|
+
|
|
47564
|
+
return _promise;
|
|
47565
|
+
}
|
|
47566
|
+
|
|
47567
|
+
/**
|
|
47568
|
+
* @description Update a Hotspot group
|
|
47569
|
+
* @param groupName - The unique grouping name
|
|
47570
|
+
* @param hotspotIds - Set of hotspot ids to replace
|
|
47571
|
+
* @param callback - Callback to call when a response is received
|
|
47572
|
+
*/
|
|
47573
|
+
|
|
47574
|
+
async updateHotspotGroup(
|
|
47575
|
+
groupName: string,
|
|
47576
|
+
hotspotIds: Common.Array<string>,
|
|
47577
|
+
): Promise<Systems.HotspotGroupResult> {
|
|
47578
|
+
var _resolve;
|
|
47579
|
+
|
|
47580
|
+
var _promise = new Promise<Systems.HotspotGroupResult>((_r) => {
|
|
47581
|
+
_resolve = _r;
|
|
47582
|
+
});
|
|
47583
|
+
|
|
47584
|
+
var _callbackPtr: number;
|
|
47585
|
+
var _callback = (_stateObject__: number, result) => {
|
|
47586
|
+
var _resultPtr = getNativePointer(result);
|
|
47587
|
+
var _resultInstance = new Systems.HotspotGroupResult(_resultPtr);
|
|
47588
|
+
|
|
47589
|
+
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
47590
|
+
return;
|
|
47591
|
+
}
|
|
47592
|
+
|
|
47593
|
+
_resolve(_resultInstance);
|
|
47594
|
+
|
|
47595
|
+
Module.removeFunction(_callbackPtr);
|
|
47596
|
+
};
|
|
47597
|
+
|
|
47598
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
47599
|
+
|
|
47600
|
+
Module.ccall(
|
|
47601
|
+
"csp_systems_HotspotSequenceSystem_UpdateHotspotGroup_void_StringRC_ArrayRC_HotspotGroupResultCallback",
|
|
47602
|
+
"void",
|
|
47603
|
+
["number", "string", "number", "number", "number"],
|
|
47604
|
+
[this.pointer, groupName, hotspotIds.pointer, _callbackPtr, 0],
|
|
47605
|
+
);
|
|
47606
|
+
|
|
47607
|
+
return _promise;
|
|
47608
|
+
}
|
|
47609
|
+
|
|
47610
|
+
/**
|
|
47611
|
+
* @description Get a Hotspot group by name
|
|
47612
|
+
* @param groupName - The unique grouping name
|
|
47613
|
+
* @param callback - Callback to call when a response is received
|
|
47614
|
+
*/
|
|
47615
|
+
|
|
47616
|
+
async getHotspotGroup(
|
|
47617
|
+
groupName: string,
|
|
47618
|
+
): Promise<Systems.HotspotGroupResult> {
|
|
47619
|
+
var _resolve;
|
|
47620
|
+
|
|
47621
|
+
var _promise = new Promise<Systems.HotspotGroupResult>((_r) => {
|
|
47622
|
+
_resolve = _r;
|
|
47623
|
+
});
|
|
47624
|
+
|
|
47625
|
+
var _callbackPtr: number;
|
|
47626
|
+
var _callback = (_stateObject__: number, result) => {
|
|
47627
|
+
var _resultPtr = getNativePointer(result);
|
|
47628
|
+
var _resultInstance = new Systems.HotspotGroupResult(_resultPtr);
|
|
47629
|
+
|
|
47630
|
+
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
47631
|
+
return;
|
|
47632
|
+
}
|
|
47633
|
+
|
|
47634
|
+
_resolve(_resultInstance);
|
|
47635
|
+
|
|
47636
|
+
Module.removeFunction(_callbackPtr);
|
|
47637
|
+
};
|
|
47638
|
+
|
|
47639
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
47640
|
+
|
|
47641
|
+
Module.ccall(
|
|
47642
|
+
"csp_systems_HotspotSequenceSystem_GetHotspotGroup_void_StringRC_HotspotGroupResultCallback",
|
|
47643
|
+
"void",
|
|
47644
|
+
["number", "string", "number", "number"],
|
|
47645
|
+
[this.pointer, groupName, _callbackPtr, 0],
|
|
47646
|
+
);
|
|
47647
|
+
|
|
47648
|
+
return _promise;
|
|
47649
|
+
}
|
|
47650
|
+
|
|
47651
|
+
/**
|
|
47652
|
+
* @description Get all Hotspot groups for the current space and logged in user.
|
|
47653
|
+
* @param callback - Callback to call when a response is received
|
|
47654
|
+
*/
|
|
47655
|
+
|
|
47656
|
+
async getHotspotGroups(): Promise<Systems.HotspotGroupsResult> {
|
|
47657
|
+
var _resolve;
|
|
47658
|
+
|
|
47659
|
+
var _promise = new Promise<Systems.HotspotGroupsResult>((_r) => {
|
|
47660
|
+
_resolve = _r;
|
|
47661
|
+
});
|
|
47662
|
+
|
|
47663
|
+
var _callbackPtr: number;
|
|
47664
|
+
var _callback = (_stateObject__: number, result) => {
|
|
47665
|
+
var _resultPtr = getNativePointer(result);
|
|
47666
|
+
var _resultInstance = new Systems.HotspotGroupsResult(_resultPtr);
|
|
47667
|
+
|
|
47668
|
+
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
47669
|
+
return;
|
|
47670
|
+
}
|
|
47671
|
+
|
|
47672
|
+
_resolve(_resultInstance);
|
|
47673
|
+
|
|
47674
|
+
Module.removeFunction(_callbackPtr);
|
|
47675
|
+
};
|
|
47676
|
+
|
|
47677
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
47678
|
+
|
|
47679
|
+
Module.ccall(
|
|
47680
|
+
"csp_systems_HotspotSequenceSystem_GetHotspotGroups_void_HotspotGroupsResultCallback",
|
|
47681
|
+
"void",
|
|
47682
|
+
["number", "number", "number"],
|
|
47683
|
+
[this.pointer, _callbackPtr, 0],
|
|
47684
|
+
);
|
|
47685
|
+
|
|
47686
|
+
return _promise;
|
|
47687
|
+
}
|
|
47688
|
+
|
|
47689
|
+
/**
|
|
47690
|
+
* @description Delete a Hotspot group by name
|
|
47691
|
+
* @param groupName - The unique grouping name
|
|
47692
|
+
* @param callback - Callback to call when a response is received
|
|
47693
|
+
*/
|
|
47694
|
+
|
|
47695
|
+
async deleteHotspotGroup(groupName: string): Promise<Systems.NullResult> {
|
|
47696
|
+
var _resolve;
|
|
47697
|
+
|
|
47698
|
+
var _promise = new Promise<Systems.NullResult>((_r) => {
|
|
47699
|
+
_resolve = _r;
|
|
47700
|
+
});
|
|
47701
|
+
|
|
47702
|
+
var _callbackPtr: number;
|
|
47703
|
+
var _callback = (_stateObject__: number, result) => {
|
|
47704
|
+
var _resultPtr = getNativePointer(result);
|
|
47705
|
+
var _resultInstance = new Systems.NullResult(_resultPtr);
|
|
47706
|
+
|
|
47707
|
+
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
47708
|
+
return;
|
|
47709
|
+
}
|
|
47710
|
+
|
|
47711
|
+
_resolve(_resultInstance);
|
|
47712
|
+
|
|
47713
|
+
Module.removeFunction(_callbackPtr);
|
|
47714
|
+
};
|
|
47715
|
+
|
|
47716
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
47717
|
+
|
|
47718
|
+
Module.ccall(
|
|
47719
|
+
"csp_systems_HotspotSequenceSystem_DeleteHotspotGroup_void_StringRC_NullResultCallback",
|
|
47720
|
+
"void",
|
|
47721
|
+
["number", "string", "number", "number"],
|
|
47722
|
+
[this.pointer, groupName, _callbackPtr, 0],
|
|
47723
|
+
);
|
|
47724
|
+
|
|
47725
|
+
return _promise;
|
|
47726
|
+
}
|
|
47727
|
+
|
|
47728
|
+
delete(): void {
|
|
47729
|
+
if (this.ownsPointer && !this.disposed) {
|
|
47730
|
+
Module.ccall(
|
|
47731
|
+
"csp_systems_HotspotSequenceSystem_Dtor",
|
|
47732
|
+
"void",
|
|
47733
|
+
["number"],
|
|
47734
|
+
[this.pointer],
|
|
47735
|
+
);
|
|
47736
|
+
|
|
47737
|
+
this.disposed = true;
|
|
47738
|
+
}
|
|
47739
|
+
}
|
|
47740
|
+
}
|
|
47741
|
+
}
|
|
47742
|
+
|
|
46099
47743
|
export namespace Systems {
|
|
46100
47744
|
/**
|
|
46101
47745
|
@ingroup CSPFoundation
|
|
@@ -47680,11 +49324,13 @@ export namespace Systems {
|
|
|
47680
49324
|
|
|
47681
49325
|
/**
|
|
47682
49326
|
* @description Creates a new sequence. If a sequence already exists with this key, it will overwrite the current one.
|
|
49327
|
+
* NOTE: This call will fail (Reason InvalidSequenceKey) if the SequenceKey parameter contains invalid keys, such as spaces, '/' or '%'
|
|
47683
49328
|
* This call will fail if the user isn't a creator of the space.
|
|
47684
|
-
* @param sequenceKey - The unique grouping name.
|
|
47685
|
-
* @param referenceType - The type of reference (GroupId
|
|
49329
|
+
* @param sequenceKey - The unique grouping name. Our naming convention is: Type:[SpaceId]:[GroupName]
|
|
49330
|
+
* @param referenceType - The type of reference (GroupId etc.)
|
|
47686
49331
|
* @param referenceId - The id of the reference
|
|
47687
49332
|
* @param items - An ordered array of members
|
|
49333
|
+
* @param metaData - Any additional data relating to the Sequence
|
|
47688
49334
|
* @param callback - Callback to call when a response is received
|
|
47689
49335
|
*/
|
|
47690
49336
|
|
|
@@ -47693,6 +49339,7 @@ export namespace Systems {
|
|
|
47693
49339
|
referenceType: string,
|
|
47694
49340
|
referenceId: string,
|
|
47695
49341
|
items: Common.Array<string>,
|
|
49342
|
+
metaData: Common.Map<string, string>,
|
|
47696
49343
|
): Promise<Systems.SequenceResult> {
|
|
47697
49344
|
var _resolve;
|
|
47698
49345
|
|
|
@@ -47717,15 +49364,25 @@ export namespace Systems {
|
|
|
47717
49364
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
47718
49365
|
|
|
47719
49366
|
Module.ccall(
|
|
47720
|
-
"
|
|
49367
|
+
"csp_systems_SequenceSystem_CreateSequence_void_StringRC_StringRC_StringRC_ArrayRC_MapRC_SequenceResultCallback",
|
|
47721
49368
|
"void",
|
|
47722
|
-
[
|
|
49369
|
+
[
|
|
49370
|
+
"number",
|
|
49371
|
+
"string",
|
|
49372
|
+
"string",
|
|
49373
|
+
"string",
|
|
49374
|
+
"number",
|
|
49375
|
+
"number",
|
|
49376
|
+
"number",
|
|
49377
|
+
"number",
|
|
49378
|
+
],
|
|
47723
49379
|
[
|
|
47724
49380
|
this.pointer,
|
|
47725
49381
|
sequenceKey,
|
|
47726
49382
|
referenceType,
|
|
47727
49383
|
referenceId,
|
|
47728
49384
|
items.pointer,
|
|
49385
|
+
metaData.pointer,
|
|
47729
49386
|
_callbackPtr,
|
|
47730
49387
|
0,
|
|
47731
49388
|
],
|
|
@@ -47736,10 +49393,12 @@ export namespace Systems {
|
|
|
47736
49393
|
|
|
47737
49394
|
/**
|
|
47738
49395
|
* @description Updates an existing sequence. This call will fail if the user isn't a creator of the space.
|
|
47739
|
-
*
|
|
47740
|
-
* @param
|
|
49396
|
+
* NOTE: This call will fail if the SequenceKey parameter contains invalid keys, such as spaces, '/' or '%'
|
|
49397
|
+
* @param sequenceKey - The unique grouping name. Our naming convention is: Type:[SpaceId]:[GroupName]
|
|
49398
|
+
* @param referenceType - The type of reference (GroupId etc.)
|
|
47741
49399
|
* @param referenceId - The id of the reference
|
|
47742
49400
|
* @param items - An ordered array of members
|
|
49401
|
+
* @param metaData - Any additional data relating to the Sequence
|
|
47743
49402
|
* @param callback - Callback to call when a response is received
|
|
47744
49403
|
*/
|
|
47745
49404
|
|
|
@@ -47748,6 +49407,7 @@ export namespace Systems {
|
|
|
47748
49407
|
referenceType: string,
|
|
47749
49408
|
referenceId: string,
|
|
47750
49409
|
items: Common.Array<string>,
|
|
49410
|
+
metaData: Common.Map<string, string>,
|
|
47751
49411
|
): Promise<Systems.SequenceResult> {
|
|
47752
49412
|
var _resolve;
|
|
47753
49413
|
|
|
@@ -47772,15 +49432,25 @@ export namespace Systems {
|
|
|
47772
49432
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
47773
49433
|
|
|
47774
49434
|
Module.ccall(
|
|
47775
|
-
"
|
|
49435
|
+
"csp_systems_SequenceSystem_UpdateSequence_void_StringRC_StringRC_StringRC_ArrayRC_MapRC_SequenceResultCallback",
|
|
47776
49436
|
"void",
|
|
47777
|
-
[
|
|
49437
|
+
[
|
|
49438
|
+
"number",
|
|
49439
|
+
"string",
|
|
49440
|
+
"string",
|
|
49441
|
+
"string",
|
|
49442
|
+
"number",
|
|
49443
|
+
"number",
|
|
49444
|
+
"number",
|
|
49445
|
+
"number",
|
|
49446
|
+
],
|
|
47778
49447
|
[
|
|
47779
49448
|
this.pointer,
|
|
47780
49449
|
sequenceKey,
|
|
47781
49450
|
referenceType,
|
|
47782
49451
|
referenceId,
|
|
47783
49452
|
items.pointer,
|
|
49453
|
+
metaData.pointer,
|
|
47784
49454
|
_callbackPtr,
|
|
47785
49455
|
0,
|
|
47786
49456
|
],
|
|
@@ -47791,6 +49461,8 @@ export namespace Systems {
|
|
|
47791
49461
|
|
|
47792
49462
|
/**
|
|
47793
49463
|
* @description Renames a given sequence. This call will fail if the user isn't a creator of the space.
|
|
49464
|
+
* NOTE: This call will fail (Reason InvalidSequenceKey) if the OldSequenceKey, or NewSequenceKey parameters contains invalid keys, such as
|
|
49465
|
+
* spaces, '/' or '%'
|
|
47794
49466
|
* @param oldSequenceKey - The current sequence key name
|
|
47795
49467
|
* @param newSequenceKey - The new sequence key name
|
|
47796
49468
|
* @param callback - Callback to call when a response is received
|
|
@@ -47834,10 +49506,12 @@ export namespace Systems {
|
|
|
47834
49506
|
|
|
47835
49507
|
/**
|
|
47836
49508
|
* @description Finds sequences based on the given criteria
|
|
49509
|
+
* NOTE: This call will fail (Reason InvalidSequenceKey) if the SequenceKey parameter contains invalid keys, such as spaces, '/' or '%'
|
|
47837
49510
|
* @param sequenceKeys - An array of sequence keys to search for
|
|
47838
49511
|
* @param sequenceKeys - An optional regex string for searching keys
|
|
47839
|
-
* @param referenceType - The type of reference (GroupId
|
|
49512
|
+
* @param referenceType - The type of reference (GroupId etc.). Must be used with ReferenceIds
|
|
47840
49513
|
* @param referenceIds - The ids of the reference. Must be used with ReferenceType
|
|
49514
|
+
* @param metaData - Any additional data relating to the Sequence
|
|
47841
49515
|
* @param callback - Callback to call when a response is received
|
|
47842
49516
|
*/
|
|
47843
49517
|
|
|
@@ -47846,6 +49520,7 @@ export namespace Systems {
|
|
|
47846
49520
|
keyRegex: string | null,
|
|
47847
49521
|
referenceType: string | null,
|
|
47848
49522
|
referenceIds: Common.Array<string>,
|
|
49523
|
+
metaData: Common.Map<string, string>,
|
|
47849
49524
|
): Promise<Systems.SequencesResult> {
|
|
47850
49525
|
var _resolve;
|
|
47851
49526
|
|
|
@@ -47870,15 +49545,25 @@ export namespace Systems {
|
|
|
47870
49545
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
47871
49546
|
|
|
47872
49547
|
Module.ccall(
|
|
47873
|
-
"
|
|
49548
|
+
"csp_systems_SequenceSystem_GetSequencesByCriteria_void_ArrayRC_StringRC_StringRC_ArrayRC_MapRC_SequencesResultCallback",
|
|
47874
49549
|
"void",
|
|
47875
|
-
[
|
|
49550
|
+
[
|
|
49551
|
+
"number",
|
|
49552
|
+
"number",
|
|
49553
|
+
"string",
|
|
49554
|
+
"string",
|
|
49555
|
+
"number",
|
|
49556
|
+
"number",
|
|
49557
|
+
"number",
|
|
49558
|
+
"number",
|
|
49559
|
+
],
|
|
47876
49560
|
[
|
|
47877
49561
|
this.pointer,
|
|
47878
49562
|
sequenceKeys.pointer,
|
|
47879
49563
|
keyRegex,
|
|
47880
49564
|
referenceType,
|
|
47881
49565
|
referenceIds.pointer,
|
|
49566
|
+
metaData.pointer,
|
|
47882
49567
|
_callbackPtr,
|
|
47883
49568
|
0,
|
|
47884
49569
|
],
|
|
@@ -47889,6 +49574,7 @@ export namespace Systems {
|
|
|
47889
49574
|
|
|
47890
49575
|
/**
|
|
47891
49576
|
* @description Gets a sequence by it's key
|
|
49577
|
+
* NOTE: This call will fail (Reason InvalidSequenceKey) if the SequenceKey parameter contains invalid keys, such as spaces, '/' or '%'
|
|
47892
49578
|
* @param sequenceKey - The unique grouping name
|
|
47893
49579
|
* @param callback - Callback to call when a response is received
|
|
47894
49580
|
*/
|
|
@@ -47928,6 +49614,7 @@ export namespace Systems {
|
|
|
47928
49614
|
|
|
47929
49615
|
/**
|
|
47930
49616
|
* @description Deletes the given sequences. This call will fail if the user isn't a creator of the space
|
|
49617
|
+
* NOTE: This call will fail (Reason InvalidSequenceKey) if the SequenceKey parameter contains invalid keys, such as spaces, '/' or '%'
|
|
47931
49618
|
* @param sequenceKeys - An array of sequence keys to delete
|
|
47932
49619
|
* @param callback - Callback to call when a response is received
|
|
47933
49620
|
*/
|
|
@@ -51252,6 +52939,74 @@ export namespace Systems {
|
|
|
51252
52939
|
|
|
51253
52940
|
return _promise;
|
|
51254
52941
|
}
|
|
52942
|
+
|
|
52943
|
+
/**
|
|
52944
|
+
* @description Duplicate an existing space and assign it to the current user
|
|
52945
|
+
* @param spaceId - Id of the space to duplicate.
|
|
52946
|
+
* @param newName - A unique name for the duplicated space.
|
|
52947
|
+
* @param newAttributes - Attributes to apply to the duplicated space.
|
|
52948
|
+
* @param memberGroupIds - An optional array of group (space) IDs to copy users from.
|
|
52949
|
+
* @param shallowCopy - If true, the duplicated space will reference the assets of the original space. Otherwise, all assets will be
|
|
52950
|
+
* duplicated.
|
|
52951
|
+
* @param callback - Callback when asynchronous task finishes
|
|
52952
|
+
*/
|
|
52953
|
+
|
|
52954
|
+
async duplicateSpace(
|
|
52955
|
+
spaceId: string,
|
|
52956
|
+
newName: string,
|
|
52957
|
+
newAttributes: Systems.SpaceAttributes,
|
|
52958
|
+
memberGroupIds: Common.Array<string> | null,
|
|
52959
|
+
shallowCopy: boolean,
|
|
52960
|
+
): Promise<Systems.SpaceResult> {
|
|
52961
|
+
var _resolve;
|
|
52962
|
+
|
|
52963
|
+
var _promise = new Promise<Systems.SpaceResult>((_r) => {
|
|
52964
|
+
_resolve = _r;
|
|
52965
|
+
});
|
|
52966
|
+
|
|
52967
|
+
var _callbackPtr: number;
|
|
52968
|
+
var _callback = (_stateObject__: number, result) => {
|
|
52969
|
+
var _resultPtr = getNativePointer(result);
|
|
52970
|
+
var _resultInstance = new Systems.SpaceResult(_resultPtr);
|
|
52971
|
+
|
|
52972
|
+
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
52973
|
+
return;
|
|
52974
|
+
}
|
|
52975
|
+
|
|
52976
|
+
_resolve(_resultInstance);
|
|
52977
|
+
|
|
52978
|
+
Module.removeFunction(_callbackPtr);
|
|
52979
|
+
};
|
|
52980
|
+
|
|
52981
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
52982
|
+
|
|
52983
|
+
Module.ccall(
|
|
52984
|
+
"csp_systems_SpaceSystem_DuplicateSpace_void_StringRC_StringRC_SpaceAttributes_ArrayRC_bool_SpaceResultCallback",
|
|
52985
|
+
"void",
|
|
52986
|
+
[
|
|
52987
|
+
"number",
|
|
52988
|
+
"string",
|
|
52989
|
+
"string",
|
|
52990
|
+
"number",
|
|
52991
|
+
"number",
|
|
52992
|
+
"boolean",
|
|
52993
|
+
"number",
|
|
52994
|
+
"number",
|
|
52995
|
+
],
|
|
52996
|
+
[
|
|
52997
|
+
this.pointer,
|
|
52998
|
+
spaceId,
|
|
52999
|
+
newName,
|
|
53000
|
+
newAttributes,
|
|
53001
|
+
memberGroupIds != null ? memberGroupIds.pointer : 0,
|
|
53002
|
+
shallowCopy,
|
|
53003
|
+
_callbackPtr,
|
|
53004
|
+
0,
|
|
53005
|
+
],
|
|
53006
|
+
);
|
|
53007
|
+
|
|
53008
|
+
return _promise;
|
|
53009
|
+
}
|
|
51255
53010
|
}
|
|
51256
53011
|
}
|
|
51257
53012
|
|
|
@@ -54101,6 +55856,42 @@ export namespace Common {
|
|
|
54101
55856
|
return _inst;
|
|
54102
55857
|
}
|
|
54103
55858
|
|
|
55859
|
+
static ofuint64_t(): Array<bigint> {
|
|
55860
|
+
var _ret = Module._malloc(8);
|
|
55861
|
+
Module.ccall(
|
|
55862
|
+
"csp_common_Array_Ctor_uint64_t",
|
|
55863
|
+
"void",
|
|
55864
|
+
["number"],
|
|
55865
|
+
[_ret],
|
|
55866
|
+
);
|
|
55867
|
+
var _inst = new Array<bigint>(
|
|
55868
|
+
getNativePointer(_ret),
|
|
55869
|
+
NumberFactory,
|
|
55870
|
+
"uint64_t",
|
|
55871
|
+
);
|
|
55872
|
+
Module._free(_ret);
|
|
55873
|
+
|
|
55874
|
+
return _inst;
|
|
55875
|
+
}
|
|
55876
|
+
|
|
55877
|
+
static ofcsp_multiplayer_SequenceHierarchy(): Array<Multiplayer.SequenceHierarchy> {
|
|
55878
|
+
var _ret = Module._malloc(8);
|
|
55879
|
+
Module.ccall(
|
|
55880
|
+
"csp_common_Array_Ctor_csp_multiplayer_SequenceHierarchy",
|
|
55881
|
+
"void",
|
|
55882
|
+
["number"],
|
|
55883
|
+
[_ret],
|
|
55884
|
+
);
|
|
55885
|
+
var _inst = new Array<Multiplayer.SequenceHierarchy>(
|
|
55886
|
+
getNativePointer(_ret),
|
|
55887
|
+
csp_multiplayer_SequenceHierarchyFactory,
|
|
55888
|
+
"csp_multiplayer_SequenceHierarchy",
|
|
55889
|
+
);
|
|
55890
|
+
Module._free(_ret);
|
|
55891
|
+
|
|
55892
|
+
return _inst;
|
|
55893
|
+
}
|
|
55894
|
+
|
|
54104
55895
|
static ofcsp_multiplayer_MessageInfo(): Array<Multiplayer.MessageInfo> {
|
|
54105
55896
|
var _ret = Module._malloc(8);
|
|
54106
55897
|
Module.ccall(
|
|
@@ -54366,6 +56157,24 @@ export namespace Common {
|
|
|
54366
56157
|
return _inst;
|
|
54367
56158
|
}
|
|
54368
56159
|
|
|
56160
|
+
static ofcsp_systems_HotspotGroup(): Array<Systems.HotspotGroup> {
|
|
56161
|
+
var _ret = Module._malloc(8);
|
|
56162
|
+
Module.ccall(
|
|
56163
|
+
"csp_common_Array_Ctor_csp_systems_HotspotGroup",
|
|
56164
|
+
"void",
|
|
56165
|
+
["number"],
|
|
56166
|
+
[_ret],
|
|
56167
|
+
);
|
|
56168
|
+
var _inst = new Array<Systems.HotspotGroup>(
|
|
56169
|
+
getNativePointer(_ret),
|
|
56170
|
+
csp_systems_HotspotGroupFactory,
|
|
56171
|
+
"csp_systems_HotspotGroup",
|
|
56172
|
+
);
|
|
56173
|
+
Module._free(_ret);
|
|
56174
|
+
|
|
56175
|
+
return _inst;
|
|
56176
|
+
}
|
|
56177
|
+
|
|
54369
56178
|
static ofcsp_systems_MaintenanceInfo(): Array<Systems.MaintenanceInfo> {
|
|
54370
56179
|
var _ret = Module._malloc(8);
|
|
54371
56180
|
Module.ccall(
|
|
@@ -54830,6 +56639,44 @@ export namespace Common {
|
|
|
54830
56639
|
return _inst;
|
|
54831
56640
|
}
|
|
54832
56641
|
|
|
56642
|
+
static ofuint64_t_number(size: number): Array<bigint> {
|
|
56643
|
+
var _ret = Module._malloc(8);
|
|
56644
|
+
Module.ccall(
|
|
56645
|
+
"csp_common_Array_Conv_size_tC_uint64_t",
|
|
56646
|
+
"void",
|
|
56647
|
+
["number", "number"],
|
|
56648
|
+
[_ret, size],
|
|
56649
|
+
);
|
|
56650
|
+
var _inst = new Array<bigint>(
|
|
56651
|
+
getNativePointer(_ret),
|
|
56652
|
+
NumberFactory,
|
|
56653
|
+
"uint64_t",
|
|
56654
|
+
);
|
|
56655
|
+
Module._free(_ret);
|
|
56656
|
+
|
|
56657
|
+
return _inst;
|
|
56658
|
+
}
|
|
56659
|
+
|
|
56660
|
+
static ofcsp_multiplayer_SequenceHierarchy_number(
|
|
56661
|
+
size: number,
|
|
56662
|
+
): Array<Multiplayer.SequenceHierarchy> {
|
|
56663
|
+
var _ret = Module._malloc(8);
|
|
56664
|
+
Module.ccall(
|
|
56665
|
+
"csp_common_Array_Conv_size_tC_csp_multiplayer_SequenceHierarchy",
|
|
56666
|
+
"void",
|
|
56667
|
+
["number", "number"],
|
|
56668
|
+
[_ret, size],
|
|
56669
|
+
);
|
|
56670
|
+
var _inst = new Array<Multiplayer.SequenceHierarchy>(
|
|
56671
|
+
getNativePointer(_ret),
|
|
56672
|
+
csp_multiplayer_SequenceHierarchyFactory,
|
|
56673
|
+
"csp_multiplayer_SequenceHierarchy",
|
|
56674
|
+
);
|
|
56675
|
+
Module._free(_ret);
|
|
56676
|
+
|
|
56677
|
+
return _inst;
|
|
56678
|
+
}
|
|
56679
|
+
|
|
54833
56680
|
static ofcsp_multiplayer_MessageInfo_number(
|
|
54834
56681
|
size: number,
|
|
54835
56682
|
): Array<Multiplayer.MessageInfo> {
|
|
@@ -55126,6 +56973,26 @@ export namespace Common {
|
|
|
55126
56973
|
return _inst;
|
|
55127
56974
|
}
|
|
55128
56975
|
|
|
56976
|
+
static ofcsp_systems_HotspotGroup_number(
|
|
56977
|
+
size: number,
|
|
56978
|
+
): Array<Systems.HotspotGroup> {
|
|
56979
|
+
var _ret = Module._malloc(8);
|
|
56980
|
+
Module.ccall(
|
|
56981
|
+
"csp_common_Array_Conv_size_tC_csp_systems_HotspotGroup",
|
|
56982
|
+
"void",
|
|
56983
|
+
["number", "number"],
|
|
56984
|
+
[_ret, size],
|
|
56985
|
+
);
|
|
56986
|
+
var _inst = new Array<Systems.HotspotGroup>(
|
|
56987
|
+
getNativePointer(_ret),
|
|
56988
|
+
csp_systems_HotspotGroupFactory,
|
|
56989
|
+
"csp_systems_HotspotGroup",
|
|
56990
|
+
);
|
|
56991
|
+
Module._free(_ret);
|
|
56992
|
+
|
|
56993
|
+
return _inst;
|
|
56994
|
+
}
|
|
56995
|
+
|
|
55129
56996
|
static ofcsp_systems_MaintenanceInfo_number(
|
|
55130
56997
|
size: number,
|
|
55131
56998
|
): Array<Systems.MaintenanceInfo> {
|
|
@@ -55657,6 +57524,24 @@ export namespace Common {
|
|
|
55657
57524
|
private TTypeFactory: ProxyClassFactory;
|
|
55658
57525
|
private TTypeName: string;
|
|
55659
57526
|
|
|
57527
|
+
static ofcsp_multiplayer_SpaceEntity(): List<Multiplayer.SpaceEntity> {
|
|
57528
|
+
var _ret = Module._malloc(8);
|
|
57529
|
+
Module.ccall(
|
|
57530
|
+
"csp_common_List_Ctor_csp_multiplayer_SpaceEntity",
|
|
57531
|
+
"void",
|
|
57532
|
+
["number"],
|
|
57533
|
+
[_ret],
|
|
57534
|
+
);
|
|
57535
|
+
var _inst = new List<Multiplayer.SpaceEntity>(
|
|
57536
|
+
getNativePointer(_ret),
|
|
57537
|
+
csp_multiplayer_SpaceEntityFactory,
|
|
57538
|
+
"csp_multiplayer_SpaceEntity",
|
|
57539
|
+
);
|
|
57540
|
+
Module._free(_ret);
|
|
57541
|
+
|
|
57542
|
+
return _inst;
|
|
57543
|
+
}
|
|
57544
|
+
|
|
55660
57545
|
static ofString(): List<string> {
|
|
55661
57546
|
var _ret = Module._malloc(8);
|
|
55662
57547
|
Module.ccall("csp_common_List_Ctor_String", "void", ["number"], [_ret]);
|
|
@@ -55688,6 +57573,26 @@ export namespace Common {
|
|
|
55688
57573
|
return _inst;
|
|
55689
57574
|
}
|
|
55690
57575
|
|
|
57576
|
+
static ofcsp_multiplayer_SpaceEntity_number(
|
|
57577
|
+
minimumSize: number,
|
|
57578
|
+
): List<Multiplayer.SpaceEntity> {
|
|
57579
|
+
var _ret = Module._malloc(8);
|
|
57580
|
+
Module.ccall(
|
|
57581
|
+
"csp_common_List_Ctor_size_t_csp_multiplayer_SpaceEntity",
|
|
57582
|
+
"void",
|
|
57583
|
+
["number", "number"],
|
|
57584
|
+
[_ret, minimumSize],
|
|
57585
|
+
);
|
|
57586
|
+
var _inst = new List<Multiplayer.SpaceEntity>(
|
|
57587
|
+
getNativePointer(_ret),
|
|
57588
|
+
csp_multiplayer_SpaceEntityFactory,
|
|
57589
|
+
"csp_multiplayer_SpaceEntity",
|
|
57590
|
+
);
|
|
57591
|
+
Module._free(_ret);
|
|
57592
|
+
|
|
57593
|
+
return _inst;
|
|
57594
|
+
}
|
|
57595
|
+
|
|
55691
57596
|
static ofString_number(minimumSize: number): List<string> {
|
|
55692
57597
|
var _ret = Module._malloc(8);
|
|
55693
57598
|
Module.ccall(
|
|
@@ -55726,6 +57631,26 @@ export namespace Common {
|
|
|
55726
57631
|
return _inst;
|
|
55727
57632
|
}
|
|
55728
57633
|
|
|
57634
|
+
static ofcsp_multiplayer_SpaceEntity_List(
|
|
57635
|
+
other: Common.List<Multiplayer.SpaceEntity>,
|
|
57636
|
+
): List<Multiplayer.SpaceEntity> {
|
|
57637
|
+
var _ret = Module._malloc(8);
|
|
57638
|
+
Module.ccall(
|
|
57639
|
+
"csp_common_List_Ctor_ListRC_csp_multiplayer_SpaceEntity",
|
|
57640
|
+
"void",
|
|
57641
|
+
["number", "number"],
|
|
57642
|
+
[_ret, other.pointer],
|
|
57643
|
+
);
|
|
57644
|
+
var _inst = new List<Multiplayer.SpaceEntity>(
|
|
57645
|
+
getNativePointer(_ret),
|
|
57646
|
+
csp_multiplayer_SpaceEntityFactory,
|
|
57647
|
+
"csp_multiplayer_SpaceEntity",
|
|
57648
|
+
);
|
|
57649
|
+
Module._free(_ret);
|
|
57650
|
+
|
|
57651
|
+
return _inst;
|
|
57652
|
+
}
|
|
57653
|
+
|
|
55729
57654
|
static ofString_List(other: Common.List<string>): List<string> {
|
|
55730
57655
|
var _ret = Module._malloc(8);
|
|
55731
57656
|
Module.ccall(
|