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.
@@ -1178,7 +1178,8 @@ export declare namespace Systems {
1178
1178
  GAUSSIAN_SPLAT = 9,
1179
1179
  MATERIAL = 10,
1180
1180
  ANNOTATION = 11,
1181
- ANNOTATION_THUMBNAIL = 12
1181
+ ANNOTATION_THUMBNAIL = 12,
1182
+ TEXT = 13
1182
1183
  }
1183
1184
  }
1184
1185
  export declare namespace Systems {
@@ -1275,6 +1276,20 @@ export declare namespace Systems {
1275
1276
  Unknown = 2
1276
1277
  }
1277
1278
  }
1279
+ export declare namespace Systems {
1280
+ /**
1281
+ @ingroup Multiplayer System
1282
+ * @description Enum representing the scopes pub/sub model type
1283
+ * Object: used in object scopes, each object is published to its own channel, and
1284
+ * client subscribes to the channels of only the objects they can see
1285
+ * Global: used in global scopes, all objects are published to a single channel,
1286
+ * client subscribes to the channel and can see everything in the channel/scope
1287
+ */
1288
+ enum PubSubModelType {
1289
+ Object = 0,
1290
+ Global = 1
1291
+ }
1292
+ }
1278
1293
  export declare namespace Systems {
1279
1294
  /**
1280
1295
  @ingroup Quota System
@@ -1296,9 +1311,9 @@ export declare namespace Systems {
1296
1311
  TotalUploadSizeInKilobytes = 4,
1297
1312
  Agora = 5,
1298
1313
  OpenAI = 6,
1299
- Shopify = 7,
1300
- TicketedSpace = 8,
1301
- GoogleGenAI = 9,
1314
+ GoogleGenAI = 7,
1315
+ Shopify = 8,
1316
+ TicketedSpace = 9,
1302
1317
  Invalid = 10
1303
1318
  }
1304
1319
  }
@@ -1698,6 +1713,8 @@ export declare class EndpointURIs extends NativeClassWrapper implements INativeR
1698
1713
  set trackingService(value: ServiceDefinition);
1699
1714
  get maintenanceWindow(): ServiceDefinition;
1700
1715
  set maintenanceWindow(value: ServiceDefinition);
1716
+ get multiplayerConnection(): ServiceDefinition;
1717
+ set multiplayerConnection(value: ServiceDefinition);
1701
1718
  }
1702
1719
  /**
1703
1720
  * @description Holds client data used in requests for all Magnopus Serives.
@@ -3426,7 +3443,7 @@ export declare namespace Common {
3426
3443
  /**
3427
3444
  * @description Gets mime type from a file path.
3428
3445
  * @param filePath - Const string&
3429
- * @return String&
3446
+ * @return Const string&
3430
3447
  */
3431
3448
  getMimeType(filePath: string): string;
3432
3449
  delete(): void;
@@ -5111,6 +5128,7 @@ export declare namespace Systems {
5111
5128
  * @return Pointer to the external services proxy system class.
5112
5129
  */
5113
5130
  getExternalServicesProxySystem(): Systems.ExternalServiceProxySystem;
5131
+ getMultiplayerSystem(): Systems.MultiplayerSystem;
5114
5132
  getMultiplayerConnection(): Multiplayer.MultiplayerConnection;
5115
5133
  getEventBus(): Multiplayer.NetworkEventBus;
5116
5134
  }
@@ -5843,6 +5861,54 @@ export declare namespace Systems {
5843
5861
  set endDateTimestamp(value: string);
5844
5862
  }
5845
5863
  }
