connected-spaces-platform.web 6.4.4 → 6.6.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.
@@ -1077,6 +1077,22 @@ function csp_common_ReplicatedValueFactory(
1077
1077
  ProxyClassFactories["csp_common_ReplicatedValue"] =
1078
1078
  csp_common_ReplicatedValueFactory;
1079
1079
 
1080
+ function csp_common_ApplicationSettingsFactory(
1081
+ nativePointer: NativePointer,
1082
+ ): NativeClassWrapper {
1083
+ return new Common.ApplicationSettings(nativePointer);
1084
+ }
1085
+ ProxyClassFactories["csp_common_ApplicationSettings"] =
1086
+ csp_common_ApplicationSettingsFactory;
1087
+
1088
+ function csp_common_SettingsCollectionFactory(
1089
+ nativePointer: NativePointer,
1090
+ ): NativeClassWrapper {
1091
+ return new Common.SettingsCollection(nativePointer);
1092
+ }
1093
+ ProxyClassFactories["csp_common_SettingsCollection"] =
1094
+ csp_common_SettingsCollectionFactory;
1095
+
1080
1096
  function csp_common_VariantFactory(
1081
1097
  nativePointer: NativePointer,
1082
1098
  ): NativeClassWrapper {
@@ -1492,22 +1508,6 @@ function csp_systems_SequenceFactory(
1492
1508
  }
1493
1509
  ProxyClassFactories["csp_systems_Sequence"] = csp_systems_SequenceFactory;
1494
1510
 
1495
- function csp_systems_ApplicationSettingsFactory(
1496
- nativePointer: NativePointer,
1497
- ): NativeClassWrapper {
1498
- return new Systems.ApplicationSettings(nativePointer);
1499
- }
1500
- ProxyClassFactories["csp_systems_ApplicationSettings"] =
1501
- csp_systems_ApplicationSettingsFactory;
1502
-
1503
- function csp_systems_SettingsCollectionFactory(
1504
- nativePointer: NativePointer,
1505
- ): NativeClassWrapper {
1506
- return new Systems.SettingsCollection(nativePointer);
1507
- }
1508
- ProxyClassFactories["csp_systems_SettingsCollection"] =
1509
- csp_systems_SettingsCollectionFactory;
1510
-
1511
1511
  function csp_systems_SiteFactory(
1512
1512
  nativePointer: NativePointer,
1513
1513
  ): NativeClassWrapper {
@@ -3133,6 +3133,30 @@ function csp_common_Array_csp_common_Array_StringFactory(
3133
3133
  ProxyClassFactories["csp_common_Array_csp_common_Array_String"] =
3134
3134
  csp_common_Array_csp_common_Array_StringFactory;
3135
3135
 
3136
+ function csp_common_List_csp_common_ApplicationSettingsFactory(
3137
+ nativePointer: NativePointer,
3138
+ ): NativeClassWrapper {
3139
+ return new Common.List<Common.ApplicationSettings>(
3140
+ nativePointer,
3141
+ csp_common_ApplicationSettingsFactory,
3142
+ "csp_common_ApplicationSettings",
3143
+ );
3144
+ }
3145
+ ProxyClassFactories["csp_common_List_csp_common_ApplicationSettings"] =
3146
+ csp_common_List_csp_common_ApplicationSettingsFactory;
3147
+
3148
+ function csp_common_List_csp_common_SettingsCollectionFactory(
3149
+ nativePointer: NativePointer,
3150
+ ): NativeClassWrapper {
3151
+ return new Common.List<Common.SettingsCollection>(
3152
+ nativePointer,
3153
+ csp_common_SettingsCollectionFactory,
3154
+ "csp_common_SettingsCollection",
3155
+ );
3156
+ }
3157
+ ProxyClassFactories["csp_common_List_csp_common_SettingsCollection"] =
3158
+ csp_common_List_csp_common_SettingsCollectionFactory;
3159
+
3136
3160
  function csp_common_List_csp_multiplayer_SpaceEntityFactory(
3137
3161
  nativePointer: NativePointer,
3138
3162
  ): NativeClassWrapper {
@@ -3178,6 +3202,20 @@ function csp_common_Map_String_csp_common_ReplicatedValueFactory(
3178
3202
  ProxyClassFactories["csp_common_Map_String_csp_common_ReplicatedValue"] =
3179
3203
  csp_common_Map_String_csp_common_ReplicatedValueFactory;
3180
3204
 
3205
+ function csp_common_Map_String_StringFactory(
3206
+ nativePointer: NativePointer,
3207
+ ): NativeClassWrapper {
3208
+ return new Common.Map<string, string>(
3209
+ nativePointer,
3210
+ StringFactory,
3211
+ "String",
3212
+ StringFactory,
3213
+ "String",
3214
+ );
3215
+ }
3216
+ ProxyClassFactories["csp_common_Map_String_String"] =
3217
+ csp_common_Map_String_StringFactory;
3218
+
3181
3219
  function csp_common_Map_UInt32_csp_common_ReplicatedValueFactory(
3182
3220
  nativePointer: NativePointer,
3183
3221
  ): NativeClassWrapper {
@@ -3206,20 +3244,6 @@ function csp_common_Map_UInt16_csp_multiplayer_ComponentBaseFactory(
3206
3244
  ProxyClassFactories["csp_common_Map_UInt16_csp_multiplayer_ComponentBase"] =
3207
3245
  csp_common_Map_UInt16_csp_multiplayer_ComponentBaseFactory;
3208
3246
 
3209
- function csp_common_Map_String_StringFactory(
3210
- nativePointer: NativePointer,
3211
- ): NativeClassWrapper {
3212
- return new Common.Map<string, string>(
3213
- nativePointer,
3214
- StringFactory,
3215
- "String",
3216
- StringFactory,
3217
- "String",
3218
- );
3219
- }
3220
- ProxyClassFactories["csp_common_Map_String_String"] =
3221
- csp_common_Map_String_StringFactory;
3222
-
3223
3247
  function csp_common_Map_String_csp_systems_AssetFactory(
3224
3248
  nativePointer: NativePointer,
3225
3249
  ): NativeClassWrapper {
@@ -5862,6 +5886,60 @@ export namespace Common {
5862
5886
  [this.pointer, value],
5863
5887
  );
5864
5888
  }
5889
+
5890
+ get defaultApplicationSettings(): Common.List<Common.ApplicationSettings> {
5891
+ const _ptr = Module._malloc(8);
5892
+ Module.ccall(
5893
+ "csp_common_LoginState__Get_DefaultApplicationSettings",
5894
+ "void",
5895
+ ["number", "number"],
5896
+ [_ptr, this.pointer],
5897
+ );
5898
+
5899
+ const _nPtr = getNativePointer(_ptr);
5900
+ return new Common.List<Common.ApplicationSettings>(
5901
+ _nPtr,
5902
+ csp_common_ApplicationSettingsFactory,
5903
+ "csp_common_ApplicationSettings",
5904
+ );
5905
+ }
5906
+
5907
+ set defaultApplicationSettings(
5908
+ value: Common.List<Common.ApplicationSettings>,
5909
+ ) {
5910
+ Module.ccall(
5911
+ "csp_common_LoginState__Set_DefaultApplicationSettings",
5912
+ "void",
5913
+ ["number", "number"],
5914
+ [this.pointer, value.pointer],
5915
+ );
5916
+ }
5917
+
5918
+ get defaultSettings(): Common.List<Common.SettingsCollection> {
5919
+ const _ptr = Module._malloc(8);
5920
+ Module.ccall(
5921
+ "csp_common_LoginState__Get_DefaultSettings",
5922
+ "void",
5923
+ ["number", "number"],
5924
+ [_ptr, this.pointer],
5925
+ );
5926
+
5927
+ const _nPtr = getNativePointer(_ptr);
5928
+ return new Common.List<Common.SettingsCollection>(
5929
+ _nPtr,
5930
+ csp_common_SettingsCollectionFactory,
5931
+ "csp_common_SettingsCollection",
5932
+ );
5933
+ }
5934
+
5935
+ set defaultSettings(value: Common.List<Common.SettingsCollection>) {
5936
+ Module.ccall(
5937
+ "csp_common_LoginState__Set_DefaultSettings",
5938
+ "void",
5939
+ ["number", "number"],
5940
+ [this.pointer, value.pointer],
5941
+ );
5942
+ }
5865
5943
  }
5866
5944
  }
5867
5945
 
@@ -21944,6 +22022,253 @@ export namespace Common {
21944
22022
  }
21945
22023
  }
21946
22024
 
22025
+ export namespace Common {
22026
+ /**
22027
+ @ingroup Application Settings System
22028
+ * @description Represents configuration settings for an application context.
22029
+ */
22030
+ export class ApplicationSettings
22031
+ extends NativeClassWrapper
22032
+ implements INativeResource
22033
+ {
22034
+ /** @internal */
22035
+ constructor(pointer: NativePointer) {
22036
+ super(pointer);
22037
+ }
22038
+
22039
+ // operator==
22040
+
22041
+ // operator!=
22042
+
22043
+ static create(): ApplicationSettings {
22044
+ var _ptr = Module._malloc(8);
22045
+ Module.ccall(
22046
+ "csp_common_ApplicationSettings_Ctor",
22047
+ "void",
22048
+ ["number"],
22049
+ [_ptr],
22050
+ );
22051
+ var _nPtr = getNativePointer(_ptr);
22052
+
22053
+ return new ApplicationSettings(_nPtr);
22054
+ }
22055
+
22056
+ delete(): void {
22057
+ if (this.ownsPointer && !this.disposed) {
22058
+ Module.ccall(
22059
+ "csp_common_ApplicationSettings_Dtor",
22060
+ "void",
22061
+ ["number"],
22062
+ [this.pointer],
22063
+ );
22064
+
22065
+ this.disposed = true;
22066
+ }
22067
+ }
22068
+
22069
+ get applicationName(): string {
22070
+ let _result = Module.ccall(
22071
+ "csp_common_ApplicationSettings__Get_ApplicationName",
22072
+ "string",
22073
+ ["number"],
22074
+ [this.pointer],
22075
+ );
22076
+
22077
+ return _result;
22078
+ }
22079
+
22080
+ set applicationName(value: string) {
22081
+ Module.ccall(
22082
+ "csp_common_ApplicationSettings__Set_ApplicationName",
22083
+ "void",
22084
+ ["number", "string"],
22085
+ [this.pointer, value],
22086
+ );
22087
+ }
22088
+
22089
+ get context(): string {
22090
+ let _result = Module.ccall(
22091
+ "csp_common_ApplicationSettings__Get_Context",
22092
+ "string",
22093
+ ["number"],
22094
+ [this.pointer],
22095
+ );
22096
+
22097
+ return _result;
22098
+ }
22099
+
22100
+ set context(value: string) {
22101
+ Module.ccall(
22102
+ "csp_common_ApplicationSettings__Set_Context",
22103
+ "void",
22104
+ ["number", "string"],
22105
+ [this.pointer, value],
22106
+ );
22107
+ }
22108
+
22109
+ get allowAnonymous(): boolean {
22110
+ let _result = Module.ccall(
22111
+ "csp_common_ApplicationSettings__Get_AllowAnonymous",
22112
+ "boolean",
22113
+ ["number"],
22114
+ [this.pointer],
22115
+ );
22116
+
22117
+ return _result;
22118
+ }
22119
+
22120
+ set allowAnonymous(value: boolean) {
22121
+ Module.ccall(
22122
+ "csp_common_ApplicationSettings__Set_AllowAnonymous",
22123
+ "void",
22124
+ ["number", "boolean"],
22125
+ [this.pointer, value],
22126
+ );
22127
+ }
22128
+
22129
+ get settings(): Common.Map<string, string> {
22130
+ const _ptr = Module._malloc(8);
22131
+ Module.ccall(
22132
+ "csp_common_ApplicationSettings__Get_Settings",
22133
+ "void",
22134
+ ["number", "number"],
22135
+ [_ptr, this.pointer],
22136
+ );
22137
+
22138
+ const _nPtr = getNativePointer(_ptr);
22139
+ return new Common.Map<string, string>(
22140
+ _nPtr,
22141
+ StringFactory,
22142
+ "String",
22143
+ StringFactory,
22144
+ "String",
22145
+ );
22146
+ }
22147
+
22148
+ set settings(value: Common.Map<string, string>) {
22149
+ Module.ccall(
22150
+ "csp_common_ApplicationSettings__Set_Settings",
22151
+ "void",
22152
+ ["number", "number"],
22153
+ [this.pointer, value.pointer],
22154
+ );
22155
+ }
22156
+ }
22157
+ }
22158
+
22159
+ export namespace Common {
22160
+ /**
22161
+ * @description Represents configuration settings related to a user in a specific context
22162
+ */
22163
+ export class SettingsCollection
22164
+ extends NativeClassWrapper
22165
+ implements INativeResource
22166
+ {
22167
+ /** @internal */
22168
+ constructor(pointer: NativePointer) {
22169
+ super(pointer);
22170
+ }
22171
+
22172
+ static create(): SettingsCollection {
22173
+ var _ptr = Module._malloc(8);
22174
+ Module.ccall(
22175
+ "csp_common_SettingsCollection_Ctor",
22176
+ "void",
22177
+ ["number"],
22178
+ [_ptr],
22179
+ );
22180
+ var _nPtr = getNativePointer(_ptr);
22181
+
22182
+ return new SettingsCollection(_nPtr);
22183
+ }
22184
+
22185
+ // operator==
22186
+
22187
+ // operator!=
22188
+
22189
+ delete(): void {
22190
+ if (this.ownsPointer && !this.disposed) {
22191
+ Module.ccall(
22192
+ "csp_common_SettingsCollection_Dtor",
22193
+ "void",
22194
+ ["number"],
22195
+ [this.pointer],
22196
+ );
22197
+
22198
+ this.disposed = true;
22199
+ }
22200
+ }
22201
+
22202
+ get userId(): string {
22203
+ let _result = Module.ccall(
22204
+ "csp_common_SettingsCollection__Get_UserId",
22205
+ "string",
22206
+ ["number"],
22207
+ [this.pointer],
22208
+ );
22209
+
22210
+ return _result;
22211
+ }
22212
+
22213
+ set userId(value: string) {
22214
+ Module.ccall(
22215
+ "csp_common_SettingsCollection__Set_UserId",
22216
+ "void",
22217
+ ["number", "string"],
22218
+ [this.pointer, value],
22219
+ );
22220
+ }
22221
+
22222
+ get context(): string {
22223
+ let _result = Module.ccall(
22224
+ "csp_common_SettingsCollection__Get_Context",
22225
+ "string",
22226
+ ["number"],
22227
+ [this.pointer],
22228
+ );
22229
+
22230
+ return _result;
22231
+ }
22232
+
22233
+ set context(value: string) {
22234
+ Module.ccall(
22235
+ "csp_common_SettingsCollection__Set_Context",
22236
+ "void",
22237
+ ["number", "string"],
22238
+ [this.pointer, value],
22239
+ );
22240
+ }
22241
+
22242
+ get settings(): Common.Map<string, string> {
22243
+ const _ptr = Module._malloc(8);
22244
+ Module.ccall(
22245
+ "csp_common_SettingsCollection__Get_Settings",
22246
+ "void",
22247
+ ["number", "number"],
22248
+ [_ptr, this.pointer],
22249
+ );
22250
+
22251
+ const _nPtr = getNativePointer(_ptr);
22252
+ return new Common.Map<string, string>(
22253
+ _nPtr,
22254
+ StringFactory,
22255
+ "String",
22256
+ StringFactory,
22257
+ "String",
22258
+ );
22259
+ }
22260
+
22261
+ set settings(value: Common.Map<string, string>) {
22262
+ Module.ccall(
22263
+ "csp_common_SettingsCollection__Set_Settings",
22264
+ "void",
22265
+ ["number", "number"],
22266
+ [this.pointer, value.pointer],
22267
+ );
22268
+ }
22269
+ }
22270
+ }
22271
+
21947
22272
  export namespace Common {
21948
22273
  /**
21949
22274
  * @description Variant is an intermediate class that enables clients to pack data into types that are supported by Connected Spaces Platform replication
@@ -31705,246 +32030,6 @@ export namespace Systems {
31705
32030
  }
31706
32031
  }
31707
32032
 
31708
- export namespace Systems {
31709
- /**
31710
- @ingroup Application Settings System
31711
- * @description Represents configuration settings for an application context.
31712
- */
31713
- export class ApplicationSettings
31714
- extends NativeClassWrapper
31715
- implements INativeResource
31716
- {
31717
- /** @internal */
31718
- constructor(pointer: NativePointer) {
31719
- super(pointer);
31720
- }
31721
-
31722
- static create(): ApplicationSettings {
31723
- var _ptr = Module._malloc(8);
31724
- Module.ccall(
31725
- "csp_systems_ApplicationSettings_Ctor",
31726
- "void",
31727
- ["number"],
31728
- [_ptr],
31729
- );
31730
- var _nPtr = getNativePointer(_ptr);
31731
-
31732
- return new ApplicationSettings(_nPtr);
31733
- }
31734
-
31735
- delete(): void {
31736
- if (this.ownsPointer && !this.disposed) {
31737
- Module.ccall(
31738
- "csp_systems_ApplicationSettings_Dtor",
31739
- "void",
31740
- ["number"],
31741
- [this.pointer],
31742
- );
31743
-
31744
- this.disposed = true;
31745
- }
31746
- }
31747
-
31748
- get applicationName(): string {
31749
- let _result = Module.ccall(
31750
- "csp_systems_ApplicationSettings__Get_ApplicationName",
31751
- "string",
31752
- ["number"],
31753
- [this.pointer],
31754
- );
31755
-
31756
- return _result;
31757
- }
31758
-
31759
- set applicationName(value: string) {
31760
- Module.ccall(
31761
- "csp_systems_ApplicationSettings__Set_ApplicationName",
31762
- "void",
31763
- ["number", "string"],
31764
- [this.pointer, value],
31765
- );
31766
- }
31767
-
31768
- get context(): string {
31769
- let _result = Module.ccall(
31770
- "csp_systems_ApplicationSettings__Get_Context",
31771
- "string",
31772
- ["number"],
31773
- [this.pointer],
31774
- );
31775
-
31776
- return _result;
31777
- }
31778
-
31779
- set context(value: string) {
31780
- Module.ccall(
31781
- "csp_systems_ApplicationSettings__Set_Context",
31782
- "void",
31783
- ["number", "string"],
31784
- [this.pointer, value],
31785
- );
31786
- }
31787
-
31788
- get allowAnonymous(): boolean {
31789
- let _result = Module.ccall(
31790
- "csp_systems_ApplicationSettings__Get_AllowAnonymous",
31791
- "boolean",
31792
- ["number"],
31793
- [this.pointer],
31794
- );
31795
-
31796
- return _result;
31797
- }
31798
-
31799
- set allowAnonymous(value: boolean) {
31800
- Module.ccall(
31801
- "csp_systems_ApplicationSettings__Set_AllowAnonymous",
31802
- "void",
31803
- ["number", "boolean"],
31804
- [this.pointer, value],
31805
- );
31806
- }
31807
-
31808
- get settings(): Common.Map<string, string> {
31809
- const _ptr = Module._malloc(8);
31810
- Module.ccall(
31811
- "csp_systems_ApplicationSettings__Get_Settings",
31812
- "void",
31813
- ["number", "number"],
31814
- [_ptr, this.pointer],
31815
- );
31816
-
31817
- const _nPtr = getNativePointer(_ptr);
31818
- return new Common.Map<string, string>(
31819
- _nPtr,
31820
- StringFactory,
31821
- "String",
31822
- StringFactory,
31823
- "String",
31824
- );
31825
- }
31826
-
31827
- set settings(value: Common.Map<string, string>) {
31828
- Module.ccall(
31829
- "csp_systems_ApplicationSettings__Set_Settings",
31830
- "void",
31831
- ["number", "number"],
31832
- [this.pointer, value.pointer],
31833
- );
31834
- }
31835
- }
31836
- }
31837
-
31838
- export namespace Systems {
31839
- /**
31840
- @ingroup Settings System
31841
- * @description Data representation of a Settings collection which maps to a UserService::Settings.
31842
- */
31843
- export class SettingsCollection
31844
- extends NativeClassWrapper
31845
- implements INativeResource
31846
- {
31847
- /** @internal */
31848
- constructor(pointer: NativePointer) {
31849
- super(pointer);
31850
- }
31851
-
31852
- static create(): SettingsCollection {
31853
- var _ptr = Module._malloc(8);
31854
- Module.ccall(
31855
- "csp_systems_SettingsCollection_Ctor",
31856
- "void",
31857
- ["number"],
31858
- [_ptr],
31859
- );
31860
- var _nPtr = getNativePointer(_ptr);
31861
-
31862
- return new SettingsCollection(_nPtr);
31863
- }
31864
-
31865
- delete(): void {
31866
- if (this.ownsPointer && !this.disposed) {
31867
- Module.ccall(
31868
- "csp_systems_SettingsCollection_Dtor",
31869
- "void",
31870
- ["number"],
31871
- [this.pointer],
31872
- );
31873
-
31874
- this.disposed = true;
31875
- }
31876
- }
31877
-
31878
- get userId(): string {
31879
- let _result = Module.ccall(
31880
- "csp_systems_SettingsCollection__Get_UserId",
31881
- "string",
31882
- ["number"],
31883
- [this.pointer],
31884
- );
31885
-
31886
- return _result;
31887
- }
31888
-
31889
- set userId(value: string) {
31890
- Module.ccall(
31891
- "csp_systems_SettingsCollection__Set_UserId",
31892
- "void",
31893
- ["number", "string"],
31894
- [this.pointer, value],
31895
- );
31896
- }
31897
-
31898
- get context(): string {
31899
- let _result = Module.ccall(
31900
- "csp_systems_SettingsCollection__Get_Context",
31901
- "string",
31902
- ["number"],
31903
- [this.pointer],
31904
- );
31905
-
31906
- return _result;
31907
- }
31908
-
31909
- set context(value: string) {
31910
- Module.ccall(
31911
- "csp_systems_SettingsCollection__Set_Context",
31912
- "void",
31913
- ["number", "string"],
31914
- [this.pointer, value],
31915
- );
31916
- }
31917
-
31918
- get settings(): Common.Map<string, string> {
31919
- const _ptr = Module._malloc(8);
31920
- Module.ccall(
31921
- "csp_systems_SettingsCollection__Get_Settings",
31922
- "void",
31923
- ["number", "number"],
31924
- [_ptr, this.pointer],
31925
- );
31926
-
31927
- const _nPtr = getNativePointer(_ptr);
31928
- return new Common.Map<string, string>(
31929
- _nPtr,
31930
- StringFactory,
31931
- "String",
31932
- StringFactory,
31933
- "String",
31934
- );
31935
- }
31936
-
31937
- set settings(value: Common.Map<string, string>) {
31938
- Module.ccall(
31939
- "csp_systems_SettingsCollection__Set_Settings",
31940
- "void",
31941
- ["number", "number"],
31942
- [this.pointer, value.pointer],
31943
- );
31944
- }
31945
- }
31946
- }
31947
-
31948
32033
  export namespace Systems {
31949
32034
  /**
31950
32035
  @ingroup Space System
@@ -48278,45 +48363,85 @@ export namespace Systems {
48278
48363
  );
48279
48364
  }
48280
48365
 
48281
- sendAnalyticsEvent(
48366
+ async sendAnalyticsEvent(
48282
48367
  productContextSection: string,
48283
48368
  category: string,
48284
48369
  interactionType: string,
48285
- subCategory: string,
48286
- metadata: Common.Map<string, string>,
48287
- callback: (result: Systems.NullResult) => void,
48288
- ): void {
48370
+ subCategory: string | null,
48371
+ metadata: Common.Map<string, string> | null,
48372
+ ): Promise<Systems.NullResult> {
48373
+ var _resolve;
48374
+
48375
+ var _promise = new Promise<Systems.NullResult>((_r) => {
48376
+ _resolve = _r;
48377
+ });
48378
+
48379
+ var _callbackPtr: number;
48289
48380
  var _callback = (_stateObject__: number, result) => {
48290
- var _result = new Systems.NullResult(getNativePointer(result));
48291
- callback(_result);
48381
+ var _resultPtr = getNativePointer(result);
48382
+ var _resultInstance = new Systems.NullResult(_resultPtr);
48383
+
48384
+ if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
48385
+ return;
48386
+ }
48387
+
48388
+ _resolve(_resultInstance);
48389
+
48390
+ Module.removeFunction(_callbackPtr);
48292
48391
  };
48293
48392
 
48294
- var callbackPtr = Module.addFunction(_callback, "vii");
48393
+ _callbackPtr = Module.addFunction(_callback, "vii");
48295
48394
 
48296
48395
  Module.ccall(
48297
48396
  "csp_systems_AnalyticsSystem_SendAnalyticsEvent_void_StringRC_StringRC_StringRC_StringRC_MapRC_NullResultCallback",
48298
48397
  "void",
48299
- ["number", "string", "string", "string", "string", "number", "number"],
48398
+ [
48399
+ "number",
48400
+ "string",
48401
+ "string",
48402
+ "string",
48403
+ "string",
48404
+ "number",
48405
+ "number",
48406
+ "number",
48407
+ ],
48300
48408
  [
48301
48409
  this.pointer,
48302
48410
  productContextSection,
48303
48411
  category,
48304
48412
  interactionType,
48305
48413
  subCategory,
48306
- metadata.pointer,
48307
- callbackPtr,
48414
+ metadata != null ? metadata.pointer : 0,
48415
+ _callbackPtr,
48416
+ 0,
48308
48417
  ],
48309
48418
  );
48419
+
48420
+ return _promise;
48310
48421
  }
48311
48422
 
48312
- flushAnalyticsEventsQueue(callback: (result: Systems.NullResult) => void) {
48423
+ async flushAnalyticsEventsQueue(): Promise<Systems.NullResult> {
48424
+ var _resolve;
48425
+
48426
+ var _promise = new Promise<Systems.NullResult>((_r) => {
48427
+ _resolve = _r;
48428
+ });
48429
+
48430
+ var _callbackPtr: number;
48313
48431
  var _callback = (_stateObject__: number, result) => {
48314
- var _result = new Systems.NullResult(getNativePointer(result));
48432
+ var _resultPtr = getNativePointer(result);
48433
+ var _resultInstance = new Systems.NullResult(_resultPtr);
48315
48434
 
48316
- callback(_result);
48435
+ if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
48436
+ return;
48437
+ }
48438
+
48439
+ _resolve(_resultInstance);
48440
+
48441
+ Module.removeFunction(_callbackPtr);
48317
48442
  };
48318
48443
 
48319
- var _callbackPtr = Module.addFunction(_callback, "vii");
48444
+ _callbackPtr = Module.addFunction(_callback, "vii");
48320
48445
 
48321
48446
  Module.ccall(
48322
48447
  "csp_systems_AnalyticsSystem_FlushAnalyticsEventsQueue_void_NullResultCallback",
@@ -48324,6 +48449,8 @@ export namespace Systems {
48324
48449
  ["number", "number", "number"],
48325
48450
  [this.pointer, _callbackPtr, 0],
48326
48451
  );
48452
+
48453
+ return _promise;
48327
48454
  }
48328
48455
  }
48329
48456
  }
@@ -55439,7 +55566,7 @@ export namespace Systems {
55439
55566
  );
55440
55567
  }
55441
55568
 
55442
- getApplicationSettings(): Systems.ApplicationSettings {
55569
+ getApplicationSettings(): Common.ApplicationSettings {
55443
55570
  var _ret = Module._malloc(8);
55444
55571
 
55445
55572
  Module.ccall(
@@ -55448,7 +55575,7 @@ export namespace Systems {
55448
55575
  ["number", "number"],
55449
55576
  [_ret, this.pointer],
55450
55577
  );
55451
- var _nPtr = new Systems.ApplicationSettings(getNativePointer(_ret));
55578
+ var _nPtr = new Common.ApplicationSettings(getNativePointer(_ret));
55452
55579
  Module._free(_ret);
55453
55580
 
55454
55581
  return _nPtr;
@@ -55634,7 +55761,7 @@ export namespace Systems {
55634
55761
  * @return Const ref of settings collection class
55635
55762
  */
55636
55763
 
55637
- getSettingsCollection(): Systems.SettingsCollection {
55764
+ getSettingsCollection(): Common.SettingsCollection {
55638
55765
  var _ret = Module._malloc(8);
55639
55766
 
55640
55767
  Module.ccall(
@@ -55643,7 +55770,7 @@ export namespace Systems {
55643
55770
  ["number", "number"],
55644
55771
  [_ret, this.pointer],
55645
55772
  );
55646
- var _nPtr = new Systems.SettingsCollection(getNativePointer(_ret));
55773
+ var _nPtr = new Common.SettingsCollection(getNativePointer(_ret));
55647
55774
  Module._free(_ret);
55648
55775
 
55649
55776
  return _nPtr;
@@ -63898,6 +64025,42 @@ export namespace Common {
63898
64025
  private TTypeFactory: ProxyClassFactory;
63899
64026
  private TTypeName: string;
63900
64027
 
64028
+ static ofcsp_common_ApplicationSettings(): List<Common.ApplicationSettings> {
64029
+ var _ret = Module._malloc(8);
64030
+ Module.ccall(
64031
+ "csp_common_List_Ctor_csp_common_ApplicationSettings",
64032
+ "void",
64033
+ ["number"],
64034
+ [_ret],
64035
+ );
64036
+ var _inst = new List<Common.ApplicationSettings>(
64037
+ getNativePointer(_ret),
64038
+ csp_common_ApplicationSettingsFactory,
64039
+ "csp_common_ApplicationSettings",
64040
+ );
64041
+ Module._free(_ret);
64042
+
64043
+ return _inst;
64044
+ }
64045
+
64046
+ static ofcsp_common_SettingsCollection(): List<Common.SettingsCollection> {
64047
+ var _ret = Module._malloc(8);
64048
+ Module.ccall(
64049
+ "csp_common_List_Ctor_csp_common_SettingsCollection",
64050
+ "void",
64051
+ ["number"],
64052
+ [_ret],
64053
+ );
64054
+ var _inst = new List<Common.SettingsCollection>(
64055
+ getNativePointer(_ret),
64056
+ csp_common_SettingsCollectionFactory,
64057
+ "csp_common_SettingsCollection",
64058
+ );
64059
+ Module._free(_ret);
64060
+
64061
+ return _inst;
64062
+ }
64063
+
63901
64064
  static ofcsp_multiplayer_SpaceEntity(): List<Multiplayer.SpaceEntity> {
63902
64065
  var _ret = Module._malloc(8);
63903
64066
  Module.ccall(
@@ -63947,6 +64110,46 @@ export namespace Common {
63947
64110
  return _inst;
63948
64111
  }
63949
64112
 
64113
+ static ofcsp_common_ApplicationSettings_number(
64114
+ minimumSize: number,
64115
+ ): List<Common.ApplicationSettings> {
64116
+ var _ret = Module._malloc(8);
64117
+ Module.ccall(
64118
+ "csp_common_List_Ctor_size_t_csp_common_ApplicationSettings",
64119
+ "void",
64120
+ ["number", "number"],
64121
+ [_ret, minimumSize],
64122
+ );
64123
+ var _inst = new List<Common.ApplicationSettings>(
64124
+ getNativePointer(_ret),
64125
+ csp_common_ApplicationSettingsFactory,
64126
+ "csp_common_ApplicationSettings",
64127
+ );
64128
+ Module._free(_ret);
64129
+
64130
+ return _inst;
64131
+ }
64132
+
64133
+ static ofcsp_common_SettingsCollection_number(
64134
+ minimumSize: number,
64135
+ ): List<Common.SettingsCollection> {
64136
+ var _ret = Module._malloc(8);
64137
+ Module.ccall(
64138
+ "csp_common_List_Ctor_size_t_csp_common_SettingsCollection",
64139
+ "void",
64140
+ ["number", "number"],
64141
+ [_ret, minimumSize],
64142
+ );
64143
+ var _inst = new List<Common.SettingsCollection>(
64144
+ getNativePointer(_ret),
64145
+ csp_common_SettingsCollectionFactory,
64146
+ "csp_common_SettingsCollection",
64147
+ );
64148
+ Module._free(_ret);
64149
+
64150
+ return _inst;
64151
+ }
64152
+
63950
64153
  static ofcsp_multiplayer_SpaceEntity_number(
63951
64154
  minimumSize: number,
63952
64155
  ): List<Multiplayer.SpaceEntity> {
@@ -64005,6 +64208,46 @@ export namespace Common {
64005
64208
  return _inst;
64006
64209
  }
64007
64210
 
64211
+ static ofcsp_common_ApplicationSettings_List(
64212
+ other: Common.List<Common.ApplicationSettings>,
64213
+ ): List<Common.ApplicationSettings> {
64214
+ var _ret = Module._malloc(8);
64215
+ Module.ccall(
64216
+ "csp_common_List_Ctor_ListRC_csp_common_ApplicationSettings",
64217
+ "void",
64218
+ ["number", "number"],
64219
+ [_ret, other.pointer],
64220
+ );
64221
+ var _inst = new List<Common.ApplicationSettings>(
64222
+ getNativePointer(_ret),
64223
+ csp_common_ApplicationSettingsFactory,
64224
+ "csp_common_ApplicationSettings",
64225
+ );
64226
+ Module._free(_ret);
64227
+
64228
+ return _inst;
64229
+ }
64230
+
64231
+ static ofcsp_common_SettingsCollection_List(
64232
+ other: Common.List<Common.SettingsCollection>,
64233
+ ): List<Common.SettingsCollection> {
64234
+ var _ret = Module._malloc(8);
64235
+ Module.ccall(
64236
+ "csp_common_List_Ctor_ListRC_csp_common_SettingsCollection",
64237
+ "void",
64238
+ ["number", "number"],
64239
+ [_ret, other.pointer],
64240
+ );
64241
+ var _inst = new List<Common.SettingsCollection>(
64242
+ getNativePointer(_ret),
64243
+ csp_common_SettingsCollectionFactory,
64244
+ "csp_common_SettingsCollection",
64245
+ );
64246
+ Module._free(_ret);
64247
+
64248
+ return _inst;
64249
+ }
64250
+
64008
64251
  static ofcsp_multiplayer_SpaceEntity_List(
64009
64252
  other: Common.List<Multiplayer.SpaceEntity>,
64010
64253
  ): List<Multiplayer.SpaceEntity> {
@@ -64237,6 +64480,26 @@ export namespace Common {
64237
64480
  return _inst;
64238
64481
  }
64239
64482
 
64483
+ static ofStringAndString(): Map<string, string> {
64484
+ var _ret = Module._malloc(8);
64485
+ Module.ccall(
64486
+ "csp_common_Map_Ctor_String_String",
64487
+ "void",
64488
+ ["number"],
64489
+ [_ret],
64490
+ );
64491
+ var _inst = new Map<string, string>(
64492
+ getNativePointer(_ret),
64493
+ StringFactory,
64494
+ "String",
64495
+ StringFactory,
64496
+ "String",
64497
+ );
64498
+ Module._free(_ret);
64499
+
64500
+ return _inst;
64501
+ }
64502
+
64240
64503
  static ofUInt32Andcsp_common_ReplicatedValue(): Map<
64241
64504
  number,
64242
64505
  Common.ReplicatedValue
@@ -64283,26 +64546,6 @@ export namespace Common {
64283
64546
  return _inst;
64284
64547
  }
64285
64548
 
64286
- static ofStringAndString(): Map<string, string> {
64287
- var _ret = Module._malloc(8);
64288
- Module.ccall(
64289
- "csp_common_Map_Ctor_String_String",
64290
- "void",
64291
- ["number"],
64292
- [_ret],
64293
- );
64294
- var _inst = new Map<string, string>(
64295
- getNativePointer(_ret),
64296
- StringFactory,
64297
- "String",
64298
- StringFactory,
64299
- "String",
64300
- );
64301
- Module._free(_ret);
64302
-
64303
- return _inst;
64304
- }
64305
-
64306
64549
  static ofStringAndcsp_systems_Asset(): Map<string, Systems.Asset> {
64307
64550
  var _ret = Module._malloc(8);
64308
64551
  Module.ccall(
@@ -64391,6 +64634,28 @@ export namespace Common {
64391
64634
  return _inst;
64392
64635
  }
64393
64636
 
64637
+ static ofStringAndString_Map(
64638
+ other: Common.Map<string, string>,
64639
+ ): Map<string, string> {
64640
+ var _ret = Module._malloc(8);
64641
+ Module.ccall(
64642
+ "csp_common_Map_Ctor_MapRC_String_String",
64643
+ "void",
64644
+ ["number", "number"],
64645
+ [_ret, other.pointer],
64646
+ );
64647
+ var _inst = new Map<string, string>(
64648
+ getNativePointer(_ret),
64649
+ StringFactory,
64650
+ "String",
64651
+ StringFactory,
64652
+ "String",
64653
+ );
64654
+ Module._free(_ret);
64655
+
64656
+ return _inst;
64657
+ }
64658
+
64394
64659
  static ofUInt32Andcsp_common_ReplicatedValue_Map(
64395
64660
  other: Common.Map<number, Common.ReplicatedValue>,
64396
64661
  ): Map<number, Common.ReplicatedValue> {
@@ -64435,28 +64700,6 @@ export namespace Common {
64435
64700
  return _inst;
64436
64701
  }
64437
64702
 
64438
- static ofStringAndString_Map(
64439
- other: Common.Map<string, string>,
64440
- ): Map<string, string> {
64441
- var _ret = Module._malloc(8);
64442
- Module.ccall(
64443
- "csp_common_Map_Ctor_MapRC_String_String",
64444
- "void",
64445
- ["number", "number"],
64446
- [_ret, other.pointer],
64447
- );
64448
- var _inst = new Map<string, string>(
64449
- getNativePointer(_ret),
64450
- StringFactory,
64451
- "String",
64452
- StringFactory,
64453
- "String",
64454
- );
64455
- Module._free(_ret);
64456
-
64457
- return _inst;
64458
- }
64459
-
64460
64703
  static ofStringAndcsp_systems_Asset_Map(
64461
64704
  other: Common.Map<string, Systems.Asset>,
64462
64705
  ): Map<string, Systems.Asset> {