connected-spaces-platform.web 5.18.0 → 5.20.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.
@@ -327,13 +327,12 @@ function NumberFactory(nativePointer: NativePointer): number {
327
327
  }
328
328
  ProxyClassFactories["Number"] = NumberFactory;
329
329
 
330
- function csp_systems_EThirdPartyPlatformFactory(
330
+ function csp_common_ELoginStateFactory(
331
331
  nativePointer: NativePointer,
332
- ): Systems.EThirdPartyPlatform {
333
- return nativePointer.pointer as Systems.EThirdPartyPlatform;
332
+ ): Common.ELoginState {
333
+ return nativePointer.pointer as Common.ELoginState;
334
334
  }
335
- ProxyClassFactories["csp_systems_EThirdPartyPlatform"] =
336
- csp_systems_EThirdPartyPlatformFactory;
335
+ ProxyClassFactories["csp_common_ELoginState"] = csp_common_ELoginStateFactory;
337
336
 
338
337
  function csp_web_EResponseCodesFactory(
339
338
  nativePointer: NativePointer,
@@ -350,6 +349,14 @@ function csp_multiplayer_ErrorCodeFactory(
350
349
  ProxyClassFactories["csp_multiplayer_ErrorCode"] =
351
350
  csp_multiplayer_ErrorCodeFactory;
352
351
 
352
+ function csp_systems_EThirdPartyPlatformFactory(
353
+ nativePointer: NativePointer,
354
+ ): Systems.EThirdPartyPlatform {
355
+ return nativePointer.pointer as Systems.EThirdPartyPlatform;
356
+ }
357
+ ProxyClassFactories["csp_systems_EThirdPartyPlatform"] =
358
+ csp_systems_EThirdPartyPlatformFactory;
359
+
353
360
  function csp_systems_EResultCodeFactory(
354
361
  nativePointer: NativePointer,
355
362
  ): Systems.EResultCode {
@@ -427,6 +434,14 @@ function csp_multiplayer_ConnectionStateFactory(
427
434
  ProxyClassFactories["csp_multiplayer_ConnectionState"] =
428
435
  csp_multiplayer_ConnectionStateFactory;
429
436
 
437
+ function csp_multiplayer_MultiplayerHubMethodFactory(
438
+ nativePointer: NativePointer,
439
+ ): Multiplayer.MultiplayerHubMethod {
440
+ return nativePointer.pointer as Multiplayer.MultiplayerHubMethod;
441
+ }
442
+ ProxyClassFactories["csp_multiplayer_MultiplayerHubMethod"] =
443
+ csp_multiplayer_MultiplayerHubMethodFactory;
444
+
430
445
  function csp_multiplayer_ReplicatedValueTypeFactory(
431
446
  nativePointer: NativePointer,
432
447
  ): Multiplayer.ReplicatedValueType {
@@ -955,13 +970,6 @@ function csp_systems_EPointOfInterestTypeFactory(
955
970
  ProxyClassFactories["csp_systems_EPointOfInterestType"] =
956
971
  csp_systems_EPointOfInterestTypeFactory;
957
972
 
958
- function csp_systems_ELoginStateFactory(
959
- nativePointer: NativePointer,
960
- ): Systems.ELoginState {
961
- return nativePointer.pointer as Systems.ELoginState;
962
- }
963
- ProxyClassFactories["csp_systems_ELoginState"] = csp_systems_ELoginStateFactory;
964
-
965
973
  function csp_systems_EThirdPartyAuthenticationProvidersFactory(
966
974
  nativePointer: NativePointer,
967
975
  ): Systems.EThirdPartyAuthenticationProviders {
@@ -970,6 +978,13 @@ function csp_systems_EThirdPartyAuthenticationProvidersFactory(
970
978
  ProxyClassFactories["csp_systems_EThirdPartyAuthenticationProviders"] =
971
979
  csp_systems_EThirdPartyAuthenticationProvidersFactory;
972
980
 
981
+ function csp_ServiceDefinitionFactory(
982
+ nativePointer: NativePointer,
983
+ ): NativeClassWrapper {
984
+ return new ServiceDefinition(nativePointer);
985
+ }
986
+ ProxyClassFactories["csp_ServiceDefinition"] = csp_ServiceDefinitionFactory;
987
+
973
988
  function csp_EndpointURIsFactory(
974
989
  nativePointer: NativePointer,
975
990
  ): NativeClassWrapper {
@@ -992,6 +1007,13 @@ function csp_common_CancellationTokenFactory(
992
1007
  ProxyClassFactories["csp_common_CancellationToken"] =
993
1008
  csp_common_CancellationTokenFactory;
994
1009
 
1010
+ function csp_common_LoginStateFactory(
1011
+ nativePointer: NativePointer,
1012
+ ): NativeClassWrapper {
1013
+ return new Common.LoginState(nativePointer);
1014
+ }
1015
+ ProxyClassFactories["csp_common_LoginState"] = csp_common_LoginStateFactory;
1016
+
995
1017
  function csp_common_MimeTypesFactory(
996
1018
  nativePointer: NativePointer,
997
1019
  ): NativeClassWrapper {
@@ -1043,6 +1065,22 @@ function csp_common_Vector4Factory(
1043
1065
  }
1044
1066
  ProxyClassFactories["csp_common_Vector4"] = csp_common_Vector4Factory;
1045
1067
 
1068
+ function csp_common_InvalidInterfaceUseErrorFactory(
1069
+ nativePointer: NativePointer,
1070
+ ): NativeClassWrapper {
1071
+ return new Common.InvalidInterfaceUseError(nativePointer);
1072
+ }
1073
+ ProxyClassFactories["csp_common_InvalidInterfaceUseError"] =
1074
+ csp_common_InvalidInterfaceUseErrorFactory;
1075
+
1076
+ function csp_common_IJSScriptRunnerFactory(
1077
+ nativePointer: NativePointer,
1078
+ ): NativeClassWrapper {
1079
+ return new Common.IJSScriptRunner(nativePointer);
1080
+ }
1081
+ ProxyClassFactories["csp_common_IJSScriptRunner"] =
1082
+ csp_common_IJSScriptRunnerFactory;
1083
+
1046
1084
  function csp_common_IRealtimeEngineFactory(
1047
1085
  nativePointer: NativePointer,
1048
1086
  ): NativeClassWrapper {
@@ -1447,14 +1485,6 @@ function csp_systems_FeatureQuotaInfoFactory(
1447
1485
  ProxyClassFactories["csp_systems_FeatureQuotaInfo"] =
1448
1486
  csp_systems_FeatureQuotaInfoFactory;
1449
1487
 
1450
- function csp_systems_ScriptSystemFactory(
1451
- nativePointer: NativePointer,
1452
- ): NativeClassWrapper {
1453
- return new Systems.ScriptSystem(nativePointer);
1454
- }
1455
- ProxyClassFactories["csp_systems_ScriptSystem"] =
1456
- csp_systems_ScriptSystemFactory;
1457
-
1458
1488
  function csp_systems_SequenceFactory(
1459
1489
  nativePointer: NativePointer,
1460
1490
  ): NativeClassWrapper {
@@ -1561,13 +1591,6 @@ function csp_systems_OlyRotationFactory(
1561
1591
  }
1562
1592
  ProxyClassFactories["csp_systems_OlyRotation"] = csp_systems_OlyRotationFactory;
1563
1593
 
1564
- function csp_systems_LoginStateFactory(
1565
- nativePointer: NativePointer,
1566
- ): NativeClassWrapper {
1567
- return new Systems.LoginState(nativePointer);
1568
- }
1569
- ProxyClassFactories["csp_systems_LoginState"] = csp_systems_LoginStateFactory;
1570
-
1571
1594
  function csp_systems_LoginTokenInfoFactory(
1572
1595
  nativePointer: NativePointer,
1573
1596
  ): NativeClassWrapper {
@@ -2210,6 +2233,14 @@ function csp_systems_QuotaSystemFactory(
2210
2233
  }
2211
2234
  ProxyClassFactories["csp_systems_QuotaSystem"] = csp_systems_QuotaSystemFactory;
2212
2235
 
2236
+ function csp_systems_ScriptSystemFactory(
2237
+ nativePointer: NativePointer,
2238
+ ): NativeClassWrapper {
2239
+ return new Systems.ScriptSystem(nativePointer);
2240
+ }
2241
+ ProxyClassFactories["csp_systems_ScriptSystem"] =
2242
+ csp_systems_ScriptSystemFactory;
2243
+
2213
2244
  function csp_systems_SequenceResultFactory(
2214
2245
  nativePointer: NativePointer,
2215
2246
  ): NativeClassWrapper {
@@ -3090,16 +3121,17 @@ function csp_common_Map_String_csp_common_Array_StringFactory(
3090
3121
  ProxyClassFactories["csp_common_Map_String_csp_common_Array_String"] =
3091
3122
  csp_common_Map_String_csp_common_Array_StringFactory;
3092
3123
 
3093
- export namespace Systems {
3124
+ export namespace Common {
3094
3125
  /**
3095
- * @description Enum for setting csp::systems::Asset third party platform type.
3096
- * NONE indicates that the asset will work on any platform.
3097
- * Any other value indicates it will only work with this platform.
3126
+ * @description Enum which represents possible login states of a CSP client.
3098
3127
  */
3099
- export enum EThirdPartyPlatform {
3100
- NONE,
3101
- UNREAL,
3102
- UNITY,
3128
+ export enum ELoginState {
3129
+ LoginThirdPartyProviderDetailsRequested,
3130
+ LoginRequested,
3131
+ LoggedIn,
3132
+ LogoutRequested,
3133
+ LoggedOut,
3134
+ Error,
3103
3135
  }
3104
3136
  }
3105
3137
 
@@ -3186,6 +3218,18 @@ export namespace Multiplayer {
3186
3218
  }
3187
3219
  }
3188
3220
 
3221
+ export namespace Systems {
3222
+ /**
3223
+ * @description Indicates special handling for any thirdparty platform
3224
+ * NOTE: We may remove this soon, as it's deceptive implying these are the only platforms we support.
3225
+ */
3226
+ export enum EThirdPartyPlatform {
3227
+ NONE,
3228
+ UNREAL,
3229
+ UNITY,
3230
+ }
3231
+ }
3232
+
3189
3233
  export namespace Systems {
3190
3234
  /**
3191
3235
  * @description Code to indicate the result of a request.
@@ -3369,6 +3413,28 @@ export namespace Multiplayer {
3369
3413
  }
3370
3414
  }
3371
3415
 
3416
+ export namespace Multiplayer {
3417
+ /**
3418
+ * @description Enum used to specify the SignalR method to invoke in the multiplayer connection.
3419
+ */
3420
+ export enum MultiplayerHubMethod {
3421
+ DELETE_OBJECTS,
3422
+ GENERATE_OBJECT_IDS,
3423
+ GET_CLIENT_ID,
3424
+ PAGE_SCOPED_OBJECTS,
3425
+ RESET_SCOPES,
3426
+ SEND_EVENT_MESSAGE,
3427
+ SEND_OBJECT_MESSAGE,
3428
+ SEND_OBJECT_NOT_FOUND,
3429
+ SEND_OBJECT_PATCH,
3430
+ SEND_OBJECT_PATCHES,
3431
+ SET_ALLOW_SELF_MESSAGING,
3432
+ SET_SCOPES,
3433
+ START_LISTENING,
3434
+ STOP_LISTENING,
3435
+ }
3436
+ }
3437
+
3372
3438
  export namespace Multiplayer {
3373
3439
  /**
3374
3440
  * @description Enum representing the type of a replicated value.
@@ -4336,17 +4402,6 @@ export namespace Systems {
4336
4402
  }
4337
4403
  }
4338
4404
 
4339
- export namespace Systems {
4340
- export enum ELoginState {
4341
- LoginThirdPartyProviderDetailsRequested,
4342
- LoginRequested,
4343
- LoggedIn,
4344
- LogoutRequested,
4345
- LoggedOut,
4346
- Error,
4347
- }
4348
- }
4349
-
4350
4405
  export namespace Systems {
4351
4406
  /**
4352
4407
  * @description FDN supported Authentication Providers, the ones that can be used are the ones above Num
@@ -4618,6 +4673,104 @@ export namespace Systems {
4618
4673
  }
4619
4674
  }
4620
4675
 
4676
+ /**
4677
+ * @description Represents definition for identifying and versioning an external service endpoint..
4678
+ */
4679
+ export class ServiceDefinition
4680
+ extends NativeClassWrapper
4681
+ implements INativeResource
4682
+ {
4683
+ /** @internal */
4684
+ constructor(pointer: NativePointer) {
4685
+ super(pointer);
4686
+ }
4687
+
4688
+ static create(): ServiceDefinition {
4689
+ var _ptr = Module._malloc(8);
4690
+ Module.ccall("csp_ServiceDefinition_Ctor", "void", ["number"], [_ptr]);
4691
+ var _nPtr = getNativePointer(_ptr);
4692
+
4693
+ return new ServiceDefinition(_nPtr);
4694
+ }
4695
+
4696
+ static create_uRI_version(uRI: string, version: number): ServiceDefinition {
4697
+ var _ptr = Module._malloc(8);
4698
+ Module.ccall(
4699
+ "csp_ServiceDefinition_Ctor_StringRC_uint32_tC",
4700
+ "void",
4701
+ ["number", "string", "number"],
4702
+ [_ptr, uRI, version],
4703
+ );
4704
+ var _nPtr = getNativePointer(_ptr);
4705
+
4706
+ return new ServiceDefinition(_nPtr);
4707
+ }
4708
+
4709
+ /**
4710
+ * @description Gets the URI for the service endpoint.
4711
+ * @return URI of the service endpoint.
4712
+ */
4713
+
4714
+ getURI(): string {
4715
+ let _result = Module.ccall(
4716
+ "csp_ServiceDefinition_GetURIC_String",
4717
+ "number",
4718
+ ["number"],
4719
+ [this.pointer],
4720
+ );
4721
+
4722
+ const _resultString = Module.UTF8ToString(_result);
4723
+ free(_result);
4724
+
4725
+ _result = _resultString;
4726
+
4727
+ return _result;
4728
+ }
4729
+
4730
+ /**
4731
+ * @description Sets the URI for the service endpoint.
4732
+ * @param inURI - URI for service endpoint.
4733
+ */
4734
+
4735
+ setURI(uRI: string): void {
4736
+ Module.ccall(
4737
+ "csp_ServiceDefinition_SetURI_void_StringRC",
4738
+ "void",
4739
+ ["number", "string"],
4740
+ [this.pointer, uRI],
4741
+ );
4742
+ }
4743
+
4744
+ /**
4745
+ * @description Gets the current version of the service endpoint.
4746
+ * @return Representing the current version of the service endpoint.
4747
+ */
4748
+
4749
+ getVersion(): number {
4750
+ let _result = Module.ccall(
4751
+ "csp_ServiceDefinition_GetVersionC_int32_t",
4752
+ "number",
4753
+ ["number"],
4754
+ [this.pointer],
4755
+ );
4756
+
4757
+ return _result;
4758
+ }
4759
+
4760
+ delete(): void {
4761
+ if (this.ownsPointer && !this.disposed) {
4762
+ Module.ccall(
4763
+ "csp_ServiceDefinition_Dtor",
4764
+ "void",
4765
+ ["number"],
4766
+ [this.pointer],
4767
+ );
4768
+
4769
+ this.disposed = true;
4770
+ }
4771
+ }
4772
+ }
4773
+
4621
4774
  /**
4622
4775
  * @description Holds supported endpoint uris used by Foundation.
4623
4776
  */
@@ -4646,143 +4799,157 @@ export class EndpointURIs
4646
4799
  }
4647
4800
  }
4648
4801
 
4649
- get userServiceURI(): string {
4650
- let _result = Module.ccall(
4651
- "csp_EndpointURIs__Get_UserServiceURI",
4652
- "string",
4653
- ["number"],
4654
- [this.pointer],
4802
+ get userService(): ServiceDefinition {
4803
+ const _ptr = Module._malloc(8);
4804
+ Module.ccall(
4805
+ "csp_EndpointURIs__Get_UserService",
4806
+ "void",
4807
+ ["number", "number"],
4808
+ [_ptr, this.pointer],
4655
4809
  );
4656
4810
 
4657
- return _result;
4811
+ const _nPtr = getNativePointer(_ptr);
4812
+ return new ServiceDefinition(_nPtr);
4658
4813
  }
4659
4814
 
4660
- set userServiceURI(value: string) {
4815
+ set userService(value: ServiceDefinition) {
4661
4816
  Module.ccall(
4662
- "csp_EndpointURIs__Set_UserServiceURI",
4817
+ "csp_EndpointURIs__Set_UserService",
4663
4818
  "void",
4664
- ["number", "string"],
4665
- [this.pointer, value],
4819
+ ["number", "number"],
4820
+ [this.pointer, value.pointer],
4666
4821
  );
4667
4822
  }
4668
4823
 
4669
- get prototypeServiceURI(): string {
4670
- let _result = Module.ccall(
4671
- "csp_EndpointURIs__Get_PrototypeServiceURI",
4672
- "string",
4673
- ["number"],
4674
- [this.pointer],
4824
+ get prototypeService(): ServiceDefinition {
4825
+ const _ptr = Module._malloc(8);
4826
+ Module.ccall(
4827
+ "csp_EndpointURIs__Get_PrototypeService",
4828
+ "void",
4829
+ ["number", "number"],
4830
+ [_ptr, this.pointer],
4675
4831
  );
4676
4832
 
4677
- return _result;
4833
+ const _nPtr = getNativePointer(_ptr);
4834
+ return new ServiceDefinition(_nPtr);
4678
4835
  }
4679
4836
 
4680
- set prototypeServiceURI(value: string) {
4837
+ set prototypeService(value: ServiceDefinition) {
4681
4838
  Module.ccall(
4682
- "csp_EndpointURIs__Set_PrototypeServiceURI",
4839
+ "csp_EndpointURIs__Set_PrototypeService",
4683
4840
  "void",
4684
- ["number", "string"],
4685
- [this.pointer, value],
4841
+ ["number", "number"],
4842
+ [this.pointer, value.pointer],
4686
4843
  );
4687
4844
  }
4688
4845
 
4689
- get spatialDataServiceURI(): string {
4690
- let _result = Module.ccall(
4691
- "csp_EndpointURIs__Get_SpatialDataServiceURI",
4692
- "string",
4693
- ["number"],
4694
- [this.pointer],
4846
+ get spatialDataService(): ServiceDefinition {
4847
+ const _ptr = Module._malloc(8);
4848
+ Module.ccall(
4849
+ "csp_EndpointURIs__Get_SpatialDataService",
4850
+ "void",
4851
+ ["number", "number"],
4852
+ [_ptr, this.pointer],
4695
4853
  );
4696
4854
 
4697
- return _result;
4855
+ const _nPtr = getNativePointer(_ptr);
4856
+ return new ServiceDefinition(_nPtr);
4698
4857
  }
4699
4858
 
4700
- set spatialDataServiceURI(value: string) {
4859
+ set spatialDataService(value: ServiceDefinition) {
4701
4860
  Module.ccall(
4702
- "csp_EndpointURIs__Set_SpatialDataServiceURI",
4861
+ "csp_EndpointURIs__Set_SpatialDataService",
4703
4862
  "void",
4704
- ["number", "string"],
4705
- [this.pointer, value],
4863
+ ["number", "number"],
4864
+ [this.pointer, value.pointer],
4706
4865
  );
4707
4866
  }
4708
4867
 
4709
- get multiplayerServiceURI(): string {
4710
- let _result = Module.ccall(
4711
- "csp_EndpointURIs__Get_MultiplayerServiceURI",
4712
- "string",
4713
- ["number"],
4714
- [this.pointer],
4868
+ get multiplayerService(): ServiceDefinition {
4869
+ const _ptr = Module._malloc(8);
4870
+ Module.ccall(
4871
+ "csp_EndpointURIs__Get_MultiplayerService",
4872
+ "void",
4873
+ ["number", "number"],
4874
+ [_ptr, this.pointer],
4715
4875
  );
4716
4876
 
4717
- return _result;
4877
+ const _nPtr = getNativePointer(_ptr);
4878
+ return new ServiceDefinition(_nPtr);
4718
4879
  }
4719
4880
 
4720
- set multiplayerServiceURI(value: string) {
4881
+ set multiplayerService(value: ServiceDefinition) {
4721
4882
  Module.ccall(
4722
- "csp_EndpointURIs__Set_MultiplayerServiceURI",
4883
+ "csp_EndpointURIs__Set_MultiplayerService",
4723
4884
  "void",
4724
- ["number", "string"],
4725
- [this.pointer, value],
4885
+ ["number", "number"],
4886
+ [this.pointer, value.pointer],
4726
4887
  );
4727
4888
  }
4728
4889
 
4729
- get aggregationServiceURI(): string {
4730
- let _result = Module.ccall(
4731
- "csp_EndpointURIs__Get_AggregationServiceURI",
4732
- "string",
4733
- ["number"],
4734
- [this.pointer],
4890
+ get aggregationService(): ServiceDefinition {
4891
+ const _ptr = Module._malloc(8);
4892
+ Module.ccall(
4893
+ "csp_EndpointURIs__Get_AggregationService",
4894
+ "void",
4895
+ ["number", "number"],
4896
+ [_ptr, this.pointer],
4735
4897
  );
4736
4898
 
4737
- return _result;
4899
+ const _nPtr = getNativePointer(_ptr);
4900
+ return new ServiceDefinition(_nPtr);
4738
4901
  }
4739
4902
 
4740
- set aggregationServiceURI(value: string) {
4903
+ set aggregationService(value: ServiceDefinition) {
4741
4904
  Module.ccall(
4742
- "csp_EndpointURIs__Set_AggregationServiceURI",
4905
+ "csp_EndpointURIs__Set_AggregationService",
4743
4906
  "void",
4744
- ["number", "string"],
4745
- [this.pointer, value],
4907
+ ["number", "number"],
4908
+ [this.pointer, value.pointer],
4746
4909
  );
4747
4910
  }
4748
4911
 
4749
- get trackingServiceURI(): string {
4750
- let _result = Module.ccall(
4751
- "csp_EndpointURIs__Get_TrackingServiceURI",
4752
- "string",
4753
- ["number"],
4754
- [this.pointer],
4912
+ get trackingService(): ServiceDefinition {
4913
+ const _ptr = Module._malloc(8);
4914
+ Module.ccall(
4915
+ "csp_EndpointURIs__Get_TrackingService",
4916
+ "void",
4917
+ ["number", "number"],
4918
+ [_ptr, this.pointer],
4755
4919
  );
4756
4920
 
4757
- return _result;
4921
+ const _nPtr = getNativePointer(_ptr);
4922
+ return new ServiceDefinition(_nPtr);
4758
4923
  }
4759
4924
 
4760
- set trackingServiceURI(value: string) {
4925
+ set trackingService(value: ServiceDefinition) {
4761
4926
  Module.ccall(
4762
- "csp_EndpointURIs__Set_TrackingServiceURI",
4927
+ "csp_EndpointURIs__Set_TrackingService",
4763
4928
  "void",
4764
- ["number", "string"],
4765
- [this.pointer, value],
4929
+ ["number", "number"],
4930
+ [this.pointer, value.pointer],
4766
4931
  );
4767
4932
  }
4768
4933
 
4769
- get maintenanceWindowURI(): string {
4770
- let _result = Module.ccall(
4771
- "csp_EndpointURIs__Get_MaintenanceWindowURI",
4772
- "string",
4773
- ["number"],
4774
- [this.pointer],
4934
+ get maintenanceWindow(): ServiceDefinition {
4935
+ const _ptr = Module._malloc(8);
4936
+ Module.ccall(
4937
+ "csp_EndpointURIs__Get_MaintenanceWindow",
4938
+ "void",
4939
+ ["number", "number"],
4940
+ [_ptr, this.pointer],
4775
4941
  );
4776
4942
 
4777
- return _result;
4943
+ const _nPtr = getNativePointer(_ptr);
4944
+ return new ServiceDefinition(_nPtr);
4778
4945
  }
4779
4946
 
4780
- set maintenanceWindowURI(value: string) {
4947
+ set maintenanceWindow(value: ServiceDefinition) {
4781
4948
  Module.ccall(
4782
- "csp_EndpointURIs__Set_MaintenanceWindowURI",
4949
+ "csp_EndpointURIs__Set_MaintenanceWindow",
4783
4950
  "void",
4784
- ["number", "string"],
4785
- [this.pointer, value],
4951
+ ["number", "number"],
4952
+ [this.pointer, value.pointer],
4786
4953
  );
4787
4954
  }
4788
4955
  }
@@ -5308,6 +5475,173 @@ export namespace Common {
5308
5475
  }
5309
5476
  }
5310
5477
 
5478
+ export namespace Common {
5479
+ /**
5480
+ * @description Data structure representing the user login state, including detection of access token expiry
5481
+ */
5482
+ export class LoginState
5483
+ extends NativeClassWrapper
5484
+ implements INativeResource
5485
+ {
5486
+ /** @internal */
5487
+ constructor(pointer: NativePointer) {
5488
+ super(pointer);
5489
+ }
5490
+
5491
+ static create(): LoginState {
5492
+ var _ptr = Module._malloc(8);
5493
+ Module.ccall("csp_common_LoginState_Ctor", "void", ["number"], [_ptr]);
5494
+ var _nPtr = getNativePointer(_ptr);
5495
+
5496
+ return new LoginState(_nPtr);
5497
+ }
5498
+
5499
+ delete(): void {
5500
+ if (this.ownsPointer && !this.disposed) {
5501
+ Module.ccall(
5502
+ "csp_common_LoginState_Dtor",
5503
+ "void",
5504
+ ["number"],
5505
+ [this.pointer],
5506
+ );
5507
+
5508
+ this.disposed = true;
5509
+ }
5510
+ }
5511
+
5512
+ static create_otherState(otherState: Common.LoginState): LoginState {
5513
+ var _ptr = Module._malloc(8);
5514
+ Module.ccall(
5515
+ "csp_common_LoginState_Ctor_LoginStateRC",
5516
+ "void",
5517
+ ["number", "number"],
5518
+ [_ptr, otherState.pointer],
5519
+ );
5520
+ var _nPtr = getNativePointer(_ptr);
5521
+
5522
+ return new LoginState(_nPtr);
5523
+ }
5524
+
5525
+ // operator=
5526
+
5527
+ /**
5528
+ * @description Check if the access token for the login is expired.
5529
+ * @return Is the token expired.
5530
+ */
5531
+
5532
+ refreshNeeded(): boolean {
5533
+ let _result = Module.ccall(
5534
+ "csp_common_LoginState_RefreshNeededC_bool",
5535
+ "boolean",
5536
+ ["number"],
5537
+ [this.pointer],
5538
+ );
5539
+
5540
+ return _result;
5541
+ }
5542
+
5543
+ get state(): Common.ELoginState {
5544
+ let _result = Module.ccall(
5545
+ "csp_common_LoginState__Get_State",
5546
+ "number",
5547
+ ["number"],
5548
+ [this.pointer],
5549
+ );
5550
+
5551
+ return _result;
5552
+ }
5553
+
5554
+ set state(value: Common.ELoginState) {
5555
+ Module.ccall(
5556
+ "csp_common_LoginState__Set_State",
5557
+ "void",
5558
+ ["number", "number"],
5559
+ [this.pointer, value],
5560
+ );
5561
+ }
5562
+
5563
+ get accessToken(): string {
5564
+ let _result = Module.ccall(
5565
+ "csp_common_LoginState__Get_AccessToken",
5566
+ "string",
5567
+ ["number"],
5568
+ [this.pointer],
5569
+ );
5570
+
5571
+ return _result;
5572
+ }
5573
+
5574
+ set accessToken(value: string) {
5575
+ Module.ccall(
5576
+ "csp_common_LoginState__Set_AccessToken",
5577
+ "void",
5578
+ ["number", "string"],
5579
+ [this.pointer, value],
5580
+ );
5581
+ }
5582
+
5583
+ get refreshToken(): string {
5584
+ let _result = Module.ccall(
5585
+ "csp_common_LoginState__Get_RefreshToken",
5586
+ "string",
5587
+ ["number"],
5588
+ [this.pointer],
5589
+ );
5590
+
5591
+ return _result;
5592
+ }
5593
+
5594
+ set refreshToken(value: string) {
5595
+ Module.ccall(
5596
+ "csp_common_LoginState__Set_RefreshToken",
5597
+ "void",
5598
+ ["number", "string"],
5599
+ [this.pointer, value],
5600
+ );
5601
+ }
5602
+
5603
+ get userId(): string {
5604
+ let _result = Module.ccall(
5605
+ "csp_common_LoginState__Get_UserId",
5606
+ "string",
5607
+ ["number"],
5608
+ [this.pointer],
5609
+ );
5610
+
5611
+ return _result;
5612
+ }
5613
+
5614
+ set userId(value: string) {
5615
+ Module.ccall(
5616
+ "csp_common_LoginState__Set_UserId",
5617
+ "void",
5618
+ ["number", "string"],
5619
+ [this.pointer, value],
5620
+ );
5621
+ }
5622
+
5623
+ get deviceId(): string {
5624
+ let _result = Module.ccall(
5625
+ "csp_common_LoginState__Get_DeviceId",
5626
+ "string",
5627
+ ["number"],
5628
+ [this.pointer],
5629
+ );
5630
+
5631
+ return _result;
5632
+ }
5633
+
5634
+ set deviceId(value: string) {
5635
+ Module.ccall(
5636
+ "csp_common_LoginState__Set_DeviceId",
5637
+ "void",
5638
+ ["number", "string"],
5639
+ [this.pointer, value],
5640
+ );
5641
+ }
5642
+ }
5643
+ }
5644
+
5311
5645
  export namespace Common {
5312
5646
  /**
5313
5647
  * @description Holds all valid mime types.
@@ -21503,6 +21837,106 @@ export namespace Common {
21503
21837
  }
21504
21838
  }
21505
21839
 
21840
+ export namespace Common {
21841
+ export class InvalidInterfaceUseError
21842
+ extends NativeClassWrapper
21843
+ implements INativeResource
21844
+ {
21845
+ /** @internal */
21846
+ constructor(pointer: NativePointer) {
21847
+ super(pointer);
21848
+ }
21849
+
21850
+ static create_msg(msg: string): InvalidInterfaceUseError {
21851
+ var _ptr = Module._malloc(8);
21852
+ Module.ccall(
21853
+ "csp_common_InvalidInterfaceUseError_Ctor_StringRC",
21854
+ "void",
21855
+ ["number", "string"],
21856
+ [_ptr, msg],
21857
+ );
21858
+ var _nPtr = getNativePointer(_ptr);
21859
+
21860
+ return new InvalidInterfaceUseError(_nPtr);
21861
+ }
21862
+
21863
+ delete(): void {
21864
+ if (this.ownsPointer && !this.disposed) {
21865
+ Module.ccall(
21866
+ "csp_common_InvalidInterfaceUseError_Dtor",
21867
+ "void",
21868
+ ["number"],
21869
+ [this.pointer],
21870
+ );
21871
+
21872
+ this.disposed = true;
21873
+ }
21874
+ }
21875
+
21876
+ get msg(): string {
21877
+ let _result = Module.ccall(
21878
+ "csp_common_InvalidInterfaceUseError__Get_msg",
21879
+ "string",
21880
+ ["number"],
21881
+ [this.pointer],
21882
+ );
21883
+
21884
+ return _result;
21885
+ }
21886
+
21887
+ set msg(value: string) {
21888
+ Module.ccall(
21889
+ "csp_common_InvalidInterfaceUseError__Set_msg",
21890
+ "void",
21891
+ ["number", "string"],
21892
+ [this.pointer, value],
21893
+ );
21894
+ }
21895
+ }
21896
+ }
21897
+
21898
+ export namespace Common {
21899
+ export class IJSScriptRunner
21900
+ extends NativeClassWrapper
21901
+ implements INativeResource
21902
+ {
21903
+ /** @internal */
21904
+ constructor(pointer: NativePointer) {
21905
+ super(pointer);
21906
+ }
21907
+
21908
+ /**
21909
+ * @description Virtual destructor.
21910
+ */
21911
+ delete(): void {
21912
+ if (this.ownsPointer && !this.disposed) {
21913
+ Module.ccall(
21914
+ "csp_common_IJSScriptRunner_Dtor",
21915
+ "void",
21916
+ ["number"],
21917
+ [this.pointer],
21918
+ );
21919
+
21920
+ this.disposed = true;
21921
+ }
21922
+ }
21923
+
21924
+ runScript(contextId: bigint, scriptText: string): boolean {
21925
+ assert(contextId >= Limits.INT64_MIN);
21926
+ assert(contextId <= Limits.INT64_MAX);
21927
+
21928
+ let _result = Module.ccall(
21929
+ "csp_common_IJSScriptRunner_RunScript_bool_int64_t_StringRC",
21930
+ "boolean",
21931
+ ["number", "bigint", "string"],
21932
+ [this.pointer, contextId, scriptText],
21933
+ );
21934
+
21935
+ return _result;
21936
+ }
21937
+ }
21938
+ }
21939
+
21506
21940
  export namespace Common {
21507
21941
  export class IRealtimeEngine
21508
21942
  extends NativeClassWrapper
@@ -24130,15 +24564,17 @@ export namespace Multiplayer {
24130
24564
  /**
24131
24565
  * @description Creates a SpaceEntity instance using the space entity system provided.
24132
24566
  */
24133
- static create_entitySystem(
24567
+ static create_entitySystem_scriptRunner_logSystem(
24134
24568
  entitySystem: Multiplayer.SpaceEntitySystem,
24569
+ scriptRunner: Common.IJSScriptRunner,
24570
+ logSystem: Common.LogSystem,
24135
24571
  ): SpaceEntity {
24136
24572
  var _ptr = Module._malloc(8);
24137
24573
  Module.ccall(
24138
- "csp_multiplayer_SpaceEntity_Ctor_SpaceEntitySystemP",
24574
+ "csp_multiplayer_SpaceEntity_Ctor_SpaceEntitySystemP_IJSScriptRunnerR_LogSystemP",
24139
24575
  "void",
24140
- ["number", "number"],
24141
- [_ptr, entitySystem.pointer],
24576
+ ["number", "number", "number", "number"],
24577
+ [_ptr, entitySystem.pointer, scriptRunner.pointer, logSystem.pointer],
24142
24578
  );
24143
24579
  var _nPtr = getNativePointer(_ptr);
24144
24580
 
@@ -25077,6 +25513,7 @@ export namespace Multiplayer {
25077
25513
 
25078
25514
  async createAvatar(
25079
25515
  name: string,
25516
+ loginState: Common.LoginState,
25080
25517
  spaceTransform: Multiplayer.SpaceTransform,
25081
25518
  isVisible: boolean,
25082
25519
  state: Multiplayer.AvatarState,
@@ -25102,12 +25539,13 @@ export namespace Multiplayer {
25102
25539
  _callbackPtr = Module.addFunction(_callback, "vii");
25103
25540
 
25104
25541
  Module.ccall(
25105
- "csp_multiplayer_SpaceEntitySystem_CreateAvatar_void_StringRC_SpaceTransformRC_bool_AvatarState_StringRC_AvatarPlayMode_EntityCreatedCallback",
25542
+ "csp_multiplayer_SpaceEntitySystem_CreateAvatar_void_StringRC_LoginStateRC_SpaceTransformRC_bool_AvatarState_StringRC_AvatarPlayMode_EntityCreatedCallback",
25106
25543
  "void",
25107
25544
  [
25108
25545
  "number",
25109
25546
  "string",
25110
25547
  "number",
25548
+ "number",
25111
25549
  "boolean",
25112
25550
  "number",
25113
25551
  "string",
@@ -25118,6 +25556,7 @@ export namespace Multiplayer {
25118
25556
  [
25119
25557
  this.pointer,
25120
25558
  name,
25559
+ loginState.pointer,
25121
25560
  spaceTransform.pointer,
25122
25561
  isVisible,
25123
25562
  state,
@@ -31495,86 +31934,6 @@ export namespace Systems {
31495
31934
  }
31496
31935
  }
31497
31936
 
31498
- export namespace Systems {
31499
- /**
31500
- * @description A JavaScript based scripting system that can be used to create advanced behaviours and interactions between entities in spaces.
31501
- */
31502
- export class ScriptSystem extends NativeClassWrapper {
31503
- /** @internal */
31504
- constructor(pointer: NativePointer) {
31505
- super(pointer);
31506
- }
31507
-
31508
- /**
31509
- * @description Starts up the JavaScript runtime context.
31510
- */
31511
-
31512
- initialise(): void {
31513
- Module.ccall(
31514
- "csp_systems_ScriptSystem_Initialise_void",
31515
- "void",
31516
- ["number"],
31517
- [this.pointer],
31518
- );
31519
- }
31520
-
31521
- /**
31522
- * @description Shuts down and deletes the JavaScript runtime context.
31523
- */
31524
-
31525
- shutdown(): void {
31526
- Module.ccall(
31527
- "csp_systems_ScriptSystem_Shutdown_void",
31528
- "void",
31529
- ["number"],
31530
- [this.pointer],
31531
- );
31532
- }
31533
-
31534
- /**
31535
- * @description Attempts to execute a script in a given context.
31536
- * @param contextId - The context in which to run the script. If the provided context does not exist, the script run will fail.
31537
- * @param scriptText - The script to execute.
31538
- * @return A boolean representing success running the script.
31539
- */
31540
-
31541
- runScript(contextId: bigint, scriptText: string): boolean {
31542
- assert(contextId >= Limits.INT64_MIN);
31543
- assert(contextId <= Limits.INT64_MAX);
31544
-
31545
- let _result = Module.ccall(
31546
- "csp_systems_ScriptSystem_RunScript_bool_int64_t_StringRC",
31547
- "boolean",
31548
- ["number", "bigint", "string"],
31549
- [this.pointer, contextId, scriptText],
31550
- );
31551
-
31552
- return _result;
31553
- }
31554
-
31555
- /**
31556
- * @description Attempts to execute a script from a given file path in the given context.
31557
- * @param contextId - The context in which to run the script. If the provided context does not exist, the script run will fail.
31558
- * @param scriptFilePath - The file path of the script to execute.
31559
- * @return A boolean representing success running the script.
31560
- */
31561
-
31562
- runScriptFile(contextId: bigint, scriptFilePath: string): boolean {
31563
- assert(contextId >= Limits.INT64_MIN);
31564
- assert(contextId <= Limits.INT64_MAX);
31565
-
31566
- let _result = Module.ccall(
31567
- "csp_systems_ScriptSystem_RunScriptFile_bool_int64_t_StringRC",
31568
- "boolean",
31569
- ["number", "bigint", "string"],
31570
- [this.pointer, contextId, scriptFilePath],
31571
- );
31572
-
31573
- return _result;
31574
- }
31575
- }
31576
- }
31577
-
31578
31937
  export namespace Systems {
31579
31938
  /**
31580
31939
  @ingroup Sequence System
@@ -33687,173 +34046,6 @@ export namespace Systems {
33687
34046
  }
33688
34047
  }
33689
34048
 
33690
- export namespace Systems {
33691
- /**
33692
- * @description Data structure representing the user login state, including detection of access token expiry
33693
- */
33694
- export class LoginState
33695
- extends NativeClassWrapper
33696
- implements INativeResource
33697
- {
33698
- /** @internal */
33699
- constructor(pointer: NativePointer) {
33700
- super(pointer);
33701
- }
33702
-
33703
- static create(): LoginState {
33704
- var _ptr = Module._malloc(8);
33705
- Module.ccall("csp_systems_LoginState_Ctor", "void", ["number"], [_ptr]);
33706
- var _nPtr = getNativePointer(_ptr);
33707
-
33708
- return new LoginState(_nPtr);
33709
- }
33710
-
33711
- delete(): void {
33712
- if (this.ownsPointer && !this.disposed) {
33713
- Module.ccall(
33714
- "csp_systems_LoginState_Dtor",
33715
- "void",
33716
- ["number"],
33717
- [this.pointer],
33718
- );
33719
-
33720
- this.disposed = true;
33721
- }
33722
- }
33723
-
33724
- static create_otherState(otherState: Systems.LoginState): LoginState {
33725
- var _ptr = Module._malloc(8);
33726
- Module.ccall(
33727
- "csp_systems_LoginState_Ctor_LoginStateRC",
33728
- "void",
33729
- ["number", "number"],
33730
- [_ptr, otherState.pointer],
33731
- );
33732
- var _nPtr = getNativePointer(_ptr);
33733
-
33734
- return new LoginState(_nPtr);
33735
- }
33736
-
33737
- // operator=
33738
-
33739
- /**
33740
- * @description Check if the access token for the login is expired.
33741
- * @return Is the token expired.
33742
- */
33743
-
33744
- refreshNeeded(): boolean {
33745
- let _result = Module.ccall(
33746
- "csp_systems_LoginState_RefreshNeededC_bool",
33747
- "boolean",
33748
- ["number"],
33749
- [this.pointer],
33750
- );
33751
-
33752
- return _result;
33753
- }
33754
-
33755
- get state(): Systems.ELoginState {
33756
- let _result = Module.ccall(
33757
- "csp_systems_LoginState__Get_State",
33758
- "number",
33759
- ["number"],
33760
- [this.pointer],
33761
- );
33762
-
33763
- return _result;
33764
- }
33765
-
33766
- set state(value: Systems.ELoginState) {
33767
- Module.ccall(
33768
- "csp_systems_LoginState__Set_State",
33769
- "void",
33770
- ["number", "number"],
33771
- [this.pointer, value],
33772
- );
33773
- }
33774
-
33775
- get accessToken(): string {
33776
- let _result = Module.ccall(
33777
- "csp_systems_LoginState__Get_AccessToken",
33778
- "string",
33779
- ["number"],
33780
- [this.pointer],
33781
- );
33782
-
33783
- return _result;
33784
- }
33785
-
33786
- set accessToken(value: string) {
33787
- Module.ccall(
33788
- "csp_systems_LoginState__Set_AccessToken",
33789
- "void",
33790
- ["number", "string"],
33791
- [this.pointer, value],
33792
- );
33793
- }
33794
-
33795
- get refreshToken(): string {
33796
- let _result = Module.ccall(
33797
- "csp_systems_LoginState__Get_RefreshToken",
33798
- "string",
33799
- ["number"],
33800
- [this.pointer],
33801
- );
33802
-
33803
- return _result;
33804
- }
33805
-
33806
- set refreshToken(value: string) {
33807
- Module.ccall(
33808
- "csp_systems_LoginState__Set_RefreshToken",
33809
- "void",
33810
- ["number", "string"],
33811
- [this.pointer, value],
33812
- );
33813
- }
33814
-
33815
- get userId(): string {
33816
- let _result = Module.ccall(
33817
- "csp_systems_LoginState__Get_UserId",
33818
- "string",
33819
- ["number"],
33820
- [this.pointer],
33821
- );
33822
-
33823
- return _result;
33824
- }
33825
-
33826
- set userId(value: string) {
33827
- Module.ccall(
33828
- "csp_systems_LoginState__Set_UserId",
33829
- "void",
33830
- ["number", "string"],
33831
- [this.pointer, value],
33832
- );
33833
- }
33834
-
33835
- get deviceId(): string {
33836
- let _result = Module.ccall(
33837
- "csp_systems_LoginState__Get_DeviceId",
33838
- "string",
33839
- ["number"],
33840
- [this.pointer],
33841
- );
33842
-
33843
- return _result;
33844
- }
33845
-
33846
- set deviceId(value: string) {
33847
- Module.ccall(
33848
- "csp_systems_LoginState__Set_DeviceId",
33849
- "void",
33850
- ["number", "string"],
33851
- [this.pointer, value],
33852
- );
33853
- }
33854
- }
33855
- }
33856
-
33857
34049
  export namespace Systems {
33858
34050
  /**
33859
34051
  * @description Data for access and refresh tokens, and their expiry times.
@@ -34626,15 +34818,16 @@ export namespace Multiplayer {
34626
34818
  * @description Constructs the animated model space component, and associates it with the specified Parent space entity.
34627
34819
  * @param parent - The Space entity that owns this component.
34628
34820
  */
34629
- static create_parent(
34821
+ static create_logSystem_parent(
34822
+ logSystem: Common.LogSystem,
34630
34823
  parent: Multiplayer.SpaceEntity,
34631
34824
  ): AnimatedModelSpaceComponent {
34632
34825
  var _ptr = Module._malloc(8);
34633
34826
  Module.ccall(
34634
- "csp_multiplayer_AnimatedModelSpaceComponent_Ctor_SpaceEntityP",
34827
+ "csp_multiplayer_AnimatedModelSpaceComponent_Ctor_LogSystemP_SpaceEntityP",
34635
34828
  "void",
34636
- ["number", "number"],
34637
- [_ptr, parent.pointer],
34829
+ ["number", "number", "number"],
34830
+ [_ptr, logSystem.pointer, parent.pointer],
34638
34831
  );
34639
34832
  var _nPtr = getNativePointer(_ptr);
34640
34833
 
@@ -35166,13 +35359,16 @@ export namespace Multiplayer {
35166
35359
  * @description Constructs the audio space component, and associates it with the specified Parent space entity.
35167
35360
  * @param parent - The Space entity that owns this component.
35168
35361
  */
35169
- static create_parent(parent: Multiplayer.SpaceEntity): AudioSpaceComponent {
35362
+ static create_logSystem_parent(
35363
+ logSystem: Common.LogSystem,
35364
+ parent: Multiplayer.SpaceEntity,
35365
+ ): AudioSpaceComponent {
35170
35366
  var _ptr = Module._malloc(8);
35171
35367
  Module.ccall(
35172
- "csp_multiplayer_AudioSpaceComponent_Ctor_SpaceEntityP",
35368
+ "csp_multiplayer_AudioSpaceComponent_Ctor_LogSystemP_SpaceEntityP",
35173
35369
  "void",
35174
- ["number", "number"],
35175
- [_ptr, parent.pointer],
35370
+ ["number", "number", "number"],
35371
+ [_ptr, logSystem.pointer, parent.pointer],
35176
35372
  );
35177
35373
  var _nPtr = getNativePointer(_ptr);
35178
35374
 
@@ -35595,15 +35791,16 @@ export namespace Multiplayer {
35595
35791
  * @description Constructs the avatar space component, and associates it with the specified Parent space entity.
35596
35792
  * @param parent - The Space entity that owns this component.
35597
35793
  */
35598
- static create_parent(
35794
+ static create_logSystem_parent(
35795
+ logSystem: Common.LogSystem,
35599
35796
  parent: Multiplayer.SpaceEntity,
35600
35797
  ): AvatarSpaceComponent {
35601
35798
  var _ptr = Module._malloc(8);
35602
35799
  Module.ccall(
35603
- "csp_multiplayer_AvatarSpaceComponent_Ctor_SpaceEntityP",
35800
+ "csp_multiplayer_AvatarSpaceComponent_Ctor_LogSystemP_SpaceEntityP",
35604
35801
  "void",
35605
- ["number", "number"],
35606
- [_ptr, parent.pointer],
35802
+ ["number", "number", "number"],
35803
+ [_ptr, logSystem.pointer, parent.pointer],
35607
35804
  );
35608
35805
  var _nPtr = getNativePointer(_ptr);
35609
35806
 
@@ -36270,15 +36467,16 @@ export namespace Multiplayer {
36270
36467
  * @description Constructs the button space component, and associates it with the specified Parent space entity.
36271
36468
  * @param parent - The Space entity that owns this component.
36272
36469
  */
36273
- static create_parent(
36470
+ static create_logSystem_parent(
36471
+ logSystem: Common.LogSystem,
36274
36472
  parent: Multiplayer.SpaceEntity,
36275
36473
  ): ButtonSpaceComponent {
36276
36474
  var _ptr = Module._malloc(8);
36277
36475
  Module.ccall(
36278
- "csp_multiplayer_ButtonSpaceComponent_Ctor_SpaceEntityP",
36476
+ "csp_multiplayer_ButtonSpaceComponent_Ctor_LogSystemP_SpaceEntityP",
36279
36477
  "void",
36280
- ["number", "number"],
36281
- [_ptr, parent.pointer],
36478
+ ["number", "number", "number"],
36479
+ [_ptr, logSystem.pointer, parent.pointer],
36282
36480
  );
36283
36481
  var _nPtr = getNativePointer(_ptr);
36284
36482
 
@@ -36663,15 +36861,16 @@ export namespace Multiplayer {
36663
36861
  * @description Constructs the CinematicCamera space component, and associates it with the specified Parent space entity.
36664
36862
  * @param parent - The Space entity that owns this component.
36665
36863
  */
36666
- static create_parent(
36864
+ static create_logSystem_parent(
36865
+ logSystem: Common.LogSystem,
36667
36866
  parent: Multiplayer.SpaceEntity,
36668
36867
  ): CinematicCameraSpaceComponent {
36669
36868
  var _ptr = Module._malloc(8);
36670
36869
  Module.ccall(
36671
- "csp_multiplayer_CinematicCameraSpaceComponent_Ctor_SpaceEntityP",
36870
+ "csp_multiplayer_CinematicCameraSpaceComponent_Ctor_LogSystemP_SpaceEntityP",
36672
36871
  "void",
36673
- ["number", "number"],
36674
- [_ptr, parent.pointer],
36872
+ ["number", "number", "number"],
36873
+ [_ptr, logSystem.pointer, parent.pointer],
36675
36874
  );
36676
36875
  var _nPtr = getNativePointer(_ptr);
36677
36876
 
@@ -37186,15 +37385,16 @@ export namespace Multiplayer {
37186
37385
  * @description Constructs the collision space component, and associates it with the specified Parent space entity.
37187
37386
  * @param parent - The Space entity that owns this component.
37188
37387
  */
37189
- static create_parent(
37388
+ static create_logSystem_parent(
37389
+ logSystem: Common.LogSystem,
37190
37390
  parent: Multiplayer.SpaceEntity,
37191
37391
  ): CollisionSpaceComponent {
37192
37392
  var _ptr = Module._malloc(8);
37193
37393
  Module.ccall(
37194
- "csp_multiplayer_CollisionSpaceComponent_Ctor_SpaceEntityP",
37394
+ "csp_multiplayer_CollisionSpaceComponent_Ctor_LogSystemP_SpaceEntityP",
37195
37395
  "void",
37196
- ["number", "number"],
37197
- [_ptr, parent.pointer],
37396
+ ["number", "number", "number"],
37397
+ [_ptr, logSystem.pointer, parent.pointer],
37198
37398
  );
37199
37399
  var _nPtr = getNativePointer(_ptr);
37200
37400
 
@@ -37672,15 +37872,16 @@ export namespace Multiplayer {
37672
37872
  * @param parent - The Space entity that owns this component. This will also register the component to the entity.
37673
37873
  @pre Parent must not be null.
37674
37874
  */
37675
- static create_parent(
37875
+ static create_logSystem_parent(
37876
+ logSystem: Common.LogSystem,
37676
37877
  parent: Multiplayer.SpaceEntity,
37677
37878
  ): ConversationSpaceComponent {
37678
37879
  var _ptr = Module._malloc(8);
37679
37880
  Module.ccall(
37680
- "csp_multiplayer_ConversationSpaceComponent_Ctor_SpaceEntityP",
37881
+ "csp_multiplayer_ConversationSpaceComponent_Ctor_LogSystemP_SpaceEntityP",
37681
37882
  "void",
37682
- ["number", "number"],
37683
- [_ptr, parent.pointer],
37883
+ ["number", "number", "number"],
37884
+ [_ptr, logSystem.pointer, parent.pointer],
37684
37885
  );
37685
37886
  var _nPtr = getNativePointer(_ptr);
37686
37887
 
@@ -38790,15 +38991,16 @@ export namespace Multiplayer {
38790
38991
  * @description Constructs the custom space component, and associates it with the specified Parent space entity.
38791
38992
  * @param parent - The Space entity that owns this component.
38792
38993
  */
38793
- static create_parent(
38994
+ static create_logSystem_parent(
38995
+ logSystem: Common.LogSystem,
38794
38996
  parent: Multiplayer.SpaceEntity,
38795
38997
  ): CustomSpaceComponent {
38796
38998
  var _ptr = Module._malloc(8);
38797
38999
  Module.ccall(
38798
- "csp_multiplayer_CustomSpaceComponent_Ctor_SpaceEntityP",
39000
+ "csp_multiplayer_CustomSpaceComponent_Ctor_LogSystemP_SpaceEntityP",
38799
39001
  "void",
38800
- ["number", "number"],
38801
- [_ptr, parent.pointer],
39002
+ ["number", "number", "number"],
39003
+ [_ptr, logSystem.pointer, parent.pointer],
38802
39004
  );
38803
39005
  var _nPtr = getNativePointer(_ptr);
38804
39006
 
@@ -39013,15 +39215,16 @@ export namespace Multiplayer {
39013
39215
  * @description Constructs the ECommerce space component, and associates it with the specified Parent space entity.
39014
39216
  * @param parent - The Space entity that owns this component.
39015
39217
  */
39016
- static create_parent(
39218
+ static create_logSystem_parent(
39219
+ logSystem: Common.LogSystem,
39017
39220
  parent: Multiplayer.SpaceEntity,
39018
39221
  ): ECommerceSpaceComponent {
39019
39222
  var _ptr = Module._malloc(8);
39020
39223
  Module.ccall(
39021
- "csp_multiplayer_ECommerceSpaceComponent_Ctor_SpaceEntityP",
39224
+ "csp_multiplayer_ECommerceSpaceComponent_Ctor_LogSystemP_SpaceEntityP",
39022
39225
  "void",
39023
- ["number", "number"],
39024
- [_ptr, parent.pointer],
39226
+ ["number", "number", "number"],
39227
+ [_ptr, logSystem.pointer, parent.pointer],
39025
39228
  );
39026
39229
  var _nPtr = getNativePointer(_ptr);
39027
39230
 
@@ -39147,15 +39350,16 @@ export namespace Multiplayer {
39147
39350
  * @description Creates an external link component that can be added to an existing space entity.
39148
39351
  * @param parent - - The space entity to which this new component will belong to.
39149
39352
  */
39150
- static create_parent(
39353
+ static create_logSystem_parent(
39354
+ logSystem: Common.LogSystem,
39151
39355
  parent: Multiplayer.SpaceEntity,
39152
39356
  ): ExternalLinkSpaceComponent {
39153
39357
  var _ptr = Module._malloc(8);
39154
39358
  Module.ccall(
39155
- "csp_multiplayer_ExternalLinkSpaceComponent_Ctor_SpaceEntityP",
39359
+ "csp_multiplayer_ExternalLinkSpaceComponent_Ctor_LogSystemP_SpaceEntityP",
39156
39360
  "void",
39157
- ["number", "number"],
39158
- [_ptr, parent.pointer],
39361
+ ["number", "number", "number"],
39362
+ [_ptr, logSystem.pointer, parent.pointer],
39159
39363
  );
39160
39364
  var _nPtr = getNativePointer(_ptr);
39161
39365
 
@@ -39537,15 +39741,16 @@ export namespace Multiplayer {
39537
39741
  * @description Constructs the fiducial marker space component, and associates it with the specified Parent space entity.
39538
39742
  * @param parent - The Space entity that owns this component.
39539
39743
  */
39540
- static create_parent(
39744
+ static create_logSystem_parent(
39745
+ logSystem: Common.LogSystem,
39541
39746
  parent: Multiplayer.SpaceEntity,
39542
39747
  ): FiducialMarkerSpaceComponent {
39543
39748
  var _ptr = Module._malloc(8);
39544
39749
  Module.ccall(
39545
- "csp_multiplayer_FiducialMarkerSpaceComponent_Ctor_SpaceEntityP",
39750
+ "csp_multiplayer_FiducialMarkerSpaceComponent_Ctor_LogSystemP_SpaceEntityP",
39546
39751
  "void",
39547
- ["number", "number"],
39548
- [_ptr, parent.pointer],
39752
+ ["number", "number", "number"],
39753
+ [_ptr, logSystem.pointer, parent.pointer],
39549
39754
  );
39550
39755
  var _nPtr = getNativePointer(_ptr);
39551
39756
 
@@ -39902,13 +40107,16 @@ export namespace Multiplayer {
39902
40107
  * @description Constructs the fog space component, and associates it with the specified Parent space entity.
39903
40108
  * @param parent - The Space entity that owns this component.
39904
40109
  */
39905
- static create_parent(parent: Multiplayer.SpaceEntity): FogSpaceComponent {
40110
+ static create_logSystem_parent(
40111
+ logSystem: Common.LogSystem,
40112
+ parent: Multiplayer.SpaceEntity,
40113
+ ): FogSpaceComponent {
39906
40114
  var _ptr = Module._malloc(8);
39907
40115
  Module.ccall(
39908
- "csp_multiplayer_FogSpaceComponent_Ctor_SpaceEntityP",
40116
+ "csp_multiplayer_FogSpaceComponent_Ctor_LogSystemP_SpaceEntityP",
39909
40117
  "void",
39910
- ["number", "number"],
39911
- [_ptr, parent.pointer],
40118
+ ["number", "number", "number"],
40119
+ [_ptr, logSystem.pointer, parent.pointer],
39912
40120
  );
39913
40121
  var _nPtr = getNativePointer(_ptr);
39914
40122
 
@@ -40467,15 +40675,16 @@ export namespace Multiplayer {
40467
40675
  * @description Constructs the Gaussian Splat component, and associates it with the specified Parent space entity.
40468
40676
  * @param parent - The Space entity that owns this component.
40469
40677
  */
40470
- static create_parent(
40678
+ static create_logSystem_parent(
40679
+ logSystem: Common.LogSystem,
40471
40680
  parent: Multiplayer.SpaceEntity,
40472
40681
  ): GaussianSplatSpaceComponent {
40473
40682
  var _ptr = Module._malloc(8);
40474
40683
  Module.ccall(
40475
- "csp_multiplayer_GaussianSplatSpaceComponent_Ctor_SpaceEntityP",
40684
+ "csp_multiplayer_GaussianSplatSpaceComponent_Ctor_LogSystemP_SpaceEntityP",
40476
40685
  "void",
40477
- ["number", "number"],
40478
- [_ptr, parent.pointer],
40686
+ ["number", "number", "number"],
40687
+ [_ptr, logSystem.pointer, parent.pointer],
40479
40688
  );
40480
40689
  var _nPtr = getNativePointer(_ptr);
40481
40690
 
@@ -40864,15 +41073,16 @@ export namespace Multiplayer {
40864
41073
  * @description Constructs the Hotspot space component, and associates it with the specified Parent space entity.
40865
41074
  * @param parent - The Space entity that owns this component.
40866
41075
  */
40867
- static create_parent(
41076
+ static create_logSystem_parent(
41077
+ logSystem: Common.LogSystem,
40868
41078
  parent: Multiplayer.SpaceEntity,
40869
41079
  ): HotspotSpaceComponent {
40870
41080
  var _ptr = Module._malloc(8);
40871
41081
  Module.ccall(
40872
- "csp_multiplayer_HotspotSpaceComponent_Ctor_SpaceEntityP",
41082
+ "csp_multiplayer_HotspotSpaceComponent_Ctor_LogSystemP_SpaceEntityP",
40873
41083
  "void",
40874
- ["number", "number"],
40875
- [_ptr, parent.pointer],
41084
+ ["number", "number", "number"],
41085
+ [_ptr, logSystem.pointer, parent.pointer],
40876
41086
  );
40877
41087
  var _nPtr = getNativePointer(_ptr);
40878
41088
 
@@ -41176,13 +41386,16 @@ export namespace Multiplayer {
41176
41386
  * @description Constructs the image space component, and associates it with the specified Parent space entity.
41177
41387
  * @param parent - The Space entity that owns this component.
41178
41388
  */
41179
- static create_parent(parent: Multiplayer.SpaceEntity): ImageSpaceComponent {
41389
+ static create_logSystem_parent(
41390
+ logSystem: Common.LogSystem,
41391
+ parent: Multiplayer.SpaceEntity,
41392
+ ): ImageSpaceComponent {
41180
41393
  var _ptr = Module._malloc(8);
41181
41394
  Module.ccall(
41182
- "csp_multiplayer_ImageSpaceComponent_Ctor_SpaceEntityP",
41395
+ "csp_multiplayer_ImageSpaceComponent_Ctor_LogSystemP_SpaceEntityP",
41183
41396
  "void",
41184
- ["number", "number"],
41185
- [_ptr, parent.pointer],
41397
+ ["number", "number", "number"],
41398
+ [_ptr, logSystem.pointer, parent.pointer],
41186
41399
  );
41187
41400
  var _nPtr = getNativePointer(_ptr);
41188
41401
 
@@ -41631,13 +41844,16 @@ export namespace Multiplayer {
41631
41844
  * @description Constructs the light space component, and associates it with the specified Parent space entity.
41632
41845
  * @param parent - The Space entity that owns this component.
41633
41846
  */
41634
- static create_parent(parent: Multiplayer.SpaceEntity): LightSpaceComponent {
41847
+ static create_logSystem_parent(
41848
+ logSystem: Common.LogSystem,
41849
+ parent: Multiplayer.SpaceEntity,
41850
+ ): LightSpaceComponent {
41635
41851
  var _ptr = Module._malloc(8);
41636
41852
  Module.ccall(
41637
- "csp_multiplayer_LightSpaceComponent_Ctor_SpaceEntityP",
41853
+ "csp_multiplayer_LightSpaceComponent_Ctor_LogSystemP_SpaceEntityP",
41638
41854
  "void",
41639
- ["number", "number"],
41640
- [_ptr, parent.pointer],
41855
+ ["number", "number", "number"],
41856
+ [_ptr, logSystem.pointer, parent.pointer],
41641
41857
  );
41642
41858
  var _nPtr = getNativePointer(_ptr);
41643
41859
 
@@ -42178,15 +42394,16 @@ export namespace Multiplayer {
42178
42394
  * @description Constructs the portal space component, and associates it with the specified Parent space entity.
42179
42395
  * @param parent - The Space entity that owns this component.
42180
42396
  */
42181
- static create_parent(
42397
+ static create_logSystem_parent(
42398
+ logSystem: Common.LogSystem,
42182
42399
  parent: Multiplayer.SpaceEntity,
42183
42400
  ): PortalSpaceComponent {
42184
42401
  var _ptr = Module._malloc(8);
42185
42402
  Module.ccall(
42186
- "csp_multiplayer_PortalSpaceComponent_Ctor_SpaceEntityP",
42403
+ "csp_multiplayer_PortalSpaceComponent_Ctor_LogSystemP_SpaceEntityP",
42187
42404
  "void",
42188
- ["number", "number"],
42189
- [_ptr, parent.pointer],
42405
+ ["number", "number", "number"],
42406
+ [_ptr, logSystem.pointer, parent.pointer],
42190
42407
  );
42191
42408
  var _nPtr = getNativePointer(_ptr);
42192
42409
 
@@ -42330,47 +42547,6 @@ export namespace Multiplayer {
42330
42547
  );
42331
42548
  }
42332
42549
 
42333
- /**
42334
- @}
42335
- * @description Retrieves the space thumbnail information associated with the space.
42336
- * If the space does not have a thumbnail associated with it the result callback will be successful, the
42337
- * HTTP res code will be ResponseNotFound and the Uri field inside the UriResult will be empty.
42338
- * @param callback - Callback when asynchronous task finishes
42339
- */
42340
-
42341
- async getSpaceThumbnail(): Promise<Systems.UriResult> {
42342
- var _resolve;
42343
-
42344
- var _promise = new Promise<Systems.UriResult>((_r) => {
42345
- _resolve = _r;
42346
- });
42347
-
42348
- var _callbackPtr: number;
42349
- var _callback = (_stateObject__: number, result) => {
42350
- var _resultPtr = getNativePointer(result);
42351
- var _resultInstance = new Systems.UriResult(_resultPtr);
42352
-
42353
- if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
42354
- return;
42355
- }
42356
-
42357
- _resolve(_resultInstance);
42358
-
42359
- Module.removeFunction(_callbackPtr);
42360
- };
42361
-
42362
- _callbackPtr = Module.addFunction(_callback, "vii");
42363
-
42364
- Module.ccall(
42365
- "csp_multiplayer_PortalSpaceComponent_GetSpaceThumbnailC_void_UriResultCallback",
42366
- "void",
42367
- ["number", "number", "number"],
42368
- [this.pointer, _callbackPtr, 0],
42369
- );
42370
-
42371
- return _promise;
42372
- }
42373
-
42374
42550
  delete(): void {
42375
42551
  if (this.ownsPointer && !this.disposed) {
42376
42552
  Module.ccall(
@@ -42420,15 +42596,16 @@ export namespace Multiplayer {
42420
42596
  * @description Constructs the reflection component, and associates it with the specified Parent space entity.
42421
42597
  * @param parent - The Space entity that owns this component.
42422
42598
  */
42423
- static create_parent(
42599
+ static create_logSystem_parent(
42600
+ logSystem: Common.LogSystem,
42424
42601
  parent: Multiplayer.SpaceEntity,
42425
42602
  ): ReflectionSpaceComponent {
42426
42603
  var _ptr = Module._malloc(8);
42427
42604
  Module.ccall(
42428
- "csp_multiplayer_ReflectionSpaceComponent_Ctor_SpaceEntityP",
42605
+ "csp_multiplayer_ReflectionSpaceComponent_Ctor_LogSystemP_SpaceEntityP",
42429
42606
  "void",
42430
- ["number", "number"],
42431
- [_ptr, parent.pointer],
42607
+ ["number", "number", "number"],
42608
+ [_ptr, logSystem.pointer, parent.pointer],
42432
42609
  );
42433
42610
  var _nPtr = getNativePointer(_ptr);
42434
42611
 
@@ -42733,15 +42910,16 @@ export namespace Multiplayer {
42733
42910
  * @description Constructs the script space component, and associates it with the specified Parent space entity.
42734
42911
  * @param parent - The Space entity that owns this component.
42735
42912
  */
42736
- static create_parent(
42913
+ static create_logSystem_parent(
42914
+ logSystem: Common.LogSystem,
42737
42915
  parent: Multiplayer.SpaceEntity,
42738
42916
  ): ScriptSpaceComponent {
42739
42917
  var _ptr = Module._malloc(8);
42740
42918
  Module.ccall(
42741
- "csp_multiplayer_ScriptSpaceComponent_Ctor_SpaceEntityP",
42919
+ "csp_multiplayer_ScriptSpaceComponent_Ctor_LogSystemP_SpaceEntityP",
42742
42920
  "void",
42743
- ["number", "number"],
42744
- [_ptr, parent.pointer],
42921
+ ["number", "number", "number"],
42922
+ [_ptr, logSystem.pointer, parent.pointer],
42745
42923
  );
42746
42924
  var _nPtr = getNativePointer(_ptr);
42747
42925
 
@@ -42887,15 +43065,16 @@ export namespace Multiplayer {
42887
43065
  * @description Constructs the spline space component, and associates it with the specified Parent space entity.
42888
43066
  * @param parent - The Space entity that owns this component.
42889
43067
  */
42890
- static create_parent(
43068
+ static create_logSystem_parent(
43069
+ logSystem: Common.LogSystem,
42891
43070
  parent: Multiplayer.SpaceEntity,
42892
43071
  ): SplineSpaceComponent {
42893
43072
  var _ptr = Module._malloc(8);
42894
43073
  Module.ccall(
42895
- "csp_multiplayer_SplineSpaceComponent_Ctor_SpaceEntityP",
43074
+ "csp_multiplayer_SplineSpaceComponent_Ctor_LogSystemP_SpaceEntityP",
42896
43075
  "void",
42897
- ["number", "number"],
42898
- [_ptr, parent.pointer],
43076
+ ["number", "number", "number"],
43077
+ [_ptr, logSystem.pointer, parent.pointer],
42899
43078
  );
42900
43079
  var _nPtr = getNativePointer(_ptr);
42901
43080
 
@@ -43018,15 +43197,16 @@ export namespace Multiplayer {
43018
43197
  * @description Constructs the static model space component, and associates it with the specified Parent space entity.
43019
43198
  * @param parent - The Space entity that owns this component.
43020
43199
  */
43021
- static create_parent(
43200
+ static create_logSystem_parent(
43201
+ logSystem: Common.LogSystem,
43022
43202
  parent: Multiplayer.SpaceEntity,
43023
43203
  ): StaticModelSpaceComponent {
43024
43204
  var _ptr = Module._malloc(8);
43025
43205
  Module.ccall(
43026
- "csp_multiplayer_StaticModelSpaceComponent_Ctor_SpaceEntityP",
43206
+ "csp_multiplayer_StaticModelSpaceComponent_Ctor_LogSystemP_SpaceEntityP",
43027
43207
  "void",
43028
- ["number", "number"],
43029
- [_ptr, parent.pointer],
43208
+ ["number", "number", "number"],
43209
+ [_ptr, logSystem.pointer, parent.pointer],
43030
43210
  );
43031
43211
  var _nPtr = getNativePointer(_ptr);
43032
43212
 
@@ -43463,13 +43643,16 @@ export namespace Multiplayer {
43463
43643
  * @description Constructs the text space component, and associates it with the specified Parent space entity.
43464
43644
  * @param parent - The Space entity that owns this component.
43465
43645
  */
43466
- static create_parent(parent: Multiplayer.SpaceEntity): TextSpaceComponent {
43646
+ static create_logSystem_parent(
43647
+ logSystem: Common.LogSystem,
43648
+ parent: Multiplayer.SpaceEntity,
43649
+ ): TextSpaceComponent {
43467
43650
  var _ptr = Module._malloc(8);
43468
43651
  Module.ccall(
43469
- "csp_multiplayer_TextSpaceComponent_Ctor_SpaceEntityP",
43652
+ "csp_multiplayer_TextSpaceComponent_Ctor_LogSystemP_SpaceEntityP",
43470
43653
  "void",
43471
- ["number", "number"],
43472
- [_ptr, parent.pointer],
43654
+ ["number", "number", "number"],
43655
+ [_ptr, logSystem.pointer, parent.pointer],
43473
43656
  );
43474
43657
  var _nPtr = getNativePointer(_ptr);
43475
43658
 
@@ -43944,15 +44127,16 @@ export namespace Multiplayer {
43944
44127
  * @description Constructs the video player component, and associates it with the specified Parent space entity.
43945
44128
  * @param parent - The Space entity that owns this component.
43946
44129
  */
43947
- static create_parent(
44130
+ static create_logSystem_parent(
44131
+ logSystem: Common.LogSystem,
43948
44132
  parent: Multiplayer.SpaceEntity,
43949
44133
  ): VideoPlayerSpaceComponent {
43950
44134
  var _ptr = Module._malloc(8);
43951
44135
  Module.ccall(
43952
- "csp_multiplayer_VideoPlayerSpaceComponent_Ctor_SpaceEntityP",
44136
+ "csp_multiplayer_VideoPlayerSpaceComponent_Ctor_LogSystemP_SpaceEntityP",
43953
44137
  "void",
43954
- ["number", "number"],
43955
- [_ptr, parent.pointer],
44138
+ ["number", "number", "number"],
44139
+ [_ptr, logSystem.pointer, parent.pointer],
43956
44140
  );
43957
44141
  var _nPtr = getNativePointer(_ptr);
43958
44142
 
@@ -50559,17 +50743,24 @@ export namespace Systems {
50559
50743
  );
50560
50744
  }
50561
50745
 
50562
- static create_sequenceSystem_spaceSystem_eventBus(
50746
+ static create_sequenceSystem_spaceSystem_eventBus_logSystem(
50563
50747
  sequenceSystem: Systems.SequenceSystem,
50564
50748
  spaceSystem: Systems.SpaceSystem,
50565
50749
  eventBus: Multiplayer.EventBus,
50750
+ logSystem: Common.LogSystem,
50566
50751
  ): HotspotSequenceSystem {
50567
50752
  var _ptr = Module._malloc(8);
50568
50753
  Module.ccall(
50569
- "csp_systems_HotspotSequenceSystem_Ctor_SequenceSystemP_SpaceSystemP_EventBusP",
50754
+ "csp_systems_HotspotSequenceSystem_Ctor_SequenceSystemP_SpaceSystemP_EventBusP_LogSystemR",
50570
50755
  "void",
50571
- ["number", "number", "number", "number"],
50572
- [_ptr, sequenceSystem.pointer, spaceSystem.pointer, eventBus.pointer],
50756
+ ["number", "number", "number", "number", "number"],
50757
+ [
50758
+ _ptr,
50759
+ sequenceSystem.pointer,
50760
+ spaceSystem.pointer,
50761
+ eventBus.pointer,
50762
+ logSystem.pointer,
50763
+ ],
50573
50764
  );
50574
50765
  var _nPtr = getNativePointer(_ptr);
50575
50766
 
@@ -50839,11 +51030,12 @@ export namespace Systems {
50839
51030
  /**
50840
51031
  * @description This will delete any groups which only contain this item
50841
51032
  * For any groups which contanin the given item and additional items, it will just update the group by removing the given item.
50842
- * @param itemName - An item to update all sequences containing.
51033
+ * @param itemID - An item to update all sequences containing. Can be retrieved from a HotspotSpaceComponent via
51034
+ * HotspotSpaceComponent::GetUniqueComponentId
50843
51035
  * @param callback - Callback to call when a response is received
50844
51036
  */
50845
51037
 
50846
- async removeItemFromGroups(itemName: string): Promise<Systems.NullResult> {
51038
+ async removeItemFromGroups(itemID: string): Promise<Systems.NullResult> {
50847
51039
  var _resolve;
50848
51040
 
50849
51041
  var _promise = new Promise<Systems.NullResult>((_r) => {
@@ -50870,7 +51062,7 @@ export namespace Systems {
50870
51062
  "csp_systems_HotspotSequenceSystem_RemoveItemFromGroups_void_StringRC_NullResultCallback",
50871
51063
  "void",
50872
51064
  ["number", "string", "number", "number"],
50873
- [this.pointer, itemName, _callbackPtr, 0],
51065
+ [this.pointer, itemID, _callbackPtr, 0],
50874
51066
  );
50875
51067
 
50876
51068
  return _promise;
@@ -51782,6 +51974,98 @@ export namespace Systems {
51782
51974
  }
51783
51975
  }
51784
51976
 
51977
+ export namespace Systems {
51978
+ /**
51979
+ * @description A JavaScript based scripting system that can be used to create advanced behaviours and interactions between entities in spaces.
51980
+ */
51981
+ export class ScriptSystem extends Common.IJSScriptRunner {
51982
+ /** @internal */
51983
+ constructor(pointer: NativePointer) {
51984
+ super(pointer);
51985
+ }
51986
+
51987
+ static fromIJSScriptRunner(
51988
+ baseInstance: Common.IJSScriptRunner,
51989
+ ): Systems.ScriptSystem {
51990
+ const nativeClassWrapper = baseInstance as unknown as NativeClassWrapper;
51991
+ return new Systems.ScriptSystem(
51992
+ new NativePointer(
51993
+ nativeClassWrapper.pointer,
51994
+ nativeClassWrapper.ownsPointer,
51995
+ ),
51996
+ );
51997
+ }
51998
+
51999
+ /**
52000
+ * @description Starts up the JavaScript runtime context.
52001
+ */
52002
+
52003
+ initialise(): void {
52004
+ Module.ccall(
52005
+ "csp_systems_ScriptSystem_Initialise_void",
52006
+ "void",
52007
+ ["number"],
52008
+ [this.pointer],
52009
+ );
52010
+ }
52011
+
52012
+ /**
52013
+ * @description Shuts down and deletes the JavaScript runtime context.
52014
+ */
52015
+
52016
+ shutdown(): void {
52017
+ Module.ccall(
52018
+ "csp_systems_ScriptSystem_Shutdown_void",
52019
+ "void",
52020
+ ["number"],
52021
+ [this.pointer],
52022
+ );
52023
+ }
52024
+
52025
+ /**
52026
+ * @description Attempts to execute a script in a given context.
52027
+ * @param contextId - The context in which to run the script. If the provided context does not exist, the script run will fail.
52028
+ * @param scriptText - The script to execute.
52029
+ * @return A boolean representing success running the script.
52030
+ */
52031
+
52032
+ runScript(contextId: bigint, scriptText: string): boolean {
52033
+ assert(contextId >= Limits.INT64_MIN);
52034
+ assert(contextId <= Limits.INT64_MAX);
52035
+
52036
+ let _result = Module.ccall(
52037
+ "csp_systems_ScriptSystem_RunScript_bool_int64_t_StringRC",
52038
+ "boolean",
52039
+ ["number", "bigint", "string"],
52040
+ [this.pointer, contextId, scriptText],
52041
+ );
52042
+
52043
+ return _result;
52044
+ }
52045
+
52046
+ /**
52047
+ * @description Attempts to execute a script from a given file path in the given context.
52048
+ * @param contextId - The context in which to run the script. If the provided context does not exist, the script run will fail.
52049
+ * @param scriptFilePath - The file path of the script to execute.
52050
+ * @return A boolean representing success running the script.
52051
+ */
52052
+
52053
+ runScriptFile(contextId: bigint, scriptFilePath: string): boolean {
52054
+ assert(contextId >= Limits.INT64_MIN);
52055
+ assert(contextId <= Limits.INT64_MAX);
52056
+
52057
+ let _result = Module.ccall(
52058
+ "csp_systems_ScriptSystem_RunScriptFile_bool_int64_t_StringRC",
52059
+ "boolean",
52060
+ ["number", "bigint", "string"],
52061
+ [this.pointer, contextId, scriptFilePath],
52062
+ );
52063
+
52064
+ return _result;
52065
+ }
52066
+ }
52067
+ }
52068
+
51785
52069
  export namespace Systems {
51786
52070
  /**
51787
52071
  @ingroup Sequence System
@@ -57078,7 +57362,7 @@ export namespace Systems {
57078
57362
  );
57079
57363
  }
57080
57364
 
57081
- getLoginState(): Systems.LoginState {
57365
+ getLoginState(): Common.LoginState {
57082
57366
  var _ret = Module._malloc(8);
57083
57367
 
57084
57368
  Module.ccall(
@@ -57087,7 +57371,7 @@ export namespace Systems {
57087
57371
  ["number", "number"],
57088
57372
  [_ret, this.pointer],
57089
57373
  );
57090
- var _nPtr = new Systems.LoginState(getNativePointer(_ret));
57374
+ var _nPtr = new Common.LoginState(getNativePointer(_ret));
57091
57375
  Module._free(_ret);
57092
57376
 
57093
57377
  return _nPtr;
@@ -57595,7 +57879,7 @@ export namespace Systems {
57595
57879
  * @return Current login state
57596
57880
  */
57597
57881
 
57598
- getLoginState(): Systems.LoginState {
57882
+ getLoginState(): Common.LoginState {
57599
57883
  var _ret = Module._malloc(8);
57600
57884
 
57601
57885
  Module.ccall(
@@ -57604,7 +57888,7 @@ export namespace Systems {
57604
57888
  ["number", "number"],
57605
57889
  [_ret, this.pointer],
57606
57890
  );
57607
- var _nPtr = new Systems.LoginState(getNativePointer(_ret));
57891
+ var _nPtr = new Common.LoginState(getNativePointer(_ret));
57608
57892
  Module._free(_ret);
57609
57893
 
57610
57894
  return _nPtr;