5864
+ export declare namespace Systems {
5865
+ /**
5866
+ @ingroup Multiplayer System
5867
+ * @description Data representation for a scope in a space.
5868
+ * Scopes represent different channels in a space which objects can exist in.
5869
+ * This allows csp/mcs to only reason about objects in specific scopes.
5870
+ */
5871
+ class Scope extends NativeClassWrapper implements INativeResource {
5872
+ /** @internal */
5873
+ constructor(pointer: NativePointer);
5874
+ static create(): Scope;
5875
+ delete(): void;
5876
+ get id(): string;
5877
+ set id(value: string);
5878
+ get referenceId(): string;
5879
+ set referenceId(value: string);
5880
+ get referenceType(): string;
5881
+ set referenceType(value: string);
5882
+ get name(): string;
5883
+ set name(value: string);
5884
+ get pubSubType(): Systems.PubSubModelType;
5885
+ set pubSubType(value: Systems.PubSubModelType);
5886
+ get solveRadius(): number;
5887
+ set solveRadius(value: number);
5888
+ get managedLeaderElection(): boolean;
5889
+ set managedLeaderElection(value: boolean);
5890
+ }
5891
+ }
5892
+ export declare namespace Systems {
5893
+ /**
5894
+ @ingroup Multiplayer System
5895
+ * @description Data representation for a scope leader.
5896
+ * A scope leader represents a user which owns a specific scope in a space.
5897
+ * The scope leader will run scripts and other operations for the scope.
5898
+ */
5899
+ class ScopeLeader extends NativeClassWrapper implements INativeResource {
5900
+ /** @internal */
5901
+ constructor(pointer: NativePointer);
5902
+ static create(): ScopeLeader;
5903
+ delete(): void;
5904
+ get scopeId(): string;
5905
+ set scopeId(value: string);
5906
+ get scopeLeaderUserId(): string;
5907
+ set scopeLeaderUserId(value: string);
5908
+ get electionInProgress(): boolean;
5909
+ set electionInProgress(value: boolean);
5910
+ }
5911
+ }
5846
5912
  export declare namespace Systems {
5847
5913
  /**
5848
5914
  @ingroup Quota System
@@ -11594,6 +11660,73 @@ export declare namespace Systems {
11594
11660
  getMaintenanceInfo(maintenanceURL: string): Promise<Systems.MaintenanceInfoResult>;
11595
11661
  }
11596
11662
  }
11663
+ export declare namespace Systems {
11664
+ /**
11665
+ @ingroup Multiplayer System
11666
+ * @description Public facing system that allows interfacing with Magnopus Connected Services' multiplayer api.
11667
+ * Offers methods for managing realtime state via REST calls.
11668
+ */
11669
+ class MultiplayerSystem extends Systems.SystemBase {
11670
+ /** @internal */
11671
+ constructor(pointer: NativePointer);
11672
+ static fromSystemBase(baseInstance: Systems.SystemBase): Systems.MultiplayerSystem;
11673
+ static create(): MultiplayerSystem;
11674
+ }
11675
+ }
11676
+ export declare namespace Systems {
11677
+ /**
11678
+ @ingroup Multiplayer System
11679
+ * @description Contains details about an async operation which returns a scope.
11680
+ * If the ResultCode is successful, this will contain a valid scope.
11681
+ */
11682
+ class ScopeResult extends Systems.ResultBase implements INativeResource {
11683
+ /** @internal */
11684
+ constructor(pointer: NativePointer);
11685
+ static fromResultBase(baseInstance: Systems.ResultBase): Systems.ScopeResult;
11686
+ /**
11687
+ * @description Returns the scope if this result is successful.
11688
+ * @return The scope retrieved by this result.
11689
+ */
11690
+ getScope(): Systems.Scope;
11691
+ delete(): void;
11692
+ }
11693
+ }
11694
+ export declare namespace Systems {
11695
+ /**
11696
+ @ingroup Multiplayer System
11697
+ * @description Contains details about an async operation which returns an array of scopes.
11698
+ * If the ResultCode is successful, this will contain a valid array of scopes.
11699
+ */
11700
+ class ScopesResult extends Systems.ResultBase implements INativeResource {
11701
+ /** @internal */
11702
+ constructor(pointer: NativePointer);
11703
+ static fromResultBase(baseInstance: Systems.ResultBase): Systems.ScopesResult;
11704
+ /**
11705
+ * @description Returns the an array of scopes if this result is successful.
11706
+ * @return The array of scopes retrieved by this result.
11707
+ */
11708
+ getScopes(): Common.Array<Systems.Scope>;
11709
+ delete(): void;
11710
+ }
11711
+ }
11712
+ export declare namespace Systems {
11713
+ /**
11714
+ @ingroup Multiplayer System
11715
+ * @description Contains details about an async operation which returns a scope leader.
11716
+ * If the ResultCode is successful, this will contain a valid scope leader.
11717
+ */
11718
+ class ScopeLeaderResult extends Systems.ResultBase implements INativeResource {
11719
+ /** @internal */
11720
+ constructor(pointer: NativePointer);
11721
+ static fromResultBase(baseInstance: Systems.ResultBase): Systems.ScopeLeaderResult;
11722
+ /**
11723
+ * @description Returns the scope leader if this result is successful.
11724
+ * @return The scope leader retrieved by this result.
11725
+ */
11726
+ getScopeLeader(): Systems.ScopeLeader;
11727
+ delete(): void;
11728
+ }
11729
+ }
11597
11730
  export declare namespace Systems {
11598
11731
  /**
11599
11732
  @ingroup Quota System
@@ -13202,6 +13335,7 @@ export declare namespace Common {
13202
13335
  static ofcsp_systems_TicketedEvent(): Array<Systems.TicketedEvent>;
13203
13336
  static ofcsp_systems_HotspotGroup(): Array<Systems.HotspotGroup>;
13204
13337
  static ofcsp_systems_MaintenanceInfo(): Array<Systems.MaintenanceInfo>;
13338
+ static ofcsp_systems_Scope(): Array<Systems.Scope>;
13205
13339
  static ofcsp_systems_FeatureLimitInfo(): Array<Systems.FeatureLimitInfo>;
13206
13340
  static ofcsp_systems_FeatureQuotaInfo(): Array<Systems.FeatureQuotaInfo>;
13207
13341
  static ofcsp_systems_TierFeatures(): Array<Systems.TierFeatures>;
@@ -13247,6 +13381,7 @@ export declare namespace Common {
13247
13381
  static ofcsp_systems_TicketedEvent_number(size: number): Array<Systems.TicketedEvent>;
13248
13382
  static ofcsp_systems_HotspotGroup_number(size: number): Array<Systems.HotspotGroup>;
13249
13383
  static ofcsp_systems_MaintenanceInfo_number(size: number): Array<Systems.MaintenanceInfo>;
13384
+ static ofcsp_systems_Scope_number(size: number): Array<Systems.Scope>;
13250
13385
  static ofcsp_systems_FeatureLimitInfo_number(size: number): Array<Systems.FeatureLimitInfo>;
13251
13386
  static ofcsp_systems_FeatureQuotaInfo_number(size: number): Array<Systems.FeatureQuotaInfo>;
13252
13387
  static ofcsp_systems_TierFeatures_number(size: number): Array<Systems.TierFeatures>;
@@ -644,6 +644,11 @@ function csp_systems_TicketStatusFactory(nativePointer) {
644
644
  }
645
645
  ProxyClassFactories["csp_systems_TicketStatus"] =
646
646
  csp_systems_TicketStatusFactory;
647
+ function csp_systems_PubSubModelTypeFactory(nativePointer) {
648
+ return nativePointer.pointer;
649
+ }
650
+ ProxyClassFactories["csp_systems_PubSubModelType"] =
651
+ csp_systems_PubSubModelTypeFactory;
647
652
  function csp_systems_PeriodEnumFactory(nativePointer) {
648
653
  return nativePointer.pointer;
649
654
  }
@@ -999,6 +1004,14 @@ function csp_systems_MaintenanceInfoFactory(nativePointer) {
999
1004
  }
1000
1005
  ProxyClassFactories["csp_systems_MaintenanceInfo"] =
1001
1006
  csp_systems_MaintenanceInfoFactory;
1007
+ function csp_systems_ScopeFactory(nativePointer) {
1008
+ return new Systems.Scope(nativePointer);
1009
+ }
1010
+ ProxyClassFactories["csp_systems_Scope"] = csp_systems_ScopeFactory;
1011
+ function csp_systems_ScopeLeaderFactory(nativePointer) {
1012
+ return new Systems.ScopeLeader(nativePointer);
1013
+ }
1014
+ ProxyClassFactories["csp_systems_ScopeLeader"] = csp_systems_ScopeLeaderFactory;
1002
1015
  function csp_systems_FeatureLimitInfoFactory(nativePointer) {
1003
1016
  return new Systems.FeatureLimitInfo(nativePointer);
1004
1017
  }
@@ -1513,6 +1526,25 @@ function csp_systems_MaintenanceSystemFactory(nativePointer) {
1513
1526
  }
1514
1527
  ProxyClassFactories["csp_systems_MaintenanceSystem"] =
1515
1528
  csp_systems_MaintenanceSystemFactory;
1529
+ function csp_systems_MultiplayerSystemFactory(nativePointer) {
1530
+ return new Systems.MultiplayerSystem(nativePointer);
1531
+ }
1532
+ ProxyClassFactories["csp_systems_MultiplayerSystem"] =
1533
+ csp_systems_MultiplayerSystemFactory;
1534
+ function csp_systems_ScopeResultFactory(nativePointer) {
1535
+ return new Systems.ScopeResult(nativePointer);
1536
+ }
1537
+ ProxyClassFactories["csp_systems_ScopeResult"] = csp_systems_ScopeResultFactory;
1538
+ function csp_systems_ScopesResultFactory(nativePointer) {
1539
+ return new Systems.ScopesResult(nativePointer);
1540
+ }
1541
+ ProxyClassFactories["csp_systems_ScopesResult"] =
1542
+ csp_systems_ScopesResultFactory;
1543
+ function csp_systems_ScopeLeaderResultFactory(nativePointer) {
1544
+ return new Systems.ScopeLeaderResult(nativePointer);
1545
+ }
1546
+ ProxyClassFactories["csp_systems_ScopeLeaderResult"] =
1547
+ csp_systems_ScopeLeaderResultFactory;
1516
1548
  function csp_systems_FeaturesLimitResultFactory(nativePointer) {
1517
1549
  return new Systems.FeaturesLimitResult(nativePointer);
1518
1550
  }
@@ -1858,6 +1890,11 @@ function csp_common_Array_csp_systems_MaintenanceInfoFactory(nativePointer) {
1858
1890
  }
1859
1891
  ProxyClassFactories["csp_common_Array_csp_systems_MaintenanceInfo"] =
1860
1892
  csp_common_Array_csp_systems_MaintenanceInfoFactory;
1893
+ function csp_common_Array_csp_systems_ScopeFactory(nativePointer) {
1894
+ return new Common.Array(nativePointer, csp_systems_ScopeFactory, "csp_systems_Scope");
1895
+ }
1896
+ ProxyClassFactories["csp_common_Array_csp_systems_Scope"] =
1897
+ csp_common_Array_csp_systems_ScopeFactory;
1861
1898
  function csp_common_Array_csp_systems_FeatureLimitInfoFactory(nativePointer) {
1862
1899
  return new Common.Array(nativePointer, csp_systems_FeatureLimitInfoFactory, "csp_systems_FeatureLimitInfo");
1863
1900
  }
@@ -3186,6 +3223,7 @@ export var Systems;
3186
3223
  EAssetType[EAssetType["MATERIAL"] = 10] = "MATERIAL";
3187
3224
  EAssetType[EAssetType["ANNOTATION"] = 11] = "ANNOTATION";
3188
3225
  EAssetType[EAssetType["ANNOTATION_THUMBNAIL"] = 12] = "ANNOTATION_THUMBNAIL";
3226
+ EAssetType[EAssetType["TEXT"] = 13] = "TEXT";
3189
3227
  })(EAssetType = Systems.EAssetType || (Systems.EAssetType = {}));
3190
3228
  })(Systems || (Systems = {}));
3191
3229
  (function (Systems) {
@@ -3291,6 +3329,21 @@ export var Systems;
3291
3329
  TicketStatus[TicketStatus["Unknown"] = 2] = "Unknown";
3292
3330
  })(TicketStatus = Systems.TicketStatus || (Systems.TicketStatus = {}));
3293
3331
  })(Systems || (Systems = {}));
3332
+ (function (Systems) {
3333
+ /**
3334
+ @ingroup Multiplayer System
3335
+ * @description Enum representing the scopes pub/sub model type
3336
+ * Object: used in object scopes, each object is published to its own channel, and
3337
+ * client subscribes to the channels of only the objects they can see
3338
+ * Global: used in global scopes, all objects are published to a single channel,
3339
+ * client subscribes to the channel and can see everything in the channel/scope
3340
+ */
3341
+ let PubSubModelType;
3342
+ (function (PubSubModelType) {
3343
+ PubSubModelType[PubSubModelType["Object"] = 0] = "Object";
3344
+ PubSubModelType[PubSubModelType["Global"] = 1] = "Global";
3345
+ })(PubSubModelType = Systems.PubSubModelType || (Systems.PubSubModelType = {}));
3346
+ })(Systems || (Systems = {}));
3294
3347
  (function (Systems) {
3295
3348
  /**
3296
3349
  @ingroup Quota System
@@ -3314,9 +3367,9 @@ export var Systems;
3314
3367
  TierFeatures[TierFeatures["TotalUploadSizeInKilobytes"] = 4] = "TotalUploadSizeInKilobytes";
3315
3368
  TierFeatures[TierFeatures["Agora"] = 5] = "Agora";
3316
3369
  TierFeatures[TierFeatures["OpenAI"] = 6] = "OpenAI";
3317
- TierFeatures[TierFeatures["Shopify"] = 7] = "Shopify";
3318
- TierFeatures[TierFeatures["TicketedSpace"] = 8] = "TicketedSpace";
3319
- TierFeatures[TierFeatures["GoogleGenAI"] = 9] = "GoogleGenAI";
3370
+ TierFeatures[TierFeatures["GoogleGenAI"] = 7] = "GoogleGenAI";
3371
+ TierFeatures[TierFeatures["Shopify"] = 8] = "Shopify";
3372
+ TierFeatures[TierFeatures["TicketedSpace"] = 9] = "TicketedSpace";
3320
3373
  TierFeatures[TierFeatures["Invalid"] = 10] = "Invalid";
3321
3374
  })(TierFeatures = Systems.TierFeatures || (Systems.TierFeatures = {}));
3322
3375
  })(Systems || (Systems = {}));
@@ -3572,6 +3625,15 @@ export class EndpointURIs extends NativeClassWrapper {
3572
3625
  set maintenanceWindow(value) {
3573
3626
  Module.ccall("csp_EndpointURIs__Set_MaintenanceWindow", "void", ["number", "number"], [this.pointer, value.pointer]);
3574
3627
  }
3628
+ get multiplayerConnection() {
3629
+ const _ptr = Module._malloc(8);
3630
+ Module.ccall("csp_EndpointURIs__Get_MultiplayerConnection", "void", ["number", "number"], [_ptr, this.pointer]);
3631
+ const _nPtr = getNativePointer(_ptr);
3632
+ return new ServiceDefinition(_nPtr);
3633
+ }
3634
+ set multiplayerConnection(value) {
3635
+ Module.ccall("csp_EndpointURIs__Set_MultiplayerConnection", "void", ["number", "number"], [this.pointer, value.pointer]);
3636
+ }
3575
3637
  }
3576
3638
  /**
3577
3639
  * @description Holds client data used in requests for all Magnopus Serives.
@@ -9306,10 +9368,10 @@ export class CSPFoundation {
9306
9368
  /**
9307
9369
  * @description Gets mime type from a file path.
9308
9370
  * @param filePath - Const string&
9309
- * @return String&
9371
+ * @return Const string&
9310
9372
  */
9311
9373
  getMimeType(filePath) {
9312
- let _result = Module.ccall("csp_common_MimeTypeHelper_GetMimeType_StringR_StringRC", "number", ["number", "string"], [this.pointer, filePath]);
9374
+ let _result = Module.ccall("csp_common_MimeTypeHelper_GetMimeType_StringRC_StringRC", "number", ["number", "string"], [this.pointer, filePath]);
9313
9375
  const _resultString = Module.UTF8ToString(_result);
9314
9376
  free(_result);
9315
9377
  _result = _resultString;
@@ -12880,6 +12942,13 @@ export class CSPFoundation {
12880
12942
  Module._free(_ret);
12881
12943
  return _nPtr;
12882
12944
  }
12945
+ getMultiplayerSystem() {
12946
+ var _ret = Module._malloc(8);
12947
+ Module.ccall("csp_systems_SystemsManager_GetMultiplayerSystem_MultiplayerSystemP", "void", ["number", "number"], [_ret, this.pointer]);
12948
+ var _nPtr = new Systems.MultiplayerSystem(getNativePointer(_ret));
12949
+ Module._free(_ret);
12950
+ return _nPtr;
12951
+ }
12883
12952
  getMultiplayerConnection() {
12884
12953
  var _ret = Module._malloc(8);
12885
12954
  Module.ccall("csp_systems_SystemsManager_GetMultiplayerConnection_MultiplayerConnectionP", "void", ["number", "number"], [_ret, this.pointer]);
@@ -14700,6 +14769,130 @@ export class CSPFoundation {
14700
14769
  }
14701
14770
  Systems.MaintenanceInfo = MaintenanceInfo;
14702
14771
  })(Systems || (Systems = {}));
14772
+ (function (Systems) {
14773
+ /**
14774
+ @ingroup Multiplayer System
14775
+ * @description Data representation for a scope in a space.
14776
+ * Scopes represent different channels in a space which objects can exist in.
14777
+ * This allows csp/mcs to only reason about objects in specific scopes.
14778
+ */
14779
+ class Scope extends NativeClassWrapper {
14780
+ /** @internal */
14781
+ constructor(pointer) {
14782
+ super(pointer);
14783
+ }
14784
+ static create() {
14785
+ var _ptr = Module._malloc(8);
14786
+ Module.ccall("csp_systems_Scope_Ctor", "void", ["number"], [_ptr]);
14787
+ var _nPtr = getNativePointer(_ptr);
14788
+ return new Scope(_nPtr);
14789
+ }
14790
+ delete() {
14791
+ if (this.ownsPointer && !this.disposed) {
14792
+ Module.ccall("csp_systems_Scope_Dtor", "void", ["number"], [this.pointer]);
14793
+ this.disposed = true;
14794
+ }
14795
+ }
14796
+ get id() {
14797
+ let _result = Module.ccall("csp_systems_Scope__Get_Id", "string", ["number"], [this.pointer]);
14798
+ return _result;
14799
+ }
14800
+ set id(value) {
14801
+ Module.ccall("csp_systems_Scope__Set_Id", "void", ["number", "string"], [this.pointer, value]);
14802
+ }
14803
+ get referenceId() {
14804
+ let _result = Module.ccall("csp_systems_Scope__Get_ReferenceId", "string", ["number"], [this.pointer]);
14805
+ return _result;
14806
+ }
14807
+ set referenceId(value) {
14808
+ Module.ccall("csp_systems_Scope__Set_ReferenceId", "void", ["number", "string"], [this.pointer, value]);
14809
+ }
14810
+ get referenceType() {
14811
+ let _result = Module.ccall("csp_systems_Scope__Get_ReferenceType", "string", ["number"], [this.pointer]);
14812
+ return _result;
14813
+ }
14814
+ set referenceType(value) {
14815
+ Module.ccall("csp_systems_Scope__Set_ReferenceType", "void", ["number", "string"], [this.pointer, value]);
14816
+ }
14817
+ get name() {
14818
+ let _result = Module.ccall("csp_systems_Scope__Get_Name", "string", ["number"], [this.pointer]);
14819
+ return _result;
14820
+ }
14821
+ set name(value) {
14822
+ Module.ccall("csp_systems_Scope__Set_Name", "void", ["number", "string"], [this.pointer, value]);
14823
+ }
14824
+ get pubSubType() {
14825
+ let _result = Module.ccall("csp_systems_Scope__Get_PubSubType", "number", ["number"], [this.pointer]);
14826
+ return _result;
14827
+ }
14828
+ set pubSubType(value) {
14829
+ Module.ccall("csp_systems_Scope__Set_PubSubType", "void", ["number", "number"], [this.pointer, value]);
14830
+ }
14831
+ get solveRadius() {
14832
+ let _result = Module.ccall("csp_systems_Scope__Get_SolveRadius", "number", ["number"], [this.pointer]);
14833
+ return _result;
14834
+ }
14835
+ set solveRadius(value) {
14836
+ Module.ccall("csp_systems_Scope__Set_SolveRadius", "void", ["number", "number"], [this.pointer, value]);
14837
+ }
14838
+ get managedLeaderElection() {
14839
+ let _result = Module.ccall("csp_systems_Scope__Get_ManagedLeaderElection", "boolean", ["number"], [this.pointer]);
14840
+ return _result;
14841
+ }
14842
+ set managedLeaderElection(value) {
14843
+ Module.ccall("csp_systems_Scope__Set_ManagedLeaderElection", "void", ["number", "boolean"], [this.pointer, value]);
14844
+ }
14845
+ }
14846
+ Systems.Scope = Scope;
14847
+ })(Systems || (Systems = {}));
14848
+ (function (Systems) {
14849
+ /**
14850
+ @ingroup Multiplayer System
14851
+ * @description Data representation for a scope leader.
14852
+ * A scope leader represents a user which owns a specific scope in a space.
14853
+ * The scope leader will run scripts and other operations for the scope.
14854
+ */
14855
+ class ScopeLeader extends NativeClassWrapper {
14856
+ /** @internal */
14857
+ constructor(pointer) {
14858
+ super(pointer);
14859
+ }
14860
+ static create() {
14861
+ var _ptr = Module._malloc(8);
14862
+ Module.ccall("csp_systems_ScopeLeader_Ctor", "void", ["number"], [_ptr]);
14863
+ var _nPtr = getNativePointer(_ptr);
14864
+ return new ScopeLeader(_nPtr);
14865
+ }
14866
+ delete() {
14867
+ if (this.ownsPointer && !this.disposed) {
14868
+ Module.ccall("csp_systems_ScopeLeader_Dtor", "void", ["number"], [this.pointer]);
14869
+ this.disposed = true;
14870
+ }
14871
+ }
14872
+ get scopeId() {
14873
+ let _result = Module.ccall("csp_systems_ScopeLeader__Get_ScopeId", "string", ["number"], [this.pointer]);
14874
+ return _result;
14875
+ }
14876
+ set scopeId(value) {
14877
+ Module.ccall("csp_systems_ScopeLeader__Set_ScopeId", "void", ["number", "string"], [this.pointer, value]);
14878
+ }
14879
+ get scopeLeaderUserId() {
14880
+ let _result = Module.ccall("csp_systems_ScopeLeader__Get_ScopeLeaderUserId", "string", ["number"], [this.pointer]);
14881
+ return _result;
14882
+ }
14883
+ set scopeLeaderUserId(value) {
14884
+ Module.ccall("csp_systems_ScopeLeader__Set_ScopeLeaderUserId", "void", ["number", "string"], [this.pointer, value]);
14885
+ }
14886
+ get electionInProgress() {
14887
+ let _result = Module.ccall("csp_systems_ScopeLeader__Get_ElectionInProgress", "boolean", ["number"], [this.pointer]);
14888
+ return _result;
14889
+ }
14890
+ set electionInProgress(value) {
14891
+ Module.ccall("csp_systems_ScopeLeader__Set_ElectionInProgress", "void", ["number", "boolean"], [this.pointer, value]);
14892
+ }
14893
+ }
14894
+ Systems.ScopeLeader = ScopeLeader;
14895
+ })(Systems || (Systems = {}));
14703
14896
  (function (Systems) {
14704
14897
  /**
14705
14898
  @ingroup Quota System
@@ -26840,6 +27033,135 @@ export class CSPFoundation {
26840
27033
  }
26841
27034
  Systems.MaintenanceSystem = MaintenanceSystem;
26842
27035
  })(Systems || (Systems = {}));
27036
+ (function (Systems) {
27037
+ /**
27038
+ @ingroup Multiplayer System
27039
+ * @description Public facing system that allows interfacing with Magnopus Connected Services' multiplayer api.
27040
+ * Offers methods for managing realtime state via REST calls.
27041
+ */
27042
+ class MultiplayerSystem extends Systems.SystemBase {
27043
+ /** @internal */
27044
+ constructor(pointer) {
27045
+ super(pointer);
27046
+ }
27047
+ static fromSystemBase(baseInstance) {
27048
+ const nativeClassWrapper = baseInstance;
27049
+ return new Systems.MultiplayerSystem(new NativePointer(nativeClassWrapper.pointer, nativeClassWrapper.ownsPointer));
27050
+ }
27051
+ static create() {
27052
+ var _ptr = Module._malloc(8);
27053
+ Module.ccall("csp_systems_MultiplayerSystem_Ctor", "void", ["number"], [_ptr]);
27054
+ var _nPtr = getNativePointer(_ptr);
27055
+ return new MultiplayerSystem(_nPtr);
27056
+ }
27057
+ }
27058
+ Systems.MultiplayerSystem = MultiplayerSystem;
27059
+ })(Systems || (Systems = {}));
27060
+ (function (Systems) {
27061
+ /**
27062
+ @ingroup Multiplayer System
27063
+ * @description Contains details about an async operation which returns a scope.
27064
+ * If the ResultCode is successful, this will contain a valid scope.
27065
+ */
27066
+ class ScopeResult extends Systems.ResultBase {
27067
+ /** @internal */
27068
+ constructor(pointer) {
27069
+ super(pointer);
27070
+ }
27071
+ static fromResultBase(baseInstance) {
27072
+ const nativeClassWrapper = baseInstance;
27073
+ return new Systems.ScopeResult(new NativePointer(nativeClassWrapper.pointer, nativeClassWrapper.ownsPointer));
27074
+ }
27075
+ /**
27076
+ * @description Returns the scope if this result is successful.
27077
+ * @return The scope retrieved by this result.
27078
+ */
27079
+ getScope() {
27080
+ var _ret = Module._malloc(8);
27081
+ Module.ccall("csp_systems_ScopeResult_GetScopeC_ScopeRC", "void", ["number", "number"], [_ret, this.pointer]);
27082
+ var _nPtr = new Systems.Scope(getNativePointer(_ret));
27083
+ Module._free(_ret);
27084
+ return _nPtr;
27085
+ }
27086
+ delete() {
27087
+ if (this.ownsPointer && !this.disposed) {
27088
+ Module.ccall("csp_systems_ScopeResult_Dtor", "void", ["number"], [this.pointer]);
27089
+ this.disposed = true;
27090
+ }
27091
+ }
27092
+ }
27093
+ Systems.ScopeResult = ScopeResult;
27094
+ })(Systems || (Systems = {}));
27095
+ (function (Systems) {
27096
+ /**
27097
+ @ingroup Multiplayer System
27098
+ * @description Contains details about an async operation which returns an array of scopes.
27099
+ * If the ResultCode is successful, this will contain a valid array of scopes.
27100
+ */
27101
+ class ScopesResult extends Systems.ResultBase {
27102
+ /** @internal */
27103
+ constructor(pointer) {
27104
+ super(pointer);
27105
+ }
27106
+ static fromResultBase(baseInstance) {
27107
+ const nativeClassWrapper = baseInstance;
27108
+ return new Systems.ScopesResult(new NativePointer(nativeClassWrapper.pointer, nativeClassWrapper.ownsPointer));
27109
+ }
27110
+ /**
27111
+ * @description Returns the an array of scopes if this result is successful.
27112
+ * @return The array of scopes retrieved by this result.
27113
+ */
27114
+ getScopes() {
27115
+ var _ret = Module._malloc(8);
27116
+ Module.ccall("csp_systems_ScopesResult_GetScopesC_ArrayRC", "void", ["number", "number"], [_ret, this.pointer]);
27117
+ var _nPtr = new Common.Array(getNativePointer(_ret), csp_systems_ScopeFactory, "csp_systems_Scope");
27118
+ Module._free(_ret);
27119
+ return _nPtr;
27120
+ }
27121
+ delete() {
27122
+ if (this.ownsPointer && !this.disposed) {
27123
+ Module.ccall("csp_systems_ScopesResult_Dtor", "void", ["number"], [this.pointer]);
27124
+ this.disposed = true;
27125
+ }
27126
+ }
27127
+ }
27128
+ Systems.ScopesResult = ScopesResult;
27129
+ })(Systems || (Systems = {}));
27130
+ (function (Systems) {
27131
+ /**
27132
+ @ingroup Multiplayer System
27133
+ * @description Contains details about an async operation which returns a scope leader.
27134
+ * If the ResultCode is successful, this will contain a valid scope leader.
27135
+ */
27136
+ class ScopeLeaderResult extends Systems.ResultBase {
27137
+ /** @internal */
27138
+ constructor(pointer) {
27139
+ super(pointer);
27140
+ }
27141
+ static fromResultBase(baseInstance) {
27142
+ const nativeClassWrapper = baseInstance;
27143
+ return new Systems.ScopeLeaderResult(new NativePointer(nativeClassWrapper.pointer, nativeClassWrapper.ownsPointer));
27144
+ }
27145
+ /**
27146
+ * @description Returns the scope leader if this result is successful.
27147
+ * @return The scope leader retrieved by this result.
27148
+ */
27149
+ getScopeLeader() {
27150
+ var _ret = Module._malloc(8);
27151
+ Module.ccall("csp_systems_ScopeLeaderResult_GetScopeLeaderC_ScopeLeaderRC", "void", ["number", "number"], [_ret, this.pointer]);
27152
+ var _nPtr = new Systems.ScopeLeader(getNativePointer(_ret));
27153
+ Module._free(_ret);
27154
+ return _nPtr;
27155
+ }
27156
+ delete() {
27157
+ if (this.ownsPointer && !this.disposed) {
27158
+ Module.ccall("csp_systems_ScopeLeaderResult_Dtor", "void", ["number"], [this.pointer]);
27159
+ this.disposed = true;
27160
+ }
27161
+ }
27162
+ }
27163
+ Systems.ScopeLeaderResult = ScopeLeaderResult;
27164
+ })(Systems || (Systems = {}));
26843
27165
  (function (Systems) {
26844
27166
  /**
26845
27167
  @ingroup Quota System
@@ -31845,6 +32167,13 @@ export class CSPFoundation {
31845
32167
  Module._free(_ret);
31846
32168
  return _inst;
31847
32169
  }
32170
+ static ofcsp_systems_Scope() {
32171
+ var _ret = Module._malloc(8);
32172
+ Module.ccall("csp_common_Array_Ctor_csp_systems_Scope", "void", ["number"], [_ret]);
32173
+ var _inst = new Array(getNativePointer(_ret), csp_systems_ScopeFactory, "csp_systems_Scope");
32174
+ Module._free(_ret);
32175
+ return _inst;
32176
+ }
31848
32177
  static ofcsp_systems_FeatureLimitInfo() {
31849
32178
  var _ret = Module._malloc(8);
31850
32179
  Module.ccall("csp_common_Array_Ctor_csp_systems_FeatureLimitInfo", "void", ["number"], [_ret]);
@@ -32160,6 +32489,13 @@ export class CSPFoundation {
32160
32489
  Module._free(_ret);
32161
32490
  return _inst;
32162
32491
  }
32492
+ static ofcsp_systems_Scope_number(size) {
32493
+ var _ret = Module._malloc(8);
32494
+ Module.ccall("csp_common_Array_Conv_size_tC_csp_systems_Scope", "void", ["number", "number"], [_ret, size]);
32495
+ var _inst = new Array(getNativePointer(_ret), csp_systems_ScopeFactory, "csp_systems_Scope");
32496
+ Module._free(_ret);
32497
+ return _inst;
32498
+ }
32163
32499
  static ofcsp_systems_FeatureLimitInfo_number(size) {
32164
32500
  var _ret = Module._malloc(8);
32165
32501
  Module.ccall("csp_common_Array_Conv_size_tC_csp_systems_FeatureLimitInfo", "void", ["number", "number"], [_ret, size]);