connected-spaces-platform.web 6.1.0 → 6.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Debug/ConnectedSpacesPlatform_WASM.js +168 -108
- package/Debug/ConnectedSpacesPlatform_WASM.wasm +0 -0
- package/Debug/ConnectedSpacesPlatform_WASM.wasm.debug.wasm +0 -0
- package/README.md +1 -1
- package/Release/ConnectedSpacesPlatform_WASM.js +1 -1
- package/Release/ConnectedSpacesPlatform_WASM.wasm +0 -0
- package/connectedspacesplatform.d.ts +484 -186
- package/connectedspacesplatform.js +888 -389
- package/connectedspacesplatform.js.map +1 -1
- package/connectedspacesplatform.ts +1616 -696
- package/package.json +1 -1
|
@@ -466,13 +466,13 @@ function csp_multiplayer_MultiplayerHubMethodFactory(
|
|
|
466
466
|
ProxyClassFactories["csp_multiplayer_MultiplayerHubMethod"] =
|
|
467
467
|
csp_multiplayer_MultiplayerHubMethodFactory;
|
|
468
468
|
|
|
469
|
-
function
|
|
469
|
+
function csp_multiplayer_SpaceEntityUpdateFlagsFactory(
|
|
470
470
|
nativePointer: NativePointer,
|
|
471
|
-
): Multiplayer.
|
|
472
|
-
return nativePointer.pointer as Multiplayer.
|
|
471
|
+
): Multiplayer.SpaceEntityUpdateFlags {
|
|
472
|
+
return nativePointer.pointer as Multiplayer.SpaceEntityUpdateFlags;
|
|
473
473
|
}
|
|
474
|
-
ProxyClassFactories["
|
|
475
|
-
|
|
474
|
+
ProxyClassFactories["csp_multiplayer_SpaceEntityUpdateFlags"] =
|
|
475
|
+
csp_multiplayer_SpaceEntityUpdateFlagsFactory;
|
|
476
476
|
|
|
477
477
|
function csp_multiplayer_ComponentUpdateTypeFactory(
|
|
478
478
|
nativePointer: NativePointer,
|
|
@@ -482,13 +482,13 @@ function csp_multiplayer_ComponentUpdateTypeFactory(
|
|
|
482
482
|
ProxyClassFactories["csp_multiplayer_ComponentUpdateType"] =
|
|
483
483
|
csp_multiplayer_ComponentUpdateTypeFactory;
|
|
484
484
|
|
|
485
|
-
function
|
|
485
|
+
function csp_multiplayer_SpaceEntityTypeFactory(
|
|
486
486
|
nativePointer: NativePointer,
|
|
487
|
-
): Multiplayer.
|
|
488
|
-
return nativePointer.pointer as Multiplayer.
|
|
487
|
+
): Multiplayer.SpaceEntityType {
|
|
488
|
+
return nativePointer.pointer as Multiplayer.SpaceEntityType;
|
|
489
489
|
}
|
|
490
|
-
ProxyClassFactories["
|
|
491
|
-
|
|
490
|
+
ProxyClassFactories["csp_multiplayer_SpaceEntityType"] =
|
|
491
|
+
csp_multiplayer_SpaceEntityTypeFactory;
|
|
492
492
|
|
|
493
493
|
function csp_multiplayer_LockTypeFactory(
|
|
494
494
|
nativePointer: NativePointer,
|
|
@@ -1294,30 +1294,6 @@ function csp_systems_ResultBaseFactory(
|
|
|
1294
1294
|
}
|
|
1295
1295
|
ProxyClassFactories["csp_systems_ResultBase"] = csp_systems_ResultBaseFactory;
|
|
1296
1296
|
|
|
1297
|
-
function csp_systems_IAnalyticsProviderFactory(
|
|
1298
|
-
nativePointer: NativePointer,
|
|
1299
|
-
): NativeClassWrapper {
|
|
1300
|
-
return new Systems.IAnalyticsProvider(nativePointer);
|
|
1301
|
-
}
|
|
1302
|
-
ProxyClassFactories["csp_systems_IAnalyticsProvider"] =
|
|
1303
|
-
csp_systems_IAnalyticsProviderFactory;
|
|
1304
|
-
|
|
1305
|
-
function csp_systems_AnalyticsSystemFactory(
|
|
1306
|
-
nativePointer: NativePointer,
|
|
1307
|
-
): NativeClassWrapper {
|
|
1308
|
-
return new Systems.AnalyticsSystem(nativePointer);
|
|
1309
|
-
}
|
|
1310
|
-
ProxyClassFactories["csp_systems_AnalyticsSystem"] =
|
|
1311
|
-
csp_systems_AnalyticsSystemFactory;
|
|
1312
|
-
|
|
1313
|
-
function csp_systems_AnalyticsEventFactory(
|
|
1314
|
-
nativePointer: NativePointer,
|
|
1315
|
-
): NativeClassWrapper {
|
|
1316
|
-
return new Systems.AnalyticsEvent(nativePointer);
|
|
1317
|
-
}
|
|
1318
|
-
ProxyClassFactories["csp_systems_AnalyticsEvent"] =
|
|
1319
|
-
csp_systems_AnalyticsEventFactory;
|
|
1320
|
-
|
|
1321
1297
|
function csp_systems_AssetFactory(
|
|
1322
1298
|
nativePointer: NativePointer,
|
|
1323
1299
|
): NativeClassWrapper {
|
|
@@ -1702,6 +1678,14 @@ function csp_common_SequenceChangedNetworkEventDataFactory(
|
|
|
1702
1678
|
ProxyClassFactories["csp_common_SequenceChangedNetworkEventData"] =
|
|
1703
1679
|
csp_common_SequenceChangedNetworkEventDataFactory;
|
|
1704
1680
|
|
|
1681
|
+
function csp_multiplayer_OfflineRealtimeEngineFactory(
|
|
1682
|
+
nativePointer: NativePointer,
|
|
1683
|
+
): NativeClassWrapper {
|
|
1684
|
+
return new Multiplayer.OfflineRealtimeEngine(nativePointer);
|
|
1685
|
+
}
|
|
1686
|
+
ProxyClassFactories["csp_multiplayer_OfflineRealtimeEngine"] =
|
|
1687
|
+
csp_multiplayer_OfflineRealtimeEngineFactory;
|
|
1688
|
+
|
|
1705
1689
|
function csp_multiplayer_OnlineRealtimeEngineFactory(
|
|
1706
1690
|
nativePointer: NativePointer,
|
|
1707
1691
|
): NativeClassWrapper {
|
|
@@ -2654,18 +2638,6 @@ function csp_common_Array_csp_systems_SpaceUserRoleFactory(
|
|
|
2654
2638
|
ProxyClassFactories["csp_common_Array_csp_systems_SpaceUserRole"] =
|
|
2655
2639
|
csp_common_Array_csp_systems_SpaceUserRoleFactory;
|
|
2656
2640
|
|
|
2657
|
-
function csp_common_Array_csp_multiplayer_SpaceEntityFactory(
|
|
2658
|
-
nativePointer: NativePointer,
|
|
2659
|
-
): NativeClassWrapper {
|
|
2660
|
-
return new Common.Array<Multiplayer.SpaceEntity>(
|
|
2661
|
-
nativePointer,
|
|
2662
|
-
csp_multiplayer_SpaceEntityFactory,
|
|
2663
|
-
"csp_multiplayer_SpaceEntity",
|
|
2664
|
-
);
|
|
2665
|
-
}
|
|
2666
|
-
ProxyClassFactories["csp_common_Array_csp_multiplayer_SpaceEntity"] =
|
|
2667
|
-
csp_common_Array_csp_multiplayer_SpaceEntityFactory;
|
|
2668
|
-
|
|
2669
2641
|
function csp_common_Array_csp_multiplayer_NetworkEventRegistrationFactory(
|
|
2670
2642
|
nativePointer: NativePointer,
|
|
2671
2643
|
): NativeClassWrapper {
|
|
@@ -2727,6 +2699,18 @@ function csp_common_Array_csp_systems_SequenceFactory(
|
|
|
2727
2699
|
ProxyClassFactories["csp_common_Array_csp_systems_Sequence"] =
|
|
2728
2700
|
csp_common_Array_csp_systems_SequenceFactory;
|
|
2729
2701
|
|
|
2702
|
+
function csp_common_Array_csp_systems_AnchorFactory(
|
|
2703
|
+
nativePointer: NativePointer,
|
|
2704
|
+
): NativeClassWrapper {
|
|
2705
|
+
return new Common.Array<Systems.Anchor>(
|
|
2706
|
+
nativePointer,
|
|
2707
|
+
csp_systems_AnchorFactory,
|
|
2708
|
+
"csp_systems_Anchor",
|
|
2709
|
+
);
|
|
2710
|
+
}
|
|
2711
|
+
ProxyClassFactories["csp_common_Array_csp_systems_Anchor"] =
|
|
2712
|
+
csp_common_Array_csp_systems_AnchorFactory;
|
|
2713
|
+
|
|
2730
2714
|
function csp_common_Array_csp_systems_VersionMetadataFactory(
|
|
2731
2715
|
nativePointer: NativePointer,
|
|
2732
2716
|
): NativeClassWrapper {
|
|
@@ -3034,18 +3018,6 @@ function csp_common_Array_csp_systems_UserRoleInfoFactory(
|
|
|
3034
3018
|
ProxyClassFactories["csp_common_Array_csp_systems_UserRoleInfo"] =
|
|
3035
3019
|
csp_common_Array_csp_systems_UserRoleInfoFactory;
|
|
3036
3020
|
|
|
3037
|
-
function csp_common_Array_csp_systems_AnchorFactory(
|
|
3038
|
-
nativePointer: NativePointer,
|
|
3039
|
-
): NativeClassWrapper {
|
|
3040
|
-
return new Common.Array<Systems.Anchor>(
|
|
3041
|
-
nativePointer,
|
|
3042
|
-
csp_systems_AnchorFactory,
|
|
3043
|
-
"csp_systems_Anchor",
|
|
3044
|
-
);
|
|
3045
|
-
}
|
|
3046
|
-
ProxyClassFactories["csp_common_Array_csp_systems_Anchor"] =
|
|
3047
|
-
csp_common_Array_csp_systems_AnchorFactory;
|
|
3048
|
-
|
|
3049
3021
|
function csp_common_Array_csp_systems_AnchorResolutionFactory(
|
|
3050
3022
|
nativePointer: NativePointer,
|
|
3051
3023
|
): NativeClassWrapper {
|
|
@@ -3643,13 +3615,21 @@ export namespace Multiplayer {
|
|
|
3643
3615
|
|
|
3644
3616
|
export namespace Multiplayer {
|
|
3645
3617
|
/**
|
|
3646
|
-
* @description Enum used to specify
|
|
3647
|
-
*
|
|
3648
|
-
*
|
|
3618
|
+
* @description Enum used to specify what part of a SpaceEntity was updated when deserialising.
|
|
3619
|
+
* Use this to determine which parts of an entity to copy values from when an update occurs.
|
|
3620
|
+
* It is a bitwise flag enum, so values are additive, the value may represent several flags.
|
|
3649
3621
|
*/
|
|
3650
|
-
export enum
|
|
3651
|
-
|
|
3652
|
-
|
|
3622
|
+
export enum SpaceEntityUpdateFlags {
|
|
3623
|
+
UPDATE_FLAGS_NAME = 1,
|
|
3624
|
+
UPDATE_FLAGS_POSITION = 2,
|
|
3625
|
+
UPDATE_FLAGS_ROTATION = 4,
|
|
3626
|
+
UPDATE_FLAGS_SCALE = 8,
|
|
3627
|
+
UPDATE_FLAGS_COMPONENTS = 16,
|
|
3628
|
+
UPDATE_FLAGS_SELECTION_ID = 32,
|
|
3629
|
+
UPDATE_FLAGS_THIRD_PARTY_REF = 64,
|
|
3630
|
+
UPDATE_FLAGS_THIRD_PARTY_PLATFORM = 128,
|
|
3631
|
+
UPDATE_FLAGS_PARENT = 256,
|
|
3632
|
+
UPDATE_FLAGS_LOCK_TYPE = 512,
|
|
3653
3633
|
}
|
|
3654
3634
|
}
|
|
3655
3635
|
|
|
@@ -3672,21 +3652,13 @@ export namespace Multiplayer {
|
|
|
3672
3652
|
|
|
3673
3653
|
export namespace Multiplayer {
|
|
3674
3654
|
/**
|
|
3675
|
-
* @description Enum used to specify
|
|
3676
|
-
*
|
|
3677
|
-
*
|
|
3655
|
+
* @description Enum used to specify the the type of a space entity
|
|
3656
|
+
* /// Note that this specifically starts from 1 as 0 is reserved for internal purposes.
|
|
3657
|
+
* Any additions should not use 0.
|
|
3678
3658
|
*/
|
|
3679
|
-
export enum
|
|
3680
|
-
|
|
3681
|
-
|
|
3682
|
-
UPDATE_FLAGS_ROTATION = 4,
|
|
3683
|
-
UPDATE_FLAGS_SCALE = 8,
|
|
3684
|
-
UPDATE_FLAGS_COMPONENTS = 16,
|
|
3685
|
-
UPDATE_FLAGS_SELECTION_ID = 32,
|
|
3686
|
-
UPDATE_FLAGS_THIRD_PARTY_REF = 64,
|
|
3687
|
-
UPDATE_FLAGS_THIRD_PARTY_PLATFORM = 128,
|
|
3688
|
-
UPDATE_FLAGS_PARENT = 256,
|
|
3689
|
-
UPDATE_FLAGS_LOCK_TYPE = 512,
|
|
3659
|
+
export enum SpaceEntityType {
|
|
3660
|
+
Avatar = 1,
|
|
3661
|
+
Object,
|
|
3690
3662
|
}
|
|
3691
3663
|
}
|
|
3692
3664
|
|
|
@@ -3733,6 +3705,9 @@ export namespace Multiplayer {
|
|
|
3733
3705
|
ThirdPartyComponentRef,
|
|
3734
3706
|
IsShadowCaster,
|
|
3735
3707
|
MaterialOverrides,
|
|
3708
|
+
IsVirtualVisible,
|
|
3709
|
+
ShowAsHoldoutInAR,
|
|
3710
|
+
ShowAsHoldoutInVirtual,
|
|
3736
3711
|
Num,
|
|
3737
3712
|
}
|
|
3738
3713
|
}
|
|
@@ -3813,6 +3788,7 @@ export namespace Multiplayer {
|
|
|
3813
3788
|
LocomotionModel,
|
|
3814
3789
|
IsVisible,
|
|
3815
3790
|
IsARVisible,
|
|
3791
|
+
IsVirtualVisible,
|
|
3816
3792
|
Num,
|
|
3817
3793
|
}
|
|
3818
3794
|
}
|
|
@@ -3840,6 +3816,7 @@ export namespace Multiplayer {
|
|
|
3840
3816
|
IsVisible,
|
|
3841
3817
|
IsEnabled,
|
|
3842
3818
|
IsARVisible,
|
|
3819
|
+
IsVirtualVisible,
|
|
3843
3820
|
Num,
|
|
3844
3821
|
}
|
|
3845
3822
|
}
|
|
@@ -3971,6 +3948,7 @@ export namespace Multiplayer {
|
|
|
3971
3948
|
IsEnabled,
|
|
3972
3949
|
IsVisible,
|
|
3973
3950
|
IsARVisible,
|
|
3951
|
+
IsVirtualVisible,
|
|
3974
3952
|
Num,
|
|
3975
3953
|
}
|
|
3976
3954
|
}
|
|
@@ -3988,6 +3966,7 @@ export namespace Multiplayer {
|
|
|
3988
3966
|
Scale,
|
|
3989
3967
|
IsVisible,
|
|
3990
3968
|
IsARVisible,
|
|
3969
|
+
IsVirtualVisible,
|
|
3991
3970
|
Num,
|
|
3992
3971
|
}
|
|
3993
3972
|
}
|
|
@@ -4011,6 +3990,7 @@ export namespace Multiplayer {
|
|
|
4011
3990
|
IsVisible,
|
|
4012
3991
|
IsARVisible,
|
|
4013
3992
|
ThirdPartyComponentRef,
|
|
3993
|
+
IsVirtualVisible,
|
|
4014
3994
|
Num,
|
|
4015
3995
|
}
|
|
4016
3996
|
}
|
|
@@ -4041,6 +4021,7 @@ export namespace Multiplayer {
|
|
|
4041
4021
|
IsARVisible,
|
|
4042
4022
|
IsShadowCaster,
|
|
4043
4023
|
Tint,
|
|
4024
|
+
IsVirtualVisible,
|
|
4044
4025
|
Num,
|
|
4045
4026
|
}
|
|
4046
4027
|
}
|
|
@@ -4057,6 +4038,7 @@ export namespace Multiplayer {
|
|
|
4057
4038
|
IsSpawnPoint,
|
|
4058
4039
|
IsVisible,
|
|
4059
4040
|
IsARVisible,
|
|
4041
|
+
IsVirtualVisible,
|
|
4060
4042
|
Num,
|
|
4061
4043
|
}
|
|
4062
4044
|
}
|
|
@@ -4077,6 +4059,7 @@ export namespace Multiplayer {
|
|
|
4077
4059
|
DisplayMode,
|
|
4078
4060
|
IsARVisible,
|
|
4079
4061
|
IsEmissive,
|
|
4062
|
+
IsVirtualVisible,
|
|
4080
4063
|
Num,
|
|
4081
4064
|
}
|
|
4082
4065
|
}
|
|
@@ -4148,6 +4131,7 @@ export namespace Multiplayer {
|
|
|
4148
4131
|
IsARVisible,
|
|
4149
4132
|
ThirdPartyComponentRef,
|
|
4150
4133
|
LightShadowType,
|
|
4134
|
+
IsVirtualVisible,
|
|
4151
4135
|
Num,
|
|
4152
4136
|
}
|
|
4153
4137
|
}
|
|
@@ -4211,6 +4195,7 @@ export namespace Multiplayer {
|
|
|
4211
4195
|
DefaultImageCollectionId,
|
|
4212
4196
|
DefaultImageAssetId,
|
|
4213
4197
|
AttenuationRadius,
|
|
4198
|
+
IsVirtualVisible,
|
|
4214
4199
|
Num,
|
|
4215
4200
|
}
|
|
4216
4201
|
}
|
|
@@ -4264,6 +4249,9 @@ export namespace Multiplayer {
|
|
|
4264
4249
|
ThirdPartyComponentRef,
|
|
4265
4250
|
IsShadowCaster,
|
|
4266
4251
|
MaterialOverrides,
|
|
4252
|
+
IsVirtualVisible,
|
|
4253
|
+
ShowAsHoldoutInAR,
|
|
4254
|
+
ShowAsHoldoutInVirtual,
|
|
4267
4255
|
Num,
|
|
4268
4256
|
}
|
|
4269
4257
|
}
|
|
@@ -4285,6 +4273,7 @@ export namespace Multiplayer {
|
|
|
4285
4273
|
BillboardMode,
|
|
4286
4274
|
IsVisible,
|
|
4287
4275
|
IsARVisible,
|
|
4276
|
+
IsVirtualVisible,
|
|
4288
4277
|
Num,
|
|
4289
4278
|
}
|
|
4290
4279
|
}
|
|
@@ -4349,6 +4338,7 @@ export namespace Multiplayer {
|
|
|
4349
4338
|
IsARVisible,
|
|
4350
4339
|
MeshComponentId,
|
|
4351
4340
|
IsEnabled,
|
|
4341
|
+
IsVirtualVisible,
|
|
4352
4342
|
Num,
|
|
4353
4343
|
}
|
|
4354
4344
|
}
|
|
@@ -4673,6 +4663,44 @@ export namespace Multiplayer {
|
|
|
4673
4663
|
}
|
|
4674
4664
|
}
|
|
4675
4665
|
|
|
4666
|
+
export namespace Multiplayer {
|
|
4667
|
+
/**
|
|
4668
|
+
* @description Controls rendering behavior properties, such as a holdout state related to display modes, for a component.
|
|
4669
|
+
*/
|
|
4670
|
+
export interface IRenderBehaviourComponent {
|
|
4671
|
+
/**
|
|
4672
|
+
@defgroup HoldoutConcept Holdouts and Data Access
|
|
4673
|
+
* A holdout is an object that is rendered as a mask, cutting it out from the final image.
|
|
4674
|
+
* It still participates in depth testing, allowing objects to move behind it, but does not contribute pixels to the final image.
|
|
4675
|
+
* @description Checks if the component is shown as holdout when in AR mode.
|
|
4676
|
+
* @return True if the component is shown as holdout when in AR mode, false otherwise.
|
|
4677
|
+
* /// @see HoldoutConcept
|
|
4678
|
+
*/
|
|
4679
|
+
getShowAsHoldoutInAR: () => boolean;
|
|
4680
|
+
|
|
4681
|
+
/**
|
|
4682
|
+
* @description Sets if the component is shown as holdout in AR mode.
|
|
4683
|
+
* @param inValue - True if the component is shown as holdout in AR mode, false otherwise.
|
|
4684
|
+
* /// @see HoldoutConcept
|
|
4685
|
+
*/
|
|
4686
|
+
setShowAsHoldoutInAR: (value: boolean) => void;
|
|
4687
|
+
|
|
4688
|
+
/**
|
|
4689
|
+
* @description Checks if the component is shown as holdout when in Virtual mode.
|
|
4690
|
+
* @return True if the component is shown as holdout when in Virtual mode, false otherwise.
|
|
4691
|
+
* /// @see HoldoutConcept
|
|
4692
|
+
*/
|
|
4693
|
+
getShowAsHoldoutInVirtual: () => boolean;
|
|
4694
|
+
|
|
4695
|
+
/**
|
|
4696
|
+
* @description Sets if the component is shown as holdout in Virtual mode.
|
|
4697
|
+
* @param inValue - True if the component is shown as holdout in Virtual mode, false otherwise.
|
|
4698
|
+
* /// @see HoldoutConcept
|
|
4699
|
+
*/
|
|
4700
|
+
setShowAsHoldoutInVirtual: (value: boolean) => void;
|
|
4701
|
+
}
|
|
4702
|
+
}
|
|
4703
|
+
|
|
4676
4704
|
export namespace Multiplayer {
|
|
4677
4705
|
/**
|
|
4678
4706
|
* @description Controls the 3D rotation of the component.
|
|
@@ -4802,7 +4830,7 @@ export namespace Multiplayer {
|
|
|
4802
4830
|
|
|
4803
4831
|
export namespace Multiplayer {
|
|
4804
4832
|
/**
|
|
4805
|
-
* @description Controls the visibility of the component when in default mode or
|
|
4833
|
+
* @description Controls the visibility of the component when in default mode, AR mode or Virtual mode.
|
|
4806
4834
|
*/
|
|
4807
4835
|
export interface IVisibleComponent {
|
|
4808
4836
|
/**
|
|
@@ -4828,6 +4856,18 @@ export namespace Multiplayer {
|
|
|
4828
4856
|
* @param inValue - True if the component is visible in AR mode, false otherwise.
|
|
4829
4857
|
*/
|
|
4830
4858
|
setIsARVisible: (value: boolean) => void;
|
|
4859
|
+
|
|
4860
|
+
/**
|
|
4861
|
+
* @description Checks if the component is visible when in Virtual mode.
|
|
4862
|
+
* @return True if the component is visible when in Virtual mode, false otherwise.
|
|
4863
|
+
*/
|
|
4864
|
+
getIsVirtualVisible: () => boolean;
|
|
4865
|
+
|
|
4866
|
+
/**
|
|
4867
|
+
* @description Sets if the component is visible in Virtual mode.
|
|
4868
|
+
* @param inValue - True if the component is visible in Virtual mode, false otherwise.
|
|
4869
|
+
*/
|
|
4870
|
+
setIsVirtualVisible: (value: boolean) => void;
|
|
4831
4871
|
}
|
|
4832
4872
|
}
|
|
4833
4873
|
|
|
@@ -5294,17 +5334,22 @@ export class CSPFoundation {
|
|
|
5294
5334
|
* @description Sets the endpoints for the various services needed for foundation, passes over the client header information and initialises the
|
|
5295
5335
|
* systems required for foundation to operate.
|
|
5296
5336
|
* @param endpointRootURI - Root URI for service endpoints
|
|
5297
|
-
* @param tenant - Tenant for Magnopus Services. Data is not shared between tenants so clients using separate tenants
|
|
5298
|
-
* interact with each other.
|
|
5337
|
+
* @param tenant - Tenant for Magnopus Services. Data is not shared between tenants so clients using separate tenants
|
|
5338
|
+
* cannot interact with each other.
|
|
5339
|
+
* @param clientUserAgentHeader - The Client Info data
|
|
5299
5340
|
* @return True for successful initialisation.
|
|
5300
5341
|
*/
|
|
5301
5342
|
|
|
5302
|
-
static initialise(
|
|
5343
|
+
static initialise(
|
|
5344
|
+
endpointRootURI: string,
|
|
5345
|
+
tenant: string,
|
|
5346
|
+
clientUserAgentHeader: ClientUserAgent,
|
|
5347
|
+
): boolean {
|
|
5303
5348
|
let _result = Module.ccall(
|
|
5304
|
-
"
|
|
5349
|
+
"csp_CSPFoundation_Initialise_bool_StringRC_StringRC_ClientUserAgentRC",
|
|
5305
5350
|
"boolean",
|
|
5306
|
-
["string", "string"],
|
|
5307
|
-
[endpointRootURI, tenant],
|
|
5351
|
+
["string", "string", "number"],
|
|
5352
|
+
[endpointRootURI, tenant, clientUserAgentHeader.pointer],
|
|
5308
5353
|
);
|
|
5309
5354
|
|
|
5310
5355
|
return _result;
|
|
@@ -5480,21 +5525,6 @@ export class CSPFoundation {
|
|
|
5480
5525
|
return _nPtr;
|
|
5481
5526
|
}
|
|
5482
5527
|
|
|
5483
|
-
/**
|
|
5484
|
-
* @description Sets a class containing all relevant Client info currently set for Foundation.
|
|
5485
|
-
* Used internally to generate ClientUserAgentString.
|
|
5486
|
-
* @param the - Client Info class with current Client Info data
|
|
5487
|
-
*/
|
|
5488
|
-
|
|
5489
|
-
static setClientUserAgentInfo(clientUserAgentHeader: ClientUserAgent): void {
|
|
5490
|
-
Module.ccall(
|
|
5491
|
-
"csp_CSPFoundation_SetClientUserAgentInfo_void_ClientUserAgentRC",
|
|
5492
|
-
"void",
|
|
5493
|
-
["number"],
|
|
5494
|
-
[clientUserAgentHeader.pointer],
|
|
5495
|
-
);
|
|
5496
|
-
}
|
|
5497
|
-
|
|
5498
5528
|
/**
|
|
5499
5529
|
* @description Gets a class containing all relevant Client info currently set for Foundation.
|
|
5500
5530
|
* @return The Client Info class with current Client Info data
|
|
@@ -5539,7 +5569,7 @@ export class CSPFoundation {
|
|
|
5539
5569
|
|
|
5540
5570
|
/**
|
|
5541
5571
|
* @description Gets the tenant that foundation is currently using, based on what was provided during initialisation.
|
|
5542
|
-
* @return
|
|
5572
|
+
* @return Const csp::common::string&
|
|
5543
5573
|
*/
|
|
5544
5574
|
|
|
5545
5575
|
static getTenant(): string {
|
|
@@ -23120,15 +23150,6 @@ export namespace Common {
|
|
|
23120
23150
|
return _promise;
|
|
23121
23151
|
}
|
|
23122
23152
|
|
|
23123
|
-
addEntity(entityToAdd: Multiplayer.SpaceEntity): void {
|
|
23124
|
-
Module.ccall(
|
|
23125
|
-
"csp_common_IRealtimeEngine_AddEntity_void_SpaceEntityP",
|
|
23126
|
-
"void",
|
|
23127
|
-
["number", "number"],
|
|
23128
|
-
[this.pointer, entityToAdd.pointer],
|
|
23129
|
-
);
|
|
23130
|
-
}
|
|
23131
|
-
|
|
23132
23153
|
/**
|
|
23133
23154
|
* @description Destroy the specified entity.
|
|
23134
23155
|
* @param entity - A non-owning pointer to the entity to be destroyed.
|
|
@@ -23161,32 +23182,6 @@ export namespace Common {
|
|
|
23161
23182
|
return _promise;
|
|
23162
23183
|
}
|
|
23163
23184
|
|
|
23164
|
-
/**
|
|
23165
|
-
* @description Sets a callback to be executed when an entity is fully created.
|
|
23166
|
-
* /// Only one EntityCreatedCallback may be registered, calling this function again will override whatever was previously set.
|
|
23167
|
-
* The better way to set this and avoid initialisation race conditions is via passing this in the constructor, only use this if you wish to
|
|
23168
|
-
* override or remove this callback.
|
|
23169
|
-
* /// @param Callback csp::multiplayer::EntityCreatedCallback : the callback to execute.
|
|
23170
|
-
*/
|
|
23171
|
-
setEntityCreatedCallback(
|
|
23172
|
-
callback: (arg1: Multiplayer.SpaceEntity) => void,
|
|
23173
|
-
) {
|
|
23174
|
-
var _callback = (_stateObject__: number, arg1) => {
|
|
23175
|
-
var _arg1 = new Multiplayer.SpaceEntity(getNativePointer(arg1));
|
|
23176
|
-
|
|
23177
|
-
callback(_arg1);
|
|
23178
|
-
};
|
|
23179
|
-
|
|
23180
|
-
var _callbackPtr = Module.addFunction(_callback, "vii");
|
|
23181
|
-
|
|
23182
|
-
Module.ccall(
|
|
23183
|
-
"csp_common_IRealtimeEngine_SetEntityCreatedCallback_void_EntityCreatedCallback",
|
|
23184
|
-
"void",
|
|
23185
|
-
["number", "number", "number"],
|
|
23186
|
-
[this.pointer, _callbackPtr, 0],
|
|
23187
|
-
);
|
|
23188
|
-
}
|
|
23189
|
-
|
|
23190
23185
|
/**
|
|
23191
23186
|
* @description Finds the first found SpaceEntity of a matching Name.
|
|
23192
23187
|
* @param name - The name to search.
|
|
@@ -23349,6 +23344,31 @@ export namespace Common {
|
|
|
23349
23344
|
return _nPtr;
|
|
23350
23345
|
}
|
|
23351
23346
|
|
|
23347
|
+
/**
|
|
23348
|
+
* @description Return all the entities currently known to the realtime engine.
|
|
23349
|
+
@warning This list may be extremely large.
|
|
23350
|
+
* @return A non-owning pointer to a List of non-owning pointers to all entities.
|
|
23351
|
+
*/
|
|
23352
|
+
|
|
23353
|
+
getAllEntities(): Common.List<Multiplayer.SpaceEntity> {
|
|
23354
|
+
var _ret = Module._malloc(8);
|
|
23355
|
+
|
|
23356
|
+
Module.ccall(
|
|
23357
|
+
"csp_common_IRealtimeEngine_GetAllEntitiesC_ListPC",
|
|
23358
|
+
"void",
|
|
23359
|
+
["number", "number"],
|
|
23360
|
+
[_ret, this.pointer],
|
|
23361
|
+
);
|
|
23362
|
+
var _nPtr = new Common.List<Multiplayer.SpaceEntity>(
|
|
23363
|
+
getNativePointer(_ret),
|
|
23364
|
+
csp_multiplayer_SpaceEntityFactory,
|
|
23365
|
+
"csp_multiplayer_SpaceEntity",
|
|
23366
|
+
);
|
|
23367
|
+
Module._free(_ret);
|
|
23368
|
+
|
|
23369
|
+
return _nPtr;
|
|
23370
|
+
}
|
|
23371
|
+
|
|
23352
23372
|
/**
|
|
23353
23373
|
* @description Get the number of total entities in the system.
|
|
23354
23374
|
* @return The total number of entities.
|
|
@@ -23466,34 +23486,6 @@ export namespace Common {
|
|
|
23466
23486
|
[this.pointer, _callbackPtr, 0],
|
|
23467
23487
|
);
|
|
23468
23488
|
}
|
|
23469
|
-
|
|
23470
|
-
/**
|
|
23471
|
-
* @description Adds an entity to a list of entities to be updated when ProcessPendingEntityOperations is called.
|
|
23472
|
-
* From a client perspective, ProcessPendingEntityOperations is normally called via the CSPFoundation::Tick method.
|
|
23473
|
-
* @param entity - A non-owning pointer to the entity to be marked.
|
|
23474
|
-
*/
|
|
23475
|
-
|
|
23476
|
-
markEntityForUpdate(entity: Multiplayer.SpaceEntity): void {
|
|
23477
|
-
Module.ccall(
|
|
23478
|
-
"csp_common_IRealtimeEngine_MarkEntityForUpdate_void_SpaceEntityP",
|
|
23479
|
-
"void",
|
|
23480
|
-
["number", "number"],
|
|
23481
|
-
[this.pointer, entity.pointer],
|
|
23482
|
-
);
|
|
23483
|
-
}
|
|
23484
|
-
|
|
23485
|
-
/**
|
|
23486
|
-
* @description Applies any pending changes to entities that have been marked for update.
|
|
23487
|
-
*/
|
|
23488
|
-
|
|
23489
|
-
processPendingEntityOperations(): void {
|
|
23490
|
-
Module.ccall(
|
|
23491
|
-
"csp_common_IRealtimeEngine_ProcessPendingEntityOperations_void",
|
|
23492
|
-
"void",
|
|
23493
|
-
["number"],
|
|
23494
|
-
[this.pointer],
|
|
23495
|
-
);
|
|
23496
|
-
}
|
|
23497
23489
|
}
|
|
23498
23490
|
}
|
|
23499
23491
|
|
|
@@ -23754,6 +23746,23 @@ export namespace Multiplayer {
|
|
|
23754
23746
|
super(pointer);
|
|
23755
23747
|
}
|
|
23756
23748
|
|
|
23749
|
+
static create_type_logSystem_parent(
|
|
23750
|
+
type: Multiplayer.ComponentType,
|
|
23751
|
+
logSystem: Common.LogSystem,
|
|
23752
|
+
parent: Multiplayer.SpaceEntity,
|
|
23753
|
+
): ComponentBase {
|
|
23754
|
+
var _ptr = Module._malloc(8);
|
|
23755
|
+
Module.ccall(
|
|
23756
|
+
"csp_multiplayer_ComponentBase_Ctor_ComponentType_LogSystemP_SpaceEntityP",
|
|
23757
|
+
"void",
|
|
23758
|
+
["number", "number", "number", "number"],
|
|
23759
|
+
[_ptr, type, logSystem.pointer, parent.pointer],
|
|
23760
|
+
);
|
|
23761
|
+
var _nPtr = getNativePointer(_ptr);
|
|
23762
|
+
|
|
23763
|
+
return new ComponentBase(_nPtr);
|
|
23764
|
+
}
|
|
23765
|
+
|
|
23757
23766
|
/**
|
|
23758
23767
|
* @description Virtual destructor for the component.
|
|
23759
23768
|
*/
|
|
@@ -23779,7 +23788,7 @@ export namespace Multiplayer {
|
|
|
23779
23788
|
|
|
23780
23789
|
getId(): number {
|
|
23781
23790
|
let _result = Module.ccall(
|
|
23782
|
-
"
|
|
23791
|
+
"csp_multiplayer_ComponentBase_GetIdC_uint16_t",
|
|
23783
23792
|
"number",
|
|
23784
23793
|
["number"],
|
|
23785
23794
|
[this.pointer],
|
|
@@ -23973,28 +23982,29 @@ export namespace Multiplayer {
|
|
|
23973
23982
|
/**
|
|
23974
23983
|
* @description Constructor for CSPSceneDescription by deserializing a SceneDescription json file.
|
|
23975
23984
|
* @param sceneDescriptionJson - The SceneDescription to deserialize.
|
|
23976
|
-
* @param entitySystem - The OnlineRealtimeEngine for this session.
|
|
23977
|
-
* @param logSystem - The OnlineRealtimeEngine for this session.
|
|
23978
|
-
* @param remoteScriptRunner - The ScriptRunner for this session.
|
|
23979
23985
|
*/
|
|
23980
|
-
static
|
|
23986
|
+
static create_sceneDescriptionJson(
|
|
23981
23987
|
sceneDescriptionJson: string,
|
|
23982
|
-
entitySystem: Multiplayer.OnlineRealtimeEngine,
|
|
23983
|
-
logSystem: Common.LogSystem,
|
|
23984
|
-
remoteScriptRunner: Common.IJSScriptRunner,
|
|
23985
23988
|
): CSPSceneDescription {
|
|
23986
23989
|
var _ptr = Module._malloc(8);
|
|
23987
23990
|
Module.ccall(
|
|
23988
|
-
"
|
|
23991
|
+
"csp_multiplayer_CSPSceneDescription_Ctor_StringRC",
|
|
23989
23992
|
"void",
|
|
23990
|
-
["number", "string"
|
|
23991
|
-
[
|
|
23992
|
-
|
|
23993
|
-
|
|
23994
|
-
|
|
23995
|
-
|
|
23996
|
-
|
|
23997
|
-
|
|
23993
|
+
["number", "string"],
|
|
23994
|
+
[_ptr, sceneDescriptionJson],
|
|
23995
|
+
);
|
|
23996
|
+
var _nPtr = getNativePointer(_ptr);
|
|
23997
|
+
|
|
23998
|
+
return new CSPSceneDescription(_nPtr);
|
|
23999
|
+
}
|
|
24000
|
+
|
|
24001
|
+
static create(): CSPSceneDescription {
|
|
24002
|
+
var _ptr = Module._malloc(8);
|
|
24003
|
+
Module.ccall(
|
|
24004
|
+
"csp_multiplayer_CSPSceneDescription_Ctor",
|
|
24005
|
+
"void",
|
|
24006
|
+
["number"],
|
|
24007
|
+
[_ptr],
|
|
23998
24008
|
);
|
|
23999
24009
|
var _nPtr = getNativePointer(_ptr);
|
|
24000
24010
|
|
|
@@ -24013,32 +24023,6 @@ export namespace Multiplayer {
|
|
|
24013
24023
|
this.disposed = true;
|
|
24014
24024
|
}
|
|
24015
24025
|
}
|
|
24016
|
-
|
|
24017
|
-
get entities(): Common.Array<Multiplayer.SpaceEntity> {
|
|
24018
|
-
const _ptr = Module._malloc(8);
|
|
24019
|
-
Module.ccall(
|
|
24020
|
-
"csp_multiplayer_CSPSceneDescription__Get_Entities",
|
|
24021
|
-
"void",
|
|
24022
|
-
["number", "number"],
|
|
24023
|
-
[_ptr, this.pointer],
|
|
24024
|
-
);
|
|
24025
|
-
|
|
24026
|
-
const _nPtr = getNativePointer(_ptr);
|
|
24027
|
-
return new Common.Array<Multiplayer.SpaceEntity>(
|
|
24028
|
-
_nPtr,
|
|
24029
|
-
csp_multiplayer_SpaceEntityFactory,
|
|
24030
|
-
"csp_multiplayer_SpaceEntity",
|
|
24031
|
-
);
|
|
24032
|
-
}
|
|
24033
|
-
|
|
24034
|
-
set entities(value: Common.Array<Multiplayer.SpaceEntity>) {
|
|
24035
|
-
Module.ccall(
|
|
24036
|
-
"csp_multiplayer_CSPSceneDescription__Set_Entities",
|
|
24037
|
-
"void",
|
|
24038
|
-
["number", "number"],
|
|
24039
|
-
[this.pointer, value.pointer],
|
|
24040
|
-
);
|
|
24041
|
-
}
|
|
24042
24026
|
}
|
|
24043
24027
|
}
|
|
24044
24028
|
|
|
@@ -24696,13 +24680,13 @@ export namespace Multiplayer {
|
|
|
24696
24680
|
* @description Creates a SpaceEntity instance using the space entity system provided.
|
|
24697
24681
|
*/
|
|
24698
24682
|
static create_entitySystem_scriptRunner_logSystem(
|
|
24699
|
-
entitySystem:
|
|
24683
|
+
entitySystem: Common.IRealtimeEngine,
|
|
24700
24684
|
scriptRunner: Common.IJSScriptRunner,
|
|
24701
24685
|
logSystem: Common.LogSystem,
|
|
24702
24686
|
): SpaceEntity {
|
|
24703
24687
|
var _ptr = Module._malloc(8);
|
|
24704
24688
|
Module.ccall(
|
|
24705
|
-
"
|
|
24689
|
+
"csp_multiplayer_SpaceEntity_Ctor_IRealtimeEngineP_IJSScriptRunnerR_LogSystemP",
|
|
24706
24690
|
"void",
|
|
24707
24691
|
["number", "number", "number", "number"],
|
|
24708
24692
|
[_ptr, entitySystem.pointer, scriptRunner.pointer, logSystem.pointer],
|
|
@@ -24729,7 +24713,7 @@ export namespace Multiplayer {
|
|
|
24729
24713
|
}
|
|
24730
24714
|
|
|
24731
24715
|
/**
|
|
24732
|
-
* @description Get the ID of this SpaceEntity, this
|
|
24716
|
+
* @description Get the ID of this SpaceEntity, this should be unique to each Entity.
|
|
24733
24717
|
* @return The uint64_t ID of the SpaceEntity.
|
|
24734
24718
|
*/
|
|
24735
24719
|
|
|
@@ -24795,15 +24779,18 @@ export namespace Multiplayer {
|
|
|
24795
24779
|
/**
|
|
24796
24780
|
* @description Set the name of the SpaceEntity.
|
|
24797
24781
|
* @param value - The name to set.
|
|
24782
|
+
* @return Whether a new value was set, may fail if not modifiable, or if a dirty property is already set to this value.
|
|
24798
24783
|
*/
|
|
24799
24784
|
|
|
24800
|
-
setName(value: string):
|
|
24801
|
-
Module.ccall(
|
|
24802
|
-
"
|
|
24803
|
-
"
|
|
24785
|
+
setName(value: string): boolean {
|
|
24786
|
+
let _result = Module.ccall(
|
|
24787
|
+
"csp_multiplayer_SpaceEntity_SetName_bool_StringRC",
|
|
24788
|
+
"boolean",
|
|
24804
24789
|
["number", "string"],
|
|
24805
24790
|
[this.pointer, value],
|
|
24806
24791
|
);
|
|
24792
|
+
|
|
24793
|
+
return _result;
|
|
24807
24794
|
}
|
|
24808
24795
|
|
|
24809
24796
|
/**
|
|
@@ -24887,15 +24874,18 @@ export namespace Multiplayer {
|
|
|
24887
24874
|
/**
|
|
24888
24875
|
* @description Set the position of the SpaceEntity, in world space.
|
|
24889
24876
|
* @param value - The position to set.
|
|
24877
|
+
* @return Whether a new value was set, may fail if not modifiable, or if a dirty property is already set to this value.
|
|
24890
24878
|
*/
|
|
24891
24879
|
|
|
24892
|
-
setPosition(value: Common.Vector3):
|
|
24893
|
-
Module.ccall(
|
|
24894
|
-
"
|
|
24895
|
-
"
|
|
24880
|
+
setPosition(value: Common.Vector3): boolean {
|
|
24881
|
+
let _result = Module.ccall(
|
|
24882
|
+
"csp_multiplayer_SpaceEntity_SetPosition_bool_Vector3RC",
|
|
24883
|
+
"boolean",
|
|
24896
24884
|
["number", "number"],
|
|
24897
24885
|
[this.pointer, value.pointer],
|
|
24898
24886
|
);
|
|
24887
|
+
|
|
24888
|
+
return _result;
|
|
24899
24889
|
}
|
|
24900
24890
|
|
|
24901
24891
|
/**
|
|
@@ -24940,15 +24930,18 @@ export namespace Multiplayer {
|
|
|
24940
24930
|
/**
|
|
24941
24931
|
* @description Set the rotation of the SpaceEntity.
|
|
24942
24932
|
* @param value - The rotation to set.
|
|
24933
|
+
* @return Whether a new value was set, may fail if not modifiable, or if a dirty property is already set to this value.
|
|
24943
24934
|
*/
|
|
24944
24935
|
|
|
24945
|
-
setRotation(value: Common.Vector4):
|
|
24946
|
-
Module.ccall(
|
|
24947
|
-
"
|
|
24948
|
-
"
|
|
24936
|
+
setRotation(value: Common.Vector4): boolean {
|
|
24937
|
+
let _result = Module.ccall(
|
|
24938
|
+
"csp_multiplayer_SpaceEntity_SetRotation_bool_Vector4RC",
|
|
24939
|
+
"boolean",
|
|
24949
24940
|
["number", "number"],
|
|
24950
24941
|
[this.pointer, value.pointer],
|
|
24951
24942
|
);
|
|
24943
|
+
|
|
24944
|
+
return _result;
|
|
24952
24945
|
}
|
|
24953
24946
|
|
|
24954
24947
|
/**
|
|
@@ -24993,15 +24986,18 @@ export namespace Multiplayer {
|
|
|
24993
24986
|
/**
|
|
24994
24987
|
* @description Set the scale of the SpaceEntity.
|
|
24995
24988
|
* @param value - The scale to set.
|
|
24989
|
+
* @return Whether a new value was set, may fail if not modifiable, or if a dirty property is already set to this value.
|
|
24996
24990
|
*/
|
|
24997
24991
|
|
|
24998
|
-
setScale(value: Common.Vector3):
|
|
24999
|
-
Module.ccall(
|
|
25000
|
-
"
|
|
25001
|
-
"
|
|
24992
|
+
setScale(value: Common.Vector3): boolean {
|
|
24993
|
+
let _result = Module.ccall(
|
|
24994
|
+
"csp_multiplayer_SpaceEntity_SetScale_bool_Vector3RC",
|
|
24995
|
+
"boolean",
|
|
25002
24996
|
["number", "number"],
|
|
25003
24997
|
[this.pointer, value.pointer],
|
|
25004
24998
|
);
|
|
24999
|
+
|
|
25000
|
+
return _result;
|
|
25005
25001
|
}
|
|
25006
25002
|
|
|
25007
25003
|
/**
|
|
@@ -25044,15 +25040,18 @@ export namespace Multiplayer {
|
|
|
25044
25040
|
/**
|
|
25045
25041
|
* @description Set the third party reference for this entity
|
|
25046
25042
|
* @param inThirdPartyRef - The third party reference to set.
|
|
25043
|
+
* @return Whether a new value was set, may fail if not modifiable, or if a dirty property is already set to this value.
|
|
25047
25044
|
*/
|
|
25048
25045
|
|
|
25049
|
-
setThirdPartyRef(thirdPartyRef: string):
|
|
25050
|
-
Module.ccall(
|
|
25051
|
-
"
|
|
25052
|
-
"
|
|
25046
|
+
setThirdPartyRef(thirdPartyRef: string): boolean {
|
|
25047
|
+
let _result = Module.ccall(
|
|
25048
|
+
"csp_multiplayer_SpaceEntity_SetThirdPartyRef_bool_StringRC",
|
|
25049
|
+
"boolean",
|
|
25053
25050
|
["number", "string"],
|
|
25054
25051
|
[this.pointer, thirdPartyRef],
|
|
25055
25052
|
);
|
|
25053
|
+
|
|
25054
|
+
return _result;
|
|
25056
25055
|
}
|
|
25057
25056
|
|
|
25058
25057
|
/**
|
|
@@ -25074,17 +25073,20 @@ export namespace Multiplayer {
|
|
|
25074
25073
|
/**
|
|
25075
25074
|
* @description Set third party platform type for this entity.
|
|
25076
25075
|
* @param inThirdPartyPlatformType - The third party platform type to set.
|
|
25076
|
+
* @return Whether a new value was set, may fail if not modifiable, or if a dirty property is already set to this value.
|
|
25077
25077
|
*/
|
|
25078
25078
|
|
|
25079
25079
|
setThirdPartyPlatformType(
|
|
25080
25080
|
thirdPartyPlatformType: Systems.EThirdPartyPlatform,
|
|
25081
|
-
):
|
|
25082
|
-
Module.ccall(
|
|
25083
|
-
"
|
|
25084
|
-
"
|
|
25081
|
+
): boolean {
|
|
25082
|
+
let _result = Module.ccall(
|
|
25083
|
+
"csp_multiplayer_SpaceEntity_SetThirdPartyPlatformType_bool_EThirdPartyPlatformC",
|
|
25084
|
+
"boolean",
|
|
25085
25085
|
["number", "number"],
|
|
25086
25086
|
[this.pointer, thirdPartyPlatformType],
|
|
25087
25087
|
);
|
|
25088
|
+
|
|
25089
|
+
return _result;
|
|
25088
25090
|
}
|
|
25089
25091
|
|
|
25090
25092
|
/**
|
|
@@ -25137,7 +25139,7 @@ export namespace Multiplayer {
|
|
|
25137
25139
|
|
|
25138
25140
|
/**
|
|
25139
25141
|
* @description Gets the parent of this entity
|
|
25140
|
-
* @return
|
|
25142
|
+
* @return Non-owning pointer to the parent of this entity. May be null.
|
|
25141
25143
|
*/
|
|
25142
25144
|
|
|
25143
25145
|
getParentEntity(): Multiplayer.SpaceEntity {
|
|
@@ -25219,19 +25221,6 @@ export namespace Multiplayer {
|
|
|
25219
25221
|
return _nPtr;
|
|
25220
25222
|
}
|
|
25221
25223
|
|
|
25222
|
-
/**
|
|
25223
|
-
* @description Queues an update which will be executed on next Tick() or ProcessPendingEntityOperations(). Not a blocking or async function.
|
|
25224
|
-
*/
|
|
25225
|
-
|
|
25226
|
-
queueUpdate(): void {
|
|
25227
|
-
Module.ccall(
|
|
25228
|
-
"csp_multiplayer_SpaceEntity_QueueUpdate_void",
|
|
25229
|
-
"void",
|
|
25230
|
-
["number"],
|
|
25231
|
-
[this.pointer],
|
|
25232
|
-
);
|
|
25233
|
-
}
|
|
25234
|
-
|
|
25235
25224
|
/**
|
|
25236
25225
|
* @description Sends a patch message with a flag to destroy the entity.
|
|
25237
25226
|
* /// Will remove the entity from endpoints and signal remote clients to delete the entity.
|
|
@@ -25339,6 +25328,28 @@ export namespace Multiplayer {
|
|
|
25339
25328
|
);
|
|
25340
25329
|
}
|
|
25341
25330
|
|
|
25331
|
+
/**
|
|
25332
|
+
* @description Get a pointer to the first component on the entity of specified type
|
|
25333
|
+
* @return Non-owning pointer to component, nullptr if component of type cannot be found
|
|
25334
|
+
*/
|
|
25335
|
+
|
|
25336
|
+
findFirstComponentOfType(
|
|
25337
|
+
type: Multiplayer.ComponentType,
|
|
25338
|
+
): Multiplayer.ComponentBase {
|
|
25339
|
+
var _ret = Module._malloc(8);
|
|
25340
|
+
|
|
25341
|
+
Module.ccall(
|
|
25342
|
+
"csp_multiplayer_SpaceEntity_FindFirstComponentOfTypeC_ComponentBaseP_ComponentType",
|
|
25343
|
+
"void",
|
|
25344
|
+
["number", "number", "number"],
|
|
25345
|
+
[_ret, this.pointer, type],
|
|
25346
|
+
);
|
|
25347
|
+
var _nPtr = new Multiplayer.ComponentBase(getNativePointer(_ret));
|
|
25348
|
+
Module._free(_ret);
|
|
25349
|
+
|
|
25350
|
+
return _nPtr;
|
|
25351
|
+
}
|
|
25352
|
+
|
|
25342
25353
|
/**
|
|
25343
25354
|
* @description Get the map of components on this SpaceEntity.
|
|
25344
25355
|
* @return A map of components indexed with the component ID.
|
|
@@ -25417,19 +25428,23 @@ export namespace Multiplayer {
|
|
|
25417
25428
|
* the best we can do is add a blank component in its place, which clients decide to
|
|
25418
25429
|
* ignore when retrieving data.
|
|
25419
25430
|
* /// @param Key uint16_t : The component ID of the component to remove.
|
|
25431
|
+
* @return Whether a component was removed, may fail if not modifiable, there is no component of provided key, or if a dirty component is
|
|
25432
|
+
* already set to this deletion.
|
|
25420
25433
|
*/
|
|
25421
25434
|
|
|
25422
|
-
removeComponent(key: number):
|
|
25435
|
+
removeComponent(key: number): boolean {
|
|
25423
25436
|
assert(Number.isInteger(key));
|
|
25424
25437
|
assert(key >= Limits.UINT16_MIN);
|
|
25425
25438
|
assert(key <= Limits.UINT16_MAX);
|
|
25426
25439
|
|
|
25427
|
-
Module.ccall(
|
|
25428
|
-
"
|
|
25429
|
-
"
|
|
25440
|
+
let _result = Module.ccall(
|
|
25441
|
+
"csp_multiplayer_SpaceEntity_RemoveComponent_bool_uint16_t",
|
|
25442
|
+
"boolean",
|
|
25430
25443
|
["number", "number"],
|
|
25431
25444
|
[this.pointer, key],
|
|
25432
25445
|
);
|
|
25446
|
+
|
|
25447
|
+
return _result;
|
|
25433
25448
|
}
|
|
25434
25449
|
|
|
25435
25450
|
/**
|
|
@@ -25547,15 +25562,18 @@ export namespace Multiplayer {
|
|
|
25547
25562
|
* A CSP error will be sent to the LogSystem if this condition is not met.
|
|
25548
25563
|
@post This internally sets the lock type as a dirty property.
|
|
25549
25564
|
* This entity should now be replicated, to process the change.
|
|
25565
|
+
* @return Whether setting the lock was successful.
|
|
25550
25566
|
*/
|
|
25551
25567
|
|
|
25552
|
-
lock():
|
|
25553
|
-
Module.ccall(
|
|
25554
|
-
"
|
|
25555
|
-
"
|
|
25568
|
+
lock(): boolean {
|
|
25569
|
+
let _result = Module.ccall(
|
|
25570
|
+
"csp_multiplayer_SpaceEntity_Lock_bool",
|
|
25571
|
+
"boolean",
|
|
25556
25572
|
["number"],
|
|
25557
25573
|
[this.pointer],
|
|
25558
25574
|
);
|
|
25575
|
+
|
|
25576
|
+
return _result;
|
|
25559
25577
|
}
|
|
25560
25578
|
|
|
25561
25579
|
/**
|
|
@@ -25564,15 +25582,34 @@ export namespace Multiplayer {
|
|
|
25564
25582
|
* A CSP error will be sent to the LogSystem if this condition is not met.
|
|
25565
25583
|
@post This internally sets the lock type as a dirty property.
|
|
25566
25584
|
* This entity should now be replicated, to process the change.
|
|
25585
|
+
* @return Whether removing the lock was successful.
|
|
25567
25586
|
*/
|
|
25568
25587
|
|
|
25569
|
-
unlock():
|
|
25570
|
-
Module.ccall(
|
|
25571
|
-
"
|
|
25572
|
-
"
|
|
25588
|
+
unlock(): boolean {
|
|
25589
|
+
let _result = Module.ccall(
|
|
25590
|
+
"csp_multiplayer_SpaceEntity_Unlock_bool",
|
|
25591
|
+
"boolean",
|
|
25573
25592
|
["number"],
|
|
25574
25593
|
[this.pointer],
|
|
25575
25594
|
);
|
|
25595
|
+
|
|
25596
|
+
return _result;
|
|
25597
|
+
}
|
|
25598
|
+
|
|
25599
|
+
/**
|
|
25600
|
+
* @description Gets the type of lock currently applied to this entity
|
|
25601
|
+
* @return The Locktype, will be LockType::None if the entity is currently unlocked.
|
|
25602
|
+
*/
|
|
25603
|
+
|
|
25604
|
+
getLockType(): Multiplayer.LockType {
|
|
25605
|
+
let _result = Module.ccall(
|
|
25606
|
+
"csp_multiplayer_SpaceEntity_GetLockTypeC_LockType",
|
|
25607
|
+
"number",
|
|
25608
|
+
["number"],
|
|
25609
|
+
[this.pointer],
|
|
25610
|
+
);
|
|
25611
|
+
|
|
25612
|
+
return _result;
|
|
25576
25613
|
}
|
|
25577
25614
|
|
|
25578
25615
|
/**
|
|
@@ -25590,6 +25627,19 @@ export namespace Multiplayer {
|
|
|
25590
25627
|
|
|
25591
25628
|
return _result;
|
|
25592
25629
|
}
|
|
25630
|
+
|
|
25631
|
+
/**
|
|
25632
|
+
* @description Queues an update which will be executed on next Tick() or ProcessPendingEntityOperations(). Not a blocking or async function.
|
|
25633
|
+
*/
|
|
25634
|
+
|
|
25635
|
+
queueUpdate(): void {
|
|
25636
|
+
Module.ccall(
|
|
25637
|
+
"csp_multiplayer_SpaceEntity_QueueUpdate_void",
|
|
25638
|
+
"void",
|
|
25639
|
+
["number"],
|
|
25640
|
+
[this.pointer],
|
|
25641
|
+
);
|
|
25642
|
+
}
|
|
25593
25643
|
}
|
|
25594
25644
|
}
|
|
25595
25645
|
|
|
@@ -26758,6 +26808,32 @@ export namespace Systems {
|
|
|
26758
26808
|
[this.pointer, value.pointer],
|
|
26759
26809
|
);
|
|
26760
26810
|
}
|
|
26811
|
+
|
|
26812
|
+
get anchors(): Common.Array<Systems.Anchor> {
|
|
26813
|
+
const _ptr = Module._malloc(8);
|
|
26814
|
+
Module.ccall(
|
|
26815
|
+
"csp_systems_CSPSceneData__Get_Anchors",
|
|
26816
|
+
"void",
|
|
26817
|
+
["number", "number"],
|
|
26818
|
+
[_ptr, this.pointer],
|
|
26819
|
+
);
|
|
26820
|
+
|
|
26821
|
+
const _nPtr = getNativePointer(_ptr);
|
|
26822
|
+
return new Common.Array<Systems.Anchor>(
|
|
26823
|
+
_nPtr,
|
|
26824
|
+
csp_systems_AnchorFactory,
|
|
26825
|
+
"csp_systems_Anchor",
|
|
26826
|
+
);
|
|
26827
|
+
}
|
|
26828
|
+
|
|
26829
|
+
set anchors(value: Common.Array<Systems.Anchor>) {
|
|
26830
|
+
Module.ccall(
|
|
26831
|
+
"csp_systems_CSPSceneData__Set_Anchors",
|
|
26832
|
+
"void",
|
|
26833
|
+
["number", "number"],
|
|
26834
|
+
[this.pointer, value.pointer],
|
|
26835
|
+
);
|
|
26836
|
+
}
|
|
26761
26837
|
}
|
|
26762
26838
|
}
|
|
26763
26839
|
|
|
@@ -27348,26 +27424,6 @@ export namespace Systems {
|
|
|
27348
27424
|
return _nPtr;
|
|
27349
27425
|
}
|
|
27350
27426
|
|
|
27351
|
-
/**
|
|
27352
|
-
* @description Retrieves the Analytics system.
|
|
27353
|
-
* @return Pointer to the analytics system class
|
|
27354
|
-
*/
|
|
27355
|
-
|
|
27356
|
-
getAnalyticsSystem(): Systems.AnalyticsSystem {
|
|
27357
|
-
var _ret = Module._malloc(8);
|
|
27358
|
-
|
|
27359
|
-
Module.ccall(
|
|
27360
|
-
"csp_systems_SystemsManager_GetAnalyticsSystem_AnalyticsSystemP",
|
|
27361
|
-
"void",
|
|
27362
|
-
["number", "number"],
|
|
27363
|
-
[_ret, this.pointer],
|
|
27364
|
-
);
|
|
27365
|
-
var _nPtr = new Systems.AnalyticsSystem(getNativePointer(_ret));
|
|
27366
|
-
Module._free(_ret);
|
|
27367
|
-
|
|
27368
|
-
return _nPtr;
|
|
27369
|
-
}
|
|
27370
|
-
|
|
27371
27427
|
/**
|
|
27372
27428
|
* @description Retrieves the Maintenance system.
|
|
27373
27429
|
* @return Pointer to the maintenance system class
|
|
@@ -27517,21 +27573,6 @@ export namespace Systems {
|
|
|
27517
27573
|
|
|
27518
27574
|
return _nPtr;
|
|
27519
27575
|
}
|
|
27520
|
-
|
|
27521
|
-
makeOnlineRealtimeEngine(): Multiplayer.OnlineRealtimeEngine {
|
|
27522
|
-
var _ret = Module._malloc(8);
|
|
27523
|
-
|
|
27524
|
-
Module.ccall(
|
|
27525
|
-
"csp_systems_SystemsManager_MakeOnlineRealtimeEngine_OnlineRealtimeEngineP",
|
|
27526
|
-
"void",
|
|
27527
|
-
["number", "number"],
|
|
27528
|
-
[_ret, this.pointer],
|
|
27529
|
-
);
|
|
27530
|
-
var _nPtr = new Multiplayer.OnlineRealtimeEngine(getNativePointer(_ret));
|
|
27531
|
-
Module._free(_ret);
|
|
27532
|
-
|
|
27533
|
-
return _nPtr;
|
|
27534
|
-
}
|
|
27535
27576
|
}
|
|
27536
27577
|
}
|
|
27537
27578
|
|
|
@@ -27686,225 +27727,6 @@ export namespace Systems {
|
|
|
27686
27727
|
}
|
|
27687
27728
|
}
|
|
27688
27729
|
|
|
27689
|
-
export namespace Systems {
|
|
27690
|
-
/**
|
|
27691
|
-
@ingroup Analytics System
|
|
27692
|
-
* @description Interface for an Analytics Provider
|
|
27693
|
-
*/
|
|
27694
|
-
export class IAnalyticsProvider
|
|
27695
|
-
extends NativeClassWrapper
|
|
27696
|
-
implements INativeResource
|
|
27697
|
-
{
|
|
27698
|
-
/** @internal */
|
|
27699
|
-
constructor(pointer: NativePointer) {
|
|
27700
|
-
super(pointer);
|
|
27701
|
-
}
|
|
27702
|
-
|
|
27703
|
-
delete(): void {
|
|
27704
|
-
if (this.ownsPointer && !this.disposed) {
|
|
27705
|
-
Module.ccall(
|
|
27706
|
-
"csp_systems_IAnalyticsProvider_Dtor",
|
|
27707
|
-
"void",
|
|
27708
|
-
["number"],
|
|
27709
|
-
[this.pointer],
|
|
27710
|
-
);
|
|
27711
|
-
|
|
27712
|
-
this.disposed = true;
|
|
27713
|
-
}
|
|
27714
|
-
}
|
|
27715
|
-
}
|
|
27716
|
-
}
|
|
27717
|
-
|
|
27718
|
-
export namespace Systems {
|
|
27719
|
-
/**
|
|
27720
|
-
@ingroup Analytics System
|
|
27721
|
-
* @description Public facing system that allows interfacing with an analytics provider.
|
|
27722
|
-
* Offers methods for sending events to the provider
|
|
27723
|
-
* Events are added to a queue to be processewd on a different thread
|
|
27724
|
-
* If events are unable to be send to the provider, then they will be held in the queue
|
|
27725
|
-
*/
|
|
27726
|
-
export class AnalyticsSystem extends NativeClassWrapper {
|
|
27727
|
-
/** @internal */
|
|
27728
|
-
constructor(pointer: NativePointer) {
|
|
27729
|
-
super(pointer);
|
|
27730
|
-
}
|
|
27731
|
-
|
|
27732
|
-
/**
|
|
27733
|
-
* @description Send an event
|
|
27734
|
-
* @param event - AnalyticsEvent
|
|
27735
|
-
*/
|
|
27736
|
-
|
|
27737
|
-
log(event: Systems.AnalyticsEvent): void {
|
|
27738
|
-
Module.ccall(
|
|
27739
|
-
"csp_systems_AnalyticsSystem_Log_void_AnalyticsEventP",
|
|
27740
|
-
"void",
|
|
27741
|
-
["number", "number"],
|
|
27742
|
-
[this.pointer, event.pointer],
|
|
27743
|
-
);
|
|
27744
|
-
}
|
|
27745
|
-
}
|
|
27746
|
-
}
|
|
27747
|
-
|
|
27748
|
-
export namespace Systems {
|
|
27749
|
-
export class AnalyticsEvent
|
|
27750
|
-
extends NativeClassWrapper
|
|
27751
|
-
implements INativeResource
|
|
27752
|
-
{
|
|
27753
|
-
/** @internal */
|
|
27754
|
-
constructor(pointer: NativePointer) {
|
|
27755
|
-
super(pointer);
|
|
27756
|
-
}
|
|
27757
|
-
|
|
27758
|
-
addInt(key: string, value: bigint): void {
|
|
27759
|
-
assert(value >= Limits.INT64_MIN);
|
|
27760
|
-
assert(value <= Limits.INT64_MAX);
|
|
27761
|
-
|
|
27762
|
-
Module.ccall(
|
|
27763
|
-
"csp_systems_AnalyticsEvent_AddInt_void_String_int64_t",
|
|
27764
|
-
"void",
|
|
27765
|
-
["number", "string", "bigint"],
|
|
27766
|
-
[this.pointer, key, value],
|
|
27767
|
-
);
|
|
27768
|
-
}
|
|
27769
|
-
|
|
27770
|
-
addString(key: string, value: string): void {
|
|
27771
|
-
Module.ccall(
|
|
27772
|
-
"csp_systems_AnalyticsEvent_AddString_void_String_StringRC",
|
|
27773
|
-
"void",
|
|
27774
|
-
["number", "string", "string"],
|
|
27775
|
-
[this.pointer, key, value],
|
|
27776
|
-
);
|
|
27777
|
-
}
|
|
27778
|
-
|
|
27779
|
-
addFloat(key: string, value: number): void {
|
|
27780
|
-
assert(value >= Limits.FLOAT_MIN);
|
|
27781
|
-
assert(value <= Limits.FLOAT_MAX);
|
|
27782
|
-
|
|
27783
|
-
Module.ccall(
|
|
27784
|
-
"csp_systems_AnalyticsEvent_AddFloat_void_String_float",
|
|
27785
|
-
"void",
|
|
27786
|
-
["number", "string", "number"],
|
|
27787
|
-
[this.pointer, key, value],
|
|
27788
|
-
);
|
|
27789
|
-
}
|
|
27790
|
-
|
|
27791
|
-
addBool(key: string, value: boolean): void {
|
|
27792
|
-
Module.ccall(
|
|
27793
|
-
"csp_systems_AnalyticsEvent_AddBool_void_String_bool",
|
|
27794
|
-
"void",
|
|
27795
|
-
["number", "string", "boolean"],
|
|
27796
|
-
[this.pointer, key, value],
|
|
27797
|
-
);
|
|
27798
|
-
}
|
|
27799
|
-
|
|
27800
|
-
getInt(key: string): bigint {
|
|
27801
|
-
let _result = Module.ccall(
|
|
27802
|
-
"csp_systems_AnalyticsEvent_GetIntC_int64_t_String",
|
|
27803
|
-
"bigint",
|
|
27804
|
-
["number", "string"],
|
|
27805
|
-
[this.pointer, key],
|
|
27806
|
-
);
|
|
27807
|
-
|
|
27808
|
-
return _result;
|
|
27809
|
-
}
|
|
27810
|
-
|
|
27811
|
-
getString(key: string): string {
|
|
27812
|
-
let _result = Module.ccall(
|
|
27813
|
-
"csp_systems_AnalyticsEvent_GetStringC_StringRC_String",
|
|
27814
|
-
"number",
|
|
27815
|
-
["number", "string"],
|
|
27816
|
-
[this.pointer, key],
|
|
27817
|
-
);
|
|
27818
|
-
|
|
27819
|
-
const _resultString = Module.UTF8ToString(_result);
|
|
27820
|
-
free(_result);
|
|
27821
|
-
|
|
27822
|
-
_result = _resultString;
|
|
27823
|
-
|
|
27824
|
-
return _result;
|
|
27825
|
-
}
|
|
27826
|
-
|
|
27827
|
-
getFloat(key: string): number {
|
|
27828
|
-
let _result = Module.ccall(
|
|
27829
|
-
"csp_systems_AnalyticsEvent_GetFloatC_float_String",
|
|
27830
|
-
"number",
|
|
27831
|
-
["number", "string"],
|
|
27832
|
-
[this.pointer, key],
|
|
27833
|
-
);
|
|
27834
|
-
|
|
27835
|
-
return _result;
|
|
27836
|
-
}
|
|
27837
|
-
|
|
27838
|
-
getBool(key: string): boolean {
|
|
27839
|
-
let _result = Module.ccall(
|
|
27840
|
-
"csp_systems_AnalyticsEvent_GetBoolC_bool_String",
|
|
27841
|
-
"boolean",
|
|
27842
|
-
["number", "string"],
|
|
27843
|
-
[this.pointer, key],
|
|
27844
|
-
);
|
|
27845
|
-
|
|
27846
|
-
return _result;
|
|
27847
|
-
}
|
|
27848
|
-
|
|
27849
|
-
getTag(): string {
|
|
27850
|
-
let _result = Module.ccall(
|
|
27851
|
-
"csp_systems_AnalyticsEvent_GetTagC_StringRC",
|
|
27852
|
-
"number",
|
|
27853
|
-
["number"],
|
|
27854
|
-
[this.pointer],
|
|
27855
|
-
);
|
|
27856
|
-
|
|
27857
|
-
const _resultString = Module.UTF8ToString(_result);
|
|
27858
|
-
free(_result);
|
|
27859
|
-
|
|
27860
|
-
_result = _resultString;
|
|
27861
|
-
|
|
27862
|
-
return _result;
|
|
27863
|
-
}
|
|
27864
|
-
|
|
27865
|
-
delete(): void {
|
|
27866
|
-
if (this.ownsPointer && !this.disposed) {
|
|
27867
|
-
Module.ccall(
|
|
27868
|
-
"csp_systems_AnalyticsEvent_Dtor",
|
|
27869
|
-
"void",
|
|
27870
|
-
["number"],
|
|
27871
|
-
[this.pointer],
|
|
27872
|
-
);
|
|
27873
|
-
|
|
27874
|
-
this.disposed = true;
|
|
27875
|
-
}
|
|
27876
|
-
}
|
|
27877
|
-
}
|
|
27878
|
-
}
|
|
27879
|
-
|
|
27880
|
-
export namespace Systems {
|
|
27881
|
-
export class AnalyticsEventInitialiser {
|
|
27882
|
-
static initialise(tag: string): Systems.AnalyticsEvent {
|
|
27883
|
-
var _ret = Module._malloc(8);
|
|
27884
|
-
|
|
27885
|
-
Module.ccall(
|
|
27886
|
-
"csp_systems_AnalyticsEventInitialiser_Initialise_AnalyticsEventP_StringC",
|
|
27887
|
-
"void",
|
|
27888
|
-
["number", "string"],
|
|
27889
|
-
[_ret, tag],
|
|
27890
|
-
);
|
|
27891
|
-
var _nPtr = new Systems.AnalyticsEvent(getNativePointer(_ret));
|
|
27892
|
-
Module._free(_ret);
|
|
27893
|
-
|
|
27894
|
-
return _nPtr;
|
|
27895
|
-
}
|
|
27896
|
-
|
|
27897
|
-
static deInitialise(event: Systems.AnalyticsEvent): void {
|
|
27898
|
-
Module.ccall(
|
|
27899
|
-
"csp_systems_AnalyticsEventInitialiser_DeInitialise_void_AnalyticsEventP",
|
|
27900
|
-
"void",
|
|
27901
|
-
["number"],
|
|
27902
|
-
[event.pointer],
|
|
27903
|
-
);
|
|
27904
|
-
}
|
|
27905
|
-
}
|
|
27906
|
-
}
|
|
27907
|
-
|
|
27908
27730
|
export namespace Systems {
|
|
27909
27731
|
/**
|
|
27910
27732
|
@ingroup Asset System
|
|
@@ -35198,6 +35020,577 @@ export namespace Common {
|
|
|
35198
35020
|
}
|
|
35199
35021
|
}
|
|
35200
35022
|
|
|
35023
|
+
export namespace Multiplayer {
|
|
35024
|
+
/**
|
|
35025
|
+
* @description Class for creating and managing objects in an offline context.
|
|
35026
|
+
* /// This provides functionality to create and manage a player avatar and other objects while being offline.
|
|
35027
|
+
* The callbacks that are injected into functions are all synchronous, meaning they are called before the funciton ends.
|
|
35028
|
+
*/
|
|
35029
|
+
export class OfflineRealtimeEngine
|
|
35030
|
+
extends Common.IRealtimeEngine
|
|
35031
|
+
implements INativeResource
|
|
35032
|
+
{
|
|
35033
|
+
/** @internal */
|
|
35034
|
+
constructor(pointer: NativePointer) {
|
|
35035
|
+
super(pointer);
|
|
35036
|
+
}
|
|
35037
|
+
|
|
35038
|
+
static fromIRealtimeEngine(
|
|
35039
|
+
baseInstance: Common.IRealtimeEngine,
|
|
35040
|
+
): Multiplayer.OfflineRealtimeEngine {
|
|
35041
|
+
const nativeClassWrapper = baseInstance as unknown as NativeClassWrapper;
|
|
35042
|
+
return new Multiplayer.OfflineRealtimeEngine(
|
|
35043
|
+
new NativePointer(
|
|
35044
|
+
nativeClassWrapper.pointer,
|
|
35045
|
+
nativeClassWrapper.ownsPointer,
|
|
35046
|
+
),
|
|
35047
|
+
);
|
|
35048
|
+
}
|
|
35049
|
+
|
|
35050
|
+
/**
|
|
35051
|
+
* @description OfflineRealtimeEngine constructor.
|
|
35052
|
+
* Creates a realtime engine pre-populated from a scene description. (Usually parsed from a checkpoint file)
|
|
35053
|
+
* @param sceneDescription - The scene description containing entities within the scene.
|
|
35054
|
+
* These entities will be populated in the RealtimeEngine.
|
|
35055
|
+
* @param logSystem - Logger such that this system can print status and debug output
|
|
35056
|
+
* @param remoteScriptRunner - Object capable of running a script.
|
|
35057
|
+
*/
|
|
35058
|
+
static create_sceneDescription_logSystem_remoteScriptRunner(
|
|
35059
|
+
sceneDescription: Multiplayer.CSPSceneDescription,
|
|
35060
|
+
logSystem: Common.LogSystem,
|
|
35061
|
+
remoteScriptRunner: Common.IJSScriptRunner,
|
|
35062
|
+
): OfflineRealtimeEngine {
|
|
35063
|
+
var _ptr = Module._malloc(8);
|
|
35064
|
+
Module.ccall(
|
|
35065
|
+
"csp_multiplayer_OfflineRealtimeEngine_Ctor_CSPSceneDescriptionRC_LogSystemR_IJSScriptRunnerR",
|
|
35066
|
+
"void",
|
|
35067
|
+
["number", "number", "number", "number"],
|
|
35068
|
+
[
|
|
35069
|
+
_ptr,
|
|
35070
|
+
sceneDescription.pointer,
|
|
35071
|
+
logSystem.pointer,
|
|
35072
|
+
remoteScriptRunner.pointer,
|
|
35073
|
+
],
|
|
35074
|
+
);
|
|
35075
|
+
var _nPtr = getNativePointer(_ptr);
|
|
35076
|
+
|
|
35077
|
+
return new OfflineRealtimeEngine(_nPtr);
|
|
35078
|
+
}
|
|
35079
|
+
|
|
35080
|
+
/**
|
|
35081
|
+
* @description OfflineRealtimeEngine constructor
|
|
35082
|
+
* Creates an empty realtime engine.
|
|
35083
|
+
* @param logSystem - Logger such that this system can print status and debug output
|
|
35084
|
+
* @param remoteScriptRunner - Object capable of running a script.
|
|
35085
|
+
*/
|
|
35086
|
+
static create_logSystem_remoteScriptRunner(
|
|
35087
|
+
logSystem: Common.LogSystem,
|
|
35088
|
+
remoteScriptRunner: Common.IJSScriptRunner,
|
|
35089
|
+
): OfflineRealtimeEngine {
|
|
35090
|
+
var _ptr = Module._malloc(8);
|
|
35091
|
+
Module.ccall(
|
|
35092
|
+
"csp_multiplayer_OfflineRealtimeEngine_Ctor_LogSystemR_IJSScriptRunnerR",
|
|
35093
|
+
"void",
|
|
35094
|
+
["number", "number", "number"],
|
|
35095
|
+
[_ptr, logSystem.pointer, remoteScriptRunner.pointer],
|
|
35096
|
+
);
|
|
35097
|
+
var _nPtr = getNativePointer(_ptr);
|
|
35098
|
+
|
|
35099
|
+
return new OfflineRealtimeEngine(_nPtr);
|
|
35100
|
+
}
|
|
35101
|
+
|
|
35102
|
+
/**
|
|
35103
|
+
* @description OfflineRealtimeEngine destructor
|
|
35104
|
+
* Removes entity script bindings and deregisters tick event listeners
|
|
35105
|
+
*/
|
|
35106
|
+
delete(): void {
|
|
35107
|
+
if (this.ownsPointer && !this.disposed) {
|
|
35108
|
+
Module.ccall(
|
|
35109
|
+
"csp_multiplayer_OfflineRealtimeEngine_Dtor",
|
|
35110
|
+
"void",
|
|
35111
|
+
["number"],
|
|
35112
|
+
[this.pointer],
|
|
35113
|
+
);
|
|
35114
|
+
|
|
35115
|
+
this.disposed = true;
|
|
35116
|
+
}
|
|
35117
|
+
}
|
|
35118
|
+
|
|
35119
|
+
/**
|
|
35120
|
+
* @description Returns the concrete type of the instantiation of the abstract IRealtimeEngine.
|
|
35121
|
+
*/
|
|
35122
|
+
|
|
35123
|
+
getRealtimeEngineType(): Common.RealtimeEngineType {
|
|
35124
|
+
let _result = Module.ccall(
|
|
35125
|
+
"csp_multiplayer_OfflineRealtimeEngine_GetRealtimeEngineTypeC_RealtimeEngineType",
|
|
35126
|
+
"number",
|
|
35127
|
+
["number"],
|
|
35128
|
+
[this.pointer],
|
|
35129
|
+
);
|
|
35130
|
+
|
|
35131
|
+
return _result;
|
|
35132
|
+
}
|
|
35133
|
+
|
|
35134
|
+
/**
|
|
35135
|
+
* @description Create and add a SpaceEntity with type Avatar, and relevant components and default states as specified.
|
|
35136
|
+
* @param name - The entity name of the newly created avatar entity.
|
|
35137
|
+
* @param userId - The Id of the user creating the avatar. This can be fetched from csp::systems::UserSystem::GetLoginState
|
|
35138
|
+
* @param transform - The initial transform to set the SpaceEntity to.
|
|
35139
|
+
* @param state - The initial Avatar State to set.
|
|
35140
|
+
* @param avatarId - The ID to be set on the AvatarSpaceComponent
|
|
35141
|
+
* @param avatarPlayMode - The Initial AvatarPlayMode to set.
|
|
35142
|
+
* @param callback - Csp::multiplayer::entitycreatedcallback a callback that executes when the creation is complete,
|
|
35143
|
+
* which will provide a non-owning pointer to the new SpaceEntity so that it can be used on the local client.
|
|
35144
|
+
*/
|
|
35145
|
+
|
|
35146
|
+
async createAvatar(
|
|
35147
|
+
name: string,
|
|
35148
|
+
userId: string,
|
|
35149
|
+
transform: Multiplayer.SpaceTransform,
|
|
35150
|
+
isVisible: boolean,
|
|
35151
|
+
state: Multiplayer.AvatarState,
|
|
35152
|
+
avatarId: string,
|
|
35153
|
+
avatarPlayMode: Multiplayer.AvatarPlayMode,
|
|
35154
|
+
): Promise<Multiplayer.SpaceEntity> {
|
|
35155
|
+
var _resolve;
|
|
35156
|
+
|
|
35157
|
+
var _promise = new Promise<Multiplayer.SpaceEntity>((_r) => {
|
|
35158
|
+
_resolve = _r;
|
|
35159
|
+
});
|
|
35160
|
+
|
|
35161
|
+
var _callbackPtr: number;
|
|
35162
|
+
var _callback = (_stateObject__: number, arg1) => {
|
|
35163
|
+
var _arg1Ptr = getNativePointer(arg1);
|
|
35164
|
+
var _arg1Instance = new Multiplayer.SpaceEntity(_arg1Ptr);
|
|
35165
|
+
|
|
35166
|
+
_resolve(_arg1Instance);
|
|
35167
|
+
|
|
35168
|
+
Module.removeFunction(_callbackPtr);
|
|
35169
|
+
};
|
|
35170
|
+
|
|
35171
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
35172
|
+
|
|
35173
|
+
Module.ccall(
|
|
35174
|
+
"csp_multiplayer_OfflineRealtimeEngine_CreateAvatar_void_StringRC_StringRC_SpaceTransformRC_bool_AvatarState_StringRC_AvatarPlayMode_EntityCreatedCallback",
|
|
35175
|
+
"void",
|
|
35176
|
+
[
|
|
35177
|
+
"number",
|
|
35178
|
+
"string",
|
|
35179
|
+
"string",
|
|
35180
|
+
"number",
|
|
35181
|
+
"boolean",
|
|
35182
|
+
"number",
|
|
35183
|
+
"string",
|
|
35184
|
+
"number",
|
|
35185
|
+
"number",
|
|
35186
|
+
"number",
|
|
35187
|
+
],
|
|
35188
|
+
[
|
|
35189
|
+
this.pointer,
|
|
35190
|
+
name,
|
|
35191
|
+
userId,
|
|
35192
|
+
transform.pointer,
|
|
35193
|
+
isVisible,
|
|
35194
|
+
state,
|
|
35195
|
+
avatarId,
|
|
35196
|
+
avatarPlayMode,
|
|
35197
|
+
_callbackPtr,
|
|
35198
|
+
0,
|
|
35199
|
+
],
|
|
35200
|
+
);
|
|
35201
|
+
|
|
35202
|
+
return _promise;
|
|
35203
|
+
}
|
|
35204
|
+
|
|
35205
|
+
/**
|
|
35206
|
+
* @description Create and add a SpaceEntity, with relevant default values.
|
|
35207
|
+
* @param name - The name of the newly created SpaceEntity.
|
|
35208
|
+
* @param transform - The initial transform to set the SpaceEntity to.
|
|
35209
|
+
* @param parentID - ID of another entity in the space that this entity should be created as a child to. If empty,
|
|
35210
|
+
* entity is created as a root entity.
|
|
35211
|
+
* @param callback - A callback that executes when the creation is complete,
|
|
35212
|
+
* which will provide a non-owning pointer to the new SpaceEntity so that it can be used on the local client.
|
|
35213
|
+
*/
|
|
35214
|
+
|
|
35215
|
+
async createEntity(
|
|
35216
|
+
name: string,
|
|
35217
|
+
transform: Multiplayer.SpaceTransform,
|
|
35218
|
+
parentID: bigint | null,
|
|
35219
|
+
): Promise<Multiplayer.SpaceEntity> {
|
|
35220
|
+
var _resolve;
|
|
35221
|
+
|
|
35222
|
+
var _promise = new Promise<Multiplayer.SpaceEntity>((_r) => {
|
|
35223
|
+
_resolve = _r;
|
|
35224
|
+
});
|
|
35225
|
+
|
|
35226
|
+
var _callbackPtr: number;
|
|
35227
|
+
var _callback = (_stateObject__: number, arg1) => {
|
|
35228
|
+
var _arg1Ptr = getNativePointer(arg1);
|
|
35229
|
+
var _arg1Instance = new Multiplayer.SpaceEntity(_arg1Ptr);
|
|
35230
|
+
|
|
35231
|
+
_resolve(_arg1Instance);
|
|
35232
|
+
|
|
35233
|
+
Module.removeFunction(_callbackPtr);
|
|
35234
|
+
};
|
|
35235
|
+
|
|
35236
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
35237
|
+
|
|
35238
|
+
var parentIDPointer = 0;
|
|
35239
|
+
if (parentID != null) {
|
|
35240
|
+
parentIDPointer = Module._malloc(4);
|
|
35241
|
+
Module.setValue(parentIDPointer, parentID, "i32");
|
|
35242
|
+
}
|
|
35243
|
+
|
|
35244
|
+
Module.ccall(
|
|
35245
|
+
"csp_multiplayer_OfflineRealtimeEngine_CreateEntity_void_StringRC_SpaceTransformRC_uint64_tRC_EntityCreatedCallback",
|
|
35246
|
+
"void",
|
|
35247
|
+
["number", "string", "number", "bigint", "number", "number"],
|
|
35248
|
+
[
|
|
35249
|
+
this.pointer,
|
|
35250
|
+
name,
|
|
35251
|
+
transform.pointer,
|
|
35252
|
+
parentIDPointer,
|
|
35253
|
+
_callbackPtr,
|
|
35254
|
+
0,
|
|
35255
|
+
],
|
|
35256
|
+
);
|
|
35257
|
+
|
|
35258
|
+
if (parentIDPointer) {
|
|
35259
|
+
Module._free(parentIDPointer);
|
|
35260
|
+
}
|
|
35261
|
+
|
|
35262
|
+
return _promise;
|
|
35263
|
+
}
|
|
35264
|
+
|
|
35265
|
+
/**
|
|
35266
|
+
* @description Destroy the specified entity.
|
|
35267
|
+
* @param entity - A non-owning pointer to the entity to be destroyed.
|
|
35268
|
+
* @param callback - A callback that executes when the entity destruction is complete.
|
|
35269
|
+
*/
|
|
35270
|
+
|
|
35271
|
+
async destroyEntity(entity: Multiplayer.SpaceEntity): Promise<boolean> {
|
|
35272
|
+
var _resolve;
|
|
35273
|
+
|
|
35274
|
+
var _promise = new Promise<boolean>((_r) => {
|
|
35275
|
+
_resolve = _r;
|
|
35276
|
+
});
|
|
35277
|
+
|
|
35278
|
+
var _callbackPtr: number;
|
|
35279
|
+
var _callback = (_stateObject__: number, arg1) => {
|
|
35280
|
+
_resolve(!!arg1);
|
|
35281
|
+
|
|
35282
|
+
Module.removeFunction(_callbackPtr);
|
|
35283
|
+
};
|
|
35284
|
+
|
|
35285
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
35286
|
+
|
|
35287
|
+
Module.ccall(
|
|
35288
|
+
"csp_multiplayer_OfflineRealtimeEngine_DestroyEntity_void_SpaceEntityP_CallbackHandler",
|
|
35289
|
+
"void",
|
|
35290
|
+
["number", "number", "number", "number"],
|
|
35291
|
+
[this.pointer, entity.pointer, _callbackPtr, 0],
|
|
35292
|
+
);
|
|
35293
|
+
|
|
35294
|
+
return _promise;
|
|
35295
|
+
}
|
|
35296
|
+
|
|
35297
|
+
/**
|
|
35298
|
+
* @description Finds the first found SpaceEntity of a matching Name.
|
|
35299
|
+
* @param name - The name to search.
|
|
35300
|
+
* @return A non-owning pointer to the first found matching SpaceEntity.
|
|
35301
|
+
*/
|
|
35302
|
+
|
|
35303
|
+
findSpaceEntity(name: string): Multiplayer.SpaceEntity {
|
|
35304
|
+
var _ret = Module._malloc(8);
|
|
35305
|
+
|
|
35306
|
+
Module.ccall(
|
|
35307
|
+
"csp_multiplayer_OfflineRealtimeEngine_FindSpaceEntity_SpaceEntityP_StringRC",
|
|
35308
|
+
"void",
|
|
35309
|
+
["number", "number", "string"],
|
|
35310
|
+
[_ret, this.pointer, name],
|
|
35311
|
+
);
|
|
35312
|
+
var _nPtr = new Multiplayer.SpaceEntity(getNativePointer(_ret));
|
|
35313
|
+
Module._free(_ret);
|
|
35314
|
+
|
|
35315
|
+
return _nPtr;
|
|
35316
|
+
}
|
|
35317
|
+
|
|
35318
|
+
/**
|
|
35319
|
+
* @description Finds the first found SpaceEntity that has the ID EntityId.
|
|
35320
|
+
* @param entityId - The Id to look for.
|
|
35321
|
+
* @return A non-owning pointer to the first found matching SpaceEntity.
|
|
35322
|
+
*/
|
|
35323
|
+
|
|
35324
|
+
findSpaceEntityById(entityId: bigint): Multiplayer.SpaceEntity {
|
|
35325
|
+
assert(entityId >= Limits.UINT64_MIN);
|
|
35326
|
+
assert(entityId <= Limits.UINT64_MAX);
|
|
35327
|
+
|
|
35328
|
+
var _ret = Module._malloc(8);
|
|
35329
|
+
|
|
35330
|
+
Module.ccall(
|
|
35331
|
+
"csp_multiplayer_OfflineRealtimeEngine_FindSpaceEntityById_SpaceEntityP_uint64_t",
|
|
35332
|
+
"void",
|
|
35333
|
+
["number", "number", "bigint"],
|
|
35334
|
+
[_ret, this.pointer, entityId],
|
|
35335
|
+
);
|
|
35336
|
+
var _nPtr = new Multiplayer.SpaceEntity(getNativePointer(_ret));
|
|
35337
|
+
Module._free(_ret);
|
|
35338
|
+
|
|
35339
|
+
return _nPtr;
|
|
35340
|
+
}
|
|
35341
|
+
|
|
35342
|
+
/**
|
|
35343
|
+
* @description Finds the first found SpaceEntity of a matching Name. The found SpaceEntity will contain an AvatarSpaceComponent.
|
|
35344
|
+
* @param name - The name to search for.
|
|
35345
|
+
* @return A pointer to the first found matching SpaceEntity.
|
|
35346
|
+
*/
|
|
35347
|
+
|
|
35348
|
+
findSpaceAvatar(name: string): Multiplayer.SpaceEntity {
|
|
35349
|
+
var _ret = Module._malloc(8);
|
|
35350
|
+
|
|
35351
|
+
Module.ccall(
|
|
35352
|
+
"csp_multiplayer_OfflineRealtimeEngine_FindSpaceAvatar_SpaceEntityP_StringRC",
|
|
35353
|
+
"void",
|
|
35354
|
+
["number", "number", "string"],
|
|
35355
|
+
[_ret, this.pointer, name],
|
|
35356
|
+
);
|
|
35357
|
+
var _nPtr = new Multiplayer.SpaceEntity(getNativePointer(_ret));
|
|
35358
|
+
Module._free(_ret);
|
|
35359
|
+
|
|
35360
|
+
return _nPtr;
|
|
35361
|
+
}
|
|
35362
|
+
|
|
35363
|
+
/**
|
|
35364
|
+
* @description Finds the first found SpaceEntity of a matching Name. The found SpaceEntity will not contain an AvatarSpaceComponent.
|
|
35365
|
+
* @param name - The name to search for.
|
|
35366
|
+
* @return A pointer to the first found matching SpaceEntity.
|
|
35367
|
+
*/
|
|
35368
|
+
|
|
35369
|
+
findSpaceObject(name: string): Multiplayer.SpaceEntity {
|
|
35370
|
+
var _ret = Module._malloc(8);
|
|
35371
|
+
|
|
35372
|
+
Module.ccall(
|
|
35373
|
+
"csp_multiplayer_OfflineRealtimeEngine_FindSpaceObject_SpaceEntityP_StringRC",
|
|
35374
|
+
"void",
|
|
35375
|
+
["number", "number", "string"],
|
|
35376
|
+
[_ret, this.pointer, name],
|
|
35377
|
+
);
|
|
35378
|
+
var _nPtr = new Multiplayer.SpaceEntity(getNativePointer(_ret));
|
|
35379
|
+
Module._free(_ret);
|
|
35380
|
+
|
|
35381
|
+
return _nPtr;
|
|
35382
|
+
}
|
|
35383
|
+
|
|
35384
|
+
/**
|
|
35385
|
+
* @description Get an Entity by its index.
|
|
35386
|
+
* /// @param EntityIndex size_t : The index of the entity to get.
|
|
35387
|
+
* @return A non-owning pointer to the entity at the given index.
|
|
35388
|
+
*/
|
|
35389
|
+
|
|
35390
|
+
getEntityByIndex(entityIndex: number): Multiplayer.SpaceEntity {
|
|
35391
|
+
assert(Number.isInteger(entityIndex));
|
|
35392
|
+
assert(entityIndex >= Limits.UINT32_MIN);
|
|
35393
|
+
assert(entityIndex <= Limits.UINT32_MAX);
|
|
35394
|
+
|
|
35395
|
+
var _ret = Module._malloc(8);
|
|
35396
|
+
|
|
35397
|
+
Module.ccall(
|
|
35398
|
+
"csp_multiplayer_OfflineRealtimeEngine_GetEntityByIndex_SpaceEntityP_size_t",
|
|
35399
|
+
"void",
|
|
35400
|
+
["number", "number", "number"],
|
|
35401
|
+
[_ret, this.pointer, entityIndex],
|
|
35402
|
+
);
|
|
35403
|
+
var _nPtr = new Multiplayer.SpaceEntity(getNativePointer(_ret));
|
|
35404
|
+
Module._free(_ret);
|
|
35405
|
+
|
|
35406
|
+
return _nPtr;
|
|
35407
|
+
}
|
|
35408
|
+
|
|
35409
|
+
/**
|
|
35410
|
+
* @description Get an Avatar by its index. The returned pointer will be an entity that contains an AvatarSpaceComponent.
|
|
35411
|
+
* /// @param AvatarIndex size_t : The index of the avatar entity to get.
|
|
35412
|
+
* @return A non-owning pointer to the avatar entity with the given index.
|
|
35413
|
+
*/
|
|
35414
|
+
|
|
35415
|
+
getAvatarByIndex(avatarIndex: number): Multiplayer.SpaceEntity {
|
|
35416
|
+
assert(Number.isInteger(avatarIndex));
|
|
35417
|
+
assert(avatarIndex >= Limits.UINT32_MIN);
|
|
35418
|
+
assert(avatarIndex <= Limits.UINT32_MAX);
|
|
35419
|
+
|
|
35420
|
+
var _ret = Module._malloc(8);
|
|
35421
|
+
|
|
35422
|
+
Module.ccall(
|
|
35423
|
+
"csp_multiplayer_OfflineRealtimeEngine_GetAvatarByIndex_SpaceEntityP_size_t",
|
|
35424
|
+
"void",
|
|
35425
|
+
["number", "number", "number"],
|
|
35426
|
+
[_ret, this.pointer, avatarIndex],
|
|
35427
|
+
);
|
|
35428
|
+
var _nPtr = new Multiplayer.SpaceEntity(getNativePointer(_ret));
|
|
35429
|
+
Module._free(_ret);
|
|
35430
|
+
|
|
35431
|
+
return _nPtr;
|
|
35432
|
+
}
|
|
35433
|
+
|
|
35434
|
+
/**
|
|
35435
|
+
* @description Get an Object by its index. The returned pointer will be an entity that does not contain an AvatarSpaceComponent.
|
|
35436
|
+
* /// @param ObjectIndex size_t : The index of the object entity to get.
|
|
35437
|
+
* @return A non-owning pointer to the object entity with the given index.
|
|
35438
|
+
*/
|
|
35439
|
+
|
|
35440
|
+
getObjectByIndex(objectIndex: number): Multiplayer.SpaceEntity {
|
|
35441
|
+
assert(Number.isInteger(objectIndex));
|
|
35442
|
+
assert(objectIndex >= Limits.UINT32_MIN);
|
|
35443
|
+
assert(objectIndex <= Limits.UINT32_MAX);
|
|
35444
|
+
|
|
35445
|
+
var _ret = Module._malloc(8);
|
|
35446
|
+
|
|
35447
|
+
Module.ccall(
|
|
35448
|
+
"csp_multiplayer_OfflineRealtimeEngine_GetObjectByIndex_SpaceEntityP_size_t",
|
|
35449
|
+
"void",
|
|
35450
|
+
["number", "number", "number"],
|
|
35451
|
+
[_ret, this.pointer, objectIndex],
|
|
35452
|
+
);
|
|
35453
|
+
var _nPtr = new Multiplayer.SpaceEntity(getNativePointer(_ret));
|
|
35454
|
+
Module._free(_ret);
|
|
35455
|
+
|
|
35456
|
+
return _nPtr;
|
|
35457
|
+
}
|
|
35458
|
+
|
|
35459
|
+
/**
|
|
35460
|
+
* @description Get the number of total entities in the system.
|
|
35461
|
+
* @return The total number of entities.
|
|
35462
|
+
*/
|
|
35463
|
+
|
|
35464
|
+
getNumEntities(): number {
|
|
35465
|
+
let _result = Module.ccall(
|
|
35466
|
+
"csp_multiplayer_OfflineRealtimeEngine_GetNumEntitiesC_size_t",
|
|
35467
|
+
"number",
|
|
35468
|
+
["number"],
|
|
35469
|
+
[this.pointer],
|
|
35470
|
+
);
|
|
35471
|
+
|
|
35472
|
+
const _unfixedValue = _result;
|
|
35473
|
+
let _fixedValue =
|
|
35474
|
+
_unfixedValue < 0 ? _unfixedValue + 2 ** 32 : _unfixedValue;
|
|
35475
|
+
_result = _fixedValue;
|
|
35476
|
+
|
|
35477
|
+
return _result;
|
|
35478
|
+
}
|
|
35479
|
+
|
|
35480
|
+
/**
|
|
35481
|
+
* @description Get the number of total Avatars in the system. Avatars are entities that contain AvatarSpaceComponents.
|
|
35482
|
+
* @return The total number of Avatar entities.
|
|
35483
|
+
*/
|
|
35484
|
+
|
|
35485
|
+
getNumAvatars(): number {
|
|
35486
|
+
let _result = Module.ccall(
|
|
35487
|
+
"csp_multiplayer_OfflineRealtimeEngine_GetNumAvatarsC_size_t",
|
|
35488
|
+
"number",
|
|
35489
|
+
["number"],
|
|
35490
|
+
[this.pointer],
|
|
35491
|
+
);
|
|
35492
|
+
|
|
35493
|
+
const _unfixedValue = _result;
|
|
35494
|
+
let _fixedValue =
|
|
35495
|
+
_unfixedValue < 0 ? _unfixedValue + 2 ** 32 : _unfixedValue;
|
|
35496
|
+
_result = _fixedValue;
|
|
35497
|
+
|
|
35498
|
+
return _result;
|
|
35499
|
+
}
|
|
35500
|
+
|
|
35501
|
+
/**
|
|
35502
|
+
* @description Get the number of total Objects in the system. Objects are entities that do not contain AvatarSpaceComponents.
|
|
35503
|
+
* @return The total number of object entities.
|
|
35504
|
+
*/
|
|
35505
|
+
|
|
35506
|
+
getNumObjects(): number {
|
|
35507
|
+
let _result = Module.ccall(
|
|
35508
|
+
"csp_multiplayer_OfflineRealtimeEngine_GetNumObjectsC_size_t",
|
|
35509
|
+
"number",
|
|
35510
|
+
["number"],
|
|
35511
|
+
[this.pointer],
|
|
35512
|
+
);
|
|
35513
|
+
|
|
35514
|
+
const _unfixedValue = _result;
|
|
35515
|
+
let _fixedValue =
|
|
35516
|
+
_unfixedValue < 0 ? _unfixedValue + 2 ** 32 : _unfixedValue;
|
|
35517
|
+
_result = _fixedValue;
|
|
35518
|
+
|
|
35519
|
+
return _result;
|
|
35520
|
+
}
|
|
35521
|
+
|
|
35522
|
+
/**
|
|
35523
|
+
* @description Return all the entities currently known to the realtime engine.
|
|
35524
|
+
@warning This list may be extremely large.
|
|
35525
|
+
* @return A non-owning pointer to a List of non-owning pointers to all entities.
|
|
35526
|
+
*/
|
|
35527
|
+
|
|
35528
|
+
getAllEntities(): Common.List<Multiplayer.SpaceEntity> {
|
|
35529
|
+
var _ret = Module._malloc(8);
|
|
35530
|
+
|
|
35531
|
+
Module.ccall(
|
|
35532
|
+
"csp_multiplayer_OfflineRealtimeEngine_GetAllEntitiesC_ListPC",
|
|
35533
|
+
"void",
|
|
35534
|
+
["number", "number"],
|
|
35535
|
+
[_ret, this.pointer],
|
|
35536
|
+
);
|
|
35537
|
+
var _nPtr = new Common.List<Multiplayer.SpaceEntity>(
|
|
35538
|
+
getNativePointer(_ret),
|
|
35539
|
+
csp_multiplayer_SpaceEntityFactory,
|
|
35540
|
+
"csp_multiplayer_SpaceEntity",
|
|
35541
|
+
);
|
|
35542
|
+
Module._free(_ret);
|
|
35543
|
+
|
|
35544
|
+
return _nPtr;
|
|
35545
|
+
}
|
|
35546
|
+
|
|
35547
|
+
/**
|
|
35548
|
+
* @description Retrieves all entities that exist at the root level (do not have a parent entity).
|
|
35549
|
+
* @return A list of root entities containing non-owning pointers to entities.
|
|
35550
|
+
*/
|
|
35551
|
+
|
|
35552
|
+
getRootHierarchyEntities(): Common.List<Multiplayer.SpaceEntity> {
|
|
35553
|
+
var _ret = Module._malloc(8);
|
|
35554
|
+
|
|
35555
|
+
Module.ccall(
|
|
35556
|
+
"csp_multiplayer_OfflineRealtimeEngine_GetRootHierarchyEntitiesC_ListPC",
|
|
35557
|
+
"void",
|
|
35558
|
+
["number", "number"],
|
|
35559
|
+
[_ret, this.pointer],
|
|
35560
|
+
);
|
|
35561
|
+
var _nPtr = new Common.List<Multiplayer.SpaceEntity>(
|
|
35562
|
+
getNativePointer(_ret),
|
|
35563
|
+
csp_multiplayer_SpaceEntityFactory,
|
|
35564
|
+
"csp_multiplayer_SpaceEntity",
|
|
35565
|
+
);
|
|
35566
|
+
Module._free(_ret);
|
|
35567
|
+
|
|
35568
|
+
return _nPtr;
|
|
35569
|
+
}
|
|
35570
|
+
|
|
35571
|
+
/**
|
|
35572
|
+
* @description The client ID of the local client. An arbitrary unchanging value.
|
|
35573
|
+
* @return INT53_MAX, the maximum number expressible in all our interop languages (you can thank javascript for the weird sizing).
|
|
35574
|
+
*/
|
|
35575
|
+
|
|
35576
|
+
static localClientId(): bigint {
|
|
35577
|
+
let _result = Module.ccall(
|
|
35578
|
+
"csp_multiplayer_OfflineRealtimeEngine_LocalClientId_uint64_t",
|
|
35579
|
+
"bigint",
|
|
35580
|
+
[],
|
|
35581
|
+
[],
|
|
35582
|
+
);
|
|
35583
|
+
|
|
35584
|
+
const _unfixedValue = _result;
|
|
35585
|
+
let _fixedValue =
|
|
35586
|
+
_unfixedValue < 0 ? _unfixedValue + 2n ** 64n : _unfixedValue;
|
|
35587
|
+
_result = _fixedValue;
|
|
35588
|
+
|
|
35589
|
+
return _result;
|
|
35590
|
+
}
|
|
35591
|
+
}
|
|
35592
|
+
}
|
|
35593
|
+
|
|
35201
35594
|
export namespace Multiplayer {
|
|
35202
35595
|
/**
|
|
35203
35596
|
* @description Class for creating and managing multiplayer objects known as space entities.
|
|
@@ -35405,23 +35798,6 @@ export namespace Multiplayer {
|
|
|
35405
35798
|
return _promise;
|
|
35406
35799
|
}
|
|
35407
35800
|
|
|
35408
|
-
/**
|
|
35409
|
-
* @description Add a new entity to the system.
|
|
35410
|
-
* /// This can be called at any time from any thread and internally add the entity to a pending
|
|
35411
|
-
* list which is then updated in a thread safe manner when ProcessPendingEntityOperations
|
|
35412
|
-
* is called from the main thread.
|
|
35413
|
-
* /// @param EntityToAdd SpaceEntity : Pointer to the entity to be added.
|
|
35414
|
-
*/
|
|
35415
|
-
|
|
35416
|
-
addEntity(entityToAdd: Multiplayer.SpaceEntity): void {
|
|
35417
|
-
Module.ccall(
|
|
35418
|
-
"csp_multiplayer_OnlineRealtimeEngine_AddEntity_void_SpaceEntityP",
|
|
35419
|
-
"void",
|
|
35420
|
-
["number", "number"],
|
|
35421
|
-
[this.pointer, entityToAdd.pointer],
|
|
35422
|
-
);
|
|
35423
|
-
}
|
|
35424
|
-
|
|
35425
35801
|
/**
|
|
35426
35802
|
* @description Destroy the specified entity.
|
|
35427
35803
|
* @param entity - A non-owning pointer to the entity to be destroyed.
|
|
@@ -35454,30 +35830,6 @@ export namespace Multiplayer {
|
|
|
35454
35830
|
return _promise;
|
|
35455
35831
|
}
|
|
35456
35832
|
|
|
35457
|
-
/**
|
|
35458
|
-
* @description Sets a callback to be executed when an entity is fully created.
|
|
35459
|
-
* /// Only one EntityCreatedCallback may be registered, calling this function again will override whatever was previously set.
|
|
35460
|
-
* /// @param Callback csp::multiplayer::EntityCreatedCallback : the callback to execute.
|
|
35461
|
-
*/
|
|
35462
|
-
setEntityCreatedCallback(
|
|
35463
|
-
callback: (arg1: Multiplayer.SpaceEntity) => void,
|
|
35464
|
-
) {
|
|
35465
|
-
var _callback = (_stateObject__: number, arg1) => {
|
|
35466
|
-
var _arg1 = new Multiplayer.SpaceEntity(getNativePointer(arg1));
|
|
35467
|
-
|
|
35468
|
-
callback(_arg1);
|
|
35469
|
-
};
|
|
35470
|
-
|
|
35471
|
-
var _callbackPtr = Module.addFunction(_callback, "vii");
|
|
35472
|
-
|
|
35473
|
-
Module.ccall(
|
|
35474
|
-
"csp_multiplayer_OnlineRealtimeEngine_SetEntityCreatedCallback_void_EntityCreatedCallback",
|
|
35475
|
-
"void",
|
|
35476
|
-
["number", "number", "number"],
|
|
35477
|
-
[this.pointer, _callbackPtr, 0],
|
|
35478
|
-
);
|
|
35479
|
-
}
|
|
35480
|
-
|
|
35481
35833
|
/**
|
|
35482
35834
|
* @description Finds the first found SpaceEntity of a matching Name.
|
|
35483
35835
|
* @param name - The name to search.
|
|
@@ -35703,6 +36055,31 @@ export namespace Multiplayer {
|
|
|
35703
36055
|
return _result;
|
|
35704
36056
|
}
|
|
35705
36057
|
|
|
36058
|
+
/**
|
|
36059
|
+
* @description Return all the entities currently known to the realtime engine.
|
|
36060
|
+
@warning This list may be extremely large.
|
|
36061
|
+
* @return A non-owning pointer to a List of non-owning pointers to all entities.
|
|
36062
|
+
*/
|
|
36063
|
+
|
|
36064
|
+
getAllEntities(): Common.List<Multiplayer.SpaceEntity> {
|
|
36065
|
+
var _ret = Module._malloc(8);
|
|
36066
|
+
|
|
36067
|
+
Module.ccall(
|
|
36068
|
+
"csp_multiplayer_OnlineRealtimeEngine_GetAllEntitiesC_ListPC",
|
|
36069
|
+
"void",
|
|
36070
|
+
["number", "number"],
|
|
36071
|
+
[_ret, this.pointer],
|
|
36072
|
+
);
|
|
36073
|
+
var _nPtr = new Common.List<Multiplayer.SpaceEntity>(
|
|
36074
|
+
getNativePointer(_ret),
|
|
36075
|
+
csp_multiplayer_SpaceEntityFactory,
|
|
36076
|
+
"csp_multiplayer_SpaceEntity",
|
|
36077
|
+
);
|
|
36078
|
+
Module._free(_ret);
|
|
36079
|
+
|
|
36080
|
+
return _nPtr;
|
|
36081
|
+
}
|
|
36082
|
+
|
|
35706
36083
|
/**
|
|
35707
36084
|
* @description Retrieves all entities that exist at the root level (do not have a parent entity).
|
|
35708
36085
|
* @return A list of root entities containing non-owning pointers to entities.
|
|
@@ -35733,9 +36110,9 @@ export namespace Multiplayer {
|
|
|
35733
36110
|
* @param entity - A non-owning pointer to the entity to be marked.
|
|
35734
36111
|
*/
|
|
35735
36112
|
|
|
35736
|
-
|
|
36113
|
+
queueEntityUpdate(entity: Multiplayer.SpaceEntity): void {
|
|
35737
36114
|
Module.ccall(
|
|
35738
|
-
"
|
|
36115
|
+
"csp_multiplayer_OnlineRealtimeEngine_QueueEntityUpdate_void_SpaceEntityP",
|
|
35739
36116
|
"void",
|
|
35740
36117
|
["number", "number"],
|
|
35741
36118
|
[this.pointer, entity.pointer],
|
|
@@ -35755,6 +36132,31 @@ export namespace Multiplayer {
|
|
|
35755
36132
|
);
|
|
35756
36133
|
}
|
|
35757
36134
|
|
|
36135
|
+
/**
|
|
36136
|
+
* @description Sets a callback to be executed when a remote entity is created.
|
|
36137
|
+
* To wait for local entities to be created, await the callback provided in the CreateObject/CreateAvatar methods.
|
|
36138
|
+
* /// Only one EntityCreatedCallback may be registered, calling this function again will override whatever was previously set.
|
|
36139
|
+
* /// @param Callback csp::multiplayer::EntityCreatedCallback : the callback to execute.
|
|
36140
|
+
*/
|
|
36141
|
+
setRemoteEntityCreatedCallback(
|
|
36142
|
+
callback: (arg1: Multiplayer.SpaceEntity) => void,
|
|
36143
|
+
) {
|
|
36144
|
+
var _callback = (_stateObject__: number, arg1) => {
|
|
36145
|
+
var _arg1 = new Multiplayer.SpaceEntity(getNativePointer(arg1));
|
|
36146
|
+
|
|
36147
|
+
callback(_arg1);
|
|
36148
|
+
};
|
|
36149
|
+
|
|
36150
|
+
var _callbackPtr = Module.addFunction(_callback, "vii");
|
|
36151
|
+
|
|
36152
|
+
Module.ccall(
|
|
36153
|
+
"csp_multiplayer_OnlineRealtimeEngine_SetRemoteEntityCreatedCallback_void_EntityCreatedCallback",
|
|
36154
|
+
"void",
|
|
36155
|
+
["number", "number", "number"],
|
|
36156
|
+
[this.pointer, _callbackPtr, 0],
|
|
36157
|
+
);
|
|
36158
|
+
}
|
|
36159
|
+
|
|
35758
36160
|
/**
|
|
35759
36161
|
* @description Sets a callback to be executed when the script system is ready to run scripts.
|
|
35760
36162
|
* @param callback - The callback to execute.
|
|
@@ -35887,59 +36289,6 @@ export namespace Multiplayer {
|
|
|
35887
36289
|
);
|
|
35888
36290
|
}
|
|
35889
36291
|
|
|
35890
|
-
/**
|
|
35891
|
-
* @description Locks the entity mutex.
|
|
35892
|
-
*/
|
|
35893
|
-
|
|
35894
|
-
lockEntityUpdate(): void {
|
|
35895
|
-
Module.ccall(
|
|
35896
|
-
"csp_multiplayer_OnlineRealtimeEngine_LockEntityUpdateC_void",
|
|
35897
|
-
"void",
|
|
35898
|
-
["number"],
|
|
35899
|
-
[this.pointer],
|
|
35900
|
-
);
|
|
35901
|
-
}
|
|
35902
|
-
|
|
35903
|
-
/**
|
|
35904
|
-
* @description Unlocks the entity mutex.
|
|
35905
|
-
*/
|
|
35906
|
-
|
|
35907
|
-
unlockEntityUpdate(): void {
|
|
35908
|
-
Module.ccall(
|
|
35909
|
-
"csp_multiplayer_OnlineRealtimeEngine_UnlockEntityUpdateC_void",
|
|
35910
|
-
"void",
|
|
35911
|
-
["number"],
|
|
35912
|
-
[this.pointer],
|
|
35913
|
-
);
|
|
35914
|
-
}
|
|
35915
|
-
|
|
35916
|
-
/**
|
|
35917
|
-
* @description Queues a specific entity to update. Used in SpaceEntity to queue updates via passing the this pointer
|
|
35918
|
-
*/
|
|
35919
|
-
|
|
35920
|
-
queueEntityUpdate(entityToUpdate: Multiplayer.SpaceEntity): void {
|
|
35921
|
-
Module.ccall(
|
|
35922
|
-
"csp_multiplayer_OnlineRealtimeEngine_QueueEntityUpdate_void_SpaceEntityP",
|
|
35923
|
-
"void",
|
|
35924
|
-
["number", "number"],
|
|
35925
|
-
[this.pointer, entityToUpdate.pointer],
|
|
35926
|
-
);
|
|
35927
|
-
}
|
|
35928
|
-
|
|
35929
|
-
/**
|
|
35930
|
-
* @description "Resolves" the entity heirarchy, such that the entity is parented appropriately, and internal buffers are populated appropriately.
|
|
35931
|
-
* (Vague, need more understanding about what this does)
|
|
35932
|
-
*/
|
|
35933
|
-
|
|
35934
|
-
resolveEntityHierarchy(entity: Multiplayer.SpaceEntity): void {
|
|
35935
|
-
Module.ccall(
|
|
35936
|
-
"csp_multiplayer_OnlineRealtimeEngine_ResolveEntityHierarchy_void_SpaceEntityP",
|
|
35937
|
-
"void",
|
|
35938
|
-
["number", "number"],
|
|
35939
|
-
[this.pointer, entity.pointer],
|
|
35940
|
-
);
|
|
35941
|
-
}
|
|
35942
|
-
|
|
35943
36292
|
delete(): void {
|
|
35944
36293
|
if (this.ownsPointer && !this.disposed) {
|
|
35945
36294
|
Module.ccall(
|
|
@@ -35970,6 +36319,7 @@ export namespace Multiplayer {
|
|
|
35970
36319
|
Multiplayer.IExternalResourceComponent,
|
|
35971
36320
|
Multiplayer.IThirdPartyComponentRef,
|
|
35972
36321
|
Multiplayer.IShadowCasterComponent,
|
|
36322
|
+
Multiplayer.IRenderBehaviourComponent,
|
|
35973
36323
|
INativeResource
|
|
35974
36324
|
{
|
|
35975
36325
|
/** @internal */
|
|
@@ -36417,6 +36767,34 @@ export namespace Multiplayer {
|
|
|
36417
36767
|
);
|
|
36418
36768
|
}
|
|
36419
36769
|
|
|
36770
|
+
/**
|
|
36771
|
+
@copydoc IVisibleComponent::GetIsVirtualVisible()
|
|
36772
|
+
*/
|
|
36773
|
+
|
|
36774
|
+
getIsVirtualVisible(): boolean {
|
|
36775
|
+
let _result = Module.ccall(
|
|
36776
|
+
"csp_multiplayer_AnimatedModelSpaceComponent_GetIsVirtualVisibleC_bool",
|
|
36777
|
+
"boolean",
|
|
36778
|
+
["number"],
|
|
36779
|
+
[this.pointer],
|
|
36780
|
+
);
|
|
36781
|
+
|
|
36782
|
+
return _result;
|
|
36783
|
+
}
|
|
36784
|
+
|
|
36785
|
+
/**
|
|
36786
|
+
@copydoc IVisibleComponent::SetIsVirtualVisible()
|
|
36787
|
+
*/
|
|
36788
|
+
|
|
36789
|
+
setIsVirtualVisible(value: boolean): void {
|
|
36790
|
+
Module.ccall(
|
|
36791
|
+
"csp_multiplayer_AnimatedModelSpaceComponent_SetIsVirtualVisible_void_bool",
|
|
36792
|
+
"void",
|
|
36793
|
+
["number", "boolean"],
|
|
36794
|
+
[this.pointer, value],
|
|
36795
|
+
);
|
|
36796
|
+
}
|
|
36797
|
+
|
|
36420
36798
|
/**
|
|
36421
36799
|
@}
|
|
36422
36800
|
* \addtogroup IThirdPartyComponentRef
|
|
@@ -36484,6 +36862,65 @@ export namespace Multiplayer {
|
|
|
36484
36862
|
);
|
|
36485
36863
|
}
|
|
36486
36864
|
|
|
36865
|
+
/**
|
|
36866
|
+
@}
|
|
36867
|
+
* \addtogroup IRenderBehaviourComponent
|
|
36868
|
+
@{
|
|
36869
|
+
@copydoc IRenderBehaviourComponent::GetShowAsHoldoutInAR()
|
|
36870
|
+
*/
|
|
36871
|
+
|
|
36872
|
+
getShowAsHoldoutInAR(): boolean {
|
|
36873
|
+
let _result = Module.ccall(
|
|
36874
|
+
"csp_multiplayer_AnimatedModelSpaceComponent_GetShowAsHoldoutInARC_bool",
|
|
36875
|
+
"boolean",
|
|
36876
|
+
["number"],
|
|
36877
|
+
[this.pointer],
|
|
36878
|
+
);
|
|
36879
|
+
|
|
36880
|
+
return _result;
|
|
36881
|
+
}
|
|
36882
|
+
|
|
36883
|
+
/**
|
|
36884
|
+
@copydoc IRenderBehaviourComponent::SetShowAsHoldoutInAR()
|
|
36885
|
+
*/
|
|
36886
|
+
|
|
36887
|
+
setShowAsHoldoutInAR(value: boolean): void {
|
|
36888
|
+
Module.ccall(
|
|
36889
|
+
"csp_multiplayer_AnimatedModelSpaceComponent_SetShowAsHoldoutInAR_void_bool",
|
|
36890
|
+
"void",
|
|
36891
|
+
["number", "boolean"],
|
|
36892
|
+
[this.pointer, value],
|
|
36893
|
+
);
|
|
36894
|
+
}
|
|
36895
|
+
|
|
36896
|
+
/**
|
|
36897
|
+
@copydoc IRenderBehaviourComponent::GetShowAsHoldoutInVirtual()
|
|
36898
|
+
*/
|
|
36899
|
+
|
|
36900
|
+
getShowAsHoldoutInVirtual(): boolean {
|
|
36901
|
+
let _result = Module.ccall(
|
|
36902
|
+
"csp_multiplayer_AnimatedModelSpaceComponent_GetShowAsHoldoutInVirtualC_bool",
|
|
36903
|
+
"boolean",
|
|
36904
|
+
["number"],
|
|
36905
|
+
[this.pointer],
|
|
36906
|
+
);
|
|
36907
|
+
|
|
36908
|
+
return _result;
|
|
36909
|
+
}
|
|
36910
|
+
|
|
36911
|
+
/**
|
|
36912
|
+
@copydoc IRenderBehaviourComponent::SetShowAsHoldoutInVirtual()
|
|
36913
|
+
*/
|
|
36914
|
+
|
|
36915
|
+
setShowAsHoldoutInVirtual(value: boolean): void {
|
|
36916
|
+
Module.ccall(
|
|
36917
|
+
"csp_multiplayer_AnimatedModelSpaceComponent_SetShowAsHoldoutInVirtual_void_bool",
|
|
36918
|
+
"void",
|
|
36919
|
+
["number", "boolean"],
|
|
36920
|
+
[this.pointer, value],
|
|
36921
|
+
);
|
|
36922
|
+
}
|
|
36923
|
+
|
|
36487
36924
|
delete(): void {
|
|
36488
36925
|
if (this.ownsPointer && !this.disposed) {
|
|
36489
36926
|
Module.ccall(
|
|
@@ -37593,6 +38030,34 @@ export namespace Multiplayer {
|
|
|
37593
38030
|
);
|
|
37594
38031
|
}
|
|
37595
38032
|
|
|
38033
|
+
/**
|
|
38034
|
+
@copydoc IVisibleComponent::GetIsVirtualVisible()
|
|
38035
|
+
*/
|
|
38036
|
+
|
|
38037
|
+
getIsVirtualVisible(): boolean {
|
|
38038
|
+
let _result = Module.ccall(
|
|
38039
|
+
"csp_multiplayer_AvatarSpaceComponent_GetIsVirtualVisibleC_bool",
|
|
38040
|
+
"boolean",
|
|
38041
|
+
["number"],
|
|
38042
|
+
[this.pointer],
|
|
38043
|
+
);
|
|
38044
|
+
|
|
38045
|
+
return _result;
|
|
38046
|
+
}
|
|
38047
|
+
|
|
38048
|
+
/**
|
|
38049
|
+
@copydoc IVisibleComponent::SetIsVirtualVisible()
|
|
38050
|
+
*/
|
|
38051
|
+
|
|
38052
|
+
setIsVirtualVisible(value: boolean): void {
|
|
38053
|
+
Module.ccall(
|
|
38054
|
+
"csp_multiplayer_AvatarSpaceComponent_SetIsVirtualVisible_void_bool",
|
|
38055
|
+
"void",
|
|
38056
|
+
["number", "boolean"],
|
|
38057
|
+
[this.pointer, value],
|
|
38058
|
+
);
|
|
38059
|
+
}
|
|
38060
|
+
|
|
37596
38061
|
delete(): void {
|
|
37597
38062
|
if (this.ownsPointer && !this.disposed) {
|
|
37598
38063
|
Module.ccall(
|
|
@@ -37986,6 +38451,34 @@ export namespace Multiplayer {
|
|
|
37986
38451
|
);
|
|
37987
38452
|
}
|
|
37988
38453
|
|
|
38454
|
+
/**
|
|
38455
|
+
@copydoc IVisibleComponent::GetIsVirtualVisible()
|
|
38456
|
+
*/
|
|
38457
|
+
|
|
38458
|
+
getIsVirtualVisible(): boolean {
|
|
38459
|
+
let _result = Module.ccall(
|
|
38460
|
+
"csp_multiplayer_ButtonSpaceComponent_GetIsVirtualVisibleC_bool",
|
|
38461
|
+
"boolean",
|
|
38462
|
+
["number"],
|
|
38463
|
+
[this.pointer],
|
|
38464
|
+
);
|
|
38465
|
+
|
|
38466
|
+
return _result;
|
|
38467
|
+
}
|
|
38468
|
+
|
|
38469
|
+
/**
|
|
38470
|
+
@copydoc IVisibleComponent::SetIsVirtualVisible()
|
|
38471
|
+
*/
|
|
38472
|
+
|
|
38473
|
+
setIsVirtualVisible(value: boolean): void {
|
|
38474
|
+
Module.ccall(
|
|
38475
|
+
"csp_multiplayer_ButtonSpaceComponent_SetIsVirtualVisible_void_bool",
|
|
38476
|
+
"void",
|
|
38477
|
+
["number", "boolean"],
|
|
38478
|
+
[this.pointer, value],
|
|
38479
|
+
);
|
|
38480
|
+
}
|
|
38481
|
+
|
|
37989
38482
|
delete(): void {
|
|
37990
38483
|
if (this.ownsPointer && !this.disposed) {
|
|
37991
38484
|
Module.ccall(
|
|
@@ -40868,6 +41361,34 @@ export namespace Multiplayer {
|
|
|
40868
41361
|
);
|
|
40869
41362
|
}
|
|
40870
41363
|
|
|
41364
|
+
/**
|
|
41365
|
+
@copydoc IVisibleComponent::GetIsVirtualVisible()
|
|
41366
|
+
*/
|
|
41367
|
+
|
|
41368
|
+
getIsVirtualVisible(): boolean {
|
|
41369
|
+
let _result = Module.ccall(
|
|
41370
|
+
"csp_multiplayer_ExternalLinkSpaceComponent_GetIsVirtualVisibleC_bool",
|
|
41371
|
+
"boolean",
|
|
41372
|
+
["number"],
|
|
41373
|
+
[this.pointer],
|
|
41374
|
+
);
|
|
41375
|
+
|
|
41376
|
+
return _result;
|
|
41377
|
+
}
|
|
41378
|
+
|
|
41379
|
+
/**
|
|
41380
|
+
@copydoc IVisibleComponent::SetIsVirtualVisible()
|
|
41381
|
+
*/
|
|
41382
|
+
|
|
41383
|
+
setIsVirtualVisible(value: boolean): void {
|
|
41384
|
+
Module.ccall(
|
|
41385
|
+
"csp_multiplayer_ExternalLinkSpaceComponent_SetIsVirtualVisible_void_bool",
|
|
41386
|
+
"void",
|
|
41387
|
+
["number", "boolean"],
|
|
41388
|
+
[this.pointer, value],
|
|
41389
|
+
);
|
|
41390
|
+
}
|
|
41391
|
+
|
|
40871
41392
|
delete(): void {
|
|
40872
41393
|
if (this.ownsPointer && !this.disposed) {
|
|
40873
41394
|
Module.ccall(
|
|
@@ -41233,6 +41754,34 @@ export namespace Multiplayer {
|
|
|
41233
41754
|
);
|
|
41234
41755
|
}
|
|
41235
41756
|
|
|
41757
|
+
/**
|
|
41758
|
+
@copydoc IVisibleComponent::GetIsVirtualVisible()
|
|
41759
|
+
*/
|
|
41760
|
+
|
|
41761
|
+
getIsVirtualVisible(): boolean {
|
|
41762
|
+
let _result = Module.ccall(
|
|
41763
|
+
"csp_multiplayer_FiducialMarkerSpaceComponent_GetIsVirtualVisibleC_bool",
|
|
41764
|
+
"boolean",
|
|
41765
|
+
["number"],
|
|
41766
|
+
[this.pointer],
|
|
41767
|
+
);
|
|
41768
|
+
|
|
41769
|
+
return _result;
|
|
41770
|
+
}
|
|
41771
|
+
|
|
41772
|
+
/**
|
|
41773
|
+
@copydoc IVisibleComponent::SetIsVirtualVisible()
|
|
41774
|
+
*/
|
|
41775
|
+
|
|
41776
|
+
setIsVirtualVisible(value: boolean): void {
|
|
41777
|
+
Module.ccall(
|
|
41778
|
+
"csp_multiplayer_FiducialMarkerSpaceComponent_SetIsVirtualVisible_void_bool",
|
|
41779
|
+
"void",
|
|
41780
|
+
["number", "boolean"],
|
|
41781
|
+
[this.pointer, value],
|
|
41782
|
+
);
|
|
41783
|
+
}
|
|
41784
|
+
|
|
41236
41785
|
delete(): void {
|
|
41237
41786
|
if (this.ownsPointer && !this.disposed) {
|
|
41238
41787
|
Module.ccall(
|
|
@@ -41760,6 +42309,34 @@ export namespace Multiplayer {
|
|
|
41760
42309
|
);
|
|
41761
42310
|
}
|
|
41762
42311
|
|
|
42312
|
+
/**
|
|
42313
|
+
@copydoc IVisibleComponent::GetIsVirtualVisible()
|
|
42314
|
+
*/
|
|
42315
|
+
|
|
42316
|
+
getIsVirtualVisible(): boolean {
|
|
42317
|
+
let _result = Module.ccall(
|
|
42318
|
+
"csp_multiplayer_FogSpaceComponent_GetIsVirtualVisibleC_bool",
|
|
42319
|
+
"boolean",
|
|
42320
|
+
["number"],
|
|
42321
|
+
[this.pointer],
|
|
42322
|
+
);
|
|
42323
|
+
|
|
42324
|
+
return _result;
|
|
42325
|
+
}
|
|
42326
|
+
|
|
42327
|
+
/**
|
|
42328
|
+
@copydoc IVisibleComponent::SetIsVirtualVisible()
|
|
42329
|
+
*/
|
|
42330
|
+
|
|
42331
|
+
setIsVirtualVisible(value: boolean): void {
|
|
42332
|
+
Module.ccall(
|
|
42333
|
+
"csp_multiplayer_FogSpaceComponent_SetIsVirtualVisible_void_bool",
|
|
42334
|
+
"void",
|
|
42335
|
+
["number", "boolean"],
|
|
42336
|
+
[this.pointer, value],
|
|
42337
|
+
);
|
|
42338
|
+
}
|
|
42339
|
+
|
|
41763
42340
|
/**
|
|
41764
42341
|
@}
|
|
41765
42342
|
* \addtogroup IThirdPartyComponentRef
|
|
@@ -42128,6 +42705,34 @@ export namespace Multiplayer {
|
|
|
42128
42705
|
);
|
|
42129
42706
|
}
|
|
42130
42707
|
|
|
42708
|
+
/**
|
|
42709
|
+
@copydoc IVisibleComponent::GetIsVirtualVisible()
|
|
42710
|
+
*/
|
|
42711
|
+
|
|
42712
|
+
getIsVirtualVisible(): boolean {
|
|
42713
|
+
let _result = Module.ccall(
|
|
42714
|
+
"csp_multiplayer_GaussianSplatSpaceComponent_GetIsVirtualVisibleC_bool",
|
|
42715
|
+
"boolean",
|
|
42716
|
+
["number"],
|
|
42717
|
+
[this.pointer],
|
|
42718
|
+
);
|
|
42719
|
+
|
|
42720
|
+
return _result;
|
|
42721
|
+
}
|
|
42722
|
+
|
|
42723
|
+
/**
|
|
42724
|
+
@copydoc IVisibleComponent::SetIsVirtualVisible()
|
|
42725
|
+
*/
|
|
42726
|
+
|
|
42727
|
+
setIsVirtualVisible(value: boolean): void {
|
|
42728
|
+
Module.ccall(
|
|
42729
|
+
"csp_multiplayer_GaussianSplatSpaceComponent_SetIsVirtualVisible_void_bool",
|
|
42730
|
+
"void",
|
|
42731
|
+
["number", "boolean"],
|
|
42732
|
+
[this.pointer, value],
|
|
42733
|
+
);
|
|
42734
|
+
}
|
|
42735
|
+
|
|
42131
42736
|
/**
|
|
42132
42737
|
@}
|
|
42133
42738
|
* \addtogroup IShadowCasterComponent
|
|
@@ -42513,6 +43118,34 @@ export namespace Multiplayer {
|
|
|
42513
43118
|
);
|
|
42514
43119
|
}
|
|
42515
43120
|
|
|
43121
|
+
/**
|
|
43122
|
+
@copydoc IVisibleComponent::GetIsVirtualVisible()
|
|
43123
|
+
*/
|
|
43124
|
+
|
|
43125
|
+
getIsVirtualVisible(): boolean {
|
|
43126
|
+
let _result = Module.ccall(
|
|
43127
|
+
"csp_multiplayer_HotspotSpaceComponent_GetIsVirtualVisibleC_bool",
|
|
43128
|
+
"boolean",
|
|
43129
|
+
["number"],
|
|
43130
|
+
[this.pointer],
|
|
43131
|
+
);
|
|
43132
|
+
|
|
43133
|
+
return _result;
|
|
43134
|
+
}
|
|
43135
|
+
|
|
43136
|
+
/**
|
|
43137
|
+
@copydoc IVisibleComponent::SetIsVirtualVisible()
|
|
43138
|
+
*/
|
|
43139
|
+
|
|
43140
|
+
setIsVirtualVisible(value: boolean): void {
|
|
43141
|
+
Module.ccall(
|
|
43142
|
+
"csp_multiplayer_HotspotSpaceComponent_SetIsVirtualVisible_void_bool",
|
|
43143
|
+
"void",
|
|
43144
|
+
["number", "boolean"],
|
|
43145
|
+
[this.pointer, value],
|
|
43146
|
+
);
|
|
43147
|
+
}
|
|
43148
|
+
|
|
42516
43149
|
delete(): void {
|
|
42517
43150
|
if (this.ownsPointer && !this.disposed) {
|
|
42518
43151
|
Module.ccall(
|
|
@@ -42968,6 +43601,34 @@ export namespace Multiplayer {
|
|
|
42968
43601
|
);
|
|
42969
43602
|
}
|
|
42970
43603
|
|
|
43604
|
+
/**
|
|
43605
|
+
@copydoc IVisibleComponent::GetIsVirtualVisible()
|
|
43606
|
+
*/
|
|
43607
|
+
|
|
43608
|
+
getIsVirtualVisible(): boolean {
|
|
43609
|
+
let _result = Module.ccall(
|
|
43610
|
+
"csp_multiplayer_ImageSpaceComponent_GetIsVirtualVisibleC_bool",
|
|
43611
|
+
"boolean",
|
|
43612
|
+
["number"],
|
|
43613
|
+
[this.pointer],
|
|
43614
|
+
);
|
|
43615
|
+
|
|
43616
|
+
return _result;
|
|
43617
|
+
}
|
|
43618
|
+
|
|
43619
|
+
/**
|
|
43620
|
+
@copydoc IVisibleComponent::SetIsVirtualVisible()
|
|
43621
|
+
*/
|
|
43622
|
+
|
|
43623
|
+
setIsVirtualVisible(value: boolean): void {
|
|
43624
|
+
Module.ccall(
|
|
43625
|
+
"csp_multiplayer_ImageSpaceComponent_SetIsVirtualVisible_void_bool",
|
|
43626
|
+
"void",
|
|
43627
|
+
["number", "boolean"],
|
|
43628
|
+
[this.pointer, value],
|
|
43629
|
+
);
|
|
43630
|
+
}
|
|
43631
|
+
|
|
42971
43632
|
delete(): void {
|
|
42972
43633
|
if (this.ownsPointer && !this.disposed) {
|
|
42973
43634
|
Module.ccall(
|
|
@@ -43489,6 +44150,34 @@ export namespace Multiplayer {
|
|
|
43489
44150
|
);
|
|
43490
44151
|
}
|
|
43491
44152
|
|
|
44153
|
+
/**
|
|
44154
|
+
@copydoc IVisibleComponent::GetIsVirtualVisible()
|
|
44155
|
+
*/
|
|
44156
|
+
|
|
44157
|
+
getIsVirtualVisible(): boolean {
|
|
44158
|
+
let _result = Module.ccall(
|
|
44159
|
+
"csp_multiplayer_LightSpaceComponent_GetIsVirtualVisibleC_bool",
|
|
44160
|
+
"boolean",
|
|
44161
|
+
["number"],
|
|
44162
|
+
[this.pointer],
|
|
44163
|
+
);
|
|
44164
|
+
|
|
44165
|
+
return _result;
|
|
44166
|
+
}
|
|
44167
|
+
|
|
44168
|
+
/**
|
|
44169
|
+
@copydoc IVisibleComponent::SetIsVirtualVisible()
|
|
44170
|
+
*/
|
|
44171
|
+
|
|
44172
|
+
setIsVirtualVisible(value: boolean): void {
|
|
44173
|
+
Module.ccall(
|
|
44174
|
+
"csp_multiplayer_LightSpaceComponent_SetIsVirtualVisible_void_bool",
|
|
44175
|
+
"void",
|
|
44176
|
+
["number", "boolean"],
|
|
44177
|
+
[this.pointer, value],
|
|
44178
|
+
);
|
|
44179
|
+
}
|
|
44180
|
+
|
|
43492
44181
|
/**
|
|
43493
44182
|
@}
|
|
43494
44183
|
* \addtogroup IThirdPartyComponentRef
|
|
@@ -44441,6 +45130,34 @@ export namespace Multiplayer {
|
|
|
44441
45130
|
);
|
|
44442
45131
|
}
|
|
44443
45132
|
|
|
45133
|
+
/**
|
|
45134
|
+
@copydoc IVisibleComponent::GetIsVirtualVisible()
|
|
45135
|
+
*/
|
|
45136
|
+
|
|
45137
|
+
getIsVirtualVisible(): boolean {
|
|
45138
|
+
let _result = Module.ccall(
|
|
45139
|
+
"csp_multiplayer_ScreenSharingSpaceComponent_GetIsVirtualVisibleC_bool",
|
|
45140
|
+
"boolean",
|
|
45141
|
+
["number"],
|
|
45142
|
+
[this.pointer],
|
|
45143
|
+
);
|
|
45144
|
+
|
|
45145
|
+
return _result;
|
|
45146
|
+
}
|
|
45147
|
+
|
|
45148
|
+
/**
|
|
45149
|
+
@copydoc IVisibleComponent::SetIsVirtualVisible()
|
|
45150
|
+
*/
|
|
45151
|
+
|
|
45152
|
+
setIsVirtualVisible(value: boolean): void {
|
|
45153
|
+
Module.ccall(
|
|
45154
|
+
"csp_multiplayer_ScreenSharingSpaceComponent_SetIsVirtualVisible_void_bool",
|
|
45155
|
+
"void",
|
|
45156
|
+
["number", "boolean"],
|
|
45157
|
+
[this.pointer, value],
|
|
45158
|
+
);
|
|
45159
|
+
}
|
|
45160
|
+
|
|
44444
45161
|
/**
|
|
44445
45162
|
@}
|
|
44446
45163
|
* \addtogroup IShadowCasterComponent
|
|
@@ -44783,6 +45500,7 @@ export namespace Multiplayer {
|
|
|
44783
45500
|
Multiplayer.IThirdPartyComponentRef,
|
|
44784
45501
|
Multiplayer.ITransformComponent,
|
|
44785
45502
|
Multiplayer.IVisibleComponent,
|
|
45503
|
+
Multiplayer.IRenderBehaviourComponent,
|
|
44786
45504
|
INativeResource
|
|
44787
45505
|
{
|
|
44788
45506
|
/** @internal */
|
|
@@ -45137,6 +45855,34 @@ export namespace Multiplayer {
|
|
|
45137
45855
|
);
|
|
45138
45856
|
}
|
|
45139
45857
|
|
|
45858
|
+
/**
|
|
45859
|
+
@copydoc IVisibleComponent::GetIsVirtualVisible()
|
|
45860
|
+
*/
|
|
45861
|
+
|
|
45862
|
+
getIsVirtualVisible(): boolean {
|
|
45863
|
+
let _result = Module.ccall(
|
|
45864
|
+
"csp_multiplayer_StaticModelSpaceComponent_GetIsVirtualVisibleC_bool",
|
|
45865
|
+
"boolean",
|
|
45866
|
+
["number"],
|
|
45867
|
+
[this.pointer],
|
|
45868
|
+
);
|
|
45869
|
+
|
|
45870
|
+
return _result;
|
|
45871
|
+
}
|
|
45872
|
+
|
|
45873
|
+
/**
|
|
45874
|
+
@copydoc IVisibleComponent::SetIsVirtualVisible()
|
|
45875
|
+
*/
|
|
45876
|
+
|
|
45877
|
+
setIsVirtualVisible(value: boolean): void {
|
|
45878
|
+
Module.ccall(
|
|
45879
|
+
"csp_multiplayer_StaticModelSpaceComponent_SetIsVirtualVisible_void_bool",
|
|
45880
|
+
"void",
|
|
45881
|
+
["number", "boolean"],
|
|
45882
|
+
[this.pointer, value],
|
|
45883
|
+
);
|
|
45884
|
+
}
|
|
45885
|
+
|
|
45140
45886
|
/**
|
|
45141
45887
|
@}
|
|
45142
45888
|
* \addtogroup IThirdPartyComponentRef
|
|
@@ -45204,6 +45950,65 @@ export namespace Multiplayer {
|
|
|
45204
45950
|
);
|
|
45205
45951
|
}
|
|
45206
45952
|
|
|
45953
|
+
/**
|
|
45954
|
+
@}
|
|
45955
|
+
* \addtogroup IRenderBehaviourComponent
|
|
45956
|
+
@{
|
|
45957
|
+
@copydoc IRenderBehaviourComponent::GetShowAsHoldoutInAR()
|
|
45958
|
+
*/
|
|
45959
|
+
|
|
45960
|
+
getShowAsHoldoutInAR(): boolean {
|
|
45961
|
+
let _result = Module.ccall(
|
|
45962
|
+
"csp_multiplayer_StaticModelSpaceComponent_GetShowAsHoldoutInARC_bool",
|
|
45963
|
+
"boolean",
|
|
45964
|
+
["number"],
|
|
45965
|
+
[this.pointer],
|
|
45966
|
+
);
|
|
45967
|
+
|
|
45968
|
+
return _result;
|
|
45969
|
+
}
|
|
45970
|
+
|
|
45971
|
+
/**
|
|
45972
|
+
@copydoc IRenderBehaviourComponent::SetShowAsHoldoutInAR()
|
|
45973
|
+
*/
|
|
45974
|
+
|
|
45975
|
+
setShowAsHoldoutInAR(value: boolean): void {
|
|
45976
|
+
Module.ccall(
|
|
45977
|
+
"csp_multiplayer_StaticModelSpaceComponent_SetShowAsHoldoutInAR_void_bool",
|
|
45978
|
+
"void",
|
|
45979
|
+
["number", "boolean"],
|
|
45980
|
+
[this.pointer, value],
|
|
45981
|
+
);
|
|
45982
|
+
}
|
|
45983
|
+
|
|
45984
|
+
/**
|
|
45985
|
+
@copydoc IRenderBehaviourComponent::GetShowAsHoldoutInVirtual()
|
|
45986
|
+
*/
|
|
45987
|
+
|
|
45988
|
+
getShowAsHoldoutInVirtual(): boolean {
|
|
45989
|
+
let _result = Module.ccall(
|
|
45990
|
+
"csp_multiplayer_StaticModelSpaceComponent_GetShowAsHoldoutInVirtualC_bool",
|
|
45991
|
+
"boolean",
|
|
45992
|
+
["number"],
|
|
45993
|
+
[this.pointer],
|
|
45994
|
+
);
|
|
45995
|
+
|
|
45996
|
+
return _result;
|
|
45997
|
+
}
|
|
45998
|
+
|
|
45999
|
+
/**
|
|
46000
|
+
@copydoc IRenderBehaviourComponent::SetShowAsHoldoutInVirtual()
|
|
46001
|
+
*/
|
|
46002
|
+
|
|
46003
|
+
setShowAsHoldoutInVirtual(value: boolean): void {
|
|
46004
|
+
Module.ccall(
|
|
46005
|
+
"csp_multiplayer_StaticModelSpaceComponent_SetShowAsHoldoutInVirtual_void_bool",
|
|
46006
|
+
"void",
|
|
46007
|
+
["number", "boolean"],
|
|
46008
|
+
[this.pointer, value],
|
|
46009
|
+
);
|
|
46010
|
+
}
|
|
46011
|
+
|
|
45207
46012
|
delete(): void {
|
|
45208
46013
|
if (this.ownsPointer && !this.disposed) {
|
|
45209
46014
|
Module.ccall(
|
|
@@ -45685,6 +46490,34 @@ export namespace Multiplayer {
|
|
|
45685
46490
|
);
|
|
45686
46491
|
}
|
|
45687
46492
|
|
|
46493
|
+
/**
|
|
46494
|
+
@copydoc IVisibleComponent::GetIsVirtualVisible()
|
|
46495
|
+
*/
|
|
46496
|
+
|
|
46497
|
+
getIsVirtualVisible(): boolean {
|
|
46498
|
+
let _result = Module.ccall(
|
|
46499
|
+
"csp_multiplayer_TextSpaceComponent_GetIsVirtualVisibleC_bool",
|
|
46500
|
+
"boolean",
|
|
46501
|
+
["number"],
|
|
46502
|
+
[this.pointer],
|
|
46503
|
+
);
|
|
46504
|
+
|
|
46505
|
+
return _result;
|
|
46506
|
+
}
|
|
46507
|
+
|
|
46508
|
+
/**
|
|
46509
|
+
@copydoc IVisibleComponent::SetIsVirtualVisible()
|
|
46510
|
+
*/
|
|
46511
|
+
|
|
46512
|
+
setIsVirtualVisible(value: boolean): void {
|
|
46513
|
+
Module.ccall(
|
|
46514
|
+
"csp_multiplayer_TextSpaceComponent_SetIsVirtualVisible_void_bool",
|
|
46515
|
+
"void",
|
|
46516
|
+
["number", "boolean"],
|
|
46517
|
+
[this.pointer, value],
|
|
46518
|
+
);
|
|
46519
|
+
}
|
|
46520
|
+
|
|
45688
46521
|
delete(): void {
|
|
45689
46522
|
if (this.ownsPointer && !this.disposed) {
|
|
45690
46523
|
Module.ccall(
|
|
@@ -46369,6 +47202,34 @@ export namespace Multiplayer {
|
|
|
46369
47202
|
);
|
|
46370
47203
|
}
|
|
46371
47204
|
|
|
47205
|
+
/**
|
|
47206
|
+
@copydoc IVisibleComponent::GetIsVirtualVisible()
|
|
47207
|
+
*/
|
|
47208
|
+
|
|
47209
|
+
getIsVirtualVisible(): boolean {
|
|
47210
|
+
let _result = Module.ccall(
|
|
47211
|
+
"csp_multiplayer_VideoPlayerSpaceComponent_GetIsVirtualVisibleC_bool",
|
|
47212
|
+
"boolean",
|
|
47213
|
+
["number"],
|
|
47214
|
+
[this.pointer],
|
|
47215
|
+
);
|
|
47216
|
+
|
|
47217
|
+
return _result;
|
|
47218
|
+
}
|
|
47219
|
+
|
|
47220
|
+
/**
|
|
47221
|
+
@copydoc IVisibleComponent::SetIsVirtualVisible()
|
|
47222
|
+
*/
|
|
47223
|
+
|
|
47224
|
+
setIsVirtualVisible(value: boolean): void {
|
|
47225
|
+
Module.ccall(
|
|
47226
|
+
"csp_multiplayer_VideoPlayerSpaceComponent_SetIsVirtualVisible_void_bool",
|
|
47227
|
+
"void",
|
|
47228
|
+
["number", "boolean"],
|
|
47229
|
+
[this.pointer, value],
|
|
47230
|
+
);
|
|
47231
|
+
}
|
|
47232
|
+
|
|
46372
47233
|
/**
|
|
46373
47234
|
@}
|
|
46374
47235
|
* \addtogroup IEnableableComponent
|
|
@@ -49624,7 +50485,8 @@ export namespace Systems {
|
|
|
49624
50485
|
}
|
|
49625
50486
|
|
|
49626
50487
|
/**
|
|
49627
|
-
* @description Gets a material using its AssetCollection and Asset Id.
|
|
50488
|
+
* @description Gets a material using its AssetCollection and Asset Id.
|
|
50489
|
+
@details This is slower than GetMaterialFromUri, as it needs to first retrieve the internal AssetCollection and Asset.
|
|
49628
50490
|
* @param assetCollectionId - The asset collection id this material is associated with.
|
|
49629
50491
|
* @param assetId - The asset id this material is associated with.
|
|
49630
50492
|
* @param callback - Callback when asynchronous task finishes.
|
|
@@ -49666,6 +50528,53 @@ export namespace Systems {
|
|
|
49666
50528
|
return _promise;
|
|
49667
50529
|
}
|
|
49668
50530
|
|
|
50531
|
+
/**
|
|
50532
|
+
* @description Gets a material using it's Uri.
|
|
50533
|
+
@details This function does not retrieve the AssetCollection or Asset remotely. It downloads the material directly from the uri.
|
|
50534
|
+
* This should be used in an offline context where The AssetCollection and Asset has been parsed from a SceneData file.
|
|
50535
|
+
* @param assetCollection - The asset collection this material is associated with.
|
|
50536
|
+
* @param assetId - The asset id this material is associated with.
|
|
50537
|
+
* @param uri - The uri this material was uploaded to.
|
|
50538
|
+
* @param callback - Callback when asynchronous task finishes.
|
|
50539
|
+
*/
|
|
50540
|
+
|
|
50541
|
+
async getMaterialFromUri(
|
|
50542
|
+
assetCollection: Systems.AssetCollection,
|
|
50543
|
+
assetId: string,
|
|
50544
|
+
uri: string,
|
|
50545
|
+
): Promise<Systems.MaterialResult> {
|
|
50546
|
+
var _resolve;
|
|
50547
|
+
|
|
50548
|
+
var _promise = new Promise<Systems.MaterialResult>((_r) => {
|
|
50549
|
+
_resolve = _r;
|
|
50550
|
+
});
|
|
50551
|
+
|
|
50552
|
+
var _callbackPtr: number;
|
|
50553
|
+
var _callback = (_stateObject__: number, result) => {
|
|
50554
|
+
var _resultPtr = getNativePointer(result);
|
|
50555
|
+
var _resultInstance = new Systems.MaterialResult(_resultPtr);
|
|
50556
|
+
|
|
50557
|
+
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
50558
|
+
return;
|
|
50559
|
+
}
|
|
50560
|
+
|
|
50561
|
+
_resolve(_resultInstance);
|
|
50562
|
+
|
|
50563
|
+
Module.removeFunction(_callbackPtr);
|
|
50564
|
+
};
|
|
50565
|
+
|
|
50566
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
50567
|
+
|
|
50568
|
+
Module.ccall(
|
|
50569
|
+
"csp_systems_AssetSystem_GetMaterialFromUri_void_AssetCollectionRC_StringRC_StringRC_MaterialResultCallback",
|
|
50570
|
+
"void",
|
|
50571
|
+
["number", "number", "string", "string", "number", "number"],
|
|
50572
|
+
[this.pointer, assetCollection.pointer, assetId, uri, _callbackPtr, 0],
|
|
50573
|
+
);
|
|
50574
|
+
|
|
50575
|
+
return _promise;
|
|
50576
|
+
}
|
|
50577
|
+
|
|
49669
50578
|
/**
|
|
49670
50579
|
* @description Sets a callback for an asset changed event. Triggered when assets, such as textures or meshes, are modified
|
|
49671
50580
|
* @param callback - Callback to receive data for the asset that has been changed.
|
|
@@ -56308,7 +57217,8 @@ export namespace Systems {
|
|
|
56308
57217
|
* The initial load behaviour will differ based on the concrete IRealtimeEngine passed to this function.
|
|
56309
57218
|
* If user does not have permission to discover or enter the space, callback will be called with EResultCode::Failed and
|
|
56310
57219
|
* ERequestFailureReason::UserSpaceAccessDenied
|
|
56311
|
-
* @param spaceId -
|
|
57220
|
+
* @param spaceId - ID of space to enter into. In the case where you are using an offline realtime engine, this will be the
|
|
57221
|
+
* ID of the local space.
|
|
56312
57222
|
* @param realtimeEngine - RealtimeEngine to load the space with. This object belongs to the caller, and does not
|
|
56313
57223
|
* transfer ownership. Once the space is loaded, the caller should be sure to maintain the lifetime of the RealtimeEngine so long
|
|
56314
57224
|
* as the space is active. Once the caller has called csp::systems::SpaceSystem::ExitSpace and received the callback, then they are
|
|
@@ -59816,6 +60726,9 @@ export namespace Systems {
|
|
|
59816
60726
|
* @param userName - Csp::common::string
|
|
59817
60727
|
* @param email - Csp::common::string
|
|
59818
60728
|
* @param password - Csp::common::string
|
|
60729
|
+
* @param createMultiplayerConnection - Whether to create a multiplayer connection. If false, this session will not establish a SignalR
|
|
60730
|
+
* connection to backend services, and thus be unable to receive messages or events. This session will also be unable to enter online spaces via
|
|
60731
|
+
* a csp::multiplayer::OnlineRealtimeEngine. If true, this session will receive events, and may enter both online and offline spaces.
|
|
59819
60732
|
* @param userHasVerifiedAge - An optional bool to specify whether or not the user has verified that they are over 18
|
|
59820
60733
|
* @param callback - Callback to call when a response is received
|
|
59821
60734
|
@pre One of either UserName or Email must not be empty.
|
|
@@ -59826,6 +60739,7 @@ export namespace Systems {
|
|
|
59826
60739
|
userName: string,
|
|
59827
60740
|
email: string,
|
|
59828
60741
|
password: string,
|
|
60742
|
+
createMultiplayerConnection: boolean,
|
|
59829
60743
|
userHasVerifiedAge: boolean | null,
|
|
59830
60744
|
): Promise<Systems.LoginStateResult> {
|
|
59831
60745
|
var _resolve;
|
|
@@ -59861,14 +60775,24 @@ export namespace Systems {
|
|
|
59861
60775
|
}
|
|
59862
60776
|
|
|
59863
60777
|
Module.ccall(
|
|
59864
|
-
"
|
|
60778
|
+
"csp_systems_UserSystem_Login_void_StringRC_StringRC_StringRC_bool_boolRC_LoginStateResultCallback",
|
|
59865
60779
|
"void",
|
|
59866
|
-
[
|
|
60780
|
+
[
|
|
60781
|
+
"number",
|
|
60782
|
+
"string",
|
|
60783
|
+
"string",
|
|
60784
|
+
"string",
|
|
60785
|
+
"boolean",
|
|
60786
|
+
"boolean",
|
|
60787
|
+
"number",
|
|
60788
|
+
"number",
|
|
60789
|
+
],
|
|
59867
60790
|
[
|
|
59868
60791
|
this.pointer,
|
|
59869
60792
|
userName,
|
|
59870
60793
|
email,
|
|
59871
60794
|
password,
|
|
60795
|
+
createMultiplayerConnection,
|
|
59872
60796
|
userHasVerifiedAgePointer,
|
|
59873
60797
|
_callbackPtr,
|
|
59874
60798
|
0,
|
|
@@ -59887,6 +60811,9 @@ export namespace Systems {
|
|
|
59887
60811
|
* The refresh token can be obtained after registering a callback with `SetNewLoginTokenReceivedCallback` and logging in regularly.
|
|
59888
60812
|
* @param userId - User ID for the previous session
|
|
59889
60813
|
* @param refreshToken - Refresh token to be used for refreshing the authentication token
|
|
60814
|
+
* @param createMultiplayerConnection - Whether to create a multiplayer connection. If false, this session will not establish a SignalR
|
|
60815
|
+
* connection to backend services, and thus be unable to receive messages or events. This session will also be unable to enter online spaces via
|
|
60816
|
+
* a csp::multiplayer::OnlineRealtimeEngine. If true, this session will receive events, and may enter both online and offline spaces.
|
|
59890
60817
|
* @param callback - Callback when asynchronous task finishes
|
|
59891
60818
|
@pre UserId must not be empty.
|
|
59892
60819
|
*/
|
|
@@ -59894,6 +60821,7 @@ export namespace Systems {
|
|
|
59894
60821
|
async loginWithRefreshToken(
|
|
59895
60822
|
userId: string,
|
|
59896
60823
|
refreshToken: string,
|
|
60824
|
+
createMultiplayerConnection: boolean,
|
|
59897
60825
|
): Promise<Systems.LoginStateResult> {
|
|
59898
60826
|
var _resolve;
|
|
59899
60827
|
|
|
@@ -59918,10 +60846,17 @@ export namespace Systems {
|
|
|
59918
60846
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
59919
60847
|
|
|
59920
60848
|
Module.ccall(
|
|
59921
|
-
"
|
|
60849
|
+
"csp_systems_UserSystem_LoginWithRefreshToken_void_StringRC_StringRC_bool_LoginStateResultCallback",
|
|
59922
60850
|
"void",
|
|
59923
|
-
["number", "string", "string", "number", "number"],
|
|
59924
|
-
[
|
|
60851
|
+
["number", "string", "string", "boolean", "number", "number"],
|
|
60852
|
+
[
|
|
60853
|
+
this.pointer,
|
|
60854
|
+
userId,
|
|
60855
|
+
refreshToken,
|
|
60856
|
+
createMultiplayerConnection,
|
|
60857
|
+
_callbackPtr,
|
|
60858
|
+
0,
|
|
60859
|
+
],
|
|
59925
60860
|
);
|
|
59926
60861
|
|
|
59927
60862
|
return _promise;
|
|
@@ -59929,11 +60864,15 @@ export namespace Systems {
|
|
|
59929
60864
|
|
|
59930
60865
|
/**
|
|
59931
60866
|
* @description Log in to Magnopus Connected Services as a guest.
|
|
60867
|
+
* @param createMultiplayerConnection - Whether to create a multiplayer connection. If false, this session will not establish a SignalR
|
|
60868
|
+
* connection to backend services, and thus be unable to receive messages or events. This session will also be unable to enter online spaces via
|
|
60869
|
+
* a csp::multiplayer::OnlineRealtimeEngine. If true, this session will receive events, and may enter both online and offline spaces.
|
|
59932
60870
|
* @param userHasVerifiedAge - An optional bool to specify whether or not the user has verified that they are over 18
|
|
59933
60871
|
* @param callback - Callback to call when a response is received
|
|
59934
60872
|
*/
|
|
59935
60873
|
|
|
59936
60874
|
async loginAsGuest(
|
|
60875
|
+
createMultiplayerConnection: boolean,
|
|
59937
60876
|
userHasVerifiedAge: boolean | null,
|
|
59938
60877
|
): Promise<Systems.LoginStateResult> {
|
|
59939
60878
|
var _resolve;
|
|
@@ -59969,10 +60908,16 @@ export namespace Systems {
|
|
|
59969
60908
|
}
|
|
59970
60909
|
|
|
59971
60910
|
Module.ccall(
|
|
59972
|
-
"
|
|
60911
|
+
"csp_systems_UserSystem_LoginAsGuest_void_bool_boolRC_LoginStateResultCallback",
|
|
59973
60912
|
"void",
|
|
59974
|
-
["number", "boolean", "number", "number"],
|
|
59975
|
-
[
|
|
60913
|
+
["number", "boolean", "boolean", "number", "number"],
|
|
60914
|
+
[
|
|
60915
|
+
this.pointer,
|
|
60916
|
+
createMultiplayerConnection,
|
|
60917
|
+
userHasVerifiedAgePointer,
|
|
60918
|
+
_callbackPtr,
|
|
60919
|
+
0,
|
|
60920
|
+
],
|
|
59976
60921
|
);
|
|
59977
60922
|
|
|
59978
60923
|
if (userHasVerifiedAgePointer) {
|
|
@@ -60060,6 +61005,9 @@ export namespace Systems {
|
|
|
60060
61005
|
* Note: The Authentication Provider and the Redirect URL you've passed in the first step will be used now
|
|
60061
61006
|
* @param thirdPartyToken - The authentication token returned by the Provider
|
|
60062
61007
|
* @param thirdPartyStateId - The state Id returned by the Provider
|
|
61008
|
+
* @param createMultiplayerConnection - Whether to create a multiplayer connection. If false, this session will not establish a SignalR
|
|
61009
|
+
* connection to backend services, and thus be unable to receive messages or events. This session will also be unable to enter online spaces via
|
|
61010
|
+
* a csp::multiplayer::OnlineRealtimeEngine. If true, this session will receive events, and may enter both online and offline spaces.
|
|
60063
61011
|
* @param userHasVerifiedAge - An optional bool to specify whether or not the user has verified that they are over 18
|
|
60064
61012
|
* @param callback - Callback that contains the result of the magnopus connected services authentication operation
|
|
60065
61013
|
*/
|
|
@@ -60067,6 +61015,7 @@ export namespace Systems {
|
|
|
60067
61015
|
async loginToThirdPartyAuthenticationProvider(
|
|
60068
61016
|
thirdPartyToken: string,
|
|
60069
61017
|
thirdPartyStateId: string,
|
|
61018
|
+
createMultiplayerConnection: boolean,
|
|
60070
61019
|
userHasVerifiedAge: boolean | null,
|
|
60071
61020
|
): Promise<Systems.LoginStateResult> {
|
|
60072
61021
|
var _resolve;
|
|
@@ -60102,13 +61051,22 @@ export namespace Systems {
|
|
|
60102
61051
|
}
|
|
60103
61052
|
|
|
60104
61053
|
Module.ccall(
|
|
60105
|
-
"
|
|
61054
|
+
"csp_systems_UserSystem_LoginToThirdPartyAuthenticationProvider_void_StringRC_StringRC_bool_boolRC_LoginStateResultCallback",
|
|
60106
61055
|
"void",
|
|
60107
|
-
[
|
|
61056
|
+
[
|
|
61057
|
+
"number",
|
|
61058
|
+
"string",
|
|
61059
|
+
"string",
|
|
61060
|
+
"boolean",
|
|
61061
|
+
"boolean",
|
|
61062
|
+
"number",
|
|
61063
|
+
"number",
|
|
61064
|
+
],
|
|
60108
61065
|
[
|
|
60109
61066
|
this.pointer,
|
|
60110
61067
|
thirdPartyToken,
|
|
60111
61068
|
thirdPartyStateId,
|
|
61069
|
+
createMultiplayerConnection,
|
|
60112
61070
|
userHasVerifiedAgePointer,
|
|
60113
61071
|
_callbackPtr,
|
|
60114
61072
|
0,
|
|
@@ -60993,24 +61951,6 @@ export namespace Common {
|
|
|
60993
61951
|
return _inst;
|
|
60994
61952
|
}
|
|
60995
61953
|
|
|
60996
|
-
static ofcsp_multiplayer_SpaceEntity(): Array<Multiplayer.SpaceEntity> {
|
|
60997
|
-
var _ret = Module._malloc(8);
|
|
60998
|
-
Module.ccall(
|
|
60999
|
-
"csp_common_Array_Ctor_csp_multiplayer_SpaceEntity",
|
|
61000
|
-
"void",
|
|
61001
|
-
["number"],
|
|
61002
|
-
[_ret],
|
|
61003
|
-
);
|
|
61004
|
-
var _inst = new Array<Multiplayer.SpaceEntity>(
|
|
61005
|
-
getNativePointer(_ret),
|
|
61006
|
-
csp_multiplayer_SpaceEntityFactory,
|
|
61007
|
-
"csp_multiplayer_SpaceEntity",
|
|
61008
|
-
);
|
|
61009
|
-
Module._free(_ret);
|
|
61010
|
-
|
|
61011
|
-
return _inst;
|
|
61012
|
-
}
|
|
61013
|
-
|
|
61014
61954
|
static ofcsp_multiplayer_NetworkEventRegistration(): Array<Multiplayer.NetworkEventRegistration> {
|
|
61015
61955
|
var _ret = Module._malloc(8);
|
|
61016
61956
|
Module.ccall(
|
|
@@ -61101,6 +62041,24 @@ export namespace Common {
|
|
|
61101
62041
|
return _inst;
|
|
61102
62042
|
}
|
|
61103
62043
|
|
|
62044
|
+
static ofcsp_systems_Anchor(): Array<Systems.Anchor> {
|
|
62045
|
+
var _ret = Module._malloc(8);
|
|
62046
|
+
Module.ccall(
|
|
62047
|
+
"csp_common_Array_Ctor_csp_systems_Anchor",
|
|
62048
|
+
"void",
|
|
62049
|
+
["number"],
|
|
62050
|
+
[_ret],
|
|
62051
|
+
);
|
|
62052
|
+
var _inst = new Array<Systems.Anchor>(
|
|
62053
|
+
getNativePointer(_ret),
|
|
62054
|
+
csp_systems_AnchorFactory,
|
|
62055
|
+
"csp_systems_Anchor",
|
|
62056
|
+
);
|
|
62057
|
+
Module._free(_ret);
|
|
62058
|
+
|
|
62059
|
+
return _inst;
|
|
62060
|
+
}
|
|
62061
|
+
|
|
61104
62062
|
static ofcsp_systems_VersionMetadata(): Array<Systems.VersionMetadata> {
|
|
61105
62063
|
var _ret = Module._malloc(8);
|
|
61106
62064
|
Module.ccall(
|
|
@@ -61564,24 +62522,6 @@ export namespace Common {
|
|
|
61564
62522
|
return _inst;
|
|
61565
62523
|
}
|
|
61566
62524
|
|
|
61567
|
-
static ofcsp_systems_Anchor(): Array<Systems.Anchor> {
|
|
61568
|
-
var _ret = Module._malloc(8);
|
|
61569
|
-
Module.ccall(
|
|
61570
|
-
"csp_common_Array_Ctor_csp_systems_Anchor",
|
|
61571
|
-
"void",
|
|
61572
|
-
["number"],
|
|
61573
|
-
[_ret],
|
|
61574
|
-
);
|
|
61575
|
-
var _inst = new Array<Systems.Anchor>(
|
|
61576
|
-
getNativePointer(_ret),
|
|
61577
|
-
csp_systems_AnchorFactory,
|
|
61578
|
-
"csp_systems_Anchor",
|
|
61579
|
-
);
|
|
61580
|
-
Module._free(_ret);
|
|
61581
|
-
|
|
61582
|
-
return _inst;
|
|
61583
|
-
}
|
|
61584
|
-
|
|
61585
62525
|
static ofcsp_systems_AnchorResolution(): Array<Systems.AnchorResolution> {
|
|
61586
62526
|
var _ret = Module._malloc(8);
|
|
61587
62527
|
Module.ccall(
|
|
@@ -61794,26 +62734,6 @@ export namespace Common {
|
|
|
61794
62734
|
return _inst;
|
|
61795
62735
|
}
|
|
61796
62736
|
|
|
61797
|
-
static ofcsp_multiplayer_SpaceEntity_number(
|
|
61798
|
-
size: number,
|
|
61799
|
-
): Array<Multiplayer.SpaceEntity> {
|
|
61800
|
-
var _ret = Module._malloc(8);
|
|
61801
|
-
Module.ccall(
|
|
61802
|
-
"csp_common_Array_Conv_size_tC_csp_multiplayer_SpaceEntity",
|
|
61803
|
-
"void",
|
|
61804
|
-
["number", "number"],
|
|
61805
|
-
[_ret, size],
|
|
61806
|
-
);
|
|
61807
|
-
var _inst = new Array<Multiplayer.SpaceEntity>(
|
|
61808
|
-
getNativePointer(_ret),
|
|
61809
|
-
csp_multiplayer_SpaceEntityFactory,
|
|
61810
|
-
"csp_multiplayer_SpaceEntity",
|
|
61811
|
-
);
|
|
61812
|
-
Module._free(_ret);
|
|
61813
|
-
|
|
61814
|
-
return _inst;
|
|
61815
|
-
}
|
|
61816
|
-
|
|
61817
62737
|
static ofcsp_multiplayer_NetworkEventRegistration_number(
|
|
61818
62738
|
size: number,
|
|
61819
62739
|
): Array<Multiplayer.NetworkEventRegistration> {
|
|
@@ -61912,6 +62832,24 @@ export namespace Common {
|
|
|
61912
62832
|
return _inst;
|
|
61913
62833
|
}
|
|
61914
62834
|
|
|
62835
|
+
static ofcsp_systems_Anchor_number(size: number): Array<Systems.Anchor> {
|
|
62836
|
+
var _ret = Module._malloc(8);
|
|
62837
|
+
Module.ccall(
|
|
62838
|
+
"csp_common_Array_Conv_size_tC_csp_systems_Anchor",
|
|
62839
|
+
"void",
|
|
62840
|
+
["number", "number"],
|
|
62841
|
+
[_ret, size],
|
|
62842
|
+
);
|
|
62843
|
+
var _inst = new Array<Systems.Anchor>(
|
|
62844
|
+
getNativePointer(_ret),
|
|
62845
|
+
csp_systems_AnchorFactory,
|
|
62846
|
+
"csp_systems_Anchor",
|
|
62847
|
+
);
|
|
62848
|
+
Module._free(_ret);
|
|
62849
|
+
|
|
62850
|
+
return _inst;
|
|
62851
|
+
}
|
|
62852
|
+
|
|
61915
62853
|
static ofcsp_systems_VersionMetadata_number(
|
|
61916
62854
|
size: number,
|
|
61917
62855
|
): Array<Systems.VersionMetadata> {
|
|
@@ -62426,24 +63364,6 @@ export namespace Common {
|
|
|
62426
63364
|
return _inst;
|
|
62427
63365
|
}
|
|
62428
63366
|
|
|
62429
|
-
static ofcsp_systems_Anchor_number(size: number): Array<Systems.Anchor> {
|
|
62430
|
-
var _ret = Module._malloc(8);
|
|
62431
|
-
Module.ccall(
|
|
62432
|
-
"csp_common_Array_Conv_size_tC_csp_systems_Anchor",
|
|
62433
|
-
"void",
|
|
62434
|
-
["number", "number"],
|
|
62435
|
-
[_ret, size],
|
|
62436
|
-
);
|
|
62437
|
-
var _inst = new Array<Systems.Anchor>(
|
|
62438
|
-
getNativePointer(_ret),
|
|
62439
|
-
csp_systems_AnchorFactory,
|
|
62440
|
-
"csp_systems_Anchor",
|
|
62441
|
-
);
|
|
62442
|
-
Module._free(_ret);
|
|
62443
|
-
|
|
62444
|
-
return _inst;
|
|
62445
|
-
}
|
|
62446
|
-
|
|
62447
63367
|
static ofcsp_systems_AnchorResolution_number(
|
|
62448
63368
|
size: number,
|
|
62449
63369
|
): Array<Systems.AnchorResolution> {
|