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
|
@@ -345,21 +345,21 @@ function csp_multiplayer_MultiplayerHubMethodFactory(nativePointer) {
|
|
|
345
345
|
}
|
|
346
346
|
ProxyClassFactories["csp_multiplayer_MultiplayerHubMethod"] =
|
|
347
347
|
csp_multiplayer_MultiplayerHubMethodFactory;
|
|
348
|
-
function
|
|
348
|
+
function csp_multiplayer_SpaceEntityUpdateFlagsFactory(nativePointer) {
|
|
349
349
|
return nativePointer.pointer;
|
|
350
350
|
}
|
|
351
|
-
ProxyClassFactories["
|
|
352
|
-
|
|
351
|
+
ProxyClassFactories["csp_multiplayer_SpaceEntityUpdateFlags"] =
|
|
352
|
+
csp_multiplayer_SpaceEntityUpdateFlagsFactory;
|
|
353
353
|
function csp_multiplayer_ComponentUpdateTypeFactory(nativePointer) {
|
|
354
354
|
return nativePointer.pointer;
|
|
355
355
|
}
|
|
356
356
|
ProxyClassFactories["csp_multiplayer_ComponentUpdateType"] =
|
|
357
357
|
csp_multiplayer_ComponentUpdateTypeFactory;
|
|
358
|
-
function
|
|
358
|
+
function csp_multiplayer_SpaceEntityTypeFactory(nativePointer) {
|
|
359
359
|
return nativePointer.pointer;
|
|
360
360
|
}
|
|
361
|
-
ProxyClassFactories["
|
|
362
|
-
|
|
361
|
+
ProxyClassFactories["csp_multiplayer_SpaceEntityType"] =
|
|
362
|
+
csp_multiplayer_SpaceEntityTypeFactory;
|
|
363
363
|
function csp_multiplayer_LockTypeFactory(nativePointer) {
|
|
364
364
|
return nativePointer.pointer;
|
|
365
365
|
}
|
|
@@ -855,21 +855,6 @@ function csp_systems_ResultBaseFactory(nativePointer) {
|
|
|
855
855
|
return new Systems.ResultBase(nativePointer);
|
|
856
856
|
}
|
|
857
857
|
ProxyClassFactories["csp_systems_ResultBase"] = csp_systems_ResultBaseFactory;
|
|
858
|
-
function csp_systems_IAnalyticsProviderFactory(nativePointer) {
|
|
859
|
-
return new Systems.IAnalyticsProvider(nativePointer);
|
|
860
|
-
}
|
|
861
|
-
ProxyClassFactories["csp_systems_IAnalyticsProvider"] =
|
|
862
|
-
csp_systems_IAnalyticsProviderFactory;
|
|
863
|
-
function csp_systems_AnalyticsSystemFactory(nativePointer) {
|
|
864
|
-
return new Systems.AnalyticsSystem(nativePointer);
|
|
865
|
-
}
|
|
866
|
-
ProxyClassFactories["csp_systems_AnalyticsSystem"] =
|
|
867
|
-
csp_systems_AnalyticsSystemFactory;
|
|
868
|
-
function csp_systems_AnalyticsEventFactory(nativePointer) {
|
|
869
|
-
return new Systems.AnalyticsEvent(nativePointer);
|
|
870
|
-
}
|
|
871
|
-
ProxyClassFactories["csp_systems_AnalyticsEvent"] =
|
|
872
|
-
csp_systems_AnalyticsEventFactory;
|
|
873
858
|
function csp_systems_AssetFactory(nativePointer) {
|
|
874
859
|
return new Systems.Asset(nativePointer);
|
|
875
860
|
}
|
|
@@ -1104,6 +1089,11 @@ function csp_common_SequenceChangedNetworkEventDataFactory(nativePointer) {
|
|
|
1104
1089
|
}
|
|
1105
1090
|
ProxyClassFactories["csp_common_SequenceChangedNetworkEventData"] =
|
|
1106
1091
|
csp_common_SequenceChangedNetworkEventDataFactory;
|
|
1092
|
+
function csp_multiplayer_OfflineRealtimeEngineFactory(nativePointer) {
|
|
1093
|
+
return new Multiplayer.OfflineRealtimeEngine(nativePointer);
|
|
1094
|
+
}
|
|
1095
|
+
ProxyClassFactories["csp_multiplayer_OfflineRealtimeEngine"] =
|
|
1096
|
+
csp_multiplayer_OfflineRealtimeEngineFactory;
|
|
1107
1097
|
function csp_multiplayer_OnlineRealtimeEngineFactory(nativePointer) {
|
|
1108
1098
|
return new Multiplayer.OnlineRealtimeEngine(nativePointer);
|
|
1109
1099
|
}
|
|
@@ -1687,11 +1677,6 @@ function csp_common_Array_csp_systems_SpaceUserRoleFactory(nativePointer) {
|
|
|
1687
1677
|
}
|
|
1688
1678
|
ProxyClassFactories["csp_common_Array_csp_systems_SpaceUserRole"] =
|
|
1689
1679
|
csp_common_Array_csp_systems_SpaceUserRoleFactory;
|
|
1690
|
-
function csp_common_Array_csp_multiplayer_SpaceEntityFactory(nativePointer) {
|
|
1691
|
-
return new Common.Array(nativePointer, csp_multiplayer_SpaceEntityFactory, "csp_multiplayer_SpaceEntity");
|
|
1692
|
-
}
|
|
1693
|
-
ProxyClassFactories["csp_common_Array_csp_multiplayer_SpaceEntity"] =
|
|
1694
|
-
csp_common_Array_csp_multiplayer_SpaceEntityFactory;
|
|
1695
1680
|
function csp_common_Array_csp_multiplayer_NetworkEventRegistrationFactory(nativePointer) {
|
|
1696
1681
|
return new Common.Array(nativePointer, csp_multiplayer_NetworkEventRegistrationFactory, "csp_multiplayer_NetworkEventRegistration");
|
|
1697
1682
|
}
|
|
@@ -1716,6 +1701,11 @@ function csp_common_Array_csp_systems_SequenceFactory(nativePointer) {
|
|
|
1716
1701
|
}
|
|
1717
1702
|
ProxyClassFactories["csp_common_Array_csp_systems_Sequence"] =
|
|
1718
1703
|
csp_common_Array_csp_systems_SequenceFactory;
|
|
1704
|
+
function csp_common_Array_csp_systems_AnchorFactory(nativePointer) {
|
|
1705
|
+
return new Common.Array(nativePointer, csp_systems_AnchorFactory, "csp_systems_Anchor");
|
|
1706
|
+
}
|
|
1707
|
+
ProxyClassFactories["csp_common_Array_csp_systems_Anchor"] =
|
|
1708
|
+
csp_common_Array_csp_systems_AnchorFactory;
|
|
1719
1709
|
function csp_common_Array_csp_systems_VersionMetadataFactory(nativePointer) {
|
|
1720
1710
|
return new Common.Array(nativePointer, csp_systems_VersionMetadataFactory, "csp_systems_VersionMetadata");
|
|
1721
1711
|
}
|
|
@@ -1845,11 +1835,6 @@ function csp_common_Array_csp_systems_UserRoleInfoFactory(nativePointer) {
|
|
|
1845
1835
|
}
|
|
1846
1836
|
ProxyClassFactories["csp_common_Array_csp_systems_UserRoleInfo"] =
|
|
1847
1837
|
csp_common_Array_csp_systems_UserRoleInfoFactory;
|
|
1848
|
-
function csp_common_Array_csp_systems_AnchorFactory(nativePointer) {
|
|
1849
|
-
return new Common.Array(nativePointer, csp_systems_AnchorFactory, "csp_systems_Anchor");
|
|
1850
|
-
}
|
|
1851
|
-
ProxyClassFactories["csp_common_Array_csp_systems_Anchor"] =
|
|
1852
|
-
csp_common_Array_csp_systems_AnchorFactory;
|
|
1853
1838
|
function csp_common_Array_csp_systems_AnchorResolutionFactory(nativePointer) {
|
|
1854
1839
|
return new Common.Array(nativePointer, csp_systems_AnchorResolutionFactory, "csp_systems_AnchorResolution");
|
|
1855
1840
|
}
|
|
@@ -2314,15 +2299,23 @@ export var Systems;
|
|
|
2314
2299
|
})(Multiplayer || (Multiplayer = {}));
|
|
2315
2300
|
(function (Multiplayer) {
|
|
2316
2301
|
/**
|
|
2317
|
-
* @description Enum used to specify
|
|
2318
|
-
*
|
|
2319
|
-
*
|
|
2302
|
+
* @description Enum used to specify what part of a SpaceEntity was updated when deserialising.
|
|
2303
|
+
* Use this to determine which parts of an entity to copy values from when an update occurs.
|
|
2304
|
+
* It is a bitwise flag enum, so values are additive, the value may represent several flags.
|
|
2320
2305
|
*/
|
|
2321
|
-
let
|
|
2322
|
-
(function (
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2306
|
+
let SpaceEntityUpdateFlags;
|
|
2307
|
+
(function (SpaceEntityUpdateFlags) {
|
|
2308
|
+
SpaceEntityUpdateFlags[SpaceEntityUpdateFlags["UPDATE_FLAGS_NAME"] = 1] = "UPDATE_FLAGS_NAME";
|
|
2309
|
+
SpaceEntityUpdateFlags[SpaceEntityUpdateFlags["UPDATE_FLAGS_POSITION"] = 2] = "UPDATE_FLAGS_POSITION";
|
|
2310
|
+
SpaceEntityUpdateFlags[SpaceEntityUpdateFlags["UPDATE_FLAGS_ROTATION"] = 4] = "UPDATE_FLAGS_ROTATION";
|
|
2311
|
+
SpaceEntityUpdateFlags[SpaceEntityUpdateFlags["UPDATE_FLAGS_SCALE"] = 8] = "UPDATE_FLAGS_SCALE";
|
|
2312
|
+
SpaceEntityUpdateFlags[SpaceEntityUpdateFlags["UPDATE_FLAGS_COMPONENTS"] = 16] = "UPDATE_FLAGS_COMPONENTS";
|
|
2313
|
+
SpaceEntityUpdateFlags[SpaceEntityUpdateFlags["UPDATE_FLAGS_SELECTION_ID"] = 32] = "UPDATE_FLAGS_SELECTION_ID";
|
|
2314
|
+
SpaceEntityUpdateFlags[SpaceEntityUpdateFlags["UPDATE_FLAGS_THIRD_PARTY_REF"] = 64] = "UPDATE_FLAGS_THIRD_PARTY_REF";
|
|
2315
|
+
SpaceEntityUpdateFlags[SpaceEntityUpdateFlags["UPDATE_FLAGS_THIRD_PARTY_PLATFORM"] = 128] = "UPDATE_FLAGS_THIRD_PARTY_PLATFORM";
|
|
2316
|
+
SpaceEntityUpdateFlags[SpaceEntityUpdateFlags["UPDATE_FLAGS_PARENT"] = 256] = "UPDATE_FLAGS_PARENT";
|
|
2317
|
+
SpaceEntityUpdateFlags[SpaceEntityUpdateFlags["UPDATE_FLAGS_LOCK_TYPE"] = 512] = "UPDATE_FLAGS_LOCK_TYPE";
|
|
2318
|
+
})(SpaceEntityUpdateFlags = Multiplayer.SpaceEntityUpdateFlags || (Multiplayer.SpaceEntityUpdateFlags = {}));
|
|
2326
2319
|
})(Multiplayer || (Multiplayer = {}));
|
|
2327
2320
|
(function (Multiplayer) {
|
|
2328
2321
|
/**
|
|
@@ -2343,23 +2336,15 @@ export var Systems;
|
|
|
2343
2336
|
})(Multiplayer || (Multiplayer = {}));
|
|
2344
2337
|
(function (Multiplayer) {
|
|
2345
2338
|
/**
|
|
2346
|
-
* @description Enum used to specify
|
|
2347
|
-
*
|
|
2348
|
-
*
|
|
2339
|
+
* @description Enum used to specify the the type of a space entity
|
|
2340
|
+
* /// Note that this specifically starts from 1 as 0 is reserved for internal purposes.
|
|
2341
|
+
* Any additions should not use 0.
|
|
2349
2342
|
*/
|
|
2350
|
-
let
|
|
2351
|
-
(function (
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
SpaceEntityUpdateFlags[SpaceEntityUpdateFlags["UPDATE_FLAGS_SCALE"] = 8] = "UPDATE_FLAGS_SCALE";
|
|
2356
|
-
SpaceEntityUpdateFlags[SpaceEntityUpdateFlags["UPDATE_FLAGS_COMPONENTS"] = 16] = "UPDATE_FLAGS_COMPONENTS";
|
|
2357
|
-
SpaceEntityUpdateFlags[SpaceEntityUpdateFlags["UPDATE_FLAGS_SELECTION_ID"] = 32] = "UPDATE_FLAGS_SELECTION_ID";
|
|
2358
|
-
SpaceEntityUpdateFlags[SpaceEntityUpdateFlags["UPDATE_FLAGS_THIRD_PARTY_REF"] = 64] = "UPDATE_FLAGS_THIRD_PARTY_REF";
|
|
2359
|
-
SpaceEntityUpdateFlags[SpaceEntityUpdateFlags["UPDATE_FLAGS_THIRD_PARTY_PLATFORM"] = 128] = "UPDATE_FLAGS_THIRD_PARTY_PLATFORM";
|
|
2360
|
-
SpaceEntityUpdateFlags[SpaceEntityUpdateFlags["UPDATE_FLAGS_PARENT"] = 256] = "UPDATE_FLAGS_PARENT";
|
|
2361
|
-
SpaceEntityUpdateFlags[SpaceEntityUpdateFlags["UPDATE_FLAGS_LOCK_TYPE"] = 512] = "UPDATE_FLAGS_LOCK_TYPE";
|
|
2362
|
-
})(SpaceEntityUpdateFlags = Multiplayer.SpaceEntityUpdateFlags || (Multiplayer.SpaceEntityUpdateFlags = {}));
|
|
2343
|
+
let SpaceEntityType;
|
|
2344
|
+
(function (SpaceEntityType) {
|
|
2345
|
+
SpaceEntityType[SpaceEntityType["Avatar"] = 1] = "Avatar";
|
|
2346
|
+
SpaceEntityType[SpaceEntityType["Object"] = 2] = "Object";
|
|
2347
|
+
})(SpaceEntityType = Multiplayer.SpaceEntityType || (Multiplayer.SpaceEntityType = {}));
|
|
2363
2348
|
})(Multiplayer || (Multiplayer = {}));
|
|
2364
2349
|
(function (Multiplayer) {
|
|
2365
2350
|
/**
|
|
@@ -2405,7 +2390,10 @@ export var Systems;
|
|
|
2405
2390
|
AnimatedModelPropertyKeys[AnimatedModelPropertyKeys["ThirdPartyComponentRef"] = 12] = "ThirdPartyComponentRef";
|
|
2406
2391
|
AnimatedModelPropertyKeys[AnimatedModelPropertyKeys["IsShadowCaster"] = 13] = "IsShadowCaster";
|
|
2407
2392
|
AnimatedModelPropertyKeys[AnimatedModelPropertyKeys["MaterialOverrides"] = 14] = "MaterialOverrides";
|
|
2408
|
-
AnimatedModelPropertyKeys[AnimatedModelPropertyKeys["
|
|
2393
|
+
AnimatedModelPropertyKeys[AnimatedModelPropertyKeys["IsVirtualVisible"] = 15] = "IsVirtualVisible";
|
|
2394
|
+
AnimatedModelPropertyKeys[AnimatedModelPropertyKeys["ShowAsHoldoutInAR"] = 16] = "ShowAsHoldoutInAR";
|
|
2395
|
+
AnimatedModelPropertyKeys[AnimatedModelPropertyKeys["ShowAsHoldoutInVirtual"] = 17] = "ShowAsHoldoutInVirtual";
|
|
2396
|
+
AnimatedModelPropertyKeys[AnimatedModelPropertyKeys["Num"] = 18] = "Num";
|
|
2409
2397
|
})(AnimatedModelPropertyKeys = Multiplayer.AnimatedModelPropertyKeys || (Multiplayer.AnimatedModelPropertyKeys = {}));
|
|
2410
2398
|
})(Multiplayer || (Multiplayer = {}));
|
|
2411
2399
|
(function (Multiplayer) {
|
|
@@ -2485,7 +2473,8 @@ export var Systems;
|
|
|
2485
2473
|
AvatarComponentPropertyKeys[AvatarComponentPropertyKeys["LocomotionModel"] = 14] = "LocomotionModel";
|
|
2486
2474
|
AvatarComponentPropertyKeys[AvatarComponentPropertyKeys["IsVisible"] = 15] = "IsVisible";
|
|
2487
2475
|
AvatarComponentPropertyKeys[AvatarComponentPropertyKeys["IsARVisible"] = 16] = "IsARVisible";
|
|
2488
|
-
AvatarComponentPropertyKeys[AvatarComponentPropertyKeys["
|
|
2476
|
+
AvatarComponentPropertyKeys[AvatarComponentPropertyKeys["IsVirtualVisible"] = 17] = "IsVirtualVisible";
|
|
2477
|
+
AvatarComponentPropertyKeys[AvatarComponentPropertyKeys["Num"] = 18] = "Num";
|
|
2489
2478
|
})(AvatarComponentPropertyKeys = Multiplayer.AvatarComponentPropertyKeys || (Multiplayer.AvatarComponentPropertyKeys = {}));
|
|
2490
2479
|
})(Multiplayer || (Multiplayer = {}));
|
|
2491
2480
|
(function (Multiplayer) {
|
|
@@ -2512,7 +2501,8 @@ export var Systems;
|
|
|
2512
2501
|
ButtonPropertyKeys[ButtonPropertyKeys["IsVisible"] = 7] = "IsVisible";
|
|
2513
2502
|
ButtonPropertyKeys[ButtonPropertyKeys["IsEnabled"] = 8] = "IsEnabled";
|
|
2514
2503
|
ButtonPropertyKeys[ButtonPropertyKeys["IsARVisible"] = 9] = "IsARVisible";
|
|
2515
|
-
ButtonPropertyKeys[ButtonPropertyKeys["
|
|
2504
|
+
ButtonPropertyKeys[ButtonPropertyKeys["IsVirtualVisible"] = 10] = "IsVirtualVisible";
|
|
2505
|
+
ButtonPropertyKeys[ButtonPropertyKeys["Num"] = 11] = "Num";
|
|
2516
2506
|
})(ButtonPropertyKeys = Multiplayer.ButtonPropertyKeys || (Multiplayer.ButtonPropertyKeys = {}));
|
|
2517
2507
|
})(Multiplayer || (Multiplayer = {}));
|
|
2518
2508
|
(function (Multiplayer) {
|
|
@@ -2643,7 +2633,8 @@ export var Systems;
|
|
|
2643
2633
|
ExternalLinkPropertyKeys[ExternalLinkPropertyKeys["IsEnabled"] = 6] = "IsEnabled";
|
|
2644
2634
|
ExternalLinkPropertyKeys[ExternalLinkPropertyKeys["IsVisible"] = 7] = "IsVisible";
|
|
2645
2635
|
ExternalLinkPropertyKeys[ExternalLinkPropertyKeys["IsARVisible"] = 8] = "IsARVisible";
|
|
2646
|
-
ExternalLinkPropertyKeys[ExternalLinkPropertyKeys["
|
|
2636
|
+
ExternalLinkPropertyKeys[ExternalLinkPropertyKeys["IsVirtualVisible"] = 9] = "IsVirtualVisible";
|
|
2637
|
+
ExternalLinkPropertyKeys[ExternalLinkPropertyKeys["Num"] = 10] = "Num";
|
|
2647
2638
|
})(ExternalLinkPropertyKeys = Multiplayer.ExternalLinkPropertyKeys || (Multiplayer.ExternalLinkPropertyKeys = {}));
|
|
2648
2639
|
})(Multiplayer || (Multiplayer = {}));
|
|
2649
2640
|
(function (Multiplayer) {
|
|
@@ -2660,7 +2651,8 @@ export var Systems;
|
|
|
2660
2651
|
FiducialMarkerPropertyKeys[FiducialMarkerPropertyKeys["Scale"] = 5] = "Scale";
|
|
2661
2652
|
FiducialMarkerPropertyKeys[FiducialMarkerPropertyKeys["IsVisible"] = 6] = "IsVisible";
|
|
2662
2653
|
FiducialMarkerPropertyKeys[FiducialMarkerPropertyKeys["IsARVisible"] = 7] = "IsARVisible";
|
|
2663
|
-
FiducialMarkerPropertyKeys[FiducialMarkerPropertyKeys["
|
|
2654
|
+
FiducialMarkerPropertyKeys[FiducialMarkerPropertyKeys["IsVirtualVisible"] = 8] = "IsVirtualVisible";
|
|
2655
|
+
FiducialMarkerPropertyKeys[FiducialMarkerPropertyKeys["Num"] = 9] = "Num";
|
|
2664
2656
|
})(FiducialMarkerPropertyKeys = Multiplayer.FiducialMarkerPropertyKeys || (Multiplayer.FiducialMarkerPropertyKeys = {}));
|
|
2665
2657
|
})(Multiplayer || (Multiplayer = {}));
|
|
2666
2658
|
(function (Multiplayer) {
|
|
@@ -2683,7 +2675,8 @@ export var Systems;
|
|
|
2683
2675
|
FogPropertyKeys[FogPropertyKeys["IsVisible"] = 11] = "IsVisible";
|
|
2684
2676
|
FogPropertyKeys[FogPropertyKeys["IsARVisible"] = 12] = "IsARVisible";
|
|
2685
2677
|
FogPropertyKeys[FogPropertyKeys["ThirdPartyComponentRef"] = 13] = "ThirdPartyComponentRef";
|
|
2686
|
-
FogPropertyKeys[FogPropertyKeys["
|
|
2678
|
+
FogPropertyKeys[FogPropertyKeys["IsVirtualVisible"] = 14] = "IsVirtualVisible";
|
|
2679
|
+
FogPropertyKeys[FogPropertyKeys["Num"] = 15] = "Num";
|
|
2687
2680
|
})(FogPropertyKeys = Multiplayer.FogPropertyKeys || (Multiplayer.FogPropertyKeys = {}));
|
|
2688
2681
|
})(Multiplayer || (Multiplayer = {}));
|
|
2689
2682
|
(function (Multiplayer) {
|
|
@@ -2713,7 +2706,8 @@ export var Systems;
|
|
|
2713
2706
|
GaussianSplatPropertyKeys[GaussianSplatPropertyKeys["IsARVisible"] = 7] = "IsARVisible";
|
|
2714
2707
|
GaussianSplatPropertyKeys[GaussianSplatPropertyKeys["IsShadowCaster"] = 8] = "IsShadowCaster";
|
|
2715
2708
|
GaussianSplatPropertyKeys[GaussianSplatPropertyKeys["Tint"] = 9] = "Tint";
|
|
2716
|
-
GaussianSplatPropertyKeys[GaussianSplatPropertyKeys["
|
|
2709
|
+
GaussianSplatPropertyKeys[GaussianSplatPropertyKeys["IsVirtualVisible"] = 10] = "IsVirtualVisible";
|
|
2710
|
+
GaussianSplatPropertyKeys[GaussianSplatPropertyKeys["Num"] = 11] = "Num";
|
|
2717
2711
|
})(GaussianSplatPropertyKeys = Multiplayer.GaussianSplatPropertyKeys || (Multiplayer.GaussianSplatPropertyKeys = {}));
|
|
2718
2712
|
})(Multiplayer || (Multiplayer = {}));
|
|
2719
2713
|
(function (Multiplayer) {
|
|
@@ -2729,7 +2723,8 @@ export var Systems;
|
|
|
2729
2723
|
HotspotPropertyKeys[HotspotPropertyKeys["IsSpawnPoint"] = 4] = "IsSpawnPoint";
|
|
2730
2724
|
HotspotPropertyKeys[HotspotPropertyKeys["IsVisible"] = 5] = "IsVisible";
|
|
2731
2725
|
HotspotPropertyKeys[HotspotPropertyKeys["IsARVisible"] = 6] = "IsARVisible";
|
|
2732
|
-
HotspotPropertyKeys[HotspotPropertyKeys["
|
|
2726
|
+
HotspotPropertyKeys[HotspotPropertyKeys["IsVirtualVisible"] = 7] = "IsVirtualVisible";
|
|
2727
|
+
HotspotPropertyKeys[HotspotPropertyKeys["Num"] = 8] = "Num";
|
|
2733
2728
|
})(HotspotPropertyKeys = Multiplayer.HotspotPropertyKeys || (Multiplayer.HotspotPropertyKeys = {}));
|
|
2734
2729
|
})(Multiplayer || (Multiplayer = {}));
|
|
2735
2730
|
(function (Multiplayer) {
|
|
@@ -2749,7 +2744,8 @@ export var Systems;
|
|
|
2749
2744
|
ImagePropertyKeys[ImagePropertyKeys["DisplayMode"] = 8] = "DisplayMode";
|
|
2750
2745
|
ImagePropertyKeys[ImagePropertyKeys["IsARVisible"] = 9] = "IsARVisible";
|
|
2751
2746
|
ImagePropertyKeys[ImagePropertyKeys["IsEmissive"] = 10] = "IsEmissive";
|
|
2752
|
-
ImagePropertyKeys[ImagePropertyKeys["
|
|
2747
|
+
ImagePropertyKeys[ImagePropertyKeys["IsVirtualVisible"] = 11] = "IsVirtualVisible";
|
|
2748
|
+
ImagePropertyKeys[ImagePropertyKeys["Num"] = 12] = "Num";
|
|
2753
2749
|
})(ImagePropertyKeys = Multiplayer.ImagePropertyKeys || (Multiplayer.ImagePropertyKeys = {}));
|
|
2754
2750
|
})(Multiplayer || (Multiplayer = {}));
|
|
2755
2751
|
(function (Multiplayer) {
|
|
@@ -2820,7 +2816,8 @@ export var Systems;
|
|
|
2820
2816
|
LightPropertyKeys[LightPropertyKeys["IsARVisible"] = 13] = "IsARVisible";
|
|
2821
2817
|
LightPropertyKeys[LightPropertyKeys["ThirdPartyComponentRef"] = 14] = "ThirdPartyComponentRef";
|
|
2822
2818
|
LightPropertyKeys[LightPropertyKeys["LightShadowType"] = 15] = "LightShadowType";
|
|
2823
|
-
LightPropertyKeys[LightPropertyKeys["
|
|
2819
|
+
LightPropertyKeys[LightPropertyKeys["IsVirtualVisible"] = 16] = "IsVirtualVisible";
|
|
2820
|
+
LightPropertyKeys[LightPropertyKeys["Num"] = 17] = "Num";
|
|
2824
2821
|
})(LightPropertyKeys = Multiplayer.LightPropertyKeys || (Multiplayer.LightPropertyKeys = {}));
|
|
2825
2822
|
})(Multiplayer || (Multiplayer = {}));
|
|
2826
2823
|
(function (Multiplayer) {
|
|
@@ -2883,7 +2880,8 @@ export var Systems;
|
|
|
2883
2880
|
ScreenSharingPropertyKeys[ScreenSharingPropertyKeys["DefaultImageCollectionId"] = 7] = "DefaultImageCollectionId";
|
|
2884
2881
|
ScreenSharingPropertyKeys[ScreenSharingPropertyKeys["DefaultImageAssetId"] = 8] = "DefaultImageAssetId";
|
|
2885
2882
|
ScreenSharingPropertyKeys[ScreenSharingPropertyKeys["AttenuationRadius"] = 9] = "AttenuationRadius";
|
|
2886
|
-
ScreenSharingPropertyKeys[ScreenSharingPropertyKeys["
|
|
2883
|
+
ScreenSharingPropertyKeys[ScreenSharingPropertyKeys["IsVirtualVisible"] = 10] = "IsVirtualVisible";
|
|
2884
|
+
ScreenSharingPropertyKeys[ScreenSharingPropertyKeys["Num"] = 11] = "Num";
|
|
2887
2885
|
})(ScreenSharingPropertyKeys = Multiplayer.ScreenSharingPropertyKeys || (Multiplayer.ScreenSharingPropertyKeys = {}));
|
|
2888
2886
|
})(Multiplayer || (Multiplayer = {}));
|
|
2889
2887
|
(function (Multiplayer) {
|
|
@@ -2936,7 +2934,10 @@ export var Systems;
|
|
|
2936
2934
|
StaticModelPropertyKeys[StaticModelPropertyKeys["ThirdPartyComponentRef"] = 8] = "ThirdPartyComponentRef";
|
|
2937
2935
|
StaticModelPropertyKeys[StaticModelPropertyKeys["IsShadowCaster"] = 9] = "IsShadowCaster";
|
|
2938
2936
|
StaticModelPropertyKeys[StaticModelPropertyKeys["MaterialOverrides"] = 10] = "MaterialOverrides";
|
|
2939
|
-
StaticModelPropertyKeys[StaticModelPropertyKeys["
|
|
2937
|
+
StaticModelPropertyKeys[StaticModelPropertyKeys["IsVirtualVisible"] = 11] = "IsVirtualVisible";
|
|
2938
|
+
StaticModelPropertyKeys[StaticModelPropertyKeys["ShowAsHoldoutInAR"] = 12] = "ShowAsHoldoutInAR";
|
|
2939
|
+
StaticModelPropertyKeys[StaticModelPropertyKeys["ShowAsHoldoutInVirtual"] = 13] = "ShowAsHoldoutInVirtual";
|
|
2940
|
+
StaticModelPropertyKeys[StaticModelPropertyKeys["Num"] = 14] = "Num";
|
|
2940
2941
|
})(StaticModelPropertyKeys = Multiplayer.StaticModelPropertyKeys || (Multiplayer.StaticModelPropertyKeys = {}));
|
|
2941
2942
|
})(Multiplayer || (Multiplayer = {}));
|
|
2942
2943
|
(function (Multiplayer) {
|
|
@@ -2957,7 +2958,8 @@ export var Systems;
|
|
|
2957
2958
|
TextPropertyKeys[TextPropertyKeys["BillboardMode"] = 9] = "BillboardMode";
|
|
2958
2959
|
TextPropertyKeys[TextPropertyKeys["IsVisible"] = 10] = "IsVisible";
|
|
2959
2960
|
TextPropertyKeys[TextPropertyKeys["IsARVisible"] = 11] = "IsARVisible";
|
|
2960
|
-
TextPropertyKeys[TextPropertyKeys["
|
|
2961
|
+
TextPropertyKeys[TextPropertyKeys["IsVirtualVisible"] = 12] = "IsVirtualVisible";
|
|
2962
|
+
TextPropertyKeys[TextPropertyKeys["Num"] = 13] = "Num";
|
|
2961
2963
|
})(TextPropertyKeys = Multiplayer.TextPropertyKeys || (Multiplayer.TextPropertyKeys = {}));
|
|
2962
2964
|
})(Multiplayer || (Multiplayer = {}));
|
|
2963
2965
|
(function (Multiplayer) {
|
|
@@ -3021,7 +3023,8 @@ export var Systems;
|
|
|
3021
3023
|
VideoPlayerPropertyKeys[VideoPlayerPropertyKeys["IsARVisible"] = 17] = "IsARVisible";
|
|
3022
3024
|
VideoPlayerPropertyKeys[VideoPlayerPropertyKeys["MeshComponentId"] = 18] = "MeshComponentId";
|
|
3023
3025
|
VideoPlayerPropertyKeys[VideoPlayerPropertyKeys["IsEnabled"] = 19] = "IsEnabled";
|
|
3024
|
-
VideoPlayerPropertyKeys[VideoPlayerPropertyKeys["
|
|
3026
|
+
VideoPlayerPropertyKeys[VideoPlayerPropertyKeys["IsVirtualVisible"] = 20] = "IsVirtualVisible";
|
|
3027
|
+
VideoPlayerPropertyKeys[VideoPlayerPropertyKeys["Num"] = 21] = "Num";
|
|
3025
3028
|
})(VideoPlayerPropertyKeys = Multiplayer.VideoPlayerPropertyKeys || (Multiplayer.VideoPlayerPropertyKeys = {}));
|
|
3026
3029
|
})(Multiplayer || (Multiplayer = {}));
|
|
3027
3030
|
(function (Multiplayer) {
|
|
@@ -3474,12 +3477,13 @@ export class CSPFoundation {
|
|
|
3474
3477
|
* @description Sets the endpoints for the various services needed for foundation, passes over the client header information and initialises the
|
|
3475
3478
|
* systems required for foundation to operate.
|
|
3476
3479
|
* @param endpointRootURI - Root URI for service endpoints
|
|
3477
|
-
* @param tenant - Tenant for Magnopus Services. Data is not shared between tenants so clients using separate tenants
|
|
3478
|
-
* interact with each other.
|
|
3480
|
+
* @param tenant - Tenant for Magnopus Services. Data is not shared between tenants so clients using separate tenants
|
|
3481
|
+
* cannot interact with each other.
|
|
3482
|
+
* @param clientUserAgentHeader - The Client Info data
|
|
3479
3483
|
* @return True for successful initialisation.
|
|
3480
3484
|
*/
|
|
3481
|
-
static initialise(endpointRootURI, tenant) {
|
|
3482
|
-
let _result = Module.ccall("
|
|
3485
|
+
static initialise(endpointRootURI, tenant, clientUserAgentHeader) {
|
|
3486
|
+
let _result = Module.ccall("csp_CSPFoundation_Initialise_bool_StringRC_StringRC_ClientUserAgentRC", "boolean", ["string", "string", "number"], [endpointRootURI, tenant, clientUserAgentHeader.pointer]);
|
|
3483
3487
|
return _result;
|
|
3484
3488
|
}
|
|
3485
3489
|
/**
|
|
@@ -3577,14 +3581,6 @@ export class CSPFoundation {
|
|
|
3577
3581
|
Module._free(_ret);
|
|
3578
3582
|
return _nPtr;
|
|
3579
3583
|
}
|
|
3580
|
-
/**
|
|
3581
|
-
* @description Sets a class containing all relevant Client info currently set for Foundation.
|
|
3582
|
-
* Used internally to generate ClientUserAgentString.
|
|
3583
|
-
* @param the - Client Info class with current Client Info data
|
|
3584
|
-
*/
|
|
3585
|
-
static setClientUserAgentInfo(clientUserAgentHeader) {
|
|
3586
|
-
Module.ccall("csp_CSPFoundation_SetClientUserAgentInfo_void_ClientUserAgentRC", "void", ["number"], [clientUserAgentHeader.pointer]);
|
|
3587
|
-
}
|
|
3588
3584
|
/**
|
|
3589
3585
|
* @description Gets a class containing all relevant Client info currently set for Foundation.
|
|
3590
3586
|
* @return The Client Info class with current Client Info data
|
|
@@ -3610,7 +3606,7 @@ export class CSPFoundation {
|
|
|
3610
3606
|
}
|
|
3611
3607
|
/**
|
|
3612
3608
|
* @description Gets the tenant that foundation is currently using, based on what was provided during initialisation.
|
|
3613
|
-
* @return
|
|
3609
|
+
* @return Const csp::common::string&
|
|
3614
3610
|
*/
|
|
3615
3611
|
static getTenant() {
|
|
3616
3612
|
let _result = Module.ccall("csp_CSPFoundation_GetTenant_StringRC", "number", [], []);
|
|
@@ -10256,9 +10252,6 @@ export class CSPFoundation {
|
|
|
10256
10252
|
}
|
|
10257
10253
|
return _promise;
|
|
10258
10254
|
}
|
|
10259
|
-
addEntity(entityToAdd) {
|
|
10260
|
-
Module.ccall("csp_common_IRealtimeEngine_AddEntity_void_SpaceEntityP", "void", ["number", "number"], [this.pointer, entityToAdd.pointer]);
|
|
10261
|
-
}
|
|
10262
10255
|
/**
|
|
10263
10256
|
* @description Destroy the specified entity.
|
|
10264
10257
|
* @param entity - A non-owning pointer to the entity to be destroyed.
|
|
@@ -10278,21 +10271,6 @@ export class CSPFoundation {
|
|
|
10278
10271
|
Module.ccall("csp_common_IRealtimeEngine_DestroyEntity_void_SpaceEntityP_CallbackHandler", "void", ["number", "number", "number", "number"], [this.pointer, entity.pointer, _callbackPtr, 0]);
|
|
10279
10272
|
return _promise;
|
|
10280
10273
|
}
|
|
10281
|
-
/**
|
|
10282
|
-
* @description Sets a callback to be executed when an entity is fully created.
|
|
10283
|
-
* /// Only one EntityCreatedCallback may be registered, calling this function again will override whatever was previously set.
|
|
10284
|
-
* 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
|
|
10285
|
-
* override or remove this callback.
|
|
10286
|
-
* /// @param Callback csp::multiplayer::EntityCreatedCallback : the callback to execute.
|
|
10287
|
-
*/
|
|
10288
|
-
setEntityCreatedCallback(callback) {
|
|
10289
|
-
var _callback = (_stateObject__, arg1) => {
|
|
10290
|
-
var _arg1 = new Multiplayer.SpaceEntity(getNativePointer(arg1));
|
|
10291
|
-
callback(_arg1);
|
|
10292
|
-
};
|
|
10293
|
-
var _callbackPtr = Module.addFunction(_callback, "vii");
|
|
10294
|
-
Module.ccall("csp_common_IRealtimeEngine_SetEntityCreatedCallback_void_EntityCreatedCallback", "void", ["number", "number", "number"], [this.pointer, _callbackPtr, 0]);
|
|
10295
|
-
}
|
|
10296
10274
|
/**
|
|
10297
10275
|
* @description Finds the first found SpaceEntity of a matching Name.
|
|
10298
10276
|
* @param name - The name to search.
|
|
@@ -10388,6 +10366,18 @@ export class CSPFoundation {
|
|
|
10388
10366
|
Module._free(_ret);
|
|
10389
10367
|
return _nPtr;
|
|
10390
10368
|
}
|
|
10369
|
+
/**
|
|
10370
|
+
* @description Return all the entities currently known to the realtime engine.
|
|
10371
|
+
@warning This list may be extremely large.
|
|
10372
|
+
* @return A non-owning pointer to a List of non-owning pointers to all entities.
|
|
10373
|
+
*/
|
|
10374
|
+
getAllEntities() {
|
|
10375
|
+
var _ret = Module._malloc(8);
|
|
10376
|
+
Module.ccall("csp_common_IRealtimeEngine_GetAllEntitiesC_ListPC", "void", ["number", "number"], [_ret, this.pointer]);
|
|
10377
|
+
var _nPtr = new Common.List(getNativePointer(_ret), csp_multiplayer_SpaceEntityFactory, "csp_multiplayer_SpaceEntity");
|
|
10378
|
+
Module._free(_ret);
|
|
10379
|
+
return _nPtr;
|
|
10380
|
+
}
|
|
10391
10381
|
/**
|
|
10392
10382
|
* @description Get the number of total entities in the system.
|
|
10393
10383
|
* @return The total number of entities.
|
|
@@ -10452,20 +10442,6 @@ export class CSPFoundation {
|
|
|
10452
10442
|
var _callbackPtr = Module.addFunction(_callback, "vii");
|
|
10453
10443
|
Module.ccall("csp_common_IRealtimeEngine_SetEntityFetchCompleteCallback_void_EntityFetchCompleteCallback", "void", ["number", "number", "number"], [this.pointer, _callbackPtr, 0]);
|
|
10454
10444
|
}
|
|
10455
|
-
/**
|
|
10456
|
-
* @description Adds an entity to a list of entities to be updated when ProcessPendingEntityOperations is called.
|
|
10457
|
-
* From a client perspective, ProcessPendingEntityOperations is normally called via the CSPFoundation::Tick method.
|
|
10458
|
-
* @param entity - A non-owning pointer to the entity to be marked.
|
|
10459
|
-
*/
|
|
10460
|
-
markEntityForUpdate(entity) {
|
|
10461
|
-
Module.ccall("csp_common_IRealtimeEngine_MarkEntityForUpdate_void_SpaceEntityP", "void", ["number", "number"], [this.pointer, entity.pointer]);
|
|
10462
|
-
}
|
|
10463
|
-
/**
|
|
10464
|
-
* @description Applies any pending changes to entities that have been marked for update.
|
|
10465
|
-
*/
|
|
10466
|
-
processPendingEntityOperations() {
|
|
10467
|
-
Module.ccall("csp_common_IRealtimeEngine_ProcessPendingEntityOperations_void", "void", ["number"], [this.pointer]);
|
|
10468
|
-
}
|
|
10469
10445
|
}
|
|
10470
10446
|
Common.IRealtimeEngine = IRealtimeEngine;
|
|
10471
10447
|
})(Common || (Common = {}));
|
|
@@ -10617,6 +10593,12 @@ export class CSPFoundation {
|
|
|
10617
10593
|
constructor(pointer) {
|
|
10618
10594
|
super(pointer);
|
|
10619
10595
|
}
|
|
10596
|
+
static create_type_logSystem_parent(type, logSystem, parent) {
|
|
10597
|
+
var _ptr = Module._malloc(8);
|
|
10598
|
+
Module.ccall("csp_multiplayer_ComponentBase_Ctor_ComponentType_LogSystemP_SpaceEntityP", "void", ["number", "number", "number", "number"], [_ptr, type, logSystem.pointer, parent.pointer]);
|
|
10599
|
+
var _nPtr = getNativePointer(_ptr);
|
|
10600
|
+
return new ComponentBase(_nPtr);
|
|
10601
|
+
}
|
|
10620
10602
|
/**
|
|
10621
10603
|
* @description Virtual destructor for the component.
|
|
10622
10604
|
*/
|
|
@@ -10633,7 +10615,7 @@ export class CSPFoundation {
|
|
|
10633
10615
|
* /// @return The ID.
|
|
10634
10616
|
*/
|
|
10635
10617
|
getId() {
|
|
10636
|
-
let _result = Module.ccall("
|
|
10618
|
+
let _result = Module.ccall("csp_multiplayer_ComponentBase_GetIdC_uint16_t", "number", ["number"], [this.pointer]);
|
|
10637
10619
|
const _unfixedValue = _result;
|
|
10638
10620
|
let _fixedValue = _unfixedValue < 0 ? _unfixedValue + 2 ** 16 : _unfixedValue;
|
|
10639
10621
|
_result = _fixedValue;
|
|
@@ -10737,19 +10719,16 @@ export class CSPFoundation {
|
|
|
10737
10719
|
/**
|
|
10738
10720
|
* @description Constructor for CSPSceneDescription by deserializing a SceneDescription json file.
|
|
10739
10721
|
* @param sceneDescriptionJson - The SceneDescription to deserialize.
|
|
10740
|
-
* @param entitySystem - The OnlineRealtimeEngine for this session.
|
|
10741
|
-
* @param logSystem - The OnlineRealtimeEngine for this session.
|
|
10742
|
-
* @param remoteScriptRunner - The ScriptRunner for this session.
|
|
10743
10722
|
*/
|
|
10744
|
-
static
|
|
10723
|
+
static create_sceneDescriptionJson(sceneDescriptionJson) {
|
|
10745
10724
|
var _ptr = Module._malloc(8);
|
|
10746
|
-
Module.ccall("
|
|
10747
|
-
|
|
10748
|
-
|
|
10749
|
-
|
|
10750
|
-
|
|
10751
|
-
|
|
10752
|
-
]);
|
|
10725
|
+
Module.ccall("csp_multiplayer_CSPSceneDescription_Ctor_StringRC", "void", ["number", "string"], [_ptr, sceneDescriptionJson]);
|
|
10726
|
+
var _nPtr = getNativePointer(_ptr);
|
|
10727
|
+
return new CSPSceneDescription(_nPtr);
|
|
10728
|
+
}
|
|
10729
|
+
static create() {
|
|
10730
|
+
var _ptr = Module._malloc(8);
|
|
10731
|
+
Module.ccall("csp_multiplayer_CSPSceneDescription_Ctor", "void", ["number"], [_ptr]);
|
|
10753
10732
|
var _nPtr = getNativePointer(_ptr);
|
|
10754
10733
|
return new CSPSceneDescription(_nPtr);
|
|
10755
10734
|
}
|
|
@@ -10759,15 +10738,6 @@ export class CSPFoundation {
|
|
|
10759
10738
|
this.disposed = true;
|
|
10760
10739
|
}
|
|
10761
10740
|
}
|
|
10762
|
-
get entities() {
|
|
10763
|
-
const _ptr = Module._malloc(8);
|
|
10764
|
-
Module.ccall("csp_multiplayer_CSPSceneDescription__Get_Entities", "void", ["number", "number"], [_ptr, this.pointer]);
|
|
10765
|
-
const _nPtr = getNativePointer(_ptr);
|
|
10766
|
-
return new Common.Array(_nPtr, csp_multiplayer_SpaceEntityFactory, "csp_multiplayer_SpaceEntity");
|
|
10767
|
-
}
|
|
10768
|
-
set entities(value) {
|
|
10769
|
-
Module.ccall("csp_multiplayer_CSPSceneDescription__Set_Entities", "void", ["number", "number"], [this.pointer, value.pointer]);
|
|
10770
|
-
}
|
|
10771
10741
|
}
|
|
10772
10742
|
Multiplayer.CSPSceneDescription = CSPSceneDescription;
|
|
10773
10743
|
})(Multiplayer || (Multiplayer = {}));
|
|
@@ -11131,7 +11101,7 @@ export class CSPFoundation {
|
|
|
11131
11101
|
*/
|
|
11132
11102
|
static create_entitySystem_scriptRunner_logSystem(entitySystem, scriptRunner, logSystem) {
|
|
11133
11103
|
var _ptr = Module._malloc(8);
|
|
11134
|
-
Module.ccall("
|
|
11104
|
+
Module.ccall("csp_multiplayer_SpaceEntity_Ctor_IRealtimeEngineP_IJSScriptRunnerR_LogSystemP", "void", ["number", "number", "number", "number"], [_ptr, entitySystem.pointer, scriptRunner.pointer, logSystem.pointer]);
|
|
11135
11105
|
var _nPtr = getNativePointer(_ptr);
|
|
11136
11106
|
return new SpaceEntity(_nPtr);
|
|
11137
11107
|
}
|
|
@@ -11145,7 +11115,7 @@ export class CSPFoundation {
|
|
|
11145
11115
|
}
|
|
11146
11116
|
}
|
|
11147
11117
|
/**
|
|
11148
|
-
* @description Get the ID of this SpaceEntity, this
|
|
11118
|
+
* @description Get the ID of this SpaceEntity, this should be unique to each Entity.
|
|
11149
11119
|
* @return The uint64_t ID of the SpaceEntity.
|
|
11150
11120
|
*/
|
|
11151
11121
|
getId() {
|
|
@@ -11181,9 +11151,11 @@ export class CSPFoundation {
|
|
|
11181
11151
|
/**
|
|
11182
11152
|
* @description Set the name of the SpaceEntity.
|
|
11183
11153
|
* @param value - The name to set.
|
|
11154
|
+
* @return Whether a new value was set, may fail if not modifiable, or if a dirty property is already set to this value.
|
|
11184
11155
|
*/
|
|
11185
11156
|
setName(value) {
|
|
11186
|
-
Module.ccall("
|
|
11157
|
+
let _result = Module.ccall("csp_multiplayer_SpaceEntity_SetName_bool_StringRC", "boolean", ["number", "string"], [this.pointer, value]);
|
|
11158
|
+
return _result;
|
|
11187
11159
|
}
|
|
11188
11160
|
/**
|
|
11189
11161
|
* @description Get the SpaceTransform of the SpaceEntity.
|
|
@@ -11232,9 +11204,11 @@ export class CSPFoundation {
|
|
|
11232
11204
|
/**
|
|
11233
11205
|
* @description Set the position of the SpaceEntity, in world space.
|
|
11234
11206
|
* @param value - The position to set.
|
|
11207
|
+
* @return Whether a new value was set, may fail if not modifiable, or if a dirty property is already set to this value.
|
|
11235
11208
|
*/
|
|
11236
11209
|
setPosition(value) {
|
|
11237
|
-
Module.ccall("
|
|
11210
|
+
let _result = Module.ccall("csp_multiplayer_SpaceEntity_SetPosition_bool_Vector3RC", "boolean", ["number", "number"], [this.pointer, value.pointer]);
|
|
11211
|
+
return _result;
|
|
11238
11212
|
}
|
|
11239
11213
|
/**
|
|
11240
11214
|
* @description Get the rotation of the SpaceEntity.
|
|
@@ -11261,9 +11235,11 @@ export class CSPFoundation {
|
|
|
11261
11235
|
/**
|
|
11262
11236
|
* @description Set the rotation of the SpaceEntity.
|
|
11263
11237
|
* @param value - The rotation to set.
|
|
11238
|
+
* @return Whether a new value was set, may fail if not modifiable, or if a dirty property is already set to this value.
|
|
11264
11239
|
*/
|
|
11265
11240
|
setRotation(value) {
|
|
11266
|
-
Module.ccall("
|
|
11241
|
+
let _result = Module.ccall("csp_multiplayer_SpaceEntity_SetRotation_bool_Vector4RC", "boolean", ["number", "number"], [this.pointer, value.pointer]);
|
|
11242
|
+
return _result;
|
|
11267
11243
|
}
|
|
11268
11244
|
/**
|
|
11269
11245
|
* @description Get the scale of the SpaceEntity.
|
|
@@ -11290,9 +11266,11 @@ export class CSPFoundation {
|
|
|
11290
11266
|
/**
|
|
11291
11267
|
* @description Set the scale of the SpaceEntity.
|
|
11292
11268
|
* @param value - The scale to set.
|
|
11269
|
+
* @return Whether a new value was set, may fail if not modifiable, or if a dirty property is already set to this value.
|
|
11293
11270
|
*/
|
|
11294
11271
|
setScale(value) {
|
|
11295
|
-
Module.ccall("
|
|
11272
|
+
let _result = Module.ccall("csp_multiplayer_SpaceEntity_SetScale_bool_Vector3RC", "boolean", ["number", "number"], [this.pointer, value.pointer]);
|
|
11273
|
+
return _result;
|
|
11296
11274
|
}
|
|
11297
11275
|
/**
|
|
11298
11276
|
* @description Get whether the space is transient or persistent.
|
|
@@ -11316,9 +11294,11 @@ export class CSPFoundation {
|
|
|
11316
11294
|
/**
|
|
11317
11295
|
* @description Set the third party reference for this entity
|
|
11318
11296
|
* @param inThirdPartyRef - The third party reference to set.
|
|
11297
|
+
* @return Whether a new value was set, may fail if not modifiable, or if a dirty property is already set to this value.
|
|
11319
11298
|
*/
|
|
11320
11299
|
setThirdPartyRef(thirdPartyRef) {
|
|
11321
|
-
Module.ccall("
|
|
11300
|
+
let _result = Module.ccall("csp_multiplayer_SpaceEntity_SetThirdPartyRef_bool_StringRC", "boolean", ["number", "string"], [this.pointer, thirdPartyRef]);
|
|
11301
|
+
return _result;
|
|
11322
11302
|
}
|
|
11323
11303
|
/**
|
|
11324
11304
|
* @description Get the third party platform type of this entity.
|
|
@@ -11331,9 +11311,11 @@ export class CSPFoundation {
|
|
|
11331
11311
|
/**
|
|
11332
11312
|
* @description Set third party platform type for this entity.
|
|
11333
11313
|
* @param inThirdPartyPlatformType - The third party platform type to set.
|
|
11314
|
+
* @return Whether a new value was set, may fail if not modifiable, or if a dirty property is already set to this value.
|
|
11334
11315
|
*/
|
|
11335
11316
|
setThirdPartyPlatformType(thirdPartyPlatformType) {
|
|
11336
|
-
Module.ccall("
|
|
11317
|
+
let _result = Module.ccall("csp_multiplayer_SpaceEntity_SetThirdPartyPlatformType_bool_EThirdPartyPlatformC", "boolean", ["number", "number"], [this.pointer, thirdPartyPlatformType]);
|
|
11318
|
+
return _result;
|
|
11337
11319
|
}
|
|
11338
11320
|
/**
|
|
11339
11321
|
* @description Get the type of the Entity.
|
|
@@ -11362,7 +11344,7 @@ export class CSPFoundation {
|
|
|
11362
11344
|
}
|
|
11363
11345
|
/**
|
|
11364
11346
|
* @description Gets the parent of this entity
|
|
11365
|
-
* @return
|
|
11347
|
+
* @return Non-owning pointer to the parent of this entity. May be null.
|
|
11366
11348
|
*/
|
|
11367
11349
|
getParentEntity() {
|
|
11368
11350
|
var _ret = Module._malloc(8);
|
|
@@ -11405,12 +11387,6 @@ export class CSPFoundation {
|
|
|
11405
11387
|
Module._free(_ret);
|
|
11406
11388
|
return _nPtr;
|
|
11407
11389
|
}
|
|
11408
|
-
/**
|
|
11409
|
-
* @description Queues an update which will be executed on next Tick() or ProcessPendingEntityOperations(). Not a blocking or async function.
|
|
11410
|
-
*/
|
|
11411
|
-
queueUpdate() {
|
|
11412
|
-
Module.ccall("csp_multiplayer_SpaceEntity_QueueUpdate_void", "void", ["number"], [this.pointer]);
|
|
11413
|
-
}
|
|
11414
11390
|
/**
|
|
11415
11391
|
* @description Sends a patch message with a flag to destroy the entity.
|
|
11416
11392
|
* /// Will remove the entity from endpoints and signal remote clients to delete the entity.
|
|
@@ -11470,6 +11446,17 @@ export class CSPFoundation {
|
|
|
11470
11446
|
var _callbackPtr = Module.addFunction(_callback, "vii");
|
|
11471
11447
|
Module.ccall("csp_multiplayer_SpaceEntity_SetPatchSentCallback_void_CallbackHandler", "void", ["number", "number", "number"], [this.pointer, _callbackPtr, 0]);
|
|
11472
11448
|
}
|
|
11449
|
+
/**
|
|
11450
|
+
* @description Get a pointer to the first component on the entity of specified type
|
|
11451
|
+
* @return Non-owning pointer to component, nullptr if component of type cannot be found
|
|
11452
|
+
*/
|
|
11453
|
+
findFirstComponentOfType(type) {
|
|
11454
|
+
var _ret = Module._malloc(8);
|
|
11455
|
+
Module.ccall("csp_multiplayer_SpaceEntity_FindFirstComponentOfTypeC_ComponentBaseP_ComponentType", "void", ["number", "number", "number"], [_ret, this.pointer, type]);
|
|
11456
|
+
var _nPtr = new Multiplayer.ComponentBase(getNativePointer(_ret));
|
|
11457
|
+
Module._free(_ret);
|
|
11458
|
+
return _nPtr;
|
|
11459
|
+
}
|
|
11473
11460
|
/**
|
|
11474
11461
|
* @description Get the map of components on this SpaceEntity.
|
|
11475
11462
|
* @return A map of components indexed with the component ID.
|
|
@@ -11514,12 +11501,15 @@ export class CSPFoundation {
|
|
|
11514
11501
|
* the best we can do is add a blank component in its place, which clients decide to
|
|
11515
11502
|
* ignore when retrieving data.
|
|
11516
11503
|
* /// @param Key uint16_t : The component ID of the component to remove.
|
|
11504
|
+
* @return Whether a component was removed, may fail if not modifiable, there is no component of provided key, or if a dirty component is
|
|
11505
|
+
* already set to this deletion.
|
|
11517
11506
|
*/
|
|
11518
11507
|
removeComponent(key) {
|
|
11519
11508
|
assert(Number.isInteger(key));
|
|
11520
11509
|
assert(key >= Limits.UINT16_MIN);
|
|
11521
11510
|
assert(key <= Limits.UINT16_MAX);
|
|
11522
|
-
Module.ccall("
|
|
11511
|
+
let _result = Module.ccall("csp_multiplayer_SpaceEntity_RemoveComponent_bool_uint16_t", "boolean", ["number", "number"], [this.pointer, key]);
|
|
11512
|
+
return _result;
|
|
11523
11513
|
}
|
|
11524
11514
|
/**
|
|
11525
11515
|
* @description Gets the script associated with the space entity.
|
|
@@ -11585,9 +11575,11 @@ export class CSPFoundation {
|
|
|
11585
11575
|
* A CSP error will be sent to the LogSystem if this condition is not met.
|
|
11586
11576
|
@post This internally sets the lock type as a dirty property.
|
|
11587
11577
|
* This entity should now be replicated, to process the change.
|
|
11578
|
+
* @return Whether setting the lock was successful.
|
|
11588
11579
|
*/
|
|
11589
11580
|
lock() {
|
|
11590
|
-
Module.ccall("
|
|
11581
|
+
let _result = Module.ccall("csp_multiplayer_SpaceEntity_Lock_bool", "boolean", ["number"], [this.pointer]);
|
|
11582
|
+
return _result;
|
|
11591
11583
|
}
|
|
11592
11584
|
/**
|
|
11593
11585
|
* @description Unlocks the entity if the entity is locked
|
|
@@ -11595,9 +11587,19 @@ export class CSPFoundation {
|
|
|
11595
11587
|
* A CSP error will be sent to the LogSystem if this condition is not met.
|
|
11596
11588
|
@post This internally sets the lock type as a dirty property.
|
|
11597
11589
|
* This entity should now be replicated, to process the change.
|
|
11590
|
+
* @return Whether removing the lock was successful.
|
|
11598
11591
|
*/
|
|
11599
11592
|
unlock() {
|
|
11600
|
-
Module.ccall("
|
|
11593
|
+
let _result = Module.ccall("csp_multiplayer_SpaceEntity_Unlock_bool", "boolean", ["number"], [this.pointer]);
|
|
11594
|
+
return _result;
|
|
11595
|
+
}
|
|
11596
|
+
/**
|
|
11597
|
+
* @description Gets the type of lock currently applied to this entity
|
|
11598
|
+
* @return The Locktype, will be LockType::None if the entity is currently unlocked.
|
|
11599
|
+
*/
|
|
11600
|
+
getLockType() {
|
|
11601
|
+
let _result = Module.ccall("csp_multiplayer_SpaceEntity_GetLockTypeC_LockType", "number", ["number"], [this.pointer]);
|
|
11602
|
+
return _result;
|
|
11601
11603
|
}
|
|
11602
11604
|
/**
|
|
11603
11605
|
* @description Checks if the entity has a lock type other than LockType::None, set by calling SpaceEntity::Lock.
|
|
@@ -11607,6 +11609,12 @@ export class CSPFoundation {
|
|
|
11607
11609
|
let _result = Module.ccall("csp_multiplayer_SpaceEntity_IsLockedC_bool", "boolean", ["number"], [this.pointer]);
|
|
11608
11610
|
return _result;
|
|
11609
11611
|
}
|
|
11612
|
+
/**
|
|
11613
|
+
* @description Queues an update which will be executed on next Tick() or ProcessPendingEntityOperations(). Not a blocking or async function.
|
|
11614
|
+
*/
|
|
11615
|
+
queueUpdate() {
|
|
11616
|
+
Module.ccall("csp_multiplayer_SpaceEntity_QueueUpdate_void", "void", ["number"], [this.pointer]);
|
|
11617
|
+
}
|
|
11610
11618
|
}
|
|
11611
11619
|
Multiplayer.SpaceEntity = SpaceEntity;
|
|
11612
11620
|
})(Multiplayer || (Multiplayer = {}));
|
|
@@ -12165,6 +12173,15 @@ export class CSPFoundation {
|
|
|
12165
12173
|
set sequences(value) {
|
|
12166
12174
|
Module.ccall("csp_systems_CSPSceneData__Set_Sequences", "void", ["number", "number"], [this.pointer, value.pointer]);
|
|
12167
12175
|
}
|
|
12176
|
+
get anchors() {
|
|
12177
|
+
const _ptr = Module._malloc(8);
|
|
12178
|
+
Module.ccall("csp_systems_CSPSceneData__Get_Anchors", "void", ["number", "number"], [_ptr, this.pointer]);
|
|
12179
|
+
const _nPtr = getNativePointer(_ptr);
|
|
12180
|
+
return new Common.Array(_nPtr, csp_systems_AnchorFactory, "csp_systems_Anchor");
|
|
12181
|
+
}
|
|
12182
|
+
set anchors(value) {
|
|
12183
|
+
Module.ccall("csp_systems_CSPSceneData__Set_Anchors", "void", ["number", "number"], [this.pointer, value.pointer]);
|
|
12184
|
+
}
|
|
12168
12185
|
}
|
|
12169
12186
|
Systems.CSPSceneData = CSPSceneData;
|
|
12170
12187
|
})(Systems || (Systems = {}));
|
|
@@ -12469,17 +12486,6 @@ export class CSPFoundation {
|
|
|
12469
12486
|
Module._free(_ret);
|
|
12470
12487
|
return _nPtr;
|
|
12471
12488
|
}
|
|
12472
|
-
/**
|
|
12473
|
-
* @description Retrieves the Analytics system.
|
|
12474
|
-
* @return Pointer to the analytics system class
|
|
12475
|
-
*/
|
|
12476
|
-
getAnalyticsSystem() {
|
|
12477
|
-
var _ret = Module._malloc(8);
|
|
12478
|
-
Module.ccall("csp_systems_SystemsManager_GetAnalyticsSystem_AnalyticsSystemP", "void", ["number", "number"], [_ret, this.pointer]);
|
|
12479
|
-
var _nPtr = new Systems.AnalyticsSystem(getNativePointer(_ret));
|
|
12480
|
-
Module._free(_ret);
|
|
12481
|
-
return _nPtr;
|
|
12482
|
-
}
|
|
12483
12489
|
/**
|
|
12484
12490
|
* @description Retrieves the Maintenance system.
|
|
12485
12491
|
* @return Pointer to the maintenance system class
|
|
@@ -12560,13 +12566,6 @@ export class CSPFoundation {
|
|
|
12560
12566
|
Module._free(_ret);
|
|
12561
12567
|
return _nPtr;
|
|
12562
12568
|
}
|
|
12563
|
-
makeOnlineRealtimeEngine() {
|
|
12564
|
-
var _ret = Module._malloc(8);
|
|
12565
|
-
Module.ccall("csp_systems_SystemsManager_MakeOnlineRealtimeEngine_OnlineRealtimeEngineP", "void", ["number", "number"], [_ret, this.pointer]);
|
|
12566
|
-
var _nPtr = new Multiplayer.OnlineRealtimeEngine(getNativePointer(_ret));
|
|
12567
|
-
Module._free(_ret);
|
|
12568
|
-
return _nPtr;
|
|
12569
|
-
}
|
|
12570
12569
|
}
|
|
12571
12570
|
Systems.SystemsManager = SystemsManager;
|
|
12572
12571
|
})(Systems || (Systems = {}));
|
|
@@ -12655,120 +12654,6 @@ export class CSPFoundation {
|
|
|
12655
12654
|
}
|
|
12656
12655
|
Systems.ResultBase = ResultBase;
|
|
12657
12656
|
})(Systems || (Systems = {}));
|
|
12658
|
-
(function (Systems) {
|
|
12659
|
-
/**
|
|
12660
|
-
@ingroup Analytics System
|
|
12661
|
-
* @description Interface for an Analytics Provider
|
|
12662
|
-
*/
|
|
12663
|
-
class IAnalyticsProvider extends NativeClassWrapper {
|
|
12664
|
-
/** @internal */
|
|
12665
|
-
constructor(pointer) {
|
|
12666
|
-
super(pointer);
|
|
12667
|
-
}
|
|
12668
|
-
delete() {
|
|
12669
|
-
if (this.ownsPointer && !this.disposed) {
|
|
12670
|
-
Module.ccall("csp_systems_IAnalyticsProvider_Dtor", "void", ["number"], [this.pointer]);
|
|
12671
|
-
this.disposed = true;
|
|
12672
|
-
}
|
|
12673
|
-
}
|
|
12674
|
-
}
|
|
12675
|
-
Systems.IAnalyticsProvider = IAnalyticsProvider;
|
|
12676
|
-
})(Systems || (Systems = {}));
|
|
12677
|
-
(function (Systems) {
|
|
12678
|
-
/**
|
|
12679
|
-
@ingroup Analytics System
|
|
12680
|
-
* @description Public facing system that allows interfacing with an analytics provider.
|
|
12681
|
-
* Offers methods for sending events to the provider
|
|
12682
|
-
* Events are added to a queue to be processewd on a different thread
|
|
12683
|
-
* If events are unable to be send to the provider, then they will be held in the queue
|
|
12684
|
-
*/
|
|
12685
|
-
class AnalyticsSystem extends NativeClassWrapper {
|
|
12686
|
-
/** @internal */
|
|
12687
|
-
constructor(pointer) {
|
|
12688
|
-
super(pointer);
|
|
12689
|
-
}
|
|
12690
|
-
/**
|
|
12691
|
-
* @description Send an event
|
|
12692
|
-
* @param event - AnalyticsEvent
|
|
12693
|
-
*/
|
|
12694
|
-
log(event) {
|
|
12695
|
-
Module.ccall("csp_systems_AnalyticsSystem_Log_void_AnalyticsEventP", "void", ["number", "number"], [this.pointer, event.pointer]);
|
|
12696
|
-
}
|
|
12697
|
-
}
|
|
12698
|
-
Systems.AnalyticsSystem = AnalyticsSystem;
|
|
12699
|
-
})(Systems || (Systems = {}));
|
|
12700
|
-
(function (Systems) {
|
|
12701
|
-
class AnalyticsEvent extends NativeClassWrapper {
|
|
12702
|
-
/** @internal */
|
|
12703
|
-
constructor(pointer) {
|
|
12704
|
-
super(pointer);
|
|
12705
|
-
}
|
|
12706
|
-
addInt(key, value) {
|
|
12707
|
-
assert(value >= Limits.INT64_MIN);
|
|
12708
|
-
assert(value <= Limits.INT64_MAX);
|
|
12709
|
-
Module.ccall("csp_systems_AnalyticsEvent_AddInt_void_String_int64_t", "void", ["number", "string", "bigint"], [this.pointer, key, value]);
|
|
12710
|
-
}
|
|
12711
|
-
addString(key, value) {
|
|
12712
|
-
Module.ccall("csp_systems_AnalyticsEvent_AddString_void_String_StringRC", "void", ["number", "string", "string"], [this.pointer, key, value]);
|
|
12713
|
-
}
|
|
12714
|
-
addFloat(key, value) {
|
|
12715
|
-
assert(value >= Limits.FLOAT_MIN);
|
|
12716
|
-
assert(value <= Limits.FLOAT_MAX);
|
|
12717
|
-
Module.ccall("csp_systems_AnalyticsEvent_AddFloat_void_String_float", "void", ["number", "string", "number"], [this.pointer, key, value]);
|
|
12718
|
-
}
|
|
12719
|
-
addBool(key, value) {
|
|
12720
|
-
Module.ccall("csp_systems_AnalyticsEvent_AddBool_void_String_bool", "void", ["number", "string", "boolean"], [this.pointer, key, value]);
|
|
12721
|
-
}
|
|
12722
|
-
getInt(key) {
|
|
12723
|
-
let _result = Module.ccall("csp_systems_AnalyticsEvent_GetIntC_int64_t_String", "bigint", ["number", "string"], [this.pointer, key]);
|
|
12724
|
-
return _result;
|
|
12725
|
-
}
|
|
12726
|
-
getString(key) {
|
|
12727
|
-
let _result = Module.ccall("csp_systems_AnalyticsEvent_GetStringC_StringRC_String", "number", ["number", "string"], [this.pointer, key]);
|
|
12728
|
-
const _resultString = Module.UTF8ToString(_result);
|
|
12729
|
-
free(_result);
|
|
12730
|
-
_result = _resultString;
|
|
12731
|
-
return _result;
|
|
12732
|
-
}
|
|
12733
|
-
getFloat(key) {
|
|
12734
|
-
let _result = Module.ccall("csp_systems_AnalyticsEvent_GetFloatC_float_String", "number", ["number", "string"], [this.pointer, key]);
|
|
12735
|
-
return _result;
|
|
12736
|
-
}
|
|
12737
|
-
getBool(key) {
|
|
12738
|
-
let _result = Module.ccall("csp_systems_AnalyticsEvent_GetBoolC_bool_String", "boolean", ["number", "string"], [this.pointer, key]);
|
|
12739
|
-
return _result;
|
|
12740
|
-
}
|
|
12741
|
-
getTag() {
|
|
12742
|
-
let _result = Module.ccall("csp_systems_AnalyticsEvent_GetTagC_StringRC", "number", ["number"], [this.pointer]);
|
|
12743
|
-
const _resultString = Module.UTF8ToString(_result);
|
|
12744
|
-
free(_result);
|
|
12745
|
-
_result = _resultString;
|
|
12746
|
-
return _result;
|
|
12747
|
-
}
|
|
12748
|
-
delete() {
|
|
12749
|
-
if (this.ownsPointer && !this.disposed) {
|
|
12750
|
-
Module.ccall("csp_systems_AnalyticsEvent_Dtor", "void", ["number"], [this.pointer]);
|
|
12751
|
-
this.disposed = true;
|
|
12752
|
-
}
|
|
12753
|
-
}
|
|
12754
|
-
}
|
|
12755
|
-
Systems.AnalyticsEvent = AnalyticsEvent;
|
|
12756
|
-
})(Systems || (Systems = {}));
|
|
12757
|
-
(function (Systems) {
|
|
12758
|
-
class AnalyticsEventInitialiser {
|
|
12759
|
-
static initialise(tag) {
|
|
12760
|
-
var _ret = Module._malloc(8);
|
|
12761
|
-
Module.ccall("csp_systems_AnalyticsEventInitialiser_Initialise_AnalyticsEventP_StringC", "void", ["number", "string"], [_ret, tag]);
|
|
12762
|
-
var _nPtr = new Systems.AnalyticsEvent(getNativePointer(_ret));
|
|
12763
|
-
Module._free(_ret);
|
|
12764
|
-
return _nPtr;
|
|
12765
|
-
}
|
|
12766
|
-
static deInitialise(event) {
|
|
12767
|
-
Module.ccall("csp_systems_AnalyticsEventInitialiser_DeInitialise_void_AnalyticsEventP", "void", ["number"], [event.pointer]);
|
|
12768
|
-
}
|
|
12769
|
-
}
|
|
12770
|
-
Systems.AnalyticsEventInitialiser = AnalyticsEventInitialiser;
|
|
12771
|
-
})(Systems || (Systems = {}));
|
|
12772
12657
|
(function (Systems) {
|
|
12773
12658
|
/**
|
|
12774
12659
|
@ingroup Asset System
|
|
@@ -16017,34 +15902,370 @@ export class CSPFoundation {
|
|
|
16017
15902
|
})(Common || (Common = {}));
|
|
16018
15903
|
(function (Multiplayer) {
|
|
16019
15904
|
/**
|
|
16020
|
-
* @description Class for creating and managing
|
|
16021
|
-
* /// This provides
|
|
16022
|
-
*
|
|
16023
|
-
* can be registered for certain events that occur within the entity system so clients can
|
|
16024
|
-
* react appropriately.
|
|
15905
|
+
* @description Class for creating and managing objects in an offline context.
|
|
15906
|
+
* /// This provides functionality to create and manage a player avatar and other objects while being offline.
|
|
15907
|
+
* The callbacks that are injected into functions are all synchronous, meaning they are called before the funciton ends.
|
|
16025
15908
|
*/
|
|
16026
|
-
class
|
|
15909
|
+
class OfflineRealtimeEngine extends Common.IRealtimeEngine {
|
|
16027
15910
|
/** @internal */
|
|
16028
15911
|
constructor(pointer) {
|
|
16029
15912
|
super(pointer);
|
|
16030
15913
|
}
|
|
16031
15914
|
static fromIRealtimeEngine(baseInstance) {
|
|
16032
15915
|
const nativeClassWrapper = baseInstance;
|
|
16033
|
-
return new Multiplayer.
|
|
15916
|
+
return new Multiplayer.OfflineRealtimeEngine(new NativePointer(nativeClassWrapper.pointer, nativeClassWrapper.ownsPointer));
|
|
16034
15917
|
}
|
|
16035
15918
|
/**
|
|
16036
|
-
* @description
|
|
16037
|
-
*
|
|
15919
|
+
* @description OfflineRealtimeEngine constructor.
|
|
15920
|
+
* Creates a realtime engine pre-populated from a scene description. (Usually parsed from a checkpoint file)
|
|
15921
|
+
* @param sceneDescription - The scene description containing entities within the scene.
|
|
15922
|
+
* These entities will be populated in the RealtimeEngine.
|
|
16038
15923
|
* @param logSystem - Logger such that this system can print status and debug output
|
|
16039
|
-
* @param
|
|
16040
|
-
* @param remoteScriptRunner - Object capable of running a script. Called to execute scripts when the leader
|
|
16041
|
-
* election system
|
|
15924
|
+
* @param remoteScriptRunner - Object capable of running a script.
|
|
16042
15925
|
*/
|
|
16043
|
-
static
|
|
15926
|
+
static create_sceneDescription_logSystem_remoteScriptRunner(sceneDescription, logSystem, remoteScriptRunner) {
|
|
16044
15927
|
var _ptr = Module._malloc(8);
|
|
16045
|
-
Module.ccall("
|
|
15928
|
+
Module.ccall("csp_multiplayer_OfflineRealtimeEngine_Ctor_CSPSceneDescriptionRC_LogSystemR_IJSScriptRunnerR", "void", ["number", "number", "number", "number"], [
|
|
16046
15929
|
_ptr,
|
|
16047
|
-
|
|
15930
|
+
sceneDescription.pointer,
|
|
15931
|
+
logSystem.pointer,
|
|
15932
|
+
remoteScriptRunner.pointer,
|
|
15933
|
+
]);
|
|
15934
|
+
var _nPtr = getNativePointer(_ptr);
|
|
15935
|
+
return new OfflineRealtimeEngine(_nPtr);
|
|
15936
|
+
}
|
|
15937
|
+
/**
|
|
15938
|
+
* @description OfflineRealtimeEngine constructor
|
|
15939
|
+
* Creates an empty realtime engine.
|
|
15940
|
+
* @param logSystem - Logger such that this system can print status and debug output
|
|
15941
|
+
* @param remoteScriptRunner - Object capable of running a script.
|
|
15942
|
+
*/
|
|
15943
|
+
static create_logSystem_remoteScriptRunner(logSystem, remoteScriptRunner) {
|
|
15944
|
+
var _ptr = Module._malloc(8);
|
|
15945
|
+
Module.ccall("csp_multiplayer_OfflineRealtimeEngine_Ctor_LogSystemR_IJSScriptRunnerR", "void", ["number", "number", "number"], [_ptr, logSystem.pointer, remoteScriptRunner.pointer]);
|
|
15946
|
+
var _nPtr = getNativePointer(_ptr);
|
|
15947
|
+
return new OfflineRealtimeEngine(_nPtr);
|
|
15948
|
+
}
|
|
15949
|
+
/**
|
|
15950
|
+
* @description OfflineRealtimeEngine destructor
|
|
15951
|
+
* Removes entity script bindings and deregisters tick event listeners
|
|
15952
|
+
*/
|
|
15953
|
+
delete() {
|
|
15954
|
+
if (this.ownsPointer && !this.disposed) {
|
|
15955
|
+
Module.ccall("csp_multiplayer_OfflineRealtimeEngine_Dtor", "void", ["number"], [this.pointer]);
|
|
15956
|
+
this.disposed = true;
|
|
15957
|
+
}
|
|
15958
|
+
}
|
|
15959
|
+
/**
|
|
15960
|
+
* @description Returns the concrete type of the instantiation of the abstract IRealtimeEngine.
|
|
15961
|
+
*/
|
|
15962
|
+
getRealtimeEngineType() {
|
|
15963
|
+
let _result = Module.ccall("csp_multiplayer_OfflineRealtimeEngine_GetRealtimeEngineTypeC_RealtimeEngineType", "number", ["number"], [this.pointer]);
|
|
15964
|
+
return _result;
|
|
15965
|
+
}
|
|
15966
|
+
/**
|
|
15967
|
+
* @description Create and add a SpaceEntity with type Avatar, and relevant components and default states as specified.
|
|
15968
|
+
* @param name - The entity name of the newly created avatar entity.
|
|
15969
|
+
* @param userId - The Id of the user creating the avatar. This can be fetched from csp::systems::UserSystem::GetLoginState
|
|
15970
|
+
* @param transform - The initial transform to set the SpaceEntity to.
|
|
15971
|
+
* @param state - The initial Avatar State to set.
|
|
15972
|
+
* @param avatarId - The ID to be set on the AvatarSpaceComponent
|
|
15973
|
+
* @param avatarPlayMode - The Initial AvatarPlayMode to set.
|
|
15974
|
+
* @param callback - Csp::multiplayer::entitycreatedcallback a callback that executes when the creation is complete,
|
|
15975
|
+
* which will provide a non-owning pointer to the new SpaceEntity so that it can be used on the local client.
|
|
15976
|
+
*/
|
|
15977
|
+
async createAvatar(name, userId, transform, isVisible, state, avatarId, avatarPlayMode) {
|
|
15978
|
+
var _resolve;
|
|
15979
|
+
var _promise = new Promise((_r) => {
|
|
15980
|
+
_resolve = _r;
|
|
15981
|
+
});
|
|
15982
|
+
var _callbackPtr;
|
|
15983
|
+
var _callback = (_stateObject__, arg1) => {
|
|
15984
|
+
var _arg1Ptr = getNativePointer(arg1);
|
|
15985
|
+
var _arg1Instance = new Multiplayer.SpaceEntity(_arg1Ptr);
|
|
15986
|
+
_resolve(_arg1Instance);
|
|
15987
|
+
Module.removeFunction(_callbackPtr);
|
|
15988
|
+
};
|
|
15989
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
15990
|
+
Module.ccall("csp_multiplayer_OfflineRealtimeEngine_CreateAvatar_void_StringRC_StringRC_SpaceTransformRC_bool_AvatarState_StringRC_AvatarPlayMode_EntityCreatedCallback", "void", [
|
|
15991
|
+
"number",
|
|
15992
|
+
"string",
|
|
15993
|
+
"string",
|
|
15994
|
+
"number",
|
|
15995
|
+
"boolean",
|
|
15996
|
+
"number",
|
|
15997
|
+
"string",
|
|
15998
|
+
"number",
|
|
15999
|
+
"number",
|
|
16000
|
+
"number",
|
|
16001
|
+
], [
|
|
16002
|
+
this.pointer,
|
|
16003
|
+
name,
|
|
16004
|
+
userId,
|
|
16005
|
+
transform.pointer,
|
|
16006
|
+
isVisible,
|
|
16007
|
+
state,
|
|
16008
|
+
avatarId,
|
|
16009
|
+
avatarPlayMode,
|
|
16010
|
+
_callbackPtr,
|
|
16011
|
+
0,
|
|
16012
|
+
]);
|
|
16013
|
+
return _promise;
|
|
16014
|
+
}
|
|
16015
|
+
/**
|
|
16016
|
+
* @description Create and add a SpaceEntity, with relevant default values.
|
|
16017
|
+
* @param name - The name of the newly created SpaceEntity.
|
|
16018
|
+
* @param transform - The initial transform to set the SpaceEntity to.
|
|
16019
|
+
* @param parentID - ID of another entity in the space that this entity should be created as a child to. If empty,
|
|
16020
|
+
* entity is created as a root entity.
|
|
16021
|
+
* @param callback - A callback that executes when the creation is complete,
|
|
16022
|
+
* which will provide a non-owning pointer to the new SpaceEntity so that it can be used on the local client.
|
|
16023
|
+
*/
|
|
16024
|
+
async createEntity(name, transform, parentID) {
|
|
16025
|
+
var _resolve;
|
|
16026
|
+
var _promise = new Promise((_r) => {
|
|
16027
|
+
_resolve = _r;
|
|
16028
|
+
});
|
|
16029
|
+
var _callbackPtr;
|
|
16030
|
+
var _callback = (_stateObject__, arg1) => {
|
|
16031
|
+
var _arg1Ptr = getNativePointer(arg1);
|
|
16032
|
+
var _arg1Instance = new Multiplayer.SpaceEntity(_arg1Ptr);
|
|
16033
|
+
_resolve(_arg1Instance);
|
|
16034
|
+
Module.removeFunction(_callbackPtr);
|
|
16035
|
+
};
|
|
16036
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
16037
|
+
var parentIDPointer = 0;
|
|
16038
|
+
if (parentID != null) {
|
|
16039
|
+
parentIDPointer = Module._malloc(4);
|
|
16040
|
+
Module.setValue(parentIDPointer, parentID, "i32");
|
|
16041
|
+
}
|
|
16042
|
+
Module.ccall("csp_multiplayer_OfflineRealtimeEngine_CreateEntity_void_StringRC_SpaceTransformRC_uint64_tRC_EntityCreatedCallback", "void", ["number", "string", "number", "bigint", "number", "number"], [
|
|
16043
|
+
this.pointer,
|
|
16044
|
+
name,
|
|
16045
|
+
transform.pointer,
|
|
16046
|
+
parentIDPointer,
|
|
16047
|
+
_callbackPtr,
|
|
16048
|
+
0,
|
|
16049
|
+
]);
|
|
16050
|
+
if (parentIDPointer) {
|
|
16051
|
+
Module._free(parentIDPointer);
|
|
16052
|
+
}
|
|
16053
|
+
return _promise;
|
|
16054
|
+
}
|
|
16055
|
+
/**
|
|
16056
|
+
* @description Destroy the specified entity.
|
|
16057
|
+
* @param entity - A non-owning pointer to the entity to be destroyed.
|
|
16058
|
+
* @param callback - A callback that executes when the entity destruction is complete.
|
|
16059
|
+
*/
|
|
16060
|
+
async destroyEntity(entity) {
|
|
16061
|
+
var _resolve;
|
|
16062
|
+
var _promise = new Promise((_r) => {
|
|
16063
|
+
_resolve = _r;
|
|
16064
|
+
});
|
|
16065
|
+
var _callbackPtr;
|
|
16066
|
+
var _callback = (_stateObject__, arg1) => {
|
|
16067
|
+
_resolve(!!arg1);
|
|
16068
|
+
Module.removeFunction(_callbackPtr);
|
|
16069
|
+
};
|
|
16070
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
16071
|
+
Module.ccall("csp_multiplayer_OfflineRealtimeEngine_DestroyEntity_void_SpaceEntityP_CallbackHandler", "void", ["number", "number", "number", "number"], [this.pointer, entity.pointer, _callbackPtr, 0]);
|
|
16072
|
+
return _promise;
|
|
16073
|
+
}
|
|
16074
|
+
/**
|
|
16075
|
+
* @description Finds the first found SpaceEntity of a matching Name.
|
|
16076
|
+
* @param name - The name to search.
|
|
16077
|
+
* @return A non-owning pointer to the first found matching SpaceEntity.
|
|
16078
|
+
*/
|
|
16079
|
+
findSpaceEntity(name) {
|
|
16080
|
+
var _ret = Module._malloc(8);
|
|
16081
|
+
Module.ccall("csp_multiplayer_OfflineRealtimeEngine_FindSpaceEntity_SpaceEntityP_StringRC", "void", ["number", "number", "string"], [_ret, this.pointer, name]);
|
|
16082
|
+
var _nPtr = new Multiplayer.SpaceEntity(getNativePointer(_ret));
|
|
16083
|
+
Module._free(_ret);
|
|
16084
|
+
return _nPtr;
|
|
16085
|
+
}
|
|
16086
|
+
/**
|
|
16087
|
+
* @description Finds the first found SpaceEntity that has the ID EntityId.
|
|
16088
|
+
* @param entityId - The Id to look for.
|
|
16089
|
+
* @return A non-owning pointer to the first found matching SpaceEntity.
|
|
16090
|
+
*/
|
|
16091
|
+
findSpaceEntityById(entityId) {
|
|
16092
|
+
assert(entityId >= Limits.UINT64_MIN);
|
|
16093
|
+
assert(entityId <= Limits.UINT64_MAX);
|
|
16094
|
+
var _ret = Module._malloc(8);
|
|
16095
|
+
Module.ccall("csp_multiplayer_OfflineRealtimeEngine_FindSpaceEntityById_SpaceEntityP_uint64_t", "void", ["number", "number", "bigint"], [_ret, this.pointer, entityId]);
|
|
16096
|
+
var _nPtr = new Multiplayer.SpaceEntity(getNativePointer(_ret));
|
|
16097
|
+
Module._free(_ret);
|
|
16098
|
+
return _nPtr;
|
|
16099
|
+
}
|
|
16100
|
+
/**
|
|
16101
|
+
* @description Finds the first found SpaceEntity of a matching Name. The found SpaceEntity will contain an AvatarSpaceComponent.
|
|
16102
|
+
* @param name - The name to search for.
|
|
16103
|
+
* @return A pointer to the first found matching SpaceEntity.
|
|
16104
|
+
*/
|
|
16105
|
+
findSpaceAvatar(name) {
|
|
16106
|
+
var _ret = Module._malloc(8);
|
|
16107
|
+
Module.ccall("csp_multiplayer_OfflineRealtimeEngine_FindSpaceAvatar_SpaceEntityP_StringRC", "void", ["number", "number", "string"], [_ret, this.pointer, name]);
|
|
16108
|
+
var _nPtr = new Multiplayer.SpaceEntity(getNativePointer(_ret));
|
|
16109
|
+
Module._free(_ret);
|
|
16110
|
+
return _nPtr;
|
|
16111
|
+
}
|
|
16112
|
+
/**
|
|
16113
|
+
* @description Finds the first found SpaceEntity of a matching Name. The found SpaceEntity will not contain an AvatarSpaceComponent.
|
|
16114
|
+
* @param name - The name to search for.
|
|
16115
|
+
* @return A pointer to the first found matching SpaceEntity.
|
|
16116
|
+
*/
|
|
16117
|
+
findSpaceObject(name) {
|
|
16118
|
+
var _ret = Module._malloc(8);
|
|
16119
|
+
Module.ccall("csp_multiplayer_OfflineRealtimeEngine_FindSpaceObject_SpaceEntityP_StringRC", "void", ["number", "number", "string"], [_ret, this.pointer, name]);
|
|
16120
|
+
var _nPtr = new Multiplayer.SpaceEntity(getNativePointer(_ret));
|
|
16121
|
+
Module._free(_ret);
|
|
16122
|
+
return _nPtr;
|
|
16123
|
+
}
|
|
16124
|
+
/**
|
|
16125
|
+
* @description Get an Entity by its index.
|
|
16126
|
+
* /// @param EntityIndex size_t : The index of the entity to get.
|
|
16127
|
+
* @return A non-owning pointer to the entity at the given index.
|
|
16128
|
+
*/
|
|
16129
|
+
getEntityByIndex(entityIndex) {
|
|
16130
|
+
assert(Number.isInteger(entityIndex));
|
|
16131
|
+
assert(entityIndex >= Limits.UINT32_MIN);
|
|
16132
|
+
assert(entityIndex <= Limits.UINT32_MAX);
|
|
16133
|
+
var _ret = Module._malloc(8);
|
|
16134
|
+
Module.ccall("csp_multiplayer_OfflineRealtimeEngine_GetEntityByIndex_SpaceEntityP_size_t", "void", ["number", "number", "number"], [_ret, this.pointer, entityIndex]);
|
|
16135
|
+
var _nPtr = new Multiplayer.SpaceEntity(getNativePointer(_ret));
|
|
16136
|
+
Module._free(_ret);
|
|
16137
|
+
return _nPtr;
|
|
16138
|
+
}
|
|
16139
|
+
/**
|
|
16140
|
+
* @description Get an Avatar by its index. The returned pointer will be an entity that contains an AvatarSpaceComponent.
|
|
16141
|
+
* /// @param AvatarIndex size_t : The index of the avatar entity to get.
|
|
16142
|
+
* @return A non-owning pointer to the avatar entity with the given index.
|
|
16143
|
+
*/
|
|
16144
|
+
getAvatarByIndex(avatarIndex) {
|
|
16145
|
+
assert(Number.isInteger(avatarIndex));
|
|
16146
|
+
assert(avatarIndex >= Limits.UINT32_MIN);
|
|
16147
|
+
assert(avatarIndex <= Limits.UINT32_MAX);
|
|
16148
|
+
var _ret = Module._malloc(8);
|
|
16149
|
+
Module.ccall("csp_multiplayer_OfflineRealtimeEngine_GetAvatarByIndex_SpaceEntityP_size_t", "void", ["number", "number", "number"], [_ret, this.pointer, avatarIndex]);
|
|
16150
|
+
var _nPtr = new Multiplayer.SpaceEntity(getNativePointer(_ret));
|
|
16151
|
+
Module._free(_ret);
|
|
16152
|
+
return _nPtr;
|
|
16153
|
+
}
|
|
16154
|
+
/**
|
|
16155
|
+
* @description Get an Object by its index. The returned pointer will be an entity that does not contain an AvatarSpaceComponent.
|
|
16156
|
+
* /// @param ObjectIndex size_t : The index of the object entity to get.
|
|
16157
|
+
* @return A non-owning pointer to the object entity with the given index.
|
|
16158
|
+
*/
|
|
16159
|
+
getObjectByIndex(objectIndex) {
|
|
16160
|
+
assert(Number.isInteger(objectIndex));
|
|
16161
|
+
assert(objectIndex >= Limits.UINT32_MIN);
|
|
16162
|
+
assert(objectIndex <= Limits.UINT32_MAX);
|
|
16163
|
+
var _ret = Module._malloc(8);
|
|
16164
|
+
Module.ccall("csp_multiplayer_OfflineRealtimeEngine_GetObjectByIndex_SpaceEntityP_size_t", "void", ["number", "number", "number"], [_ret, this.pointer, objectIndex]);
|
|
16165
|
+
var _nPtr = new Multiplayer.SpaceEntity(getNativePointer(_ret));
|
|
16166
|
+
Module._free(_ret);
|
|
16167
|
+
return _nPtr;
|
|
16168
|
+
}
|
|
16169
|
+
/**
|
|
16170
|
+
* @description Get the number of total entities in the system.
|
|
16171
|
+
* @return The total number of entities.
|
|
16172
|
+
*/
|
|
16173
|
+
getNumEntities() {
|
|
16174
|
+
let _result = Module.ccall("csp_multiplayer_OfflineRealtimeEngine_GetNumEntitiesC_size_t", "number", ["number"], [this.pointer]);
|
|
16175
|
+
const _unfixedValue = _result;
|
|
16176
|
+
let _fixedValue = _unfixedValue < 0 ? _unfixedValue + 2 ** 32 : _unfixedValue;
|
|
16177
|
+
_result = _fixedValue;
|
|
16178
|
+
return _result;
|
|
16179
|
+
}
|
|
16180
|
+
/**
|
|
16181
|
+
* @description Get the number of total Avatars in the system. Avatars are entities that contain AvatarSpaceComponents.
|
|
16182
|
+
* @return The total number of Avatar entities.
|
|
16183
|
+
*/
|
|
16184
|
+
getNumAvatars() {
|
|
16185
|
+
let _result = Module.ccall("csp_multiplayer_OfflineRealtimeEngine_GetNumAvatarsC_size_t", "number", ["number"], [this.pointer]);
|
|
16186
|
+
const _unfixedValue = _result;
|
|
16187
|
+
let _fixedValue = _unfixedValue < 0 ? _unfixedValue + 2 ** 32 : _unfixedValue;
|
|
16188
|
+
_result = _fixedValue;
|
|
16189
|
+
return _result;
|
|
16190
|
+
}
|
|
16191
|
+
/**
|
|
16192
|
+
* @description Get the number of total Objects in the system. Objects are entities that do not contain AvatarSpaceComponents.
|
|
16193
|
+
* @return The total number of object entities.
|
|
16194
|
+
*/
|
|
16195
|
+
getNumObjects() {
|
|
16196
|
+
let _result = Module.ccall("csp_multiplayer_OfflineRealtimeEngine_GetNumObjectsC_size_t", "number", ["number"], [this.pointer]);
|
|
16197
|
+
const _unfixedValue = _result;
|
|
16198
|
+
let _fixedValue = _unfixedValue < 0 ? _unfixedValue + 2 ** 32 : _unfixedValue;
|
|
16199
|
+
_result = _fixedValue;
|
|
16200
|
+
return _result;
|
|
16201
|
+
}
|
|
16202
|
+
/**
|
|
16203
|
+
* @description Return all the entities currently known to the realtime engine.
|
|
16204
|
+
@warning This list may be extremely large.
|
|
16205
|
+
* @return A non-owning pointer to a List of non-owning pointers to all entities.
|
|
16206
|
+
*/
|
|
16207
|
+
getAllEntities() {
|
|
16208
|
+
var _ret = Module._malloc(8);
|
|
16209
|
+
Module.ccall("csp_multiplayer_OfflineRealtimeEngine_GetAllEntitiesC_ListPC", "void", ["number", "number"], [_ret, this.pointer]);
|
|
16210
|
+
var _nPtr = new Common.List(getNativePointer(_ret), csp_multiplayer_SpaceEntityFactory, "csp_multiplayer_SpaceEntity");
|
|
16211
|
+
Module._free(_ret);
|
|
16212
|
+
return _nPtr;
|
|
16213
|
+
}
|
|
16214
|
+
/**
|
|
16215
|
+
* @description Retrieves all entities that exist at the root level (do not have a parent entity).
|
|
16216
|
+
* @return A list of root entities containing non-owning pointers to entities.
|
|
16217
|
+
*/
|
|
16218
|
+
getRootHierarchyEntities() {
|
|
16219
|
+
var _ret = Module._malloc(8);
|
|
16220
|
+
Module.ccall("csp_multiplayer_OfflineRealtimeEngine_GetRootHierarchyEntitiesC_ListPC", "void", ["number", "number"], [_ret, this.pointer]);
|
|
16221
|
+
var _nPtr = new Common.List(getNativePointer(_ret), csp_multiplayer_SpaceEntityFactory, "csp_multiplayer_SpaceEntity");
|
|
16222
|
+
Module._free(_ret);
|
|
16223
|
+
return _nPtr;
|
|
16224
|
+
}
|
|
16225
|
+
/**
|
|
16226
|
+
* @description The client ID of the local client. An arbitrary unchanging value.
|
|
16227
|
+
* @return INT53_MAX, the maximum number expressible in all our interop languages (you can thank javascript for the weird sizing).
|
|
16228
|
+
*/
|
|
16229
|
+
static localClientId() {
|
|
16230
|
+
let _result = Module.ccall("csp_multiplayer_OfflineRealtimeEngine_LocalClientId_uint64_t", "bigint", [], []);
|
|
16231
|
+
const _unfixedValue = _result;
|
|
16232
|
+
let _fixedValue = _unfixedValue < 0 ? _unfixedValue + 2n ** 64n : _unfixedValue;
|
|
16233
|
+
_result = _fixedValue;
|
|
16234
|
+
return _result;
|
|
16235
|
+
}
|
|
16236
|
+
}
|
|
16237
|
+
Multiplayer.OfflineRealtimeEngine = OfflineRealtimeEngine;
|
|
16238
|
+
})(Multiplayer || (Multiplayer = {}));
|
|
16239
|
+
(function (Multiplayer) {
|
|
16240
|
+
/**
|
|
16241
|
+
* @description Class for creating and managing multiplayer objects known as space entities.
|
|
16242
|
+
* /// This provides functions to create and manage multiple player avatars and other objects.
|
|
16243
|
+
* It manages things like queueing updated entities and triggering tick events. Callbacks
|
|
16244
|
+
* can be registered for certain events that occur within the entity system so clients can
|
|
16245
|
+
* react appropriately.
|
|
16246
|
+
*/
|
|
16247
|
+
class OnlineRealtimeEngine extends Common.IRealtimeEngine {
|
|
16248
|
+
/** @internal */
|
|
16249
|
+
constructor(pointer) {
|
|
16250
|
+
super(pointer);
|
|
16251
|
+
}
|
|
16252
|
+
static fromIRealtimeEngine(baseInstance) {
|
|
16253
|
+
const nativeClassWrapper = baseInstance;
|
|
16254
|
+
return new Multiplayer.OnlineRealtimeEngine(new NativePointer(nativeClassWrapper.pointer, nativeClassWrapper.ownsPointer));
|
|
16255
|
+
}
|
|
16256
|
+
/**
|
|
16257
|
+
* @description OnlineRealtimeEngine constructor
|
|
16258
|
+
* @param inMultiplayerConnection - The multiplayer connection to construct the onlinerealtimeengine with
|
|
16259
|
+
* @param logSystem - Logger such that this system can print status and debug output
|
|
16260
|
+
* @param networkEventBus - Reference the the network event bus, used for leadership election messaging.
|
|
16261
|
+
* @param remoteScriptRunner - Object capable of running a script. Called to execute scripts when the leader
|
|
16262
|
+
* election system
|
|
16263
|
+
*/
|
|
16264
|
+
static create_multiplayerConnection_logSystem_networkEventBus_remoteScriptRunner(multiplayerConnection, logSystem, networkEventBus, remoteScriptRunner) {
|
|
16265
|
+
var _ptr = Module._malloc(8);
|
|
16266
|
+
Module.ccall("csp_multiplayer_OnlineRealtimeEngine_Ctor_MultiplayerConnectionR_LogSystemR_NetworkEventBusR_IJSScriptRunnerR", "void", ["number", "number", "number", "number", "number"], [
|
|
16267
|
+
_ptr,
|
|
16268
|
+
multiplayerConnection.pointer,
|
|
16048
16269
|
logSystem.pointer,
|
|
16049
16270
|
networkEventBus.pointer,
|
|
16050
16271
|
remoteScriptRunner.pointer,
|
|
@@ -16145,18 +16366,8 @@ export class CSPFoundation {
|
|
|
16145
16366
|
]);
|
|
16146
16367
|
if (parentIDPointer) {
|
|
16147
16368
|
Module._free(parentIDPointer);
|
|
16148
|
-
}
|
|
16149
|
-
return _promise;
|
|
16150
|
-
}
|
|
16151
|
-
/**
|
|
16152
|
-
* @description Add a new entity to the system.
|
|
16153
|
-
* /// This can be called at any time from any thread and internally add the entity to a pending
|
|
16154
|
-
* list which is then updated in a thread safe manner when ProcessPendingEntityOperations
|
|
16155
|
-
* is called from the main thread.
|
|
16156
|
-
* /// @param EntityToAdd SpaceEntity : Pointer to the entity to be added.
|
|
16157
|
-
*/
|
|
16158
|
-
addEntity(entityToAdd) {
|
|
16159
|
-
Module.ccall("csp_multiplayer_OnlineRealtimeEngine_AddEntity_void_SpaceEntityP", "void", ["number", "number"], [this.pointer, entityToAdd.pointer]);
|
|
16369
|
+
}
|
|
16370
|
+
return _promise;
|
|
16160
16371
|
}
|
|
16161
16372
|
/**
|
|
16162
16373
|
* @description Destroy the specified entity.
|
|
@@ -16177,19 +16388,6 @@ export class CSPFoundation {
|
|
|
16177
16388
|
Module.ccall("csp_multiplayer_OnlineRealtimeEngine_DestroyEntity_void_SpaceEntityP_CallbackHandler", "void", ["number", "number", "number", "number"], [this.pointer, entity.pointer, _callbackPtr, 0]);
|
|
16178
16389
|
return _promise;
|
|
16179
16390
|
}
|
|
16180
|
-
/**
|
|
16181
|
-
* @description Sets a callback to be executed when an entity is fully created.
|
|
16182
|
-
* /// Only one EntityCreatedCallback may be registered, calling this function again will override whatever was previously set.
|
|
16183
|
-
* /// @param Callback csp::multiplayer::EntityCreatedCallback : the callback to execute.
|
|
16184
|
-
*/
|
|
16185
|
-
setEntityCreatedCallback(callback) {
|
|
16186
|
-
var _callback = (_stateObject__, arg1) => {
|
|
16187
|
-
var _arg1 = new Multiplayer.SpaceEntity(getNativePointer(arg1));
|
|
16188
|
-
callback(_arg1);
|
|
16189
|
-
};
|
|
16190
|
-
var _callbackPtr = Module.addFunction(_callback, "vii");
|
|
16191
|
-
Module.ccall("csp_multiplayer_OnlineRealtimeEngine_SetEntityCreatedCallback_void_EntityCreatedCallback", "void", ["number", "number", "number"], [this.pointer, _callbackPtr, 0]);
|
|
16192
|
-
}
|
|
16193
16391
|
/**
|
|
16194
16392
|
* @description Finds the first found SpaceEntity of a matching Name.
|
|
16195
16393
|
* @param name - The name to search.
|
|
@@ -16318,6 +16516,18 @@ export class CSPFoundation {
|
|
|
16318
16516
|
_result = _fixedValue;
|
|
16319
16517
|
return _result;
|
|
16320
16518
|
}
|
|
16519
|
+
/**
|
|
16520
|
+
* @description Return all the entities currently known to the realtime engine.
|
|
16521
|
+
@warning This list may be extremely large.
|
|
16522
|
+
* @return A non-owning pointer to a List of non-owning pointers to all entities.
|
|
16523
|
+
*/
|
|
16524
|
+
getAllEntities() {
|
|
16525
|
+
var _ret = Module._malloc(8);
|
|
16526
|
+
Module.ccall("csp_multiplayer_OnlineRealtimeEngine_GetAllEntitiesC_ListPC", "void", ["number", "number"], [_ret, this.pointer]);
|
|
16527
|
+
var _nPtr = new Common.List(getNativePointer(_ret), csp_multiplayer_SpaceEntityFactory, "csp_multiplayer_SpaceEntity");
|
|
16528
|
+
Module._free(_ret);
|
|
16529
|
+
return _nPtr;
|
|
16530
|
+
}
|
|
16321
16531
|
/**
|
|
16322
16532
|
* @description Retrieves all entities that exist at the root level (do not have a parent entity).
|
|
16323
16533
|
* @return A list of root entities containing non-owning pointers to entities.
|
|
@@ -16334,8 +16544,8 @@ export class CSPFoundation {
|
|
|
16334
16544
|
* From a client perspective, ProcessPendingEntityOperations is normally called via the CSPFoundation::Tick method.
|
|
16335
16545
|
* @param entity - A non-owning pointer to the entity to be marked.
|
|
16336
16546
|
*/
|
|
16337
|
-
|
|
16338
|
-
Module.ccall("
|
|
16547
|
+
queueEntityUpdate(entity) {
|
|
16548
|
+
Module.ccall("csp_multiplayer_OnlineRealtimeEngine_QueueEntityUpdate_void_SpaceEntityP", "void", ["number", "number"], [this.pointer, entity.pointer]);
|
|
16339
16549
|
}
|
|
16340
16550
|
/**
|
|
16341
16551
|
* @description Applies any pending changes to entities that have been marked for update.
|
|
@@ -16343,6 +16553,20 @@ export class CSPFoundation {
|
|
|
16343
16553
|
processPendingEntityOperations() {
|
|
16344
16554
|
Module.ccall("csp_multiplayer_OnlineRealtimeEngine_ProcessPendingEntityOperations_void", "void", ["number"], [this.pointer]);
|
|
16345
16555
|
}
|
|
16556
|
+
/**
|
|
16557
|
+
* @description Sets a callback to be executed when a remote entity is created.
|
|
16558
|
+
* To wait for local entities to be created, await the callback provided in the CreateObject/CreateAvatar methods.
|
|
16559
|
+
* /// Only one EntityCreatedCallback may be registered, calling this function again will override whatever was previously set.
|
|
16560
|
+
* /// @param Callback csp::multiplayer::EntityCreatedCallback : the callback to execute.
|
|
16561
|
+
*/
|
|
16562
|
+
setRemoteEntityCreatedCallback(callback) {
|
|
16563
|
+
var _callback = (_stateObject__, arg1) => {
|
|
16564
|
+
var _arg1 = new Multiplayer.SpaceEntity(getNativePointer(arg1));
|
|
16565
|
+
callback(_arg1);
|
|
16566
|
+
};
|
|
16567
|
+
var _callbackPtr = Module.addFunction(_callback, "vii");
|
|
16568
|
+
Module.ccall("csp_multiplayer_OnlineRealtimeEngine_SetRemoteEntityCreatedCallback_void_EntityCreatedCallback", "void", ["number", "number", "number"], [this.pointer, _callbackPtr, 0]);
|
|
16569
|
+
}
|
|
16346
16570
|
/**
|
|
16347
16571
|
* @description Sets a callback to be executed when the script system is ready to run scripts.
|
|
16348
16572
|
* @param callback - The callback to execute.
|
|
@@ -16413,31 +16637,6 @@ export class CSPFoundation {
|
|
|
16413
16637
|
setEntityPatchRateLimitEnabled(enabled) {
|
|
16414
16638
|
Module.ccall("csp_multiplayer_OnlineRealtimeEngine_SetEntityPatchRateLimitEnabled_void_bool", "void", ["number", "boolean"], [this.pointer, enabled]);
|
|
16415
16639
|
}
|
|
16416
|
-
/**
|
|
16417
|
-
* @description Locks the entity mutex.
|
|
16418
|
-
*/
|
|
16419
|
-
lockEntityUpdate() {
|
|
16420
|
-
Module.ccall("csp_multiplayer_OnlineRealtimeEngine_LockEntityUpdateC_void", "void", ["number"], [this.pointer]);
|
|
16421
|
-
}
|
|
16422
|
-
/**
|
|
16423
|
-
* @description Unlocks the entity mutex.
|
|
16424
|
-
*/
|
|
16425
|
-
unlockEntityUpdate() {
|
|
16426
|
-
Module.ccall("csp_multiplayer_OnlineRealtimeEngine_UnlockEntityUpdateC_void", "void", ["number"], [this.pointer]);
|
|
16427
|
-
}
|
|
16428
|
-
/**
|
|
16429
|
-
* @description Queues a specific entity to update. Used in SpaceEntity to queue updates via passing the this pointer
|
|
16430
|
-
*/
|
|
16431
|
-
queueEntityUpdate(entityToUpdate) {
|
|
16432
|
-
Module.ccall("csp_multiplayer_OnlineRealtimeEngine_QueueEntityUpdate_void_SpaceEntityP", "void", ["number", "number"], [this.pointer, entityToUpdate.pointer]);
|
|
16433
|
-
}
|
|
16434
|
-
/**
|
|
16435
|
-
* @description "Resolves" the entity heirarchy, such that the entity is parented appropriately, and internal buffers are populated appropriately.
|
|
16436
|
-
* (Vague, need more understanding about what this does)
|
|
16437
|
-
*/
|
|
16438
|
-
resolveEntityHierarchy(entity) {
|
|
16439
|
-
Module.ccall("csp_multiplayer_OnlineRealtimeEngine_ResolveEntityHierarchy_void_SpaceEntityP", "void", ["number", "number"], [this.pointer, entity.pointer]);
|
|
16440
|
-
}
|
|
16441
16640
|
delete() {
|
|
16442
16641
|
if (this.ownsPointer && !this.disposed) {
|
|
16443
16642
|
Module.ccall("csp_multiplayer_OnlineRealtimeEngine_Dtor", "void", ["number"], [this.pointer]);
|
|
@@ -16681,6 +16880,19 @@ export class CSPFoundation {
|
|
|
16681
16880
|
Module.ccall("csp_multiplayer_AnimatedModelSpaceComponent_SetIsARVisible_void_bool", "void", ["number", "boolean"], [this.pointer, value]);
|
|
16682
16881
|
}
|
|
16683
16882
|
/**
|
|
16883
|
+
@copydoc IVisibleComponent::GetIsVirtualVisible()
|
|
16884
|
+
*/
|
|
16885
|
+
getIsVirtualVisible() {
|
|
16886
|
+
let _result = Module.ccall("csp_multiplayer_AnimatedModelSpaceComponent_GetIsVirtualVisibleC_bool", "boolean", ["number"], [this.pointer]);
|
|
16887
|
+
return _result;
|
|
16888
|
+
}
|
|
16889
|
+
/**
|
|
16890
|
+
@copydoc IVisibleComponent::SetIsVirtualVisible()
|
|
16891
|
+
*/
|
|
16892
|
+
setIsVirtualVisible(value) {
|
|
16893
|
+
Module.ccall("csp_multiplayer_AnimatedModelSpaceComponent_SetIsVirtualVisible_void_bool", "void", ["number", "boolean"], [this.pointer, value]);
|
|
16894
|
+
}
|
|
16895
|
+
/**
|
|
16684
16896
|
@}
|
|
16685
16897
|
* \addtogroup IThirdPartyComponentRef
|
|
16686
16898
|
@{
|
|
@@ -16715,6 +16927,35 @@ export class CSPFoundation {
|
|
|
16715
16927
|
setIsShadowCaster(value) {
|
|
16716
16928
|
Module.ccall("csp_multiplayer_AnimatedModelSpaceComponent_SetIsShadowCaster_void_bool", "void", ["number", "boolean"], [this.pointer, value]);
|
|
16717
16929
|
}
|
|
16930
|
+
/**
|
|
16931
|
+
@}
|
|
16932
|
+
* \addtogroup IRenderBehaviourComponent
|
|
16933
|
+
@{
|
|
16934
|
+
@copydoc IRenderBehaviourComponent::GetShowAsHoldoutInAR()
|
|
16935
|
+
*/
|
|
16936
|
+
getShowAsHoldoutInAR() {
|
|
16937
|
+
let _result = Module.ccall("csp_multiplayer_AnimatedModelSpaceComponent_GetShowAsHoldoutInARC_bool", "boolean", ["number"], [this.pointer]);
|
|
16938
|
+
return _result;
|
|
16939
|
+
}
|
|
16940
|
+
/**
|
|
16941
|
+
@copydoc IRenderBehaviourComponent::SetShowAsHoldoutInAR()
|
|
16942
|
+
*/
|
|
16943
|
+
setShowAsHoldoutInAR(value) {
|
|
16944
|
+
Module.ccall("csp_multiplayer_AnimatedModelSpaceComponent_SetShowAsHoldoutInAR_void_bool", "void", ["number", "boolean"], [this.pointer, value]);
|
|
16945
|
+
}
|
|
16946
|
+
/**
|
|
16947
|
+
@copydoc IRenderBehaviourComponent::GetShowAsHoldoutInVirtual()
|
|
16948
|
+
*/
|
|
16949
|
+
getShowAsHoldoutInVirtual() {
|
|
16950
|
+
let _result = Module.ccall("csp_multiplayer_AnimatedModelSpaceComponent_GetShowAsHoldoutInVirtualC_bool", "boolean", ["number"], [this.pointer]);
|
|
16951
|
+
return _result;
|
|
16952
|
+
}
|
|
16953
|
+
/**
|
|
16954
|
+
@copydoc IRenderBehaviourComponent::SetShowAsHoldoutInVirtual()
|
|
16955
|
+
*/
|
|
16956
|
+
setShowAsHoldoutInVirtual(value) {
|
|
16957
|
+
Module.ccall("csp_multiplayer_AnimatedModelSpaceComponent_SetShowAsHoldoutInVirtual_void_bool", "void", ["number", "boolean"], [this.pointer, value]);
|
|
16958
|
+
}
|
|
16718
16959
|
delete() {
|
|
16719
16960
|
if (this.ownsPointer && !this.disposed) {
|
|
16720
16961
|
Module.ccall("csp_multiplayer_AnimatedModelSpaceComponent_Dtor", "void", ["number"], [this.pointer]);
|
|
@@ -17319,6 +17560,19 @@ export class CSPFoundation {
|
|
|
17319
17560
|
setIsARVisible(value) {
|
|
17320
17561
|
Module.ccall("csp_multiplayer_AvatarSpaceComponent_SetIsARVisible_void_bool", "void", ["number", "boolean"], [this.pointer, value]);
|
|
17321
17562
|
}
|
|
17563
|
+
/**
|
|
17564
|
+
@copydoc IVisibleComponent::GetIsVirtualVisible()
|
|
17565
|
+
*/
|
|
17566
|
+
getIsVirtualVisible() {
|
|
17567
|
+
let _result = Module.ccall("csp_multiplayer_AvatarSpaceComponent_GetIsVirtualVisibleC_bool", "boolean", ["number"], [this.pointer]);
|
|
17568
|
+
return _result;
|
|
17569
|
+
}
|
|
17570
|
+
/**
|
|
17571
|
+
@copydoc IVisibleComponent::SetIsVirtualVisible()
|
|
17572
|
+
*/
|
|
17573
|
+
setIsVirtualVisible(value) {
|
|
17574
|
+
Module.ccall("csp_multiplayer_AvatarSpaceComponent_SetIsVirtualVisible_void_bool", "void", ["number", "boolean"], [this.pointer, value]);
|
|
17575
|
+
}
|
|
17322
17576
|
delete() {
|
|
17323
17577
|
if (this.ownsPointer && !this.disposed) {
|
|
17324
17578
|
Module.ccall("csp_multiplayer_AvatarSpaceComponent_Dtor", "void", ["number"], [this.pointer]);
|
|
@@ -17521,6 +17775,19 @@ export class CSPFoundation {
|
|
|
17521
17775
|
setIsARVisible(value) {
|
|
17522
17776
|
Module.ccall("csp_multiplayer_ButtonSpaceComponent_SetIsARVisible_void_bool", "void", ["number", "boolean"], [this.pointer, value]);
|
|
17523
17777
|
}
|
|
17778
|
+
/**
|
|
17779
|
+
@copydoc IVisibleComponent::GetIsVirtualVisible()
|
|
17780
|
+
*/
|
|
17781
|
+
getIsVirtualVisible() {
|
|
17782
|
+
let _result = Module.ccall("csp_multiplayer_ButtonSpaceComponent_GetIsVirtualVisibleC_bool", "boolean", ["number"], [this.pointer]);
|
|
17783
|
+
return _result;
|
|
17784
|
+
}
|
|
17785
|
+
/**
|
|
17786
|
+
@copydoc IVisibleComponent::SetIsVirtualVisible()
|
|
17787
|
+
*/
|
|
17788
|
+
setIsVirtualVisible(value) {
|
|
17789
|
+
Module.ccall("csp_multiplayer_ButtonSpaceComponent_SetIsVirtualVisible_void_bool", "void", ["number", "boolean"], [this.pointer, value]);
|
|
17790
|
+
}
|
|
17524
17791
|
delete() {
|
|
17525
17792
|
if (this.ownsPointer && !this.disposed) {
|
|
17526
17793
|
Module.ccall("csp_multiplayer_ButtonSpaceComponent_Dtor", "void", ["number"], [this.pointer]);
|
|
@@ -19116,6 +19383,19 @@ export class CSPFoundation {
|
|
|
19116
19383
|
setIsARVisible(value) {
|
|
19117
19384
|
Module.ccall("csp_multiplayer_ExternalLinkSpaceComponent_SetIsARVisible_void_bool", "void", ["number", "boolean"], [this.pointer, value]);
|
|
19118
19385
|
}
|
|
19386
|
+
/**
|
|
19387
|
+
@copydoc IVisibleComponent::GetIsVirtualVisible()
|
|
19388
|
+
*/
|
|
19389
|
+
getIsVirtualVisible() {
|
|
19390
|
+
let _result = Module.ccall("csp_multiplayer_ExternalLinkSpaceComponent_GetIsVirtualVisibleC_bool", "boolean", ["number"], [this.pointer]);
|
|
19391
|
+
return _result;
|
|
19392
|
+
}
|
|
19393
|
+
/**
|
|
19394
|
+
@copydoc IVisibleComponent::SetIsVirtualVisible()
|
|
19395
|
+
*/
|
|
19396
|
+
setIsVirtualVisible(value) {
|
|
19397
|
+
Module.ccall("csp_multiplayer_ExternalLinkSpaceComponent_SetIsVirtualVisible_void_bool", "void", ["number", "boolean"], [this.pointer, value]);
|
|
19398
|
+
}
|
|
19119
19399
|
delete() {
|
|
19120
19400
|
if (this.ownsPointer && !this.disposed) {
|
|
19121
19401
|
Module.ccall("csp_multiplayer_ExternalLinkSpaceComponent_Dtor", "void", ["number"], [this.pointer]);
|
|
@@ -19306,6 +19586,19 @@ export class CSPFoundation {
|
|
|
19306
19586
|
setIsARVisible(value) {
|
|
19307
19587
|
Module.ccall("csp_multiplayer_FiducialMarkerSpaceComponent_SetIsARVisible_void_bool", "void", ["number", "boolean"], [this.pointer, value]);
|
|
19308
19588
|
}
|
|
19589
|
+
/**
|
|
19590
|
+
@copydoc IVisibleComponent::GetIsVirtualVisible()
|
|
19591
|
+
*/
|
|
19592
|
+
getIsVirtualVisible() {
|
|
19593
|
+
let _result = Module.ccall("csp_multiplayer_FiducialMarkerSpaceComponent_GetIsVirtualVisibleC_bool", "boolean", ["number"], [this.pointer]);
|
|
19594
|
+
return _result;
|
|
19595
|
+
}
|
|
19596
|
+
/**
|
|
19597
|
+
@copydoc IVisibleComponent::SetIsVirtualVisible()
|
|
19598
|
+
*/
|
|
19599
|
+
setIsVirtualVisible(value) {
|
|
19600
|
+
Module.ccall("csp_multiplayer_FiducialMarkerSpaceComponent_SetIsVirtualVisible_void_bool", "void", ["number", "boolean"], [this.pointer, value]);
|
|
19601
|
+
}
|
|
19309
19602
|
delete() {
|
|
19310
19603
|
if (this.ownsPointer && !this.disposed) {
|
|
19311
19604
|
Module.ccall("csp_multiplayer_FiducialMarkerSpaceComponent_Dtor", "void", ["number"], [this.pointer]);
|
|
@@ -19583,6 +19876,19 @@ export class CSPFoundation {
|
|
|
19583
19876
|
Module.ccall("csp_multiplayer_FogSpaceComponent_SetIsARVisible_void_bool", "void", ["number", "boolean"], [this.pointer, value]);
|
|
19584
19877
|
}
|
|
19585
19878
|
/**
|
|
19879
|
+
@copydoc IVisibleComponent::GetIsVirtualVisible()
|
|
19880
|
+
*/
|
|
19881
|
+
getIsVirtualVisible() {
|
|
19882
|
+
let _result = Module.ccall("csp_multiplayer_FogSpaceComponent_GetIsVirtualVisibleC_bool", "boolean", ["number"], [this.pointer]);
|
|
19883
|
+
return _result;
|
|
19884
|
+
}
|
|
19885
|
+
/**
|
|
19886
|
+
@copydoc IVisibleComponent::SetIsVirtualVisible()
|
|
19887
|
+
*/
|
|
19888
|
+
setIsVirtualVisible(value) {
|
|
19889
|
+
Module.ccall("csp_multiplayer_FogSpaceComponent_SetIsVirtualVisible_void_bool", "void", ["number", "boolean"], [this.pointer, value]);
|
|
19890
|
+
}
|
|
19891
|
+
/**
|
|
19586
19892
|
@}
|
|
19587
19893
|
* \addtogroup IThirdPartyComponentRef
|
|
19588
19894
|
@{
|
|
@@ -19774,6 +20080,19 @@ export class CSPFoundation {
|
|
|
19774
20080
|
Module.ccall("csp_multiplayer_GaussianSplatSpaceComponent_SetIsARVisible_void_bool", "void", ["number", "boolean"], [this.pointer, value]);
|
|
19775
20081
|
}
|
|
19776
20082
|
/**
|
|
20083
|
+
@copydoc IVisibleComponent::GetIsVirtualVisible()
|
|
20084
|
+
*/
|
|
20085
|
+
getIsVirtualVisible() {
|
|
20086
|
+
let _result = Module.ccall("csp_multiplayer_GaussianSplatSpaceComponent_GetIsVirtualVisibleC_bool", "boolean", ["number"], [this.pointer]);
|
|
20087
|
+
return _result;
|
|
20088
|
+
}
|
|
20089
|
+
/**
|
|
20090
|
+
@copydoc IVisibleComponent::SetIsVirtualVisible()
|
|
20091
|
+
*/
|
|
20092
|
+
setIsVirtualVisible(value) {
|
|
20093
|
+
Module.ccall("csp_multiplayer_GaussianSplatSpaceComponent_SetIsVirtualVisible_void_bool", "void", ["number", "boolean"], [this.pointer, value]);
|
|
20094
|
+
}
|
|
20095
|
+
/**
|
|
19777
20096
|
@}
|
|
19778
20097
|
* \addtogroup IShadowCasterComponent
|
|
19779
20098
|
@{
|
|
@@ -19976,6 +20295,19 @@ export class CSPFoundation {
|
|
|
19976
20295
|
setIsARVisible(value) {
|
|
19977
20296
|
Module.ccall("csp_multiplayer_HotspotSpaceComponent_SetIsARVisible_void_bool", "void", ["number", "boolean"], [this.pointer, value]);
|
|
19978
20297
|
}
|
|
20298
|
+
/**
|
|
20299
|
+
@copydoc IVisibleComponent::GetIsVirtualVisible()
|
|
20300
|
+
*/
|
|
20301
|
+
getIsVirtualVisible() {
|
|
20302
|
+
let _result = Module.ccall("csp_multiplayer_HotspotSpaceComponent_GetIsVirtualVisibleC_bool", "boolean", ["number"], [this.pointer]);
|
|
20303
|
+
return _result;
|
|
20304
|
+
}
|
|
20305
|
+
/**
|
|
20306
|
+
@copydoc IVisibleComponent::SetIsVirtualVisible()
|
|
20307
|
+
*/
|
|
20308
|
+
setIsVirtualVisible(value) {
|
|
20309
|
+
Module.ccall("csp_multiplayer_HotspotSpaceComponent_SetIsVirtualVisible_void_bool", "void", ["number", "boolean"], [this.pointer, value]);
|
|
20310
|
+
}
|
|
19979
20311
|
delete() {
|
|
19980
20312
|
if (this.ownsPointer && !this.disposed) {
|
|
19981
20313
|
Module.ccall("csp_multiplayer_HotspotSpaceComponent_Dtor", "void", ["number"], [this.pointer]);
|
|
@@ -20211,6 +20543,19 @@ export class CSPFoundation {
|
|
|
20211
20543
|
setIsARVisible(value) {
|
|
20212
20544
|
Module.ccall("csp_multiplayer_ImageSpaceComponent_SetIsARVisible_void_bool", "void", ["number", "boolean"], [this.pointer, value]);
|
|
20213
20545
|
}
|
|
20546
|
+
/**
|
|
20547
|
+
@copydoc IVisibleComponent::GetIsVirtualVisible()
|
|
20548
|
+
*/
|
|
20549
|
+
getIsVirtualVisible() {
|
|
20550
|
+
let _result = Module.ccall("csp_multiplayer_ImageSpaceComponent_GetIsVirtualVisibleC_bool", "boolean", ["number"], [this.pointer]);
|
|
20551
|
+
return _result;
|
|
20552
|
+
}
|
|
20553
|
+
/**
|
|
20554
|
+
@copydoc IVisibleComponent::SetIsVirtualVisible()
|
|
20555
|
+
*/
|
|
20556
|
+
setIsVirtualVisible(value) {
|
|
20557
|
+
Module.ccall("csp_multiplayer_ImageSpaceComponent_SetIsVirtualVisible_void_bool", "void", ["number", "boolean"], [this.pointer, value]);
|
|
20558
|
+
}
|
|
20214
20559
|
delete() {
|
|
20215
20560
|
if (this.ownsPointer && !this.disposed) {
|
|
20216
20561
|
Module.ccall("csp_multiplayer_ImageSpaceComponent_Dtor", "void", ["number"], [this.pointer]);
|
|
@@ -20479,6 +20824,19 @@ export class CSPFoundation {
|
|
|
20479
20824
|
Module.ccall("csp_multiplayer_LightSpaceComponent_SetIsARVisible_void_bool", "void", ["number", "boolean"], [this.pointer, value]);
|
|
20480
20825
|
}
|
|
20481
20826
|
/**
|
|
20827
|
+
@copydoc IVisibleComponent::GetIsVirtualVisible()
|
|
20828
|
+
*/
|
|
20829
|
+
getIsVirtualVisible() {
|
|
20830
|
+
let _result = Module.ccall("csp_multiplayer_LightSpaceComponent_GetIsVirtualVisibleC_bool", "boolean", ["number"], [this.pointer]);
|
|
20831
|
+
return _result;
|
|
20832
|
+
}
|
|
20833
|
+
/**
|
|
20834
|
+
@copydoc IVisibleComponent::SetIsVirtualVisible()
|
|
20835
|
+
*/
|
|
20836
|
+
setIsVirtualVisible(value) {
|
|
20837
|
+
Module.ccall("csp_multiplayer_LightSpaceComponent_SetIsVirtualVisible_void_bool", "void", ["number", "boolean"], [this.pointer, value]);
|
|
20838
|
+
}
|
|
20839
|
+
/**
|
|
20482
20840
|
@}
|
|
20483
20841
|
* \addtogroup IThirdPartyComponentRef
|
|
20484
20842
|
@{
|
|
@@ -20980,6 +21338,19 @@ export class CSPFoundation {
|
|
|
20980
21338
|
Module.ccall("csp_multiplayer_ScreenSharingSpaceComponent_SetIsARVisible_void_bool", "void", ["number", "boolean"], [this.pointer, value]);
|
|
20981
21339
|
}
|
|
20982
21340
|
/**
|
|
21341
|
+
@copydoc IVisibleComponent::GetIsVirtualVisible()
|
|
21342
|
+
*/
|
|
21343
|
+
getIsVirtualVisible() {
|
|
21344
|
+
let _result = Module.ccall("csp_multiplayer_ScreenSharingSpaceComponent_GetIsVirtualVisibleC_bool", "boolean", ["number"], [this.pointer]);
|
|
21345
|
+
return _result;
|
|
21346
|
+
}
|
|
21347
|
+
/**
|
|
21348
|
+
@copydoc IVisibleComponent::SetIsVirtualVisible()
|
|
21349
|
+
*/
|
|
21350
|
+
setIsVirtualVisible(value) {
|
|
21351
|
+
Module.ccall("csp_multiplayer_ScreenSharingSpaceComponent_SetIsVirtualVisible_void_bool", "void", ["number", "boolean"], [this.pointer, value]);
|
|
21352
|
+
}
|
|
21353
|
+
/**
|
|
20983
21354
|
@}
|
|
20984
21355
|
* \addtogroup IShadowCasterComponent
|
|
20985
21356
|
@{
|
|
@@ -21340,6 +21711,19 @@ export class CSPFoundation {
|
|
|
21340
21711
|
Module.ccall("csp_multiplayer_StaticModelSpaceComponent_SetIsARVisible_void_bool", "void", ["number", "boolean"], [this.pointer, value]);
|
|
21341
21712
|
}
|
|
21342
21713
|
/**
|
|
21714
|
+
@copydoc IVisibleComponent::GetIsVirtualVisible()
|
|
21715
|
+
*/
|
|
21716
|
+
getIsVirtualVisible() {
|
|
21717
|
+
let _result = Module.ccall("csp_multiplayer_StaticModelSpaceComponent_GetIsVirtualVisibleC_bool", "boolean", ["number"], [this.pointer]);
|
|
21718
|
+
return _result;
|
|
21719
|
+
}
|
|
21720
|
+
/**
|
|
21721
|
+
@copydoc IVisibleComponent::SetIsVirtualVisible()
|
|
21722
|
+
*/
|
|
21723
|
+
setIsVirtualVisible(value) {
|
|
21724
|
+
Module.ccall("csp_multiplayer_StaticModelSpaceComponent_SetIsVirtualVisible_void_bool", "void", ["number", "boolean"], [this.pointer, value]);
|
|
21725
|
+
}
|
|
21726
|
+
/**
|
|
21343
21727
|
@}
|
|
21344
21728
|
* \addtogroup IThirdPartyComponentRef
|
|
21345
21729
|
@{
|
|
@@ -21374,6 +21758,35 @@ export class CSPFoundation {
|
|
|
21374
21758
|
setIsShadowCaster(value) {
|
|
21375
21759
|
Module.ccall("csp_multiplayer_StaticModelSpaceComponent_SetIsShadowCaster_void_bool", "void", ["number", "boolean"], [this.pointer, value]);
|
|
21376
21760
|
}
|
|
21761
|
+
/**
|
|
21762
|
+
@}
|
|
21763
|
+
* \addtogroup IRenderBehaviourComponent
|
|
21764
|
+
@{
|
|
21765
|
+
@copydoc IRenderBehaviourComponent::GetShowAsHoldoutInAR()
|
|
21766
|
+
*/
|
|
21767
|
+
getShowAsHoldoutInAR() {
|
|
21768
|
+
let _result = Module.ccall("csp_multiplayer_StaticModelSpaceComponent_GetShowAsHoldoutInARC_bool", "boolean", ["number"], [this.pointer]);
|
|
21769
|
+
return _result;
|
|
21770
|
+
}
|
|
21771
|
+
/**
|
|
21772
|
+
@copydoc IRenderBehaviourComponent::SetShowAsHoldoutInAR()
|
|
21773
|
+
*/
|
|
21774
|
+
setShowAsHoldoutInAR(value) {
|
|
21775
|
+
Module.ccall("csp_multiplayer_StaticModelSpaceComponent_SetShowAsHoldoutInAR_void_bool", "void", ["number", "boolean"], [this.pointer, value]);
|
|
21776
|
+
}
|
|
21777
|
+
/**
|
|
21778
|
+
@copydoc IRenderBehaviourComponent::GetShowAsHoldoutInVirtual()
|
|
21779
|
+
*/
|
|
21780
|
+
getShowAsHoldoutInVirtual() {
|
|
21781
|
+
let _result = Module.ccall("csp_multiplayer_StaticModelSpaceComponent_GetShowAsHoldoutInVirtualC_bool", "boolean", ["number"], [this.pointer]);
|
|
21782
|
+
return _result;
|
|
21783
|
+
}
|
|
21784
|
+
/**
|
|
21785
|
+
@copydoc IRenderBehaviourComponent::SetShowAsHoldoutInVirtual()
|
|
21786
|
+
*/
|
|
21787
|
+
setShowAsHoldoutInVirtual(value) {
|
|
21788
|
+
Module.ccall("csp_multiplayer_StaticModelSpaceComponent_SetShowAsHoldoutInVirtual_void_bool", "void", ["number", "boolean"], [this.pointer, value]);
|
|
21789
|
+
}
|
|
21377
21790
|
delete() {
|
|
21378
21791
|
if (this.ownsPointer && !this.disposed) {
|
|
21379
21792
|
Module.ccall("csp_multiplayer_StaticModelSpaceComponent_Dtor", "void", ["number"], [this.pointer]);
|
|
@@ -21620,6 +22033,19 @@ export class CSPFoundation {
|
|
|
21620
22033
|
setIsARVisible(value) {
|
|
21621
22034
|
Module.ccall("csp_multiplayer_TextSpaceComponent_SetIsARVisible_void_bool", "void", ["number", "boolean"], [this.pointer, value]);
|
|
21622
22035
|
}
|
|
22036
|
+
/**
|
|
22037
|
+
@copydoc IVisibleComponent::GetIsVirtualVisible()
|
|
22038
|
+
*/
|
|
22039
|
+
getIsVirtualVisible() {
|
|
22040
|
+
let _result = Module.ccall("csp_multiplayer_TextSpaceComponent_GetIsVirtualVisibleC_bool", "boolean", ["number"], [this.pointer]);
|
|
22041
|
+
return _result;
|
|
22042
|
+
}
|
|
22043
|
+
/**
|
|
22044
|
+
@copydoc IVisibleComponent::SetIsVirtualVisible()
|
|
22045
|
+
*/
|
|
22046
|
+
setIsVirtualVisible(value) {
|
|
22047
|
+
Module.ccall("csp_multiplayer_TextSpaceComponent_SetIsVirtualVisible_void_bool", "void", ["number", "boolean"], [this.pointer, value]);
|
|
22048
|
+
}
|
|
21623
22049
|
delete() {
|
|
21624
22050
|
if (this.ownsPointer && !this.disposed) {
|
|
21625
22051
|
Module.ccall("csp_multiplayer_TextSpaceComponent_Dtor", "void", ["number"], [this.pointer]);
|
|
@@ -21974,6 +22400,19 @@ export class CSPFoundation {
|
|
|
21974
22400
|
Module.ccall("csp_multiplayer_VideoPlayerSpaceComponent_SetIsARVisible_void_bool", "void", ["number", "boolean"], [this.pointer, value]);
|
|
21975
22401
|
}
|
|
21976
22402
|
/**
|
|
22403
|
+
@copydoc IVisibleComponent::GetIsVirtualVisible()
|
|
22404
|
+
*/
|
|
22405
|
+
getIsVirtualVisible() {
|
|
22406
|
+
let _result = Module.ccall("csp_multiplayer_VideoPlayerSpaceComponent_GetIsVirtualVisibleC_bool", "boolean", ["number"], [this.pointer]);
|
|
22407
|
+
return _result;
|
|
22408
|
+
}
|
|
22409
|
+
/**
|
|
22410
|
+
@copydoc IVisibleComponent::SetIsVirtualVisible()
|
|
22411
|
+
*/
|
|
22412
|
+
setIsVirtualVisible(value) {
|
|
22413
|
+
Module.ccall("csp_multiplayer_VideoPlayerSpaceComponent_SetIsVirtualVisible_void_bool", "void", ["number", "boolean"], [this.pointer, value]);
|
|
22414
|
+
}
|
|
22415
|
+
/**
|
|
21977
22416
|
@}
|
|
21978
22417
|
* \addtogroup IEnableableComponent
|
|
21979
22418
|
@{
|
|
@@ -23843,6 +24282,7 @@ export class CSPFoundation {
|
|
|
23843
24282
|
}
|
|
23844
24283
|
/**
|
|
23845
24284
|
* @description Gets a material using its AssetCollection and Asset Id.
|
|
24285
|
+
@details This is slower than GetMaterialFromUri, as it needs to first retrieve the internal AssetCollection and Asset.
|
|
23846
24286
|
* @param assetCollectionId - The asset collection id this material is associated with.
|
|
23847
24287
|
* @param assetId - The asset id this material is associated with.
|
|
23848
24288
|
* @param callback - Callback when asynchronous task finishes.
|
|
@@ -23866,6 +24306,34 @@ export class CSPFoundation {
|
|
|
23866
24306
|
Module.ccall("csp_systems_AssetSystem_GetMaterial_void_StringRC_StringRC_MaterialResultCallback", "void", ["number", "string", "string", "number", "number"], [this.pointer, assetCollectionId, assetId, _callbackPtr, 0]);
|
|
23867
24307
|
return _promise;
|
|
23868
24308
|
}
|
|
24309
|
+
/**
|
|
24310
|
+
* @description Gets a material using it's Uri.
|
|
24311
|
+
@details This function does not retrieve the AssetCollection or Asset remotely. It downloads the material directly from the uri.
|
|
24312
|
+
* This should be used in an offline context where The AssetCollection and Asset has been parsed from a SceneData file.
|
|
24313
|
+
* @param assetCollection - The asset collection this material is associated with.
|
|
24314
|
+
* @param assetId - The asset id this material is associated with.
|
|
24315
|
+
* @param uri - The uri this material was uploaded to.
|
|
24316
|
+
* @param callback - Callback when asynchronous task finishes.
|
|
24317
|
+
*/
|
|
24318
|
+
async getMaterialFromUri(assetCollection, assetId, uri) {
|
|
24319
|
+
var _resolve;
|
|
24320
|
+
var _promise = new Promise((_r) => {
|
|
24321
|
+
_resolve = _r;
|
|
24322
|
+
});
|
|
24323
|
+
var _callbackPtr;
|
|
24324
|
+
var _callback = (_stateObject__, result) => {
|
|
24325
|
+
var _resultPtr = getNativePointer(result);
|
|
24326
|
+
var _resultInstance = new Systems.MaterialResult(_resultPtr);
|
|
24327
|
+
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
24328
|
+
return;
|
|
24329
|
+
}
|
|
24330
|
+
_resolve(_resultInstance);
|
|
24331
|
+
Module.removeFunction(_callbackPtr);
|
|
24332
|
+
};
|
|
24333
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
24334
|
+
Module.ccall("csp_systems_AssetSystem_GetMaterialFromUri_void_AssetCollectionRC_StringRC_StringRC_MaterialResultCallback", "void", ["number", "number", "string", "string", "number", "number"], [this.pointer, assetCollection.pointer, assetId, uri, _callbackPtr, 0]);
|
|
24335
|
+
return _promise;
|
|
24336
|
+
}
|
|
23869
24337
|
/**
|
|
23870
24338
|
* @description Sets a callback for an asset changed event. Triggered when assets, such as textures or meshes, are modified
|
|
23871
24339
|
* @param callback - Callback to receive data for the asset that has been changed.
|
|
@@ -27656,7 +28124,8 @@ export class CSPFoundation {
|
|
|
27656
28124
|
* The initial load behaviour will differ based on the concrete IRealtimeEngine passed to this function.
|
|
27657
28125
|
* If user does not have permission to discover or enter the space, callback will be called with EResultCode::Failed and
|
|
27658
28126
|
* ERequestFailureReason::UserSpaceAccessDenied
|
|
27659
|
-
* @param spaceId -
|
|
28127
|
+
* @param spaceId - ID of space to enter into. In the case where you are using an offline realtime engine, this will be the
|
|
28128
|
+
* ID of the local space.
|
|
27660
28129
|
* @param realtimeEngine - RealtimeEngine to load the space with. This object belongs to the caller, and does not
|
|
27661
28130
|
* transfer ownership. Once the space is loaded, the caller should be sure to maintain the lifetime of the RealtimeEngine so long
|
|
27662
28131
|
* as the space is active. Once the caller has called csp::systems::SpaceSystem::ExitSpace and received the callback, then they are
|
|
@@ -29786,12 +30255,15 @@ export class CSPFoundation {
|
|
|
29786
30255
|
* @param userName - Csp::common::string
|
|
29787
30256
|
* @param email - Csp::common::string
|
|
29788
30257
|
* @param password - Csp::common::string
|
|
30258
|
+
* @param createMultiplayerConnection - Whether to create a multiplayer connection. If false, this session will not establish a SignalR
|
|
30259
|
+
* connection to backend services, and thus be unable to receive messages or events. This session will also be unable to enter online spaces via
|
|
30260
|
+
* a csp::multiplayer::OnlineRealtimeEngine. If true, this session will receive events, and may enter both online and offline spaces.
|
|
29789
30261
|
* @param userHasVerifiedAge - An optional bool to specify whether or not the user has verified that they are over 18
|
|
29790
30262
|
* @param callback - Callback to call when a response is received
|
|
29791
30263
|
@pre One of either UserName or Email must not be empty.
|
|
29792
30264
|
@pre Password must not be empty.
|
|
29793
30265
|
*/
|
|
29794
|
-
async login(userName, email, password, userHasVerifiedAge) {
|
|
30266
|
+
async login(userName, email, password, createMultiplayerConnection, userHasVerifiedAge) {
|
|
29795
30267
|
var _resolve;
|
|
29796
30268
|
var _promise = new Promise((_r) => {
|
|
29797
30269
|
_resolve = _r;
|
|
@@ -29812,11 +30284,21 @@ export class CSPFoundation {
|
|
|
29812
30284
|
userHasVerifiedAgePointer = Module._malloc(4);
|
|
29813
30285
|
Module.setValue(userHasVerifiedAgePointer, userHasVerifiedAge ? 1 : 0, "i32");
|
|
29814
30286
|
}
|
|
29815
|
-
Module.ccall("
|
|
30287
|
+
Module.ccall("csp_systems_UserSystem_Login_void_StringRC_StringRC_StringRC_bool_boolRC_LoginStateResultCallback", "void", [
|
|
30288
|
+
"number",
|
|
30289
|
+
"string",
|
|
30290
|
+
"string",
|
|
30291
|
+
"string",
|
|
30292
|
+
"boolean",
|
|
30293
|
+
"boolean",
|
|
30294
|
+
"number",
|
|
30295
|
+
"number",
|
|
30296
|
+
], [
|
|
29816
30297
|
this.pointer,
|
|
29817
30298
|
userName,
|
|
29818
30299
|
email,
|
|
29819
30300
|
password,
|
|
30301
|
+
createMultiplayerConnection,
|
|
29820
30302
|
userHasVerifiedAgePointer,
|
|
29821
30303
|
_callbackPtr,
|
|
29822
30304
|
0,
|
|
@@ -29831,10 +30313,13 @@ export class CSPFoundation {
|
|
|
29831
30313
|
* The refresh token can be obtained after registering a callback with `SetNewLoginTokenReceivedCallback` and logging in regularly.
|
|
29832
30314
|
* @param userId - User ID for the previous session
|
|
29833
30315
|
* @param refreshToken - Refresh token to be used for refreshing the authentication token
|
|
30316
|
+
* @param createMultiplayerConnection - Whether to create a multiplayer connection. If false, this session will not establish a SignalR
|
|
30317
|
+
* connection to backend services, and thus be unable to receive messages or events. This session will also be unable to enter online spaces via
|
|
30318
|
+
* a csp::multiplayer::OnlineRealtimeEngine. If true, this session will receive events, and may enter both online and offline spaces.
|
|
29834
30319
|
* @param callback - Callback when asynchronous task finishes
|
|
29835
30320
|
@pre UserId must not be empty.
|
|
29836
30321
|
*/
|
|
29837
|
-
async loginWithRefreshToken(userId, refreshToken) {
|
|
30322
|
+
async loginWithRefreshToken(userId, refreshToken, createMultiplayerConnection) {
|
|
29838
30323
|
var _resolve;
|
|
29839
30324
|
var _promise = new Promise((_r) => {
|
|
29840
30325
|
_resolve = _r;
|
|
@@ -29850,15 +30335,25 @@ export class CSPFoundation {
|
|
|
29850
30335
|
Module.removeFunction(_callbackPtr);
|
|
29851
30336
|
};
|
|
29852
30337
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
29853
|
-
Module.ccall("
|
|
30338
|
+
Module.ccall("csp_systems_UserSystem_LoginWithRefreshToken_void_StringRC_StringRC_bool_LoginStateResultCallback", "void", ["number", "string", "string", "boolean", "number", "number"], [
|
|
30339
|
+
this.pointer,
|
|
30340
|
+
userId,
|
|
30341
|
+
refreshToken,
|
|
30342
|
+
createMultiplayerConnection,
|
|
30343
|
+
_callbackPtr,
|
|
30344
|
+
0,
|
|
30345
|
+
]);
|
|
29854
30346
|
return _promise;
|
|
29855
30347
|
}
|
|
29856
30348
|
/**
|
|
29857
30349
|
* @description Log in to Magnopus Connected Services as a guest.
|
|
30350
|
+
* @param createMultiplayerConnection - Whether to create a multiplayer connection. If false, this session will not establish a SignalR
|
|
30351
|
+
* connection to backend services, and thus be unable to receive messages or events. This session will also be unable to enter online spaces via
|
|
30352
|
+
* a csp::multiplayer::OnlineRealtimeEngine. If true, this session will receive events, and may enter both online and offline spaces.
|
|
29858
30353
|
* @param userHasVerifiedAge - An optional bool to specify whether or not the user has verified that they are over 18
|
|
29859
30354
|
* @param callback - Callback to call when a response is received
|
|
29860
30355
|
*/
|
|
29861
|
-
async loginAsGuest(userHasVerifiedAge) {
|
|
30356
|
+
async loginAsGuest(createMultiplayerConnection, userHasVerifiedAge) {
|
|
29862
30357
|
var _resolve;
|
|
29863
30358
|
var _promise = new Promise((_r) => {
|
|
29864
30359
|
_resolve = _r;
|
|
@@ -29879,7 +30374,13 @@ export class CSPFoundation {
|
|
|
29879
30374
|
userHasVerifiedAgePointer = Module._malloc(4);
|
|
29880
30375
|
Module.setValue(userHasVerifiedAgePointer, userHasVerifiedAge ? 1 : 0, "i32");
|
|
29881
30376
|
}
|
|
29882
|
-
Module.ccall("
|
|
30377
|
+
Module.ccall("csp_systems_UserSystem_LoginAsGuest_void_bool_boolRC_LoginStateResultCallback", "void", ["number", "boolean", "boolean", "number", "number"], [
|
|
30378
|
+
this.pointer,
|
|
30379
|
+
createMultiplayerConnection,
|
|
30380
|
+
userHasVerifiedAgePointer,
|
|
30381
|
+
_callbackPtr,
|
|
30382
|
+
0,
|
|
30383
|
+
]);
|
|
29883
30384
|
if (userHasVerifiedAgePointer) {
|
|
29884
30385
|
Module._free(userHasVerifiedAgePointer);
|
|
29885
30386
|
}
|
|
@@ -29933,10 +30434,13 @@ export class CSPFoundation {
|
|
|
29933
30434
|
* Note: The Authentication Provider and the Redirect URL you've passed in the first step will be used now
|
|
29934
30435
|
* @param thirdPartyToken - The authentication token returned by the Provider
|
|
29935
30436
|
* @param thirdPartyStateId - The state Id returned by the Provider
|
|
30437
|
+
* @param createMultiplayerConnection - Whether to create a multiplayer connection. If false, this session will not establish a SignalR
|
|
30438
|
+
* connection to backend services, and thus be unable to receive messages or events. This session will also be unable to enter online spaces via
|
|
30439
|
+
* a csp::multiplayer::OnlineRealtimeEngine. If true, this session will receive events, and may enter both online and offline spaces.
|
|
29936
30440
|
* @param userHasVerifiedAge - An optional bool to specify whether or not the user has verified that they are over 18
|
|
29937
30441
|
* @param callback - Callback that contains the result of the magnopus connected services authentication operation
|
|
29938
30442
|
*/
|
|
29939
|
-
async loginToThirdPartyAuthenticationProvider(thirdPartyToken, thirdPartyStateId, userHasVerifiedAge) {
|
|
30443
|
+
async loginToThirdPartyAuthenticationProvider(thirdPartyToken, thirdPartyStateId, createMultiplayerConnection, userHasVerifiedAge) {
|
|
29940
30444
|
var _resolve;
|
|
29941
30445
|
var _promise = new Promise((_r) => {
|
|
29942
30446
|
_resolve = _r;
|
|
@@ -29957,10 +30461,19 @@ export class CSPFoundation {
|
|
|
29957
30461
|
userHasVerifiedAgePointer = Module._malloc(4);
|
|
29958
30462
|
Module.setValue(userHasVerifiedAgePointer, userHasVerifiedAge ? 1 : 0, "i32");
|
|
29959
30463
|
}
|
|
29960
|
-
Module.ccall("
|
|
30464
|
+
Module.ccall("csp_systems_UserSystem_LoginToThirdPartyAuthenticationProvider_void_StringRC_StringRC_bool_boolRC_LoginStateResultCallback", "void", [
|
|
30465
|
+
"number",
|
|
30466
|
+
"string",
|
|
30467
|
+
"string",
|
|
30468
|
+
"boolean",
|
|
30469
|
+
"boolean",
|
|
30470
|
+
"number",
|
|
30471
|
+
"number",
|
|
30472
|
+
], [
|
|
29961
30473
|
this.pointer,
|
|
29962
30474
|
thirdPartyToken,
|
|
29963
30475
|
thirdPartyStateId,
|
|
30476
|
+
createMultiplayerConnection,
|
|
29964
30477
|
userHasVerifiedAgePointer,
|
|
29965
30478
|
_callbackPtr,
|
|
29966
30479
|
0,
|
|
@@ -30480,13 +30993,6 @@ export class CSPFoundation {
|
|
|
30480
30993
|
Module._free(_ret);
|
|
30481
30994
|
return _inst;
|
|
30482
30995
|
}
|
|
30483
|
-
static ofcsp_multiplayer_SpaceEntity() {
|
|
30484
|
-
var _ret = Module._malloc(8);
|
|
30485
|
-
Module.ccall("csp_common_Array_Ctor_csp_multiplayer_SpaceEntity", "void", ["number"], [_ret]);
|
|
30486
|
-
var _inst = new Array(getNativePointer(_ret), csp_multiplayer_SpaceEntityFactory, "csp_multiplayer_SpaceEntity");
|
|
30487
|
-
Module._free(_ret);
|
|
30488
|
-
return _inst;
|
|
30489
|
-
}
|
|
30490
30996
|
static ofcsp_multiplayer_NetworkEventRegistration() {
|
|
30491
30997
|
var _ret = Module._malloc(8);
|
|
30492
30998
|
Module.ccall("csp_common_Array_Ctor_csp_multiplayer_NetworkEventRegistration", "void", ["number"], [_ret]);
|
|
@@ -30522,6 +31028,13 @@ export class CSPFoundation {
|
|
|
30522
31028
|
Module._free(_ret);
|
|
30523
31029
|
return _inst;
|
|
30524
31030
|
}
|
|
31031
|
+
static ofcsp_systems_Anchor() {
|
|
31032
|
+
var _ret = Module._malloc(8);
|
|
31033
|
+
Module.ccall("csp_common_Array_Ctor_csp_systems_Anchor", "void", ["number"], [_ret]);
|
|
31034
|
+
var _inst = new Array(getNativePointer(_ret), csp_systems_AnchorFactory, "csp_systems_Anchor");
|
|
31035
|
+
Module._free(_ret);
|
|
31036
|
+
return _inst;
|
|
31037
|
+
}
|
|
30525
31038
|
static ofcsp_systems_VersionMetadata() {
|
|
30526
31039
|
var _ret = Module._malloc(8);
|
|
30527
31040
|
Module.ccall("csp_common_Array_Ctor_csp_systems_VersionMetadata", "void", ["number"], [_ret]);
|
|
@@ -30704,13 +31217,6 @@ export class CSPFoundation {
|
|
|
30704
31217
|
Module._free(_ret);
|
|
30705
31218
|
return _inst;
|
|
30706
31219
|
}
|
|
30707
|
-
static ofcsp_systems_Anchor() {
|
|
30708
|
-
var _ret = Module._malloc(8);
|
|
30709
|
-
Module.ccall("csp_common_Array_Ctor_csp_systems_Anchor", "void", ["number"], [_ret]);
|
|
30710
|
-
var _inst = new Array(getNativePointer(_ret), csp_systems_AnchorFactory, "csp_systems_Anchor");
|
|
30711
|
-
Module._free(_ret);
|
|
30712
|
-
return _inst;
|
|
30713
|
-
}
|
|
30714
31220
|
static ofcsp_systems_AnchorResolution() {
|
|
30715
31221
|
var _ret = Module._malloc(8);
|
|
30716
31222
|
Module.ccall("csp_common_Array_Ctor_csp_systems_AnchorResolution", "void", ["number"], [_ret]);
|
|
@@ -30795,13 +31301,6 @@ export class CSPFoundation {
|
|
|
30795
31301
|
Module._free(_ret);
|
|
30796
31302
|
return _inst;
|
|
30797
31303
|
}
|
|
30798
|
-
static ofcsp_multiplayer_SpaceEntity_number(size) {
|
|
30799
|
-
var _ret = Module._malloc(8);
|
|
30800
|
-
Module.ccall("csp_common_Array_Conv_size_tC_csp_multiplayer_SpaceEntity", "void", ["number", "number"], [_ret, size]);
|
|
30801
|
-
var _inst = new Array(getNativePointer(_ret), csp_multiplayer_SpaceEntityFactory, "csp_multiplayer_SpaceEntity");
|
|
30802
|
-
Module._free(_ret);
|
|
30803
|
-
return _inst;
|
|
30804
|
-
}
|
|
30805
31304
|
static ofcsp_multiplayer_NetworkEventRegistration_number(size) {
|
|
30806
31305
|
var _ret = Module._malloc(8);
|
|
30807
31306
|
Module.ccall("csp_common_Array_Conv_size_tC_csp_multiplayer_NetworkEventRegistration", "void", ["number", "number"], [_ret, size]);
|
|
@@ -30837,6 +31336,13 @@ export class CSPFoundation {
|
|
|
30837
31336
|
Module._free(_ret);
|
|
30838
31337
|
return _inst;
|
|
30839
31338
|
}
|
|
31339
|
+
static ofcsp_systems_Anchor_number(size) {
|
|
31340
|
+
var _ret = Module._malloc(8);
|
|
31341
|
+
Module.ccall("csp_common_Array_Conv_size_tC_csp_systems_Anchor", "void", ["number", "number"], [_ret, size]);
|
|
31342
|
+
var _inst = new Array(getNativePointer(_ret), csp_systems_AnchorFactory, "csp_systems_Anchor");
|
|
31343
|
+
Module._free(_ret);
|
|
31344
|
+
return _inst;
|
|
31345
|
+
}
|
|
30840
31346
|
static ofcsp_systems_VersionMetadata_number(size) {
|
|
30841
31347
|
var _ret = Module._malloc(8);
|
|
30842
31348
|
Module.ccall("csp_common_Array_Conv_size_tC_csp_systems_VersionMetadata", "void", ["number", "number"], [_ret, size]);
|
|
@@ -31019,13 +31525,6 @@ export class CSPFoundation {
|
|
|
31019
31525
|
Module._free(_ret);
|
|
31020
31526
|
return _inst;
|
|
31021
31527
|
}
|
|
31022
|
-
static ofcsp_systems_Anchor_number(size) {
|
|
31023
|
-
var _ret = Module._malloc(8);
|
|
31024
|
-
Module.ccall("csp_common_Array_Conv_size_tC_csp_systems_Anchor", "void", ["number", "number"], [_ret, size]);
|
|
31025
|
-
var _inst = new Array(getNativePointer(_ret), csp_systems_AnchorFactory, "csp_systems_Anchor");
|
|
31026
|
-
Module._free(_ret);
|
|
31027
|
-
return _inst;
|
|
31028
|
-
}
|
|
31029
31528
|
static ofcsp_systems_AnchorResolution_number(size) {
|
|
31030
31529
|
var _ret = Module._malloc(8);
|
|
31031
31530
|
Module.ccall("csp_common_Array_Conv_size_tC_csp_systems_AnchorResolution", "void", ["number", "number"], [_ret, size]);
|