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.
- package/Debug/ConnectedSpacesPlatform_WASM.js +119 -59
- package/Debug/ConnectedSpacesPlatform_WASM.wasm +0 -0
- package/Debug/ConnectedSpacesPlatform_WASM.wasm.debug.wasm +0 -0
- package/README.md +1 -1
- package/Release/ConnectedSpacesPlatform_WASM.js +1 -1
- package/Release/ConnectedSpacesPlatform_WASM.wasm +0 -0
- package/connectedspacesplatform.d.ts +53 -44
- package/connectedspacesplatform.js +250 -145
- package/connectedspacesplatform.js.map +1 -1
- package/connectedspacesplatform.ts +574 -331
- package/package.json +1 -1
|
@@ -722,6 +722,16 @@ function csp_common_ReplicatedValueFactory(nativePointer) {
|
|
|
722
722
|
}
|
|
723
723
|
ProxyClassFactories["csp_common_ReplicatedValue"] =
|
|
724
724
|
csp_common_ReplicatedValueFactory;
|
|
725
|
+
function csp_common_ApplicationSettingsFactory(nativePointer) {
|
|
726
|
+
return new Common.ApplicationSettings(nativePointer);
|
|
727
|
+
}
|
|
728
|
+
ProxyClassFactories["csp_common_ApplicationSettings"] =
|
|
729
|
+
csp_common_ApplicationSettingsFactory;
|
|
730
|
+
function csp_common_SettingsCollectionFactory(nativePointer) {
|
|
731
|
+
return new Common.SettingsCollection(nativePointer);
|
|
732
|
+
}
|
|
733
|
+
ProxyClassFactories["csp_common_SettingsCollection"] =
|
|
734
|
+
csp_common_SettingsCollectionFactory;
|
|
725
735
|
function csp_common_VariantFactory(nativePointer) {
|
|
726
736
|
return new Common.Variant(nativePointer);
|
|
727
737
|
}
|
|
@@ -975,16 +985,6 @@ function csp_systems_SequenceFactory(nativePointer) {
|
|
|
975
985
|
return new Systems.Sequence(nativePointer);
|
|
976
986
|
}
|
|
977
987
|
ProxyClassFactories["csp_systems_Sequence"] = csp_systems_SequenceFactory;
|
|
978
|
-
function csp_systems_ApplicationSettingsFactory(nativePointer) {
|
|
979
|
-
return new Systems.ApplicationSettings(nativePointer);
|
|
980
|
-
}
|
|
981
|
-
ProxyClassFactories["csp_systems_ApplicationSettings"] =
|
|
982
|
-
csp_systems_ApplicationSettingsFactory;
|
|
983
|
-
function csp_systems_SettingsCollectionFactory(nativePointer) {
|
|
984
|
-
return new Systems.SettingsCollection(nativePointer);
|
|
985
|
-
}
|
|
986
|
-
ProxyClassFactories["csp_systems_SettingsCollection"] =
|
|
987
|
-
csp_systems_SettingsCollectionFactory;
|
|
988
988
|
function csp_systems_SiteFactory(nativePointer) {
|
|
989
989
|
return new Systems.Site(nativePointer);
|
|
990
990
|
}
|
|
@@ -1887,6 +1887,16 @@ function csp_common_Array_csp_common_Array_StringFactory(nativePointer) {
|
|
|
1887
1887
|
}
|
|
1888
1888
|
ProxyClassFactories["csp_common_Array_csp_common_Array_String"] =
|
|
1889
1889
|
csp_common_Array_csp_common_Array_StringFactory;
|
|
1890
|
+
function csp_common_List_csp_common_ApplicationSettingsFactory(nativePointer) {
|
|
1891
|
+
return new Common.List(nativePointer, csp_common_ApplicationSettingsFactory, "csp_common_ApplicationSettings");
|
|
1892
|
+
}
|
|
1893
|
+
ProxyClassFactories["csp_common_List_csp_common_ApplicationSettings"] =
|
|
1894
|
+
csp_common_List_csp_common_ApplicationSettingsFactory;
|
|
1895
|
+
function csp_common_List_csp_common_SettingsCollectionFactory(nativePointer) {
|
|
1896
|
+
return new Common.List(nativePointer, csp_common_SettingsCollectionFactory, "csp_common_SettingsCollection");
|
|
1897
|
+
}
|
|
1898
|
+
ProxyClassFactories["csp_common_List_csp_common_SettingsCollection"] =
|
|
1899
|
+
csp_common_List_csp_common_SettingsCollectionFactory;
|
|
1890
1900
|
function csp_common_List_csp_multiplayer_SpaceEntityFactory(nativePointer) {
|
|
1891
1901
|
return new Common.List(nativePointer, csp_multiplayer_SpaceEntityFactory, "csp_multiplayer_SpaceEntity");
|
|
1892
1902
|
}
|
|
@@ -1906,6 +1916,11 @@ function csp_common_Map_String_csp_common_ReplicatedValueFactory(nativePointer)
|
|
|
1906
1916
|
}
|
|
1907
1917
|
ProxyClassFactories["csp_common_Map_String_csp_common_ReplicatedValue"] =
|
|
1908
1918
|
csp_common_Map_String_csp_common_ReplicatedValueFactory;
|
|
1919
|
+
function csp_common_Map_String_StringFactory(nativePointer) {
|
|
1920
|
+
return new Common.Map(nativePointer, StringFactory, "String", StringFactory, "String");
|
|
1921
|
+
}
|
|
1922
|
+
ProxyClassFactories["csp_common_Map_String_String"] =
|
|
1923
|
+
csp_common_Map_String_StringFactory;
|
|
1909
1924
|
function csp_common_Map_UInt32_csp_common_ReplicatedValueFactory(nativePointer) {
|
|
1910
1925
|
return new Common.Map(nativePointer, NumberFactory, "UInt32", csp_common_ReplicatedValueFactory, "csp_common_ReplicatedValue");
|
|
1911
1926
|
}
|
|
@@ -1916,11 +1931,6 @@ function csp_common_Map_UInt16_csp_multiplayer_ComponentBaseFactory(nativePointe
|
|
|
1916
1931
|
}
|
|
1917
1932
|
ProxyClassFactories["csp_common_Map_UInt16_csp_multiplayer_ComponentBase"] =
|
|
1918
1933
|
csp_common_Map_UInt16_csp_multiplayer_ComponentBaseFactory;
|
|
1919
|
-
function csp_common_Map_String_StringFactory(nativePointer) {
|
|
1920
|
-
return new Common.Map(nativePointer, StringFactory, "String", StringFactory, "String");
|
|
1921
|
-
}
|
|
1922
|
-
ProxyClassFactories["csp_common_Map_String_String"] =
|
|
1923
|
-
csp_common_Map_String_StringFactory;
|
|
1924
1934
|
function csp_common_Map_String_csp_systems_AssetFactory(nativePointer) {
|
|
1925
1935
|
return new Common.Map(nativePointer, StringFactory, "String", csp_systems_AssetFactory, "csp_systems_Asset");
|
|
1926
1936
|
}
|
|
@@ -3750,6 +3760,24 @@ export class CSPFoundation {
|
|
|
3750
3760
|
set deviceId(value) {
|
|
3751
3761
|
Module.ccall("csp_common_LoginState__Set_DeviceId", "void", ["number", "string"], [this.pointer, value]);
|
|
3752
3762
|
}
|
|
3763
|
+
get defaultApplicationSettings() {
|
|
3764
|
+
const _ptr = Module._malloc(8);
|
|
3765
|
+
Module.ccall("csp_common_LoginState__Get_DefaultApplicationSettings", "void", ["number", "number"], [_ptr, this.pointer]);
|
|
3766
|
+
const _nPtr = getNativePointer(_ptr);
|
|
3767
|
+
return new Common.List(_nPtr, csp_common_ApplicationSettingsFactory, "csp_common_ApplicationSettings");
|
|
3768
|
+
}
|
|
3769
|
+
set defaultApplicationSettings(value) {
|
|
3770
|
+
Module.ccall("csp_common_LoginState__Set_DefaultApplicationSettings", "void", ["number", "number"], [this.pointer, value.pointer]);
|
|
3771
|
+
}
|
|
3772
|
+
get defaultSettings() {
|
|
3773
|
+
const _ptr = Module._malloc(8);
|
|
3774
|
+
Module.ccall("csp_common_LoginState__Get_DefaultSettings", "void", ["number", "number"], [_ptr, this.pointer]);
|
|
3775
|
+
const _nPtr = getNativePointer(_ptr);
|
|
3776
|
+
return new Common.List(_nPtr, csp_common_SettingsCollectionFactory, "csp_common_SettingsCollection");
|
|
3777
|
+
}
|
|
3778
|
+
set defaultSettings(value) {
|
|
3779
|
+
Module.ccall("csp_common_LoginState__Set_DefaultSettings", "void", ["number", "number"], [this.pointer, value.pointer]);
|
|
3780
|
+
}
|
|
3753
3781
|
}
|
|
3754
3782
|
Common.LoginState = LoginState;
|
|
3755
3783
|
})(Common || (Common = {}));
|
|
@@ -9555,6 +9583,112 @@ export class CSPFoundation {
|
|
|
9555
9583
|
}
|
|
9556
9584
|
Common.ReplicatedValue = ReplicatedValue;
|
|
9557
9585
|
})(Common || (Common = {}));
|
|
9586
|
+
(function (Common) {
|
|
9587
|
+
/**
|
|
9588
|
+
@ingroup Application Settings System
|
|
9589
|
+
* @description Represents configuration settings for an application context.
|
|
9590
|
+
*/
|
|
9591
|
+
class ApplicationSettings extends NativeClassWrapper {
|
|
9592
|
+
/** @internal */
|
|
9593
|
+
constructor(pointer) {
|
|
9594
|
+
super(pointer);
|
|
9595
|
+
}
|
|
9596
|
+
// operator==
|
|
9597
|
+
// operator!=
|
|
9598
|
+
static create() {
|
|
9599
|
+
var _ptr = Module._malloc(8);
|
|
9600
|
+
Module.ccall("csp_common_ApplicationSettings_Ctor", "void", ["number"], [_ptr]);
|
|
9601
|
+
var _nPtr = getNativePointer(_ptr);
|
|
9602
|
+
return new ApplicationSettings(_nPtr);
|
|
9603
|
+
}
|
|
9604
|
+
delete() {
|
|
9605
|
+
if (this.ownsPointer && !this.disposed) {
|
|
9606
|
+
Module.ccall("csp_common_ApplicationSettings_Dtor", "void", ["number"], [this.pointer]);
|
|
9607
|
+
this.disposed = true;
|
|
9608
|
+
}
|
|
9609
|
+
}
|
|
9610
|
+
get applicationName() {
|
|
9611
|
+
let _result = Module.ccall("csp_common_ApplicationSettings__Get_ApplicationName", "string", ["number"], [this.pointer]);
|
|
9612
|
+
return _result;
|
|
9613
|
+
}
|
|
9614
|
+
set applicationName(value) {
|
|
9615
|
+
Module.ccall("csp_common_ApplicationSettings__Set_ApplicationName", "void", ["number", "string"], [this.pointer, value]);
|
|
9616
|
+
}
|
|
9617
|
+
get context() {
|
|
9618
|
+
let _result = Module.ccall("csp_common_ApplicationSettings__Get_Context", "string", ["number"], [this.pointer]);
|
|
9619
|
+
return _result;
|
|
9620
|
+
}
|
|
9621
|
+
set context(value) {
|
|
9622
|
+
Module.ccall("csp_common_ApplicationSettings__Set_Context", "void", ["number", "string"], [this.pointer, value]);
|
|
9623
|
+
}
|
|
9624
|
+
get allowAnonymous() {
|
|
9625
|
+
let _result = Module.ccall("csp_common_ApplicationSettings__Get_AllowAnonymous", "boolean", ["number"], [this.pointer]);
|
|
9626
|
+
return _result;
|
|
9627
|
+
}
|
|
9628
|
+
set allowAnonymous(value) {
|
|
9629
|
+
Module.ccall("csp_common_ApplicationSettings__Set_AllowAnonymous", "void", ["number", "boolean"], [this.pointer, value]);
|
|
9630
|
+
}
|
|
9631
|
+
get settings() {
|
|
9632
|
+
const _ptr = Module._malloc(8);
|
|
9633
|
+
Module.ccall("csp_common_ApplicationSettings__Get_Settings", "void", ["number", "number"], [_ptr, this.pointer]);
|
|
9634
|
+
const _nPtr = getNativePointer(_ptr);
|
|
9635
|
+
return new Common.Map(_nPtr, StringFactory, "String", StringFactory, "String");
|
|
9636
|
+
}
|
|
9637
|
+
set settings(value) {
|
|
9638
|
+
Module.ccall("csp_common_ApplicationSettings__Set_Settings", "void", ["number", "number"], [this.pointer, value.pointer]);
|
|
9639
|
+
}
|
|
9640
|
+
}
|
|
9641
|
+
Common.ApplicationSettings = ApplicationSettings;
|
|
9642
|
+
})(Common || (Common = {}));
|
|
9643
|
+
(function (Common) {
|
|
9644
|
+
/**
|
|
9645
|
+
* @description Represents configuration settings related to a user in a specific context
|
|
9646
|
+
*/
|
|
9647
|
+
class SettingsCollection extends NativeClassWrapper {
|
|
9648
|
+
/** @internal */
|
|
9649
|
+
constructor(pointer) {
|
|
9650
|
+
super(pointer);
|
|
9651
|
+
}
|
|
9652
|
+
static create() {
|
|
9653
|
+
var _ptr = Module._malloc(8);
|
|
9654
|
+
Module.ccall("csp_common_SettingsCollection_Ctor", "void", ["number"], [_ptr]);
|
|
9655
|
+
var _nPtr = getNativePointer(_ptr);
|
|
9656
|
+
return new SettingsCollection(_nPtr);
|
|
9657
|
+
}
|
|
9658
|
+
// operator==
|
|
9659
|
+
// operator!=
|
|
9660
|
+
delete() {
|
|
9661
|
+
if (this.ownsPointer && !this.disposed) {
|
|
9662
|
+
Module.ccall("csp_common_SettingsCollection_Dtor", "void", ["number"], [this.pointer]);
|
|
9663
|
+
this.disposed = true;
|
|
9664
|
+
}
|
|
9665
|
+
}
|
|
9666
|
+
get userId() {
|
|
9667
|
+
let _result = Module.ccall("csp_common_SettingsCollection__Get_UserId", "string", ["number"], [this.pointer]);
|
|
9668
|
+
return _result;
|
|
9669
|
+
}
|
|
9670
|
+
set userId(value) {
|
|
9671
|
+
Module.ccall("csp_common_SettingsCollection__Set_UserId", "void", ["number", "string"], [this.pointer, value]);
|
|
9672
|
+
}
|
|
9673
|
+
get context() {
|
|
9674
|
+
let _result = Module.ccall("csp_common_SettingsCollection__Get_Context", "string", ["number"], [this.pointer]);
|
|
9675
|
+
return _result;
|
|
9676
|
+
}
|
|
9677
|
+
set context(value) {
|
|
9678
|
+
Module.ccall("csp_common_SettingsCollection__Set_Context", "void", ["number", "string"], [this.pointer, value]);
|
|
9679
|
+
}
|
|
9680
|
+
get settings() {
|
|
9681
|
+
const _ptr = Module._malloc(8);
|
|
9682
|
+
Module.ccall("csp_common_SettingsCollection__Get_Settings", "void", ["number", "number"], [_ptr, this.pointer]);
|
|
9683
|
+
const _nPtr = getNativePointer(_ptr);
|
|
9684
|
+
return new Common.Map(_nPtr, StringFactory, "String", StringFactory, "String");
|
|
9685
|
+
}
|
|
9686
|
+
set settings(value) {
|
|
9687
|
+
Module.ccall("csp_common_SettingsCollection__Set_Settings", "void", ["number", "number"], [this.pointer, value.pointer]);
|
|
9688
|
+
}
|
|
9689
|
+
}
|
|
9690
|
+
Common.SettingsCollection = SettingsCollection;
|
|
9691
|
+
})(Common || (Common = {}));
|
|
9558
9692
|
(function (Common) {
|
|
9559
9693
|
/**
|
|
9560
9694
|
* @description Variant is an intermediate class that enables clients to pack data into types that are supported by Connected Spaces Platform replication
|
|
@@ -14474,109 +14608,6 @@ export class CSPFoundation {
|
|
|
14474
14608
|
}
|
|
14475
14609
|
Systems.Sequence = Sequence;
|
|
14476
14610
|
})(Systems || (Systems = {}));
|
|
14477
|
-
(function (Systems) {
|
|
14478
|
-
/**
|
|
14479
|
-
@ingroup Application Settings System
|
|
14480
|
-
* @description Represents configuration settings for an application context.
|
|
14481
|
-
*/
|
|
14482
|
-
class ApplicationSettings extends NativeClassWrapper {
|
|
14483
|
-
/** @internal */
|
|
14484
|
-
constructor(pointer) {
|
|
14485
|
-
super(pointer);
|
|
14486
|
-
}
|
|
14487
|
-
static create() {
|
|
14488
|
-
var _ptr = Module._malloc(8);
|
|
14489
|
-
Module.ccall("csp_systems_ApplicationSettings_Ctor", "void", ["number"], [_ptr]);
|
|
14490
|
-
var _nPtr = getNativePointer(_ptr);
|
|
14491
|
-
return new ApplicationSettings(_nPtr);
|
|
14492
|
-
}
|
|
14493
|
-
delete() {
|
|
14494
|
-
if (this.ownsPointer && !this.disposed) {
|
|
14495
|
-
Module.ccall("csp_systems_ApplicationSettings_Dtor", "void", ["number"], [this.pointer]);
|
|
14496
|
-
this.disposed = true;
|
|
14497
|
-
}
|
|
14498
|
-
}
|
|
14499
|
-
get applicationName() {
|
|
14500
|
-
let _result = Module.ccall("csp_systems_ApplicationSettings__Get_ApplicationName", "string", ["number"], [this.pointer]);
|
|
14501
|
-
return _result;
|
|
14502
|
-
}
|
|
14503
|
-
set applicationName(value) {
|
|
14504
|
-
Module.ccall("csp_systems_ApplicationSettings__Set_ApplicationName", "void", ["number", "string"], [this.pointer, value]);
|
|
14505
|
-
}
|
|
14506
|
-
get context() {
|
|
14507
|
-
let _result = Module.ccall("csp_systems_ApplicationSettings__Get_Context", "string", ["number"], [this.pointer]);
|
|
14508
|
-
return _result;
|
|
14509
|
-
}
|
|
14510
|
-
set context(value) {
|
|
14511
|
-
Module.ccall("csp_systems_ApplicationSettings__Set_Context", "void", ["number", "string"], [this.pointer, value]);
|
|
14512
|
-
}
|
|
14513
|
-
get allowAnonymous() {
|
|
14514
|
-
let _result = Module.ccall("csp_systems_ApplicationSettings__Get_AllowAnonymous", "boolean", ["number"], [this.pointer]);
|
|
14515
|
-
return _result;
|
|
14516
|
-
}
|
|
14517
|
-
set allowAnonymous(value) {
|
|
14518
|
-
Module.ccall("csp_systems_ApplicationSettings__Set_AllowAnonymous", "void", ["number", "boolean"], [this.pointer, value]);
|
|
14519
|
-
}
|
|
14520
|
-
get settings() {
|
|
14521
|
-
const _ptr = Module._malloc(8);
|
|
14522
|
-
Module.ccall("csp_systems_ApplicationSettings__Get_Settings", "void", ["number", "number"], [_ptr, this.pointer]);
|
|
14523
|
-
const _nPtr = getNativePointer(_ptr);
|
|
14524
|
-
return new Common.Map(_nPtr, StringFactory, "String", StringFactory, "String");
|
|
14525
|
-
}
|
|
14526
|
-
set settings(value) {
|
|
14527
|
-
Module.ccall("csp_systems_ApplicationSettings__Set_Settings", "void", ["number", "number"], [this.pointer, value.pointer]);
|
|
14528
|
-
}
|
|
14529
|
-
}
|
|
14530
|
-
Systems.ApplicationSettings = ApplicationSettings;
|
|
14531
|
-
})(Systems || (Systems = {}));
|
|
14532
|
-
(function (Systems) {
|
|
14533
|
-
/**
|
|
14534
|
-
@ingroup Settings System
|
|
14535
|
-
* @description Data representation of a Settings collection which maps to a UserService::Settings.
|
|
14536
|
-
*/
|
|
14537
|
-
class SettingsCollection extends NativeClassWrapper {
|
|
14538
|
-
/** @internal */
|
|
14539
|
-
constructor(pointer) {
|
|
14540
|
-
super(pointer);
|
|
14541
|
-
}
|
|
14542
|
-
static create() {
|
|
14543
|
-
var _ptr = Module._malloc(8);
|
|
14544
|
-
Module.ccall("csp_systems_SettingsCollection_Ctor", "void", ["number"], [_ptr]);
|
|
14545
|
-
var _nPtr = getNativePointer(_ptr);
|
|
14546
|
-
return new SettingsCollection(_nPtr);
|
|
14547
|
-
}
|
|
14548
|
-
delete() {
|
|
14549
|
-
if (this.ownsPointer && !this.disposed) {
|
|
14550
|
-
Module.ccall("csp_systems_SettingsCollection_Dtor", "void", ["number"], [this.pointer]);
|
|
14551
|
-
this.disposed = true;
|
|
14552
|
-
}
|
|
14553
|
-
}
|
|
14554
|
-
get userId() {
|
|
14555
|
-
let _result = Module.ccall("csp_systems_SettingsCollection__Get_UserId", "string", ["number"], [this.pointer]);
|
|
14556
|
-
return _result;
|
|
14557
|
-
}
|
|
14558
|
-
set userId(value) {
|
|
14559
|
-
Module.ccall("csp_systems_SettingsCollection__Set_UserId", "void", ["number", "string"], [this.pointer, value]);
|
|
14560
|
-
}
|
|
14561
|
-
get context() {
|
|
14562
|
-
let _result = Module.ccall("csp_systems_SettingsCollection__Get_Context", "string", ["number"], [this.pointer]);
|
|
14563
|
-
return _result;
|
|
14564
|
-
}
|
|
14565
|
-
set context(value) {
|
|
14566
|
-
Module.ccall("csp_systems_SettingsCollection__Set_Context", "void", ["number", "string"], [this.pointer, value]);
|
|
14567
|
-
}
|
|
14568
|
-
get settings() {
|
|
14569
|
-
const _ptr = Module._malloc(8);
|
|
14570
|
-
Module.ccall("csp_systems_SettingsCollection__Get_Settings", "void", ["number", "number"], [_ptr, this.pointer]);
|
|
14571
|
-
const _nPtr = getNativePointer(_ptr);
|
|
14572
|
-
return new Common.Map(_nPtr, StringFactory, "String", StringFactory, "String");
|
|
14573
|
-
}
|
|
14574
|
-
set settings(value) {
|
|
14575
|
-
Module.ccall("csp_systems_SettingsCollection__Set_Settings", "void", ["number", "number"], [this.pointer, value.pointer]);
|
|
14576
|
-
}
|
|
14577
|
-
}
|
|
14578
|
-
Systems.SettingsCollection = SettingsCollection;
|
|
14579
|
-
})(Systems || (Systems = {}));
|
|
14580
14611
|
(function (Systems) {
|
|
14581
14612
|
/**
|
|
14582
14613
|
@ingroup Space System
|
|
@@ -22976,29 +23007,61 @@ export class CSPFoundation {
|
|
|
22976
23007
|
metadata.pointer,
|
|
22977
23008
|
]);
|
|
22978
23009
|
}
|
|
22979
|
-
sendAnalyticsEvent(productContextSection, category, interactionType, subCategory, metadata
|
|
23010
|
+
async sendAnalyticsEvent(productContextSection, category, interactionType, subCategory, metadata) {
|
|
23011
|
+
var _resolve;
|
|
23012
|
+
var _promise = new Promise((_r) => {
|
|
23013
|
+
_resolve = _r;
|
|
23014
|
+
});
|
|
23015
|
+
var _callbackPtr;
|
|
22980
23016
|
var _callback = (_stateObject__, result) => {
|
|
22981
|
-
var
|
|
22982
|
-
|
|
23017
|
+
var _resultPtr = getNativePointer(result);
|
|
23018
|
+
var _resultInstance = new Systems.NullResult(_resultPtr);
|
|
23019
|
+
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
23020
|
+
return;
|
|
23021
|
+
}
|
|
23022
|
+
_resolve(_resultInstance);
|
|
23023
|
+
Module.removeFunction(_callbackPtr);
|
|
22983
23024
|
};
|
|
22984
|
-
|
|
22985
|
-
Module.ccall("csp_systems_AnalyticsSystem_SendAnalyticsEvent_void_StringRC_StringRC_StringRC_StringRC_MapRC_NullResultCallback", "void", [
|
|
23025
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
23026
|
+
Module.ccall("csp_systems_AnalyticsSystem_SendAnalyticsEvent_void_StringRC_StringRC_StringRC_StringRC_MapRC_NullResultCallback", "void", [
|
|
23027
|
+
"number",
|
|
23028
|
+
"string",
|
|
23029
|
+
"string",
|
|
23030
|
+
"string",
|
|
23031
|
+
"string",
|
|
23032
|
+
"number",
|
|
23033
|
+
"number",
|
|
23034
|
+
"number",
|
|
23035
|
+
], [
|
|
22986
23036
|
this.pointer,
|
|
22987
23037
|
productContextSection,
|
|
22988
23038
|
category,
|
|
22989
23039
|
interactionType,
|
|
22990
23040
|
subCategory,
|
|
22991
|
-
metadata.pointer,
|
|
22992
|
-
|
|
23041
|
+
metadata != null ? metadata.pointer : 0,
|
|
23042
|
+
_callbackPtr,
|
|
23043
|
+
0,
|
|
22993
23044
|
]);
|
|
23045
|
+
return _promise;
|
|
22994
23046
|
}
|
|
22995
|
-
flushAnalyticsEventsQueue(
|
|
23047
|
+
async flushAnalyticsEventsQueue() {
|
|
23048
|
+
var _resolve;
|
|
23049
|
+
var _promise = new Promise((_r) => {
|
|
23050
|
+
_resolve = _r;
|
|
23051
|
+
});
|
|
23052
|
+
var _callbackPtr;
|
|
22996
23053
|
var _callback = (_stateObject__, result) => {
|
|
22997
|
-
var
|
|
22998
|
-
|
|
23054
|
+
var _resultPtr = getNativePointer(result);
|
|
23055
|
+
var _resultInstance = new Systems.NullResult(_resultPtr);
|
|
23056
|
+
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
23057
|
+
return;
|
|
23058
|
+
}
|
|
23059
|
+
_resolve(_resultInstance);
|
|
23060
|
+
Module.removeFunction(_callbackPtr);
|
|
22999
23061
|
};
|
|
23000
|
-
|
|
23062
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
23001
23063
|
Module.ccall("csp_systems_AnalyticsSystem_FlushAnalyticsEventsQueue_void_NullResultCallback", "void", ["number", "number", "number"], [this.pointer, _callbackPtr, 0]);
|
|
23064
|
+
return _promise;
|
|
23002
23065
|
}
|
|
23003
23066
|
}
|
|
23004
23067
|
Systems.AnalyticsSystem = AnalyticsSystem;
|
|
@@ -27135,7 +27198,7 @@ export class CSPFoundation {
|
|
|
27135
27198
|
getApplicationSettings() {
|
|
27136
27199
|
var _ret = Module._malloc(8);
|
|
27137
27200
|
Module.ccall("csp_systems_ApplicationSettingsResult_GetApplicationSettingsC_ApplicationSettingsRC", "void", ["number", "number"], [_ret, this.pointer]);
|
|
27138
|
-
var _nPtr = new
|
|
27201
|
+
var _nPtr = new Common.ApplicationSettings(getNativePointer(_ret));
|
|
27139
27202
|
Module._free(_ret);
|
|
27140
27203
|
return _nPtr;
|
|
27141
27204
|
}
|
|
@@ -27256,7 +27319,7 @@ export class CSPFoundation {
|
|
|
27256
27319
|
getSettingsCollection() {
|
|
27257
27320
|
var _ret = Module._malloc(8);
|
|
27258
27321
|
Module.ccall("csp_systems_SettingsCollectionResult_GetSettingsCollectionC_SettingsCollectionRC", "void", ["number", "number"], [_ret, this.pointer]);
|
|
27259
|
-
var _nPtr = new
|
|
27322
|
+
var _nPtr = new Common.SettingsCollection(getNativePointer(_ret));
|
|
27260
27323
|
Module._free(_ret);
|
|
27261
27324
|
return _nPtr;
|
|
27262
27325
|
}
|
|
@@ -31792,6 +31855,20 @@ export class CSPFoundation {
|
|
|
31792
31855
|
this.TTypeFactory = TTypeFactory;
|
|
31793
31856
|
this.TTypeName = TTypeName;
|
|
31794
31857
|
}
|
|
31858
|
+
static ofcsp_common_ApplicationSettings() {
|
|
31859
|
+
var _ret = Module._malloc(8);
|
|
31860
|
+
Module.ccall("csp_common_List_Ctor_csp_common_ApplicationSettings", "void", ["number"], [_ret]);
|
|
31861
|
+
var _inst = new List(getNativePointer(_ret), csp_common_ApplicationSettingsFactory, "csp_common_ApplicationSettings");
|
|
31862
|
+
Module._free(_ret);
|
|
31863
|
+
return _inst;
|
|
31864
|
+
}
|
|
31865
|
+
static ofcsp_common_SettingsCollection() {
|
|
31866
|
+
var _ret = Module._malloc(8);
|
|
31867
|
+
Module.ccall("csp_common_List_Ctor_csp_common_SettingsCollection", "void", ["number"], [_ret]);
|
|
31868
|
+
var _inst = new List(getNativePointer(_ret), csp_common_SettingsCollectionFactory, "csp_common_SettingsCollection");
|
|
31869
|
+
Module._free(_ret);
|
|
31870
|
+
return _inst;
|
|
31871
|
+
}
|
|
31795
31872
|
static ofcsp_multiplayer_SpaceEntity() {
|
|
31796
31873
|
var _ret = Module._malloc(8);
|
|
31797
31874
|
Module.ccall("csp_common_List_Ctor_csp_multiplayer_SpaceEntity", "void", ["number"], [_ret]);
|
|
@@ -31813,6 +31890,20 @@ export class CSPFoundation {
|
|
|
31813
31890
|
Module._free(_ret);
|
|
31814
31891
|
return _inst;
|
|
31815
31892
|
}
|
|
31893
|
+
static ofcsp_common_ApplicationSettings_number(minimumSize) {
|
|
31894
|
+
var _ret = Module._malloc(8);
|
|
31895
|
+
Module.ccall("csp_common_List_Ctor_size_t_csp_common_ApplicationSettings", "void", ["number", "number"], [_ret, minimumSize]);
|
|
31896
|
+
var _inst = new List(getNativePointer(_ret), csp_common_ApplicationSettingsFactory, "csp_common_ApplicationSettings");
|
|
31897
|
+
Module._free(_ret);
|
|
31898
|
+
return _inst;
|
|
31899
|
+
}
|
|
31900
|
+
static ofcsp_common_SettingsCollection_number(minimumSize) {
|
|
31901
|
+
var _ret = Module._malloc(8);
|
|
31902
|
+
Module.ccall("csp_common_List_Ctor_size_t_csp_common_SettingsCollection", "void", ["number", "number"], [_ret, minimumSize]);
|
|
31903
|
+
var _inst = new List(getNativePointer(_ret), csp_common_SettingsCollectionFactory, "csp_common_SettingsCollection");
|
|
31904
|
+
Module._free(_ret);
|
|
31905
|
+
return _inst;
|
|
31906
|
+
}
|
|
31816
31907
|
static ofcsp_multiplayer_SpaceEntity_number(minimumSize) {
|
|
31817
31908
|
var _ret = Module._malloc(8);
|
|
31818
31909
|
Module.ccall("csp_common_List_Ctor_size_t_csp_multiplayer_SpaceEntity", "void", ["number", "number"], [_ret, minimumSize]);
|
|
@@ -31834,6 +31925,20 @@ export class CSPFoundation {
|
|
|
31834
31925
|
Module._free(_ret);
|
|
31835
31926
|
return _inst;
|
|
31836
31927
|
}
|
|
31928
|
+
static ofcsp_common_ApplicationSettings_List(other) {
|
|
31929
|
+
var _ret = Module._malloc(8);
|
|
31930
|
+
Module.ccall("csp_common_List_Ctor_ListRC_csp_common_ApplicationSettings", "void", ["number", "number"], [_ret, other.pointer]);
|
|
31931
|
+
var _inst = new List(getNativePointer(_ret), csp_common_ApplicationSettingsFactory, "csp_common_ApplicationSettings");
|
|
31932
|
+
Module._free(_ret);
|
|
31933
|
+
return _inst;
|
|
31934
|
+
}
|
|
31935
|
+
static ofcsp_common_SettingsCollection_List(other) {
|
|
31936
|
+
var _ret = Module._malloc(8);
|
|
31937
|
+
Module.ccall("csp_common_List_Ctor_ListRC_csp_common_SettingsCollection", "void", ["number", "number"], [_ret, other.pointer]);
|
|
31938
|
+
var _inst = new List(getNativePointer(_ret), csp_common_SettingsCollectionFactory, "csp_common_SettingsCollection");
|
|
31939
|
+
Module._free(_ret);
|
|
31940
|
+
return _inst;
|
|
31941
|
+
}
|
|
31837
31942
|
static ofcsp_multiplayer_SpaceEntity_List(other) {
|
|
31838
31943
|
var _ret = Module._malloc(8);
|
|
31839
31944
|
Module.ccall("csp_common_List_Ctor_ListRC_csp_multiplayer_SpaceEntity", "void", ["number", "number"], [_ret, other.pointer]);
|
|
@@ -31929,6 +32034,13 @@ export class CSPFoundation {
|
|
|
31929
32034
|
Module._free(_ret);
|
|
31930
32035
|
return _inst;
|
|
31931
32036
|
}
|
|
32037
|
+
static ofStringAndString() {
|
|
32038
|
+
var _ret = Module._malloc(8);
|
|
32039
|
+
Module.ccall("csp_common_Map_Ctor_String_String", "void", ["number"], [_ret]);
|
|
32040
|
+
var _inst = new Map(getNativePointer(_ret), StringFactory, "String", StringFactory, "String");
|
|
32041
|
+
Module._free(_ret);
|
|
32042
|
+
return _inst;
|
|
32043
|
+
}
|
|
31932
32044
|
static ofUInt32Andcsp_common_ReplicatedValue() {
|
|
31933
32045
|
var _ret = Module._malloc(8);
|
|
31934
32046
|
Module.ccall("csp_common_Map_Ctor_UInt32_csp_common_ReplicatedValue", "void", ["number"], [_ret]);
|
|
@@ -31943,13 +32055,6 @@ export class CSPFoundation {
|
|
|
31943
32055
|
Module._free(_ret);
|
|
31944
32056
|
return _inst;
|
|
31945
32057
|
}
|
|
31946
|
-
static ofStringAndString() {
|
|
31947
|
-
var _ret = Module._malloc(8);
|
|
31948
|
-
Module.ccall("csp_common_Map_Ctor_String_String", "void", ["number"], [_ret]);
|
|
31949
|
-
var _inst = new Map(getNativePointer(_ret), StringFactory, "String", StringFactory, "String");
|
|
31950
|
-
Module._free(_ret);
|
|
31951
|
-
return _inst;
|
|
31952
|
-
}
|
|
31953
32058
|
static ofStringAndcsp_systems_Asset() {
|
|
31954
32059
|
var _ret = Module._malloc(8);
|
|
31955
32060
|
Module.ccall("csp_common_Map_Ctor_String_csp_systems_Asset", "void", ["number"], [_ret]);
|
|
@@ -31978,6 +32083,13 @@ export class CSPFoundation {
|
|
|
31978
32083
|
Module._free(_ret);
|
|
31979
32084
|
return _inst;
|
|
31980
32085
|
}
|
|
32086
|
+
static ofStringAndString_Map(other) {
|
|
32087
|
+
var _ret = Module._malloc(8);
|
|
32088
|
+
Module.ccall("csp_common_Map_Ctor_MapRC_String_String", "void", ["number", "number"], [_ret, other.pointer]);
|
|
32089
|
+
var _inst = new Map(getNativePointer(_ret), StringFactory, "String", StringFactory, "String");
|
|
32090
|
+
Module._free(_ret);
|
|
32091
|
+
return _inst;
|
|
32092
|
+
}
|
|
31981
32093
|
static ofUInt32Andcsp_common_ReplicatedValue_Map(other) {
|
|
31982
32094
|
var _ret = Module._malloc(8);
|
|
31983
32095
|
Module.ccall("csp_common_Map_Ctor_MapRC_UInt32_csp_common_ReplicatedValue", "void", ["number", "number"], [_ret, other.pointer]);
|
|
@@ -31992,13 +32104,6 @@ export class CSPFoundation {
|
|
|
31992
32104
|
Module._free(_ret);
|
|
31993
32105
|
return _inst;
|
|
31994
32106
|
}
|
|
31995
|
-
static ofStringAndString_Map(other) {
|
|
31996
|
-
var _ret = Module._malloc(8);
|
|
31997
|
-
Module.ccall("csp_common_Map_Ctor_MapRC_String_String", "void", ["number", "number"], [_ret, other.pointer]);
|
|
31998
|
-
var _inst = new Map(getNativePointer(_ret), StringFactory, "String", StringFactory, "String");
|
|
31999
|
-
Module._free(_ret);
|
|
32000
|
-
return _inst;
|
|
32001
|
-
}
|
|
32002
32107
|
static ofStringAndcsp_systems_Asset_Map(other) {
|
|
32003
32108
|
var _ret = Module._malloc(8);
|
|
32004
32109
|
Module.ccall("csp_common_Map_Ctor_MapRC_String_csp_systems_Asset", "void", ["number", "number"], [_ret, other.pointer]);
|