connected-spaces-platform.web 6.10.0 → 6.12.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 +88 -4
- package/Debug/ConnectedSpacesPlatform_WASM.wasm +0 -0
- package/Debug/ConnectedSpacesPlatform_WASM.wasm.debug.wasm +0 -0
- package/README.md +74 -2
- package/Release/ConnectedSpacesPlatform_WASM.js +1 -1
- package/Release/ConnectedSpacesPlatform_WASM.wasm +0 -0
- package/connectedspacesplatform.d.ts +140 -5
- package/connectedspacesplatform.js +341 -5
- package/connectedspacesplatform.js.map +1 -1
- package/connectedspacesplatform.ts +661 -3
- package/package.json +1 -1
|
@@ -946,6 +946,14 @@ function csp_systems_TicketStatusFactory(
|
|
|
946
946
|
ProxyClassFactories["csp_systems_TicketStatus"] =
|
|
947
947
|
csp_systems_TicketStatusFactory;
|
|
948
948
|
|
|
949
|
+
function csp_systems_PubSubModelTypeFactory(
|
|
950
|
+
nativePointer: NativePointer,
|
|
951
|
+
): Systems.PubSubModelType {
|
|
952
|
+
return nativePointer.pointer as Systems.PubSubModelType;
|
|
953
|
+
}
|
|
954
|
+
ProxyClassFactories["csp_systems_PubSubModelType"] =
|
|
955
|
+
csp_systems_PubSubModelTypeFactory;
|
|
956
|
+
|
|
949
957
|
function csp_systems_PeriodEnumFactory(
|
|
950
958
|
nativePointer: NativePointer,
|
|
951
959
|
): Systems.PeriodEnum {
|
|
@@ -1529,6 +1537,20 @@ function csp_systems_MaintenanceInfoFactory(
|
|
|
1529
1537
|
ProxyClassFactories["csp_systems_MaintenanceInfo"] =
|
|
1530
1538
|
csp_systems_MaintenanceInfoFactory;
|
|
1531
1539
|
|
|
1540
|
+
function csp_systems_ScopeFactory(
|
|
1541
|
+
nativePointer: NativePointer,
|
|
1542
|
+
): NativeClassWrapper {
|
|
1543
|
+
return new Systems.Scope(nativePointer);
|
|
1544
|
+
}
|
|
1545
|
+
ProxyClassFactories["csp_systems_Scope"] = csp_systems_ScopeFactory;
|
|
1546
|
+
|
|
1547
|
+
function csp_systems_ScopeLeaderFactory(
|
|
1548
|
+
nativePointer: NativePointer,
|
|
1549
|
+
): NativeClassWrapper {
|
|
1550
|
+
return new Systems.ScopeLeader(nativePointer);
|
|
1551
|
+
}
|
|
1552
|
+
ProxyClassFactories["csp_systems_ScopeLeader"] = csp_systems_ScopeLeaderFactory;
|
|
1553
|
+
|
|
1532
1554
|
function csp_systems_FeatureLimitInfoFactory(
|
|
1533
1555
|
nativePointer: NativePointer,
|
|
1534
1556
|
): NativeClassWrapper {
|
|
@@ -2358,6 +2380,37 @@ function csp_systems_MaintenanceSystemFactory(
|
|
|
2358
2380
|
ProxyClassFactories["csp_systems_MaintenanceSystem"] =
|
|
2359
2381
|
csp_systems_MaintenanceSystemFactory;
|
|
2360
2382
|
|
|
2383
|
+
function csp_systems_MultiplayerSystemFactory(
|
|
2384
|
+
nativePointer: NativePointer,
|
|
2385
|
+
): NativeClassWrapper {
|
|
2386
|
+
return new Systems.MultiplayerSystem(nativePointer);
|
|
2387
|
+
}
|
|
2388
|
+
ProxyClassFactories["csp_systems_MultiplayerSystem"] =
|
|
2389
|
+
csp_systems_MultiplayerSystemFactory;
|
|
2390
|
+
|
|
2391
|
+
function csp_systems_ScopeResultFactory(
|
|
2392
|
+
nativePointer: NativePointer,
|
|
2393
|
+
): NativeClassWrapper {
|
|
2394
|
+
return new Systems.ScopeResult(nativePointer);
|
|
2395
|
+
}
|
|
2396
|
+
ProxyClassFactories["csp_systems_ScopeResult"] = csp_systems_ScopeResultFactory;
|
|
2397
|
+
|
|
2398
|
+
function csp_systems_ScopesResultFactory(
|
|
2399
|
+
nativePointer: NativePointer,
|
|
2400
|
+
): NativeClassWrapper {
|
|
2401
|
+
return new Systems.ScopesResult(nativePointer);
|
|
2402
|
+
}
|
|
2403
|
+
ProxyClassFactories["csp_systems_ScopesResult"] =
|
|
2404
|
+
csp_systems_ScopesResultFactory;
|
|
2405
|
+
|
|
2406
|
+
function csp_systems_ScopeLeaderResultFactory(
|
|
2407
|
+
nativePointer: NativePointer,
|
|
2408
|
+
): NativeClassWrapper {
|
|
2409
|
+
return new Systems.ScopeLeaderResult(nativePointer);
|
|
2410
|
+
}
|
|
2411
|
+
ProxyClassFactories["csp_systems_ScopeLeaderResult"] =
|
|
2412
|
+
csp_systems_ScopeLeaderResultFactory;
|
|
2413
|
+
|
|
2361
2414
|
function csp_systems_FeaturesLimitResultFactory(
|
|
2362
2415
|
nativePointer: NativePointer,
|
|
2363
2416
|
): NativeClassWrapper {
|
|
@@ -3022,6 +3075,18 @@ function csp_common_Array_csp_systems_MaintenanceInfoFactory(
|
|
|
3022
3075
|
ProxyClassFactories["csp_common_Array_csp_systems_MaintenanceInfo"] =
|
|
3023
3076
|
csp_common_Array_csp_systems_MaintenanceInfoFactory;
|
|
3024
3077
|
|
|
3078
|
+
function csp_common_Array_csp_systems_ScopeFactory(
|
|
3079
|
+
nativePointer: NativePointer,
|
|
3080
|
+
): NativeClassWrapper {
|
|
3081
|
+
return new Common.Array<Systems.Scope>(
|
|
3082
|
+
nativePointer,
|
|
3083
|
+
csp_systems_ScopeFactory,
|
|
3084
|
+
"csp_systems_Scope",
|
|
3085
|
+
);
|
|
3086
|
+
}
|
|
3087
|
+
ProxyClassFactories["csp_common_Array_csp_systems_Scope"] =
|
|
3088
|
+
csp_common_Array_csp_systems_ScopeFactory;
|
|
3089
|
+
|
|
3025
3090
|
function csp_common_Array_csp_systems_FeatureLimitInfoFactory(
|
|
3026
3091
|
nativePointer: NativePointer,
|
|
3027
3092
|
): NativeClassWrapper {
|
|
@@ -4559,6 +4624,7 @@ export namespace Systems {
|
|
|
4559
4624
|
MATERIAL,
|
|
4560
4625
|
ANNOTATION,
|
|
4561
4626
|
ANNOTATION_THUMBNAIL,
|
|
4627
|
+
TEXT,
|
|
4562
4628
|
}
|
|
4563
4629
|
}
|
|
4564
4630
|
|
|
@@ -4665,6 +4731,21 @@ export namespace Systems {
|
|
|
4665
4731
|
}
|
|
4666
4732
|
}
|
|
4667
4733
|
|
|
4734
|
+
export namespace Systems {
|
|
4735
|
+
/**
|
|
4736
|
+
@ingroup Multiplayer System
|
|
4737
|
+
* @description Enum representing the scopes pub/sub model type
|
|
4738
|
+
* Object: used in object scopes, each object is published to its own channel, and
|
|
4739
|
+
* client subscribes to the channels of only the objects they can see
|
|
4740
|
+
* Global: used in global scopes, all objects are published to a single channel,
|
|
4741
|
+
* client subscribes to the channel and can see everything in the channel/scope
|
|
4742
|
+
*/
|
|
4743
|
+
export enum PubSubModelType {
|
|
4744
|
+
Object,
|
|
4745
|
+
Global,
|
|
4746
|
+
}
|
|
4747
|
+
}
|
|
4748
|
+
|
|
4668
4749
|
export namespace Systems {
|
|
4669
4750
|
/**
|
|
4670
4751
|
@ingroup Quota System
|
|
@@ -4687,9 +4768,9 @@ export namespace Systems {
|
|
|
4687
4768
|
TotalUploadSizeInKilobytes,
|
|
4688
4769
|
Agora,
|
|
4689
4770
|
OpenAI,
|
|
4771
|
+
GoogleGenAI,
|
|
4690
4772
|
Shopify,
|
|
4691
4773
|
TicketedSpace,
|
|
4692
|
-
GoogleGenAI,
|
|
4693
4774
|
Invalid,
|
|
4694
4775
|
}
|
|
4695
4776
|
}
|
|
@@ -5445,6 +5526,28 @@ export class EndpointURIs
|
|
|
5445
5526
|
[this.pointer, value.pointer],
|
|
5446
5527
|
);
|
|
5447
5528
|
}
|
|
5529
|
+
|
|
5530
|
+
get multiplayerConnection(): ServiceDefinition {
|
|
5531
|
+
const _ptr = Module._malloc(8);
|
|
5532
|
+
Module.ccall(
|
|
5533
|
+
"csp_EndpointURIs__Get_MultiplayerConnection",
|
|
5534
|
+
"void",
|
|
5535
|
+
["number", "number"],
|
|
5536
|
+
[_ptr, this.pointer],
|
|
5537
|
+
);
|
|
5538
|
+
|
|
5539
|
+
const _nPtr = getNativePointer(_ptr);
|
|
5540
|
+
return new ServiceDefinition(_nPtr);
|
|
5541
|
+
}
|
|
5542
|
+
|
|
5543
|
+
set multiplayerConnection(value: ServiceDefinition) {
|
|
5544
|
+
Module.ccall(
|
|
5545
|
+
"csp_EndpointURIs__Set_MultiplayerConnection",
|
|
5546
|
+
"void",
|
|
5547
|
+
["number", "number"],
|
|
5548
|
+
[this.pointer, value.pointer],
|
|
5549
|
+
);
|
|
5550
|
+
}
|
|
5448
5551
|
}
|
|
5449
5552
|
|
|
5450
5553
|
/**
|
|
@@ -21420,12 +21523,12 @@ export namespace Common {
|
|
|
21420
21523
|
/**
|
|
21421
21524
|
* @description Gets mime type from a file path.
|
|
21422
21525
|
* @param filePath - Const string&
|
|
21423
|
-
* @return
|
|
21526
|
+
* @return Const string&
|
|
21424
21527
|
*/
|
|
21425
21528
|
|
|
21426
21529
|
getMimeType(filePath: string): string {
|
|
21427
21530
|
let _result = Module.ccall(
|
|
21428
|
-
"
|
|
21531
|
+
"csp_common_MimeTypeHelper_GetMimeType_StringRC_StringRC",
|
|
21429
21532
|
"number",
|
|
21430
21533
|
["number", "string"],
|
|
21431
21534
|
[this.pointer, filePath],
|
|
@@ -28183,6 +28286,21 @@ export namespace Systems {
|
|
|
28183
28286
|
return _nPtr;
|
|
28184
28287
|
}
|
|
28185
28288
|
|
|
28289
|
+
getMultiplayerSystem(): Systems.MultiplayerSystem {
|
|
28290
|
+
var _ret = Module._malloc(8);
|
|
28291
|
+
|
|
28292
|
+
Module.ccall(
|
|
28293
|
+
"csp_systems_SystemsManager_GetMultiplayerSystem_MultiplayerSystemP",
|
|
28294
|
+
"void",
|
|
28295
|
+
["number", "number"],
|
|
28296
|
+
[_ret, this.pointer],
|
|
28297
|
+
);
|
|
28298
|
+
var _nPtr = new Systems.MultiplayerSystem(getNativePointer(_ret));
|
|
28299
|
+
Module._free(_ret);
|
|
28300
|
+
|
|
28301
|
+
return _nPtr;
|
|
28302
|
+
}
|
|
28303
|
+
|
|
28186
28304
|
getMultiplayerConnection(): Multiplayer.MultiplayerConnection {
|
|
28187
28305
|
var _ret = Module._malloc(8);
|
|
28188
28306
|
|
|
@@ -32167,6 +32285,281 @@ export namespace Systems {
|
|
|
32167
32285
|
}
|
|
32168
32286
|
}
|
|
32169
32287
|
|
|
32288
|
+
export namespace Systems {
|
|
32289
|
+
/**
|
|
32290
|
+
@ingroup Multiplayer System
|
|
32291
|
+
* @description Data representation for a scope in a space.
|
|
32292
|
+
* Scopes represent different channels in a space which objects can exist in.
|
|
32293
|
+
* This allows csp/mcs to only reason about objects in specific scopes.
|
|
32294
|
+
*/
|
|
32295
|
+
export class Scope extends NativeClassWrapper implements INativeResource {
|
|
32296
|
+
/** @internal */
|
|
32297
|
+
constructor(pointer: NativePointer) {
|
|
32298
|
+
super(pointer);
|
|
32299
|
+
}
|
|
32300
|
+
|
|
32301
|
+
static create(): Scope {
|
|
32302
|
+
var _ptr = Module._malloc(8);
|
|
32303
|
+
Module.ccall("csp_systems_Scope_Ctor", "void", ["number"], [_ptr]);
|
|
32304
|
+
var _nPtr = getNativePointer(_ptr);
|
|
32305
|
+
|
|
32306
|
+
return new Scope(_nPtr);
|
|
32307
|
+
}
|
|
32308
|
+
|
|
32309
|
+
delete(): void {
|
|
32310
|
+
if (this.ownsPointer && !this.disposed) {
|
|
32311
|
+
Module.ccall(
|
|
32312
|
+
"csp_systems_Scope_Dtor",
|
|
32313
|
+
"void",
|
|
32314
|
+
["number"],
|
|
32315
|
+
[this.pointer],
|
|
32316
|
+
);
|
|
32317
|
+
|
|
32318
|
+
this.disposed = true;
|
|
32319
|
+
}
|
|
32320
|
+
}
|
|
32321
|
+
|
|
32322
|
+
get id(): string {
|
|
32323
|
+
let _result = Module.ccall(
|
|
32324
|
+
"csp_systems_Scope__Get_Id",
|
|
32325
|
+
"string",
|
|
32326
|
+
["number"],
|
|
32327
|
+
[this.pointer],
|
|
32328
|
+
);
|
|
32329
|
+
|
|
32330
|
+
return _result;
|
|
32331
|
+
}
|
|
32332
|
+
|
|
32333
|
+
set id(value: string) {
|
|
32334
|
+
Module.ccall(
|
|
32335
|
+
"csp_systems_Scope__Set_Id",
|
|
32336
|
+
"void",
|
|
32337
|
+
["number", "string"],
|
|
32338
|
+
[this.pointer, value],
|
|
32339
|
+
);
|
|
32340
|
+
}
|
|
32341
|
+
|
|
32342
|
+
get referenceId(): string {
|
|
32343
|
+
let _result = Module.ccall(
|
|
32344
|
+
"csp_systems_Scope__Get_ReferenceId",
|
|
32345
|
+
"string",
|
|
32346
|
+
["number"],
|
|
32347
|
+
[this.pointer],
|
|
32348
|
+
);
|
|
32349
|
+
|
|
32350
|
+
return _result;
|
|
32351
|
+
}
|
|
32352
|
+
|
|
32353
|
+
set referenceId(value: string) {
|
|
32354
|
+
Module.ccall(
|
|
32355
|
+
"csp_systems_Scope__Set_ReferenceId",
|
|
32356
|
+
"void",
|
|
32357
|
+
["number", "string"],
|
|
32358
|
+
[this.pointer, value],
|
|
32359
|
+
);
|
|
32360
|
+
}
|
|
32361
|
+
|
|
32362
|
+
get referenceType(): string {
|
|
32363
|
+
let _result = Module.ccall(
|
|
32364
|
+
"csp_systems_Scope__Get_ReferenceType",
|
|
32365
|
+
"string",
|
|
32366
|
+
["number"],
|
|
32367
|
+
[this.pointer],
|
|
32368
|
+
);
|
|
32369
|
+
|
|
32370
|
+
return _result;
|
|
32371
|
+
}
|
|
32372
|
+
|
|
32373
|
+
set referenceType(value: string) {
|
|
32374
|
+
Module.ccall(
|
|
32375
|
+
"csp_systems_Scope__Set_ReferenceType",
|
|
32376
|
+
"void",
|
|
32377
|
+
["number", "string"],
|
|
32378
|
+
[this.pointer, value],
|
|
32379
|
+
);
|
|
32380
|
+
}
|
|
32381
|
+
|
|
32382
|
+
get name(): string {
|
|
32383
|
+
let _result = Module.ccall(
|
|
32384
|
+
"csp_systems_Scope__Get_Name",
|
|
32385
|
+
"string",
|
|
32386
|
+
["number"],
|
|
32387
|
+
[this.pointer],
|
|
32388
|
+
);
|
|
32389
|
+
|
|
32390
|
+
return _result;
|
|
32391
|
+
}
|
|
32392
|
+
|
|
32393
|
+
set name(value: string) {
|
|
32394
|
+
Module.ccall(
|
|
32395
|
+
"csp_systems_Scope__Set_Name",
|
|
32396
|
+
"void",
|
|
32397
|
+
["number", "string"],
|
|
32398
|
+
[this.pointer, value],
|
|
32399
|
+
);
|
|
32400
|
+
}
|
|
32401
|
+
|
|
32402
|
+
get pubSubType(): Systems.PubSubModelType {
|
|
32403
|
+
let _result = Module.ccall(
|
|
32404
|
+
"csp_systems_Scope__Get_PubSubType",
|
|
32405
|
+
"number",
|
|
32406
|
+
["number"],
|
|
32407
|
+
[this.pointer],
|
|
32408
|
+
);
|
|
32409
|
+
|
|
32410
|
+
return _result;
|
|
32411
|
+
}
|
|
32412
|
+
|
|
32413
|
+
set pubSubType(value: Systems.PubSubModelType) {
|
|
32414
|
+
Module.ccall(
|
|
32415
|
+
"csp_systems_Scope__Set_PubSubType",
|
|
32416
|
+
"void",
|
|
32417
|
+
["number", "number"],
|
|
32418
|
+
[this.pointer, value],
|
|
32419
|
+
);
|
|
32420
|
+
}
|
|
32421
|
+
|
|
32422
|
+
get solveRadius(): number {
|
|
32423
|
+
let _result = Module.ccall(
|
|
32424
|
+
"csp_systems_Scope__Get_SolveRadius",
|
|
32425
|
+
"number",
|
|
32426
|
+
["number"],
|
|
32427
|
+
[this.pointer],
|
|
32428
|
+
);
|
|
32429
|
+
|
|
32430
|
+
return _result;
|
|
32431
|
+
}
|
|
32432
|
+
|
|
32433
|
+
set solveRadius(value: number) {
|
|
32434
|
+
Module.ccall(
|
|
32435
|
+
"csp_systems_Scope__Set_SolveRadius",
|
|
32436
|
+
"void",
|
|
32437
|
+
["number", "number"],
|
|
32438
|
+
[this.pointer, value],
|
|
32439
|
+
);
|
|
32440
|
+
}
|
|
32441
|
+
|
|
32442
|
+
get managedLeaderElection(): boolean {
|
|
32443
|
+
let _result = Module.ccall(
|
|
32444
|
+
"csp_systems_Scope__Get_ManagedLeaderElection",
|
|
32445
|
+
"boolean",
|
|
32446
|
+
["number"],
|
|
32447
|
+
[this.pointer],
|
|
32448
|
+
);
|
|
32449
|
+
|
|
32450
|
+
return _result;
|
|
32451
|
+
}
|
|
32452
|
+
|
|
32453
|
+
set managedLeaderElection(value: boolean) {
|
|
32454
|
+
Module.ccall(
|
|
32455
|
+
"csp_systems_Scope__Set_ManagedLeaderElection",
|
|
32456
|
+
"void",
|
|
32457
|
+
["number", "boolean"],
|
|
32458
|
+
[this.pointer, value],
|
|
32459
|
+
);
|
|
32460
|
+
}
|
|
32461
|
+
}
|
|
32462
|
+
}
|
|
32463
|
+
|
|
32464
|
+
export namespace Systems {
|
|
32465
|
+
/**
|
|
32466
|
+
@ingroup Multiplayer System
|
|
32467
|
+
* @description Data representation for a scope leader.
|
|
32468
|
+
* A scope leader represents a user which owns a specific scope in a space.
|
|
32469
|
+
* The scope leader will run scripts and other operations for the scope.
|
|
32470
|
+
*/
|
|
32471
|
+
export class ScopeLeader
|
|
32472
|
+
extends NativeClassWrapper
|
|
32473
|
+
implements INativeResource
|
|
32474
|
+
{
|
|
32475
|
+
/** @internal */
|
|
32476
|
+
constructor(pointer: NativePointer) {
|
|
32477
|
+
super(pointer);
|
|
32478
|
+
}
|
|
32479
|
+
|
|
32480
|
+
static create(): ScopeLeader {
|
|
32481
|
+
var _ptr = Module._malloc(8);
|
|
32482
|
+
Module.ccall("csp_systems_ScopeLeader_Ctor", "void", ["number"], [_ptr]);
|
|
32483
|
+
var _nPtr = getNativePointer(_ptr);
|
|
32484
|
+
|
|
32485
|
+
return new ScopeLeader(_nPtr);
|
|
32486
|
+
}
|
|
32487
|
+
|
|
32488
|
+
delete(): void {
|
|
32489
|
+
if (this.ownsPointer && !this.disposed) {
|
|
32490
|
+
Module.ccall(
|
|
32491
|
+
"csp_systems_ScopeLeader_Dtor",
|
|
32492
|
+
"void",
|
|
32493
|
+
["number"],
|
|
32494
|
+
[this.pointer],
|
|
32495
|
+
);
|
|
32496
|
+
|
|
32497
|
+
this.disposed = true;
|
|
32498
|
+
}
|
|
32499
|
+
}
|
|
32500
|
+
|
|
32501
|
+
get scopeId(): string {
|
|
32502
|
+
let _result = Module.ccall(
|
|
32503
|
+
"csp_systems_ScopeLeader__Get_ScopeId",
|
|
32504
|
+
"string",
|
|
32505
|
+
["number"],
|
|
32506
|
+
[this.pointer],
|
|
32507
|
+
);
|
|
32508
|
+
|
|
32509
|
+
return _result;
|
|
32510
|
+
}
|
|
32511
|
+
|
|
32512
|
+
set scopeId(value: string) {
|
|
32513
|
+
Module.ccall(
|
|
32514
|
+
"csp_systems_ScopeLeader__Set_ScopeId",
|
|
32515
|
+
"void",
|
|
32516
|
+
["number", "string"],
|
|
32517
|
+
[this.pointer, value],
|
|
32518
|
+
);
|
|
32519
|
+
}
|
|
32520
|
+
|
|
32521
|
+
get scopeLeaderUserId(): string {
|
|
32522
|
+
let _result = Module.ccall(
|
|
32523
|
+
"csp_systems_ScopeLeader__Get_ScopeLeaderUserId",
|
|
32524
|
+
"string",
|
|
32525
|
+
["number"],
|
|
32526
|
+
[this.pointer],
|
|
32527
|
+
);
|
|
32528
|
+
|
|
32529
|
+
return _result;
|
|
32530
|
+
}
|
|
32531
|
+
|
|
32532
|
+
set scopeLeaderUserId(value: string) {
|
|
32533
|
+
Module.ccall(
|
|
32534
|
+
"csp_systems_ScopeLeader__Set_ScopeLeaderUserId",
|
|
32535
|
+
"void",
|
|
32536
|
+
["number", "string"],
|
|
32537
|
+
[this.pointer, value],
|
|
32538
|
+
);
|
|
32539
|
+
}
|
|
32540
|
+
|
|
32541
|
+
get electionInProgress(): boolean {
|
|
32542
|
+
let _result = Module.ccall(
|
|
32543
|
+
"csp_systems_ScopeLeader__Get_ElectionInProgress",
|
|
32544
|
+
"boolean",
|
|
32545
|
+
["number"],
|
|
32546
|
+
[this.pointer],
|
|
32547
|
+
);
|
|
32548
|
+
|
|
32549
|
+
return _result;
|
|
32550
|
+
}
|
|
32551
|
+
|
|
32552
|
+
set electionInProgress(value: boolean) {
|
|
32553
|
+
Module.ccall(
|
|
32554
|
+
"csp_systems_ScopeLeader__Set_ElectionInProgress",
|
|
32555
|
+
"void",
|
|
32556
|
+
["number", "boolean"],
|
|
32557
|
+
[this.pointer, value],
|
|
32558
|
+
);
|
|
32559
|
+
}
|
|
32560
|
+
}
|
|
32561
|
+
}
|
|
32562
|
+
|
|
32170
32563
|
export namespace Systems {
|
|
32171
32564
|
/**
|
|
32172
32565
|
@ingroup Quota System
|
|
@@ -55010,6 +55403,235 @@ export namespace Systems {
|
|
|
55010
55403
|
}
|
|
55011
55404
|
}
|
|
55012
55405
|
|
|
55406
|
+
export namespace Systems {
|
|
55407
|
+
/**
|
|
55408
|
+
@ingroup Multiplayer System
|
|
55409
|
+
* @description Public facing system that allows interfacing with Magnopus Connected Services' multiplayer api.
|
|
55410
|
+
* Offers methods for managing realtime state via REST calls.
|
|
55411
|
+
*/
|
|
55412
|
+
export class MultiplayerSystem extends Systems.SystemBase {
|
|
55413
|
+
/** @internal */
|
|
55414
|
+
constructor(pointer: NativePointer) {
|
|
55415
|
+
super(pointer);
|
|
55416
|
+
}
|
|
55417
|
+
|
|
55418
|
+
static fromSystemBase(
|
|
55419
|
+
baseInstance: Systems.SystemBase,
|
|
55420
|
+
): Systems.MultiplayerSystem {
|
|
55421
|
+
const nativeClassWrapper = baseInstance as unknown as NativeClassWrapper;
|
|
55422
|
+
return new Systems.MultiplayerSystem(
|
|
55423
|
+
new NativePointer(
|
|
55424
|
+
nativeClassWrapper.pointer,
|
|
55425
|
+
nativeClassWrapper.ownsPointer,
|
|
55426
|
+
),
|
|
55427
|
+
);
|
|
55428
|
+
}
|
|
55429
|
+
|
|
55430
|
+
static create(): MultiplayerSystem {
|
|
55431
|
+
var _ptr = Module._malloc(8);
|
|
55432
|
+
Module.ccall(
|
|
55433
|
+
"csp_systems_MultiplayerSystem_Ctor",
|
|
55434
|
+
"void",
|
|
55435
|
+
["number"],
|
|
55436
|
+
[_ptr],
|
|
55437
|
+
);
|
|
55438
|
+
var _nPtr = getNativePointer(_ptr);
|
|
55439
|
+
|
|
55440
|
+
return new MultiplayerSystem(_nPtr);
|
|
55441
|
+
}
|
|
55442
|
+
}
|
|
55443
|
+
}
|
|
55444
|
+
|
|
55445
|
+
export namespace Systems {
|
|
55446
|
+
/**
|
|
55447
|
+
@ingroup Multiplayer System
|
|
55448
|
+
* @description Contains details about an async operation which returns a scope.
|
|
55449
|
+
* If the ResultCode is successful, this will contain a valid scope.
|
|
55450
|
+
*/
|
|
55451
|
+
export class ScopeResult
|
|
55452
|
+
extends Systems.ResultBase
|
|
55453
|
+
implements INativeResource
|
|
55454
|
+
{
|
|
55455
|
+
/** @internal */
|
|
55456
|
+
constructor(pointer: NativePointer) {
|
|
55457
|
+
super(pointer);
|
|
55458
|
+
}
|
|
55459
|
+
|
|
55460
|
+
static fromResultBase(
|
|
55461
|
+
baseInstance: Systems.ResultBase,
|
|
55462
|
+
): Systems.ScopeResult {
|
|
55463
|
+
const nativeClassWrapper = baseInstance as unknown as NativeClassWrapper;
|
|
55464
|
+
return new Systems.ScopeResult(
|
|
55465
|
+
new NativePointer(
|
|
55466
|
+
nativeClassWrapper.pointer,
|
|
55467
|
+
nativeClassWrapper.ownsPointer,
|
|
55468
|
+
),
|
|
55469
|
+
);
|
|
55470
|
+
}
|
|
55471
|
+
|
|
55472
|
+
/**
|
|
55473
|
+
* @description Returns the scope if this result is successful.
|
|
55474
|
+
* @return The scope retrieved by this result.
|
|
55475
|
+
*/
|
|
55476
|
+
|
|
55477
|
+
getScope(): Systems.Scope {
|
|
55478
|
+
var _ret = Module._malloc(8);
|
|
55479
|
+
|
|
55480
|
+
Module.ccall(
|
|
55481
|
+
"csp_systems_ScopeResult_GetScopeC_ScopeRC",
|
|
55482
|
+
"void",
|
|
55483
|
+
["number", "number"],
|
|
55484
|
+
[_ret, this.pointer],
|
|
55485
|
+
);
|
|
55486
|
+
var _nPtr = new Systems.Scope(getNativePointer(_ret));
|
|
55487
|
+
Module._free(_ret);
|
|
55488
|
+
|
|
55489
|
+
return _nPtr;
|
|
55490
|
+
}
|
|
55491
|
+
|
|
55492
|
+
delete(): void {
|
|
55493
|
+
if (this.ownsPointer && !this.disposed) {
|
|
55494
|
+
Module.ccall(
|
|
55495
|
+
"csp_systems_ScopeResult_Dtor",
|
|
55496
|
+
"void",
|
|
55497
|
+
["number"],
|
|
55498
|
+
[this.pointer],
|
|
55499
|
+
);
|
|
55500
|
+
|
|
55501
|
+
this.disposed = true;
|
|
55502
|
+
}
|
|
55503
|
+
}
|
|
55504
|
+
}
|
|
55505
|
+
}
|
|
55506
|
+
|
|
55507
|
+
export namespace Systems {
|
|
55508
|
+
/**
|
|
55509
|
+
@ingroup Multiplayer System
|
|
55510
|
+
* @description Contains details about an async operation which returns an array of scopes.
|
|
55511
|
+
* If the ResultCode is successful, this will contain a valid array of scopes.
|
|
55512
|
+
*/
|
|
55513
|
+
export class ScopesResult
|
|
55514
|
+
extends Systems.ResultBase
|
|
55515
|
+
implements INativeResource
|
|
55516
|
+
{
|
|
55517
|
+
/** @internal */
|
|
55518
|
+
constructor(pointer: NativePointer) {
|
|
55519
|
+
super(pointer);
|
|
55520
|
+
}
|
|
55521
|
+
|
|
55522
|
+
static fromResultBase(
|
|
55523
|
+
baseInstance: Systems.ResultBase,
|
|
55524
|
+
): Systems.ScopesResult {
|
|
55525
|
+
const nativeClassWrapper = baseInstance as unknown as NativeClassWrapper;
|
|
55526
|
+
return new Systems.ScopesResult(
|
|
55527
|
+
new NativePointer(
|
|
55528
|
+
nativeClassWrapper.pointer,
|
|
55529
|
+
nativeClassWrapper.ownsPointer,
|
|
55530
|
+
),
|
|
55531
|
+
);
|
|
55532
|
+
}
|
|
55533
|
+
|
|
55534
|
+
/**
|
|
55535
|
+
* @description Returns the an array of scopes if this result is successful.
|
|
55536
|
+
* @return The array of scopes retrieved by this result.
|
|
55537
|
+
*/
|
|
55538
|
+
|
|
55539
|
+
getScopes(): Common.Array<Systems.Scope> {
|
|
55540
|
+
var _ret = Module._malloc(8);
|
|
55541
|
+
|
|
55542
|
+
Module.ccall(
|
|
55543
|
+
"csp_systems_ScopesResult_GetScopesC_ArrayRC",
|
|
55544
|
+
"void",
|
|
55545
|
+
["number", "number"],
|
|
55546
|
+
[_ret, this.pointer],
|
|
55547
|
+
);
|
|
55548
|
+
var _nPtr = new Common.Array<Systems.Scope>(
|
|
55549
|
+
getNativePointer(_ret),
|
|
55550
|
+
csp_systems_ScopeFactory,
|
|
55551
|
+
"csp_systems_Scope",
|
|
55552
|
+
);
|
|
55553
|
+
Module._free(_ret);
|
|
55554
|
+
|
|
55555
|
+
return _nPtr;
|
|
55556
|
+
}
|
|
55557
|
+
|
|
55558
|
+
delete(): void {
|
|
55559
|
+
if (this.ownsPointer && !this.disposed) {
|
|
55560
|
+
Module.ccall(
|
|
55561
|
+
"csp_systems_ScopesResult_Dtor",
|
|
55562
|
+
"void",
|
|
55563
|
+
["number"],
|
|
55564
|
+
[this.pointer],
|
|
55565
|
+
);
|
|
55566
|
+
|
|
55567
|
+
this.disposed = true;
|
|
55568
|
+
}
|
|
55569
|
+
}
|
|
55570
|
+
}
|
|
55571
|
+
}
|
|
55572
|
+
|
|
55573
|
+
export namespace Systems {
|
|
55574
|
+
/**
|
|
55575
|
+
@ingroup Multiplayer System
|
|
55576
|
+
* @description Contains details about an async operation which returns a scope leader.
|
|
55577
|
+
* If the ResultCode is successful, this will contain a valid scope leader.
|
|
55578
|
+
*/
|
|
55579
|
+
export class ScopeLeaderResult
|
|
55580
|
+
extends Systems.ResultBase
|
|
55581
|
+
implements INativeResource
|
|
55582
|
+
{
|
|
55583
|
+
/** @internal */
|
|
55584
|
+
constructor(pointer: NativePointer) {
|
|
55585
|
+
super(pointer);
|
|
55586
|
+
}
|
|
55587
|
+
|
|
55588
|
+
static fromResultBase(
|
|
55589
|
+
baseInstance: Systems.ResultBase,
|
|
55590
|
+
): Systems.ScopeLeaderResult {
|
|
55591
|
+
const nativeClassWrapper = baseInstance as unknown as NativeClassWrapper;
|
|
55592
|
+
return new Systems.ScopeLeaderResult(
|
|
55593
|
+
new NativePointer(
|
|
55594
|
+
nativeClassWrapper.pointer,
|
|
55595
|
+
nativeClassWrapper.ownsPointer,
|
|
55596
|
+
),
|
|
55597
|
+
);
|
|
55598
|
+
}
|
|
55599
|
+
|
|
55600
|
+
/**
|
|
55601
|
+
* @description Returns the scope leader if this result is successful.
|
|
55602
|
+
* @return The scope leader retrieved by this result.
|
|
55603
|
+
*/
|
|
55604
|
+
|
|
55605
|
+
getScopeLeader(): Systems.ScopeLeader {
|
|
55606
|
+
var _ret = Module._malloc(8);
|
|
55607
|
+
|
|
55608
|
+
Module.ccall(
|
|
55609
|
+
"csp_systems_ScopeLeaderResult_GetScopeLeaderC_ScopeLeaderRC",
|
|
55610
|
+
"void",
|
|
55611
|
+
["number", "number"],
|
|
55612
|
+
[_ret, this.pointer],
|
|
55613
|
+
);
|
|
55614
|
+
var _nPtr = new Systems.ScopeLeader(getNativePointer(_ret));
|
|
55615
|
+
Module._free(_ret);
|
|
55616
|
+
|
|
55617
|
+
return _nPtr;
|
|
55618
|
+
}
|
|
55619
|
+
|
|
55620
|
+
delete(): void {
|
|
55621
|
+
if (this.ownsPointer && !this.disposed) {
|
|
55622
|
+
Module.ccall(
|
|
55623
|
+
"csp_systems_ScopeLeaderResult_Dtor",
|
|
55624
|
+
"void",
|
|
55625
|
+
["number"],
|
|
55626
|
+
[this.pointer],
|
|
55627
|
+
);
|
|
55628
|
+
|
|
55629
|
+
this.disposed = true;
|
|
55630
|
+
}
|
|
55631
|
+
}
|
|
55632
|
+
}
|
|
55633
|
+
}
|
|
55634
|
+
|
|
55013
55635
|
export namespace Systems {
|
|
55014
55636
|
/**
|
|
55015
55637
|
@ingroup Quota System
|
|
@@ -63582,6 +64204,24 @@ export namespace Common {
|
|
|
63582
64204
|
return _inst;
|
|
63583
64205
|
}
|
|
63584
64206
|
|
|
64207
|
+
static ofcsp_systems_Scope(): Array<Systems.Scope> {
|
|
64208
|
+
var _ret = Module._malloc(8);
|
|
64209
|
+
Module.ccall(
|
|
64210
|
+
"csp_common_Array_Ctor_csp_systems_Scope",
|
|
64211
|
+
"void",
|
|
64212
|
+
["number"],
|
|
64213
|
+
[_ret],
|
|
64214
|
+
);
|
|
64215
|
+
var _inst = new Array<Systems.Scope>(
|
|
64216
|
+
getNativePointer(_ret),
|
|
64217
|
+
csp_systems_ScopeFactory,
|
|
64218
|
+
"csp_systems_Scope",
|
|
64219
|
+
);
|
|
64220
|
+
Module._free(_ret);
|
|
64221
|
+
|
|
64222
|
+
return _inst;
|
|
64223
|
+
}
|
|
64224
|
+
|
|
63585
64225
|
static ofcsp_systems_FeatureLimitInfo(): Array<Systems.FeatureLimitInfo> {
|
|
63586
64226
|
var _ret = Module._malloc(8);
|
|
63587
64227
|
Module.ccall(
|
|
@@ -64428,6 +65068,24 @@ export namespace Common {
|
|
|
64428
65068
|
return _inst;
|
|
64429
65069
|
}
|
|
64430
65070
|
|
|
65071
|
+
static ofcsp_systems_Scope_number(size: number): Array<Systems.Scope> {
|
|
65072
|
+
var _ret = Module._malloc(8);
|
|
65073
|
+
Module.ccall(
|
|
65074
|
+
"csp_common_Array_Conv_size_tC_csp_systems_Scope",
|
|
65075
|
+
"void",
|
|
65076
|
+
["number", "number"],
|
|
65077
|
+
[_ret, size],
|
|
65078
|
+
);
|
|
65079
|
+
var _inst = new Array<Systems.Scope>(
|
|
65080
|
+
getNativePointer(_ret),
|
|
65081
|
+
csp_systems_ScopeFactory,
|
|
65082
|
+
"csp_systems_Scope",
|
|
65083
|
+
);
|
|
65084
|
+
Module._free(_ret);
|
|
65085
|
+
|
|
65086
|
+
return _inst;
|
|
65087
|
+
}
|
|
65088
|
+
|
|
64431
65089
|
static ofcsp_systems_FeatureLimitInfo_number(
|
|
64432
65090
|
size: number,
|
|
64433
65091
|
): Array<Systems.FeatureLimitInfo> {
|