connected-spaces-platform.web 5.19.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,16 +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_logSystem(
24567
+ static create_entitySystem_scriptRunner_logSystem(
24134
24568
  entitySystem: Multiplayer.SpaceEntitySystem,
24569
+ scriptRunner: Common.IJSScriptRunner,
24135
24570
  logSystem: Common.LogSystem,
24136
24571
  ): SpaceEntity {
24137
24572
  var _ptr = Module._malloc(8);
24138
24573
  Module.ccall(
24139
- "csp_multiplayer_SpaceEntity_Ctor_SpaceEntitySystemP_LogSystemP",
24574
+ "csp_multiplayer_SpaceEntity_Ctor_SpaceEntitySystemP_IJSScriptRunnerR_LogSystemP",
24140
24575
  "void",
24141
- ["number", "number", "number"],
24142
- [_ptr, entitySystem.pointer, logSystem.pointer],
24576
+ ["number", "number", "number", "number"],
24577
+ [_ptr, entitySystem.pointer, scriptRunner.pointer, logSystem.pointer],
24143
24578
  );
24144
24579
  var _nPtr = getNativePointer(_ptr);
24145
24580
 
@@ -25078,6 +25513,7 @@ export namespace Multiplayer {
25078
25513
 
25079
25514
  async createAvatar(
25080
25515
  name: string,
25516
+ loginState: Common.LoginState,
25081
25517
  spaceTransform: Multiplayer.SpaceTransform,
25082
25518
  isVisible: boolean,
25083
25519
  state: Multiplayer.AvatarState,
@@ -25103,12 +25539,13 @@ export namespace Multiplayer {
25103
25539
  _callbackPtr = Module.addFunction(_callback, "vii");
25104
25540
 
25105
25541
  Module.ccall(
25106
- "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",
25107
25543
  "void",
25108
25544
  [
25109
25545
  "number",
25110
25546
  "string",
25111
25547
  "number",
25548
+ "number",
25112
25549
  "boolean",
25113
25550
  "number",
25114
25551
  "string",
@@ -25119,6 +25556,7 @@ export namespace Multiplayer {
25119
25556
  [
25120
25557
  this.pointer,
25121
25558
  name,
25559
+ loginState.pointer,
25122
25560
  spaceTransform.pointer,
25123
25561
  isVisible,
25124
25562
  state,
@@ -31496,86 +31934,6 @@ export namespace Systems {
31496
31934
  }
31497
31935
  }
31498
31936
 
31499
- export namespace Systems {
31500
- /**
31501
- * @description A JavaScript based scripting system that can be used to create advanced behaviours and interactions between entities in spaces.
31502
- */
31503
- export class ScriptSystem extends NativeClassWrapper {
31504
- /** @internal */
31505
- constructor(pointer: NativePointer) {
31506
- super(pointer);
31507
- }
31508
-
31509
- /**
31510
- * @description Starts up the JavaScript runtime context.
31511
- */
31512
-
31513
- initialise(): void {
31514
- Module.ccall(
31515
- "csp_systems_ScriptSystem_Initialise_void",
31516
- "void",
31517
- ["number"],
31518
- [this.pointer],
31519
- );
31520
- }
31521
-
31522
- /**
31523
- * @description Shuts down and deletes the JavaScript runtime context.
31524
- */
31525
-
31526
- shutdown(): void {
31527
- Module.ccall(
31528
- "csp_systems_ScriptSystem_Shutdown_void",
31529
- "void",
31530
- ["number"],
31531
- [this.pointer],
31532
- );
31533
- }
31534
-
31535
- /**
31536
- * @description Attempts to execute a script in a given context.
31537
- * @param contextId - The context in which to run the script. If the provided context does not exist, the script run will fail.
31538
- * @param scriptText - The script to execute.
31539
- * @return A boolean representing success running the script.
31540
- */
31541
-
31542
- runScript(contextId: bigint, scriptText: string): boolean {
31543
- assert(contextId >= Limits.INT64_MIN);
31544
- assert(contextId <= Limits.INT64_MAX);
31545
-
31546
- let _result = Module.ccall(
31547
- "csp_systems_ScriptSystem_RunScript_bool_int64_t_StringRC",
31548
- "boolean",
31549
- ["number", "bigint", "string"],
31550
- [this.pointer, contextId, scriptText],
31551
- );
31552
-
31553
- return _result;
31554
- }
31555
-
31556
- /**
31557
- * @description Attempts to execute a script from a given file path in the given context.
31558
- * @param contextId - The context in which to run the script. If the provided context does not exist, the script run will fail.
31559
- * @param scriptFilePath - The file path of the script to execute.
31560
- * @return A boolean representing success running the script.
31561
- */
31562
-
31563
- runScriptFile(contextId: bigint, scriptFilePath: string): boolean {
31564
- assert(contextId >= Limits.INT64_MIN);
31565
- assert(contextId <= Limits.INT64_MAX);
31566
-
31567
- let _result = Module.ccall(
31568
- "csp_systems_ScriptSystem_RunScriptFile_bool_int64_t_StringRC",
31569
- "boolean",
31570
- ["number", "bigint", "string"],
31571
- [this.pointer, contextId, scriptFilePath],
31572
- );
31573
-
31574
- return _result;
31575
- }
31576
- }
31577
- }
31578
-
31579
31937
  export namespace Systems {
31580
31938
  /**
31581
31939
  @ingroup Sequence System
@@ -33688,173 +34046,6 @@ export namespace Systems {
33688
34046
  }
33689
34047
  }
33690
34048
 
33691
- export namespace Systems {
33692
- /**
33693
- * @description Data structure representing the user login state, including detection of access token expiry
33694
- */
33695
- export class LoginState
33696
- extends NativeClassWrapper
33697
- implements INativeResource
33698
- {
33699
- /** @internal */
33700
- constructor(pointer: NativePointer) {
33701
- super(pointer);
33702
- }
33703
-
33704
- static create(): LoginState {
33705
- var _ptr = Module._malloc(8);
33706
- Module.ccall("csp_systems_LoginState_Ctor", "void", ["number"], [_ptr]);
33707
- var _nPtr = getNativePointer(_ptr);
33708
-
33709
- return new LoginState(_nPtr);
33710
- }
33711
-
33712
- delete(): void {
33713
- if (this.ownsPointer && !this.disposed) {
33714
- Module.ccall(
33715
- "csp_systems_LoginState_Dtor",
33716
- "void",
33717
- ["number"],
33718
- [this.pointer],
33719
- );
33720
-
33721
- this.disposed = true;
33722
- }
33723
- }
33724
-
33725
- static create_otherState(otherState: Systems.LoginState): LoginState {
33726
- var _ptr = Module._malloc(8);
33727
- Module.ccall(
33728
- "csp_systems_LoginState_Ctor_LoginStateRC",
33729
- "void",
33730
- ["number", "number"],
33731
- [_ptr, otherState.pointer],
33732
- );
33733
- var _nPtr = getNativePointer(_ptr);
33734
-
33735
- return new LoginState(_nPtr);
33736
- }
33737
-
33738
- // operator=
33739
-
33740
- /**
33741
- * @description Check if the access token for the login is expired.
33742
- * @return Is the token expired.
33743
- */
33744
-
33745
- refreshNeeded(): boolean {
33746
- let _result = Module.ccall(
33747
- "csp_systems_LoginState_RefreshNeededC_bool",
33748
- "boolean",
33749
- ["number"],
33750
- [this.pointer],
33751
- );
33752
-
33753
- return _result;
33754
- }
33755
-
33756
- get state(): Systems.ELoginState {
33757
- let _result = Module.ccall(
33758
- "csp_systems_LoginState__Get_State",
33759
- "number",
33760
- ["number"],
33761
- [this.pointer],
33762
- );
33763
-
33764
- return _result;
33765
- }
33766
-
33767
- set state(value: Systems.ELoginState) {
33768
- Module.ccall(
33769
- "csp_systems_LoginState__Set_State",
33770
- "void",
33771
- ["number", "number"],
33772
- [this.pointer, value],
33773
- );
33774
- }
33775
-
33776
- get accessToken(): string {
33777
- let _result = Module.ccall(
33778
- "csp_systems_LoginState__Get_AccessToken",
33779
- "string",
33780
- ["number"],
33781
- [this.pointer],
33782
- );
33783
-
33784
- return _result;
33785
- }
33786
-
33787
- set accessToken(value: string) {
33788
- Module.ccall(
33789
- "csp_systems_LoginState__Set_AccessToken",
33790
- "void",
33791
- ["number", "string"],
33792
- [this.pointer, value],
33793
- );
33794
- }
33795
-
33796
- get refreshToken(): string {
33797
- let _result = Module.ccall(
33798
- "csp_systems_LoginState__Get_RefreshToken",
33799
- "string",
33800
- ["number"],
33801
- [this.pointer],
33802
- );
33803
-
33804
- return _result;
33805
- }
33806
-
33807
- set refreshToken(value: string) {
33808
- Module.ccall(
33809
- "csp_systems_LoginState__Set_RefreshToken",
33810
- "void",
33811
- ["number", "string"],
33812
- [this.pointer, value],
33813
- );
33814
- }
33815
-
33816
- get userId(): string {
33817
- let _result = Module.ccall(
33818
- "csp_systems_LoginState__Get_UserId",
33819
- "string",
33820
- ["number"],
33821
- [this.pointer],
33822
- );
33823
-
33824
- return _result;
33825
- }
33826
-
33827
- set userId(value: string) {
33828
- Module.ccall(
33829
- "csp_systems_LoginState__Set_UserId",
33830
- "void",
33831
- ["number", "string"],
33832
- [this.pointer, value],
33833
- );
33834
- }
33835
-
33836
- get deviceId(): string {
33837
- let _result = Module.ccall(
33838
- "csp_systems_LoginState__Get_DeviceId",
33839
- "string",
33840
- ["number"],
33841
- [this.pointer],
33842
- );
33843
-
33844
- return _result;
33845
- }
33846
-
33847
- set deviceId(value: string) {
33848
- Module.ccall(
33849
- "csp_systems_LoginState__Set_DeviceId",
33850
- "void",
33851
- ["number", "string"],
33852
- [this.pointer, value],
33853
- );
33854
- }
33855
- }
33856
- }
33857
-
33858
34049
  export namespace Systems {
33859
34050
  /**
33860
34051
  * @description Data for access and refresh tokens, and their expiry times.
@@ -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;