connected-spaces-platform.web 4.17.1 → 4.18.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.
@@ -374,6 +374,14 @@ function csp_multiplayer_ConnectionStateFactory(
374
374
  ProxyClassFactories["csp_multiplayer_ConnectionState"] =
375
375
  csp_multiplayer_ConnectionStateFactory;
376
376
 
377
+ function csp_multiplayer_ErrorCodeFactory(
378
+ nativePointer: NativePointer,
379
+ ): Multiplayer.ErrorCode {
380
+ return nativePointer.pointer as Multiplayer.ErrorCode;
381
+ }
382
+ ProxyClassFactories["csp_multiplayer_ErrorCode"] =
383
+ csp_multiplayer_ErrorCodeFactory;
384
+
377
385
  function csp_multiplayer_ReplicatedValueTypeFactory(
378
386
  nativePointer: NativePointer,
379
387
  ): Multiplayer.ReplicatedValueType {
@@ -808,6 +816,13 @@ function csp_systems_TierNamesFactory(
808
816
  }
809
817
  ProxyClassFactories["csp_systems_TierNames"] = csp_systems_TierNamesFactory;
810
818
 
819
+ function csp_systems_AvatarTypeFactory(
820
+ nativePointer: NativePointer,
821
+ ): Systems.AvatarType {
822
+ return nativePointer.pointer as Systems.AvatarType;
823
+ }
824
+ ProxyClassFactories["csp_systems_AvatarType"] = csp_systems_AvatarTypeFactory;
825
+
811
826
  function csp_systems_SpaceAttributesFactory(
812
827
  nativePointer: NativePointer,
813
828
  ): Systems.SpaceAttributes {
@@ -976,14 +991,6 @@ function csp_multiplayer_ReplicatedValueFactory(
976
991
  ProxyClassFactories["csp_multiplayer_ReplicatedValue"] =
977
992
  csp_multiplayer_ReplicatedValueFactory;
978
993
 
979
- function csp_multiplayer_PropertyUpdateInfoFactory(
980
- nativePointer: NativePointer,
981
- ): NativeClassWrapper {
982
- return new Multiplayer.PropertyUpdateInfo(nativePointer);
983
- }
984
- ProxyClassFactories["csp_multiplayer_PropertyUpdateInfo"] =
985
- csp_multiplayer_PropertyUpdateInfoFactory;
986
-
987
994
  function csp_multiplayer_ComponentUpdateInfoFactory(
988
995
  nativePointer: NativePointer,
989
996
  ): NativeClassWrapper {
@@ -1898,6 +1905,14 @@ function csp_systems_SettingsCollectionResultFactory(
1898
1905
  ProxyClassFactories["csp_systems_SettingsCollectionResult"] =
1899
1906
  csp_systems_SettingsCollectionResultFactory;
1900
1907
 
1908
+ function csp_systems_AvatarInfoResultFactory(
1909
+ nativePointer: NativePointer,
1910
+ ): NativeClassWrapper {
1911
+ return new Systems.AvatarInfoResult(nativePointer);
1912
+ }
1913
+ ProxyClassFactories["csp_systems_AvatarInfoResult"] =
1914
+ csp_systems_AvatarInfoResultFactory;
1915
+
1901
1916
  function csp_systems_SettingsSystemFactory(
1902
1917
  nativePointer: NativePointer,
1903
1918
  ): NativeClassWrapper {
@@ -2721,7 +2736,7 @@ export namespace Multiplayer {
2721
2736
 
2722
2737
  export namespace Multiplayer {
2723
2738
  /**
2724
- * @description Enum used to specify the current state of the muiltiplayer connection.
2739
+ * @description Enum used to specify the current state of the multiplayer connection.
2725
2740
  */
2726
2741
  export enum ConnectionState {
2727
2742
  Connecting,
@@ -2731,6 +2746,19 @@ export namespace Multiplayer {
2731
2746
  }
2732
2747
  }
2733
2748
 
2749
+ export namespace Multiplayer {
2750
+ /**
2751
+ * @description Enum used to indicate the failure state of a multiplayer request.
2752
+ */
2753
+ export enum ErrorCode {
2754
+ None,
2755
+ Unknown,
2756
+ NotConnected,
2757
+ AlreadyConnected,
2758
+ SpaceUserLimitExceeded,
2759
+ }
2760
+ }
2761
+
2734
2762
  export namespace Multiplayer {
2735
2763
  /**
2736
2764
  * @description Enum representing the type of a replicated value.
@@ -2760,7 +2788,13 @@ export namespace Multiplayer {
2760
2788
 
2761
2789
  export namespace Multiplayer {
2762
2790
  /**
2763
- * @description Enum used to specify the type of an update operation
2791
+ * @description This Enum should be used to determine what kind of operation the component update represents.
2792
+ * Update means properties on the component have updated, all need to be checked as we do not provide reference of specific property updates.
2793
+ * Add means the component is newly added, clients should ensure that this triggers appropriate instantiation of wrapping objects.
2794
+ * All properties for the component should be included.
2795
+ * Delete means the component has been marked for deletion. It is likely that some other clients will not have the component at the point this is
2796
+ * recieved. Any wrapping data objects should be deleted when this is recieved, and clients should cease updating this component as any call would
2797
+ * fail. The CSP representation of the component has been removed at this point.
2764
2798
  */
2765
2799
  export enum ComponentUpdateType {
2766
2800
  Update,
@@ -2770,6 +2804,11 @@ export namespace Multiplayer {
2770
2804
  }
2771
2805
 
2772
2806
  export namespace Multiplayer {
2807
+ /**
2808
+ * @description Enum used to specify what part of a SpaceEntity was updated when deserialising.
2809
+ * Use this to determine which parts of an entity to copy values from when an update occurs.
2810
+ * It is a bitwise flag enum, so values are additive, the value may represent several flags.
2811
+ */
2773
2812
  export enum SpaceEntityUpdateFlags {
2774
2813
  UPDATE_FLAGS_NAME = 1,
2775
2814
  UPDATE_FLAGS_POSITION = 2,
@@ -3228,7 +3267,7 @@ export namespace Multiplayer {
3228
3267
  ReflectionAssetId,
3229
3268
  AssetCollectionId,
3230
3269
  Position,
3231
- Rotation,
3270
+ Rotation_NOT_USED,
3232
3271
  Scale,
3233
3272
  ReflectionShape,
3234
3273
  ThirdPartyComponentRef,
@@ -3425,6 +3464,7 @@ export namespace Systems {
3425
3464
  ShopifyConnectionBroken,
3426
3465
  ShopifyInvalidStoreName,
3427
3466
  UserShopifyLimitReached,
3467
+ UserTokenRefreshFailed,
3428
3468
  }
3429
3469
  }
3430
3470
 
@@ -3537,6 +3577,18 @@ export namespace Systems {
3537
3577
  }
3538
3578
  }
3539
3579
 
3580
+ export namespace Systems {
3581
+ /**
3582
+ * @description Used to specify the type of the user's avatar
3583
+ */
3584
+ export enum AvatarType {
3585
+ None,
3586
+ Premade,
3587
+ ReadyPlayerMe,
3588
+ Custom,
3589
+ }
3590
+ }
3591
+
3540
3592
  export namespace Systems {
3541
3593
  export enum SpaceAttributes {
3542
3594
  None = 0,
@@ -4613,26 +4665,6 @@ export class CSPFoundation {
4613
4665
  return _result;
4614
4666
  }
4615
4667
 
4616
- /**
4617
- * @description Gets the EntitySystemVersion number.
4618
- * This represents the system used to parse data for Entities,
4619
- * and is used to prevent conflicting entity data versions from being used together where we cannot parse both.
4620
- * This is currently unused.
4621
- * @return The system version number, a manually incremented counter that changes when significant breaking changes occur in the entity
4622
- * parsing systems
4623
- */
4624
-
4625
- static getEntitySystemVersion(): number {
4626
- let _result = Module.ccall(
4627
- "csp_CSPFoundation_GetEntitySystemVersion_int32_t",
4628
- "number",
4629
- [],
4630
- [],
4631
- );
4632
-
4633
- return _result;
4634
- }
4635
-
4636
4668
  /**
4637
4669
  * @description Unique identifier for the current device.
4638
4670
  * Used internally by certain user authentication endpoints.
@@ -21420,19 +21452,19 @@ export namespace Multiplayer {
21420
21452
 
21421
21453
  /**
21422
21454
  * @description Start the connection and register to start receiving updates from the server.
21423
- * @param callback - A callback with success status.
21455
+ * @param callback - A callback with failure state.
21424
21456
  */
21425
21457
 
21426
- async connect(): Promise<boolean> {
21458
+ async connect(): Promise<Multiplayer.ErrorCode> {
21427
21459
  var _resolve;
21428
21460
 
21429
- var _promise = new Promise<boolean>((_r) => {
21461
+ var _promise = new Promise<Multiplayer.ErrorCode>((_r) => {
21430
21462
  _resolve = _r;
21431
21463
  });
21432
21464
 
21433
21465
  var _callbackPtr: number;
21434
21466
  var _callback = (_stateObject__: number, arg1) => {
21435
- _resolve(!!arg1);
21467
+ _resolve(arg1);
21436
21468
 
21437
21469
  Module.removeFunction(_callbackPtr);
21438
21470
  };
@@ -21440,7 +21472,7 @@ export namespace Multiplayer {
21440
21472
  _callbackPtr = Module.addFunction(_callback, "vii");
21441
21473
 
21442
21474
  Module.ccall(
21443
- "csp_multiplayer_MultiplayerConnection_Connect_void_CallbackHandler",
21475
+ "csp_multiplayer_MultiplayerConnection_Connect_void_ErrorCodeCallbackHandler",
21444
21476
  "void",
21445
21477
  ["number", "number", "number"],
21446
21478
  [this.pointer, _callbackPtr, 0],
@@ -21451,19 +21483,19 @@ export namespace Multiplayer {
21451
21483
 
21452
21484
  /**
21453
21485
  * @description End the multiplayer connection.
21454
- * @param callback - A callback with success status.
21486
+ * @param callback - A callback with failure state.
21455
21487
  */
21456
21488
 
21457
- async disconnect(): Promise<boolean> {
21489
+ async disconnect(): Promise<Multiplayer.ErrorCode> {
21458
21490
  var _resolve;
21459
21491
 
21460
- var _promise = new Promise<boolean>((_r) => {
21492
+ var _promise = new Promise<Multiplayer.ErrorCode>((_r) => {
21461
21493
  _resolve = _r;
21462
21494
  });
21463
21495
 
21464
21496
  var _callbackPtr: number;
21465
21497
  var _callback = (_stateObject__: number, arg1) => {
21466
- _resolve(!!arg1);
21498
+ _resolve(arg1);
21467
21499
 
21468
21500
  Module.removeFunction(_callbackPtr);
21469
21501
  };
@@ -21471,7 +21503,7 @@ export namespace Multiplayer {
21471
21503
  _callbackPtr = Module.addFunction(_callback, "vii");
21472
21504
 
21473
21505
  Module.ccall(
21474
- "csp_multiplayer_MultiplayerConnection_Disconnect_void_CallbackHandler",
21506
+ "csp_multiplayer_MultiplayerConnection_Disconnect_void_ErrorCodeCallbackHandler",
21475
21507
  "void",
21476
21508
  ["number", "number", "number"],
21477
21509
  [this.pointer, _callbackPtr, 0],
@@ -21482,19 +21514,19 @@ export namespace Multiplayer {
21482
21514
 
21483
21515
  /**
21484
21516
  * @description Initialise the connection and get initial entity data from the server.
21485
- * @param callback - A callback with success status.
21517
+ * @param callback - A callback with failure state.
21486
21518
  */
21487
21519
 
21488
- async initialiseConnection(): Promise<boolean> {
21520
+ async initialiseConnection(): Promise<Multiplayer.ErrorCode> {
21489
21521
  var _resolve;
21490
21522
 
21491
- var _promise = new Promise<boolean>((_r) => {
21523
+ var _promise = new Promise<Multiplayer.ErrorCode>((_r) => {
21492
21524
  _resolve = _r;
21493
21525
  });
21494
21526
 
21495
21527
  var _callbackPtr: number;
21496
21528
  var _callback = (_stateObject__: number, arg1) => {
21497
- _resolve(!!arg1);
21529
+ _resolve(arg1);
21498
21530
 
21499
21531
  Module.removeFunction(_callbackPtr);
21500
21532
  };
@@ -21502,7 +21534,7 @@ export namespace Multiplayer {
21502
21534
  _callbackPtr = Module.addFunction(_callback, "vii");
21503
21535
 
21504
21536
  Module.ccall(
21505
- "csp_multiplayer_MultiplayerConnection_InitialiseConnection_void_CallbackHandler",
21537
+ "csp_multiplayer_MultiplayerConnection_InitialiseConnection_void_ErrorCodeCallbackHandler",
21506
21538
  "void",
21507
21539
  ["number", "number", "number"],
21508
21540
  [this.pointer, _callbackPtr, 0],
@@ -21515,22 +21547,22 @@ export namespace Multiplayer {
21515
21547
  * @description Sends a network event by EventName to all currently connected clients.
21516
21548
  * @param eventName - The identifying name for the event.
21517
21549
  * @param args - An array of arguments (ReplicatedValue) to be passed as part of the event payload.
21518
- * @param callback - A status callback which indicates if the event successfully sent.
21550
+ * @param callback - A callback with failure state.
21519
21551
  */
21520
21552
 
21521
21553
  async sendNetworkEvent(
21522
21554
  eventName: string,
21523
21555
  args: Common.Array<Multiplayer.ReplicatedValue>,
21524
- ): Promise<boolean> {
21556
+ ): Promise<Multiplayer.ErrorCode> {
21525
21557
  var _resolve;
21526
21558
 
21527
- var _promise = new Promise<boolean>((_r) => {
21559
+ var _promise = new Promise<Multiplayer.ErrorCode>((_r) => {
21528
21560
  _resolve = _r;
21529
21561
  });
21530
21562
 
21531
21563
  var _callbackPtr: number;
21532
21564
  var _callback = (_stateObject__: number, arg1) => {
21533
- _resolve(!!arg1);
21565
+ _resolve(arg1);
21534
21566
 
21535
21567
  Module.removeFunction(_callbackPtr);
21536
21568
  };
@@ -21538,7 +21570,7 @@ export namespace Multiplayer {
21538
21570
  _callbackPtr = Module.addFunction(_callback, "vii");
21539
21571
 
21540
21572
  Module.ccall(
21541
- "csp_multiplayer_MultiplayerConnection_SendNetworkEvent_void_StringRC_ArrayRC_CallbackHandler",
21573
+ "csp_multiplayer_MultiplayerConnection_SendNetworkEvent_void_StringRC_ArrayRC_ErrorCodeCallbackHandler",
21542
21574
  "void",
21543
21575
  ["number", "string", "number", "number", "number"],
21544
21576
  [this.pointer, eventName, args.pointer, _callbackPtr, 0],
@@ -21552,23 +21584,23 @@ export namespace Multiplayer {
21552
21584
  * @param eventName - The identifying name for the event.
21553
21585
  * @param args - An array of arguments (ReplicatedValue) to be passed as part of the event payload.
21554
21586
  * @param targetClientId - The client ID to send the event to.
21555
- * @param callback - A status callback which indicates if the event successfully sent.
21587
+ * @param callback - A callback with failure state.
21556
21588
  */
21557
21589
 
21558
21590
  async sendNetworkEventToClient(
21559
21591
  eventName: string,
21560
21592
  args: Common.Array<Multiplayer.ReplicatedValue>,
21561
21593
  targetClientId: bigint,
21562
- ): Promise<boolean> {
21594
+ ): Promise<Multiplayer.ErrorCode> {
21563
21595
  var _resolve;
21564
21596
 
21565
- var _promise = new Promise<boolean>((_r) => {
21597
+ var _promise = new Promise<Multiplayer.ErrorCode>((_r) => {
21566
21598
  _resolve = _r;
21567
21599
  });
21568
21600
 
21569
21601
  var _callbackPtr: number;
21570
21602
  var _callback = (_stateObject__: number, arg1) => {
21571
- _resolve(!!arg1);
21603
+ _resolve(arg1);
21572
21604
 
21573
21605
  Module.removeFunction(_callbackPtr);
21574
21606
  };
@@ -21576,7 +21608,7 @@ export namespace Multiplayer {
21576
21608
  _callbackPtr = Module.addFunction(_callback, "vii");
21577
21609
 
21578
21610
  Module.ccall(
21579
- "csp_multiplayer_MultiplayerConnection_SendNetworkEventToClient_void_StringRC_ArrayRC_uint64_t_CallbackHandler",
21611
+ "csp_multiplayer_MultiplayerConnection_SendNetworkEventToClient_void_StringRC_ArrayRC_uint64_t_ErrorCodeCallbackHandler",
21580
21612
  "void",
21581
21613
  ["number", "string", "number", "bigint", "number", "number"],
21582
21614
  [
@@ -21646,8 +21678,8 @@ export namespace Multiplayer {
21646
21678
 
21647
21679
  /**
21648
21680
  * @description Sets a callback for a network interruption event.
21649
- * /// Connection isn't recoverable after this point and Disconnect should be called.
21650
- * /// @param Callback NetworkInterruptionCallbackHandler : The callback for network interruption, contains a string showing failure.
21681
+ * Connection isn't recoverable after this point and Disconnect should be called.
21682
+ * @param callback - The callback for network interruption, contains a string showing failure.
21651
21683
  */
21652
21684
  setNetworkInterruptionCallback(callback: (arg1: string) => void) {
21653
21685
  var _callback = (_stateObject__: number, arg1) => {
@@ -21871,25 +21903,25 @@ export namespace Multiplayer {
21871
21903
  }
21872
21904
 
21873
21905
  /**
21874
- * @description Sets the Self Messaging flag for this client.
21875
- * /// This allows a client to declare that it wishes to recieve every patch and object message it sends.
21876
- * /// @warning Don't use this function if you aren't sure of the consequences, it's very unlikely that a client would want to use this!
21906
+ * @description Sets the Self Messaging flag for this client.
21907
+ * This allows a client to declare that it wishes to recieve every patch and object message it sends.
21908
+ @warning Don't use this function if you aren't sure of the consequences, it's very unlikely that a client would want to use this!
21877
21909
  * @param allowSelfMessaging - True to allow and false to disallow.
21878
- * @param callback - Callback providing success/fail boolean.
21910
+ * @param callback - A callback with failure state.
21879
21911
  */
21880
21912
 
21881
21913
  async setAllowSelfMessagingFlag(
21882
21914
  allowSelfMessaging: boolean,
21883
- ): Promise<boolean> {
21915
+ ): Promise<Multiplayer.ErrorCode> {
21884
21916
  var _resolve;
21885
21917
 
21886
- var _promise = new Promise<boolean>((_r) => {
21918
+ var _promise = new Promise<Multiplayer.ErrorCode>((_r) => {
21887
21919
  _resolve = _r;
21888
21920
  });
21889
21921
 
21890
21922
  var _callbackPtr: number;
21891
21923
  var _callback = (_stateObject__: number, arg1) => {
21892
- _resolve(!!arg1);
21924
+ _resolve(arg1);
21893
21925
 
21894
21926
  Module.removeFunction(_callbackPtr);
21895
21927
  };
@@ -21897,7 +21929,7 @@ export namespace Multiplayer {
21897
21929
  _callbackPtr = Module.addFunction(_callback, "vii");
21898
21930
 
21899
21931
  Module.ccall(
21900
- "csp_multiplayer_MultiplayerConnection_SetAllowSelfMessagingFlag_void_boolC_CallbackHandler",
21932
+ "csp_multiplayer_MultiplayerConnection_SetAllowSelfMessagingFlag_void_boolC_ErrorCodeCallbackHandler",
21901
21933
  "void",
21902
21934
  ["number", "boolean", "number", "number"],
21903
21935
  [this.pointer, allowSelfMessaging, _callbackPtr, 0],
@@ -22324,90 +22356,6 @@ export namespace Multiplayer {
22324
22356
  }
22325
22357
  }
22326
22358
 
22327
- export namespace Multiplayer {
22328
- export class PropertyUpdateInfo
22329
- extends NativeClassWrapper
22330
- implements INativeResource
22331
- {
22332
- /** @internal */
22333
- constructor(pointer: NativePointer) {
22334
- super(pointer);
22335
- }
22336
-
22337
- static create(): PropertyUpdateInfo {
22338
- var _ptr = Module._malloc(8);
22339
- Module.ccall(
22340
- "csp_multiplayer_PropertyUpdateInfo_Ctor",
22341
- "void",
22342
- ["number"],
22343
- [_ptr],
22344
- );
22345
- var _nPtr = getNativePointer(_ptr);
22346
-
22347
- return new PropertyUpdateInfo(_nPtr);
22348
- }
22349
-
22350
- delete(): void {
22351
- if (this.ownsPointer && !this.disposed) {
22352
- Module.ccall(
22353
- "csp_multiplayer_PropertyUpdateInfo_Dtor",
22354
- "void",
22355
- ["number"],
22356
- [this.pointer],
22357
- );
22358
-
22359
- this.disposed = true;
22360
- }
22361
- }
22362
-
22363
- get propertyId(): number {
22364
- let _result = Module.ccall(
22365
- "csp_multiplayer_PropertyUpdateInfo__Get_PropertyId",
22366
- "number",
22367
- ["number"],
22368
- [this.pointer],
22369
- );
22370
-
22371
- const _unfixedValue = _result;
22372
- let _fixedValue =
22373
- _unfixedValue < 0 ? _unfixedValue + 2 ** 32 : _unfixedValue;
22374
-
22375
- _result = _fixedValue;
22376
-
22377
- return _result;
22378
- }
22379
-
22380
- set propertyId(value: number) {
22381
- Module.ccall(
22382
- "csp_multiplayer_PropertyUpdateInfo__Set_PropertyId",
22383
- "void",
22384
- ["number", "number"],
22385
- [this.pointer, value],
22386
- );
22387
- }
22388
-
22389
- get updateType(): Multiplayer.ComponentUpdateType {
22390
- let _result = Module.ccall(
22391
- "csp_multiplayer_PropertyUpdateInfo__Get_UpdateType",
22392
- "number",
22393
- ["number"],
22394
- [this.pointer],
22395
- );
22396
-
22397
- return _result;
22398
- }
22399
-
22400
- set updateType(value: Multiplayer.ComponentUpdateType) {
22401
- Module.ccall(
22402
- "csp_multiplayer_PropertyUpdateInfo__Set_UpdateType",
22403
- "void",
22404
- ["number", "number"],
22405
- [this.pointer, value],
22406
- );
22407
- }
22408
- }
22409
- }
22410
-
22411
22359
  export namespace Multiplayer {
22412
22360
  /**
22413
22361
  * @description Info class that specifies a type of update and the ID of a component the update is applied to.
@@ -22929,6 +22877,7 @@ export namespace Multiplayer {
22929
22877
  * @description Set a callback to be executed when a patch message is received for this Entity. Only one callback can be set.
22930
22878
  * @param callback - Contains the SpaceEntity that updated, a set of flags to tell which parts updated
22931
22879
  * and an array of information to tell which components updated.
22880
+ * When this callback is recieved, the flags and arrays should be used to determine which properties have updated data.
22932
22881
  */
22933
22882
  setUpdateCallback(
22934
22883
  callback: (
@@ -28723,6 +28672,61 @@ export namespace Systems {
28723
28672
  return _result;
28724
28673
  }
28725
28674
 
28675
+ /**
28676
+ * @description Log a message at a specific verbosity level.
28677
+ * @param level - The level to log this message at.
28678
+ * @param inMessage - The message to be logged.
28679
+ */
28680
+
28681
+ logMsg(level: Systems.LogLevel, message: string): void {
28682
+ Module.ccall(
28683
+ "csp_systems_LogSystem_LogMsg_void_LogLevelC_StringRC",
28684
+ "void",
28685
+ ["number", "number", "string"],
28686
+ [this.pointer, level, message],
28687
+ );
28688
+ }
28689
+
28690
+ /**
28691
+ * @description Log an event.
28692
+ * @param inEvent - The event to be logged.
28693
+ */
28694
+
28695
+ logEvent(event: string): void {
28696
+ Module.ccall(
28697
+ "csp_systems_LogSystem_LogEvent_void_StringRC",
28698
+ "void",
28699
+ ["number", "string"],
28700
+ [this.pointer, event],
28701
+ );
28702
+ }
28703
+
28704
+ /**
28705
+ * @description Specify a 'Marker' event which can be used to communicate a certain process occurring, usually for debugging.
28706
+ */
28707
+
28708
+ beginMarker(marker: string): void {
28709
+ Module.ccall(
28710
+ "csp_systems_LogSystem_BeginMarker_void_StringRC",
28711
+ "void",
28712
+ ["number", "string"],
28713
+ [this.pointer, marker],
28714
+ );
28715
+ }
28716
+
28717
+ /**
28718
+ * @description End a 'Marker' event.
28719
+ */
28720
+
28721
+ endMarker(): void {
28722
+ Module.ccall(
28723
+ "csp_systems_LogSystem_EndMarker_void",
28724
+ "void",
28725
+ ["number"],
28726
+ [this.pointer],
28727
+ );
28728
+ }
28729
+
28726
28730
  /**
28727
28731
  * @description Clears all logging callbacks.
28728
28732
  */
@@ -32002,6 +32006,10 @@ export namespace Multiplayer {
32002
32006
  return new AnimatedModelSpaceComponent(_nPtr);
32003
32007
  }
32004
32008
 
32009
+ /** @deprecated
32010
+ Due to the introduction of LODs it doesn't make sense to set a specific asset anymore
32011
+ */
32012
+
32005
32013
  getExternalResourceAssetId(): string {
32006
32014
  let _result = Module.ccall(
32007
32015
  "csp_multiplayer_AnimatedModelSpaceComponent_GetExternalResourceAssetIdC_StringRC",
@@ -32018,6 +32026,10 @@ export namespace Multiplayer {
32018
32026
  return _result;
32019
32027
  }
32020
32028
 
32029
+ /** @deprecated
32030
+ Due to the introduction of LODs it doesn't make sense to set a specific asset anymore
32031
+ */
32032
+
32021
32033
  setExternalResourceAssetId(value: string): void {
32022
32034
  Module.ccall(
32023
32035
  "csp_multiplayer_AnimatedModelSpaceComponent_SetExternalResourceAssetId_void_StringRC",
@@ -32435,6 +32447,7 @@ export namespace Multiplayer {
32435
32447
  extends Multiplayer.ComponentBase
32436
32448
  implements
32437
32449
  Multiplayer.IEnableableComponent,
32450
+ Multiplayer.IPositionComponent,
32438
32451
  Multiplayer.IThirdPartyComponentRef,
32439
32452
  INativeResource
32440
32453
  {
@@ -32473,13 +32486,9 @@ export namespace Multiplayer {
32473
32486
  }
32474
32487
 
32475
32488
  /**
32476
- * @description Gets the position of the origin of this component in world space.
32477
- * NOTE: The coordinate system used follows the glTF 2.0 specification, in meters.
32478
- * - Right handed coordinate system
32479
- * - +Y is UP
32480
- * - +X is left (facing forward)
32481
- * - +Z is forward
32482
- * @return The 3D position as vector (left, up, forward) in meters.
32489
+ * \addtogroup IPositionComponent
32490
+ @{
32491
+ @copydoc IPositionComponent::GetPosition()
32483
32492
  */
32484
32493
 
32485
32494
  getPosition(): Common.Vector3 {
@@ -32498,12 +32507,7 @@ export namespace Multiplayer {
32498
32507
  }
32499
32508
 
32500
32509
  /**
32501
- * @description Sets the position of the origin of this component in world space.
32502
- * NOTE: The coordinate system used follows the glTF 2.0 specification, in meters.
32503
- * - Right handed coordinate system
32504
- * - +Y is UP
32505
- * - +X is left (facing forward)
32506
- * - +Z is forward
32510
+ @copydoc IPositionComponent::SetPosition()
32507
32511
  */
32508
32512
 
32509
32513
  setPosition(value: Common.Vector3): void {
@@ -32516,7 +32520,8 @@ export namespace Multiplayer {
32516
32520
  }
32517
32521
 
32518
32522
  /**
32519
- * @description Gets the current playback state of the audio of this audio component.
32523
+ @}
32524
+ * @description Gets the current playback state of the audio of this audio component.
32520
32525
  * @return The current playback state of the audio of this audio component.
32521
32526
  */
32522
32527
 
@@ -33488,6 +33493,7 @@ export namespace Multiplayer {
33488
33493
  extends Multiplayer.ComponentBase
33489
33494
  implements
33490
33495
  Multiplayer.IEnableableComponent,
33496
+ Multiplayer.ITransformComponent,
33491
33497
  Multiplayer.IVisibleComponent,
33492
33498
  INativeResource
33493
33499
  {
@@ -33637,13 +33643,9 @@ export namespace Multiplayer {
33637
33643
  }
33638
33644
 
33639
33645
  /**
33640
- * @description Gets the position of the origin of this component in world space.
33641
- * NOTE: The coordinate system used follows the glTF 2.0 specification, in meters.
33642
- * - Right handed coordinate system
33643
- * - +Y is UP
33644
- * - +X is left (facing forward)
33645
- * - +Z is forward
33646
- * @return The 3D position as vector (left, up, forward) in meters.
33646
+ * \addtogroup ITransformComponent
33647
+ @{
33648
+ @copydoc IPositionComponent::GetPosition()
33647
33649
  */
33648
33650
 
33649
33651
  getPosition(): Common.Vector3 {
@@ -33662,12 +33664,7 @@ export namespace Multiplayer {
33662
33664
  }
33663
33665
 
33664
33666
  /**
33665
- * @description Sets the position of the origin of this component in world space.
33666
- * NOTE: The coordinate system used follows the glTF 2.0 specification, in meters.
33667
- * - Right handed coordinate system
33668
- * - +Y is UP
33669
- * - +X is left (facing forward)
33670
- * - +Z is forward
33667
+ @copydoc IPositionComponent::SetPosition()
33671
33668
  */
33672
33669
 
33673
33670
  setPosition(value: Common.Vector3): void {
@@ -33680,15 +33677,7 @@ export namespace Multiplayer {
33680
33677
  }
33681
33678
 
33682
33679
  /**
33683
- * @description Gets a quaternion representing the rotation of the origin of this component, expressed in radians.
33684
- * NOTE: The coordinate system respects the following conventions:
33685
- * - Right handed coordinate system
33686
- * - Positive rotation is counterclockwise
33687
- * - The geographic North is along the positive Z axis (+Z) at an orientation of 0 degrees.
33688
- * - North: +Z
33689
- * - East: -X
33690
- * - South: -Z
33691
- * - West: +X
33680
+ @copydoc IRotationComponent::GetRotation()
33692
33681
  */
33693
33682
 
33694
33683
  getRotation(): Common.Vector4 {
@@ -33707,16 +33696,7 @@ export namespace Multiplayer {
33707
33696
  }
33708
33697
 
33709
33698
  /**
33710
- * @description Sets the rotation of the origin of this component according to the specified quaternion "Value", expressed in radians.
33711
- * NOTE: The coordinate system respects the following conventions:
33712
- * - Right handed coordinate system
33713
- * - Positive rotation is counterclockwise
33714
- * - The geographic North is along the positive Z axis (+Z) at an orientation of 0 degrees.
33715
- * - North: +Z
33716
- * - East: -X
33717
- * - South: -Z
33718
- * - West: +X
33719
- * @param value - The quaternion in radians to use as new rotation of this component.
33699
+ @copydoc IRotationComponent::SetRotation()
33720
33700
  */
33721
33701
 
33722
33702
  setRotation(value: Common.Vector4): void {
@@ -33729,13 +33709,7 @@ export namespace Multiplayer {
33729
33709
  }
33730
33710
 
33731
33711
  /**
33732
- * @description Gets the scale of the origin of this component in world space.
33733
- * NOTE: The coordinate system used follows the glTF 2.0 specification.
33734
- * - Right handed coordinate system
33735
- * - +Y is UP
33736
- * - +X is left (facing forward)
33737
- * - +Z is forward
33738
- * @return The 3D scale as vector (left, up, forward).
33712
+ @copydoc IScaleComponent::GetScale()
33739
33713
  */
33740
33714
 
33741
33715
  getScale(): Common.Vector3 {
@@ -33754,13 +33728,7 @@ export namespace Multiplayer {
33754
33728
  }
33755
33729
 
33756
33730
  /**
33757
- * @description Sets the scale of the origin of this component in world space to the specified "Value".
33758
- * @param value - The new value expressed as vector (left, up, forward).
33759
- * NOTE: The coordinate system used follows the glTF 2.0 specification.
33760
- * - Right handed coordinate system
33761
- * - +Y is UP
33762
- * - +X is left (facing forward)
33763
- * - +Z is forward
33731
+ @copydoc IScaleComponent::SetScale()
33764
33732
  */
33765
33733
 
33766
33734
  setScale(value: Common.Vector3): void {
@@ -33773,6 +33741,38 @@ export namespace Multiplayer {
33773
33741
  }
33774
33742
 
33775
33743
  /**
33744
+ @copydoc ITransformComponent::GetTransform()
33745
+ */
33746
+
33747
+ getTransform(): Multiplayer.SpaceTransform {
33748
+ var _ret = Module._malloc(8);
33749
+
33750
+ Module.ccall(
33751
+ "csp_multiplayer_ButtonSpaceComponent_GetTransformC_SpaceTransform",
33752
+ "void",
33753
+ ["number", "number"],
33754
+ [_ret, this.pointer],
33755
+ );
33756
+ var _nPtr = new Multiplayer.SpaceTransform(getNativePointer(_ret));
33757
+ Module._free(_ret);
33758
+ return _nPtr;
33759
+ }
33760
+
33761
+ /**
33762
+ @copydoc ITransformComonent::SetTransform()
33763
+ */
33764
+
33765
+ setTransform(value: Multiplayer.SpaceTransform): void {
33766
+ Module.ccall(
33767
+ "csp_multiplayer_ButtonSpaceComponent_SetTransform_void_SpaceTransformRC",
33768
+ "void",
33769
+ ["number", "number"],
33770
+ [this.pointer, value.pointer],
33771
+ );
33772
+ }
33773
+
33774
+ /**
33775
+ @}
33776
33776
  * \addtogroup IClickableComponent
33777
33777
  @{
33778
33778
  @copydoc IClickableComponent::GetIsEnabled()
@@ -33883,7 +33883,10 @@ export namespace Multiplayer {
33883
33883
  */
33884
33884
  export class CollisionSpaceComponent
33885
33885
  extends Multiplayer.ComponentBase
33886
- implements Multiplayer.IThirdPartyComponentRef, INativeResource
33886
+ implements
33887
+ Multiplayer.IThirdPartyComponentRef,
33888
+ Multiplayer.ITransformComponent,
33889
+ INativeResource
33887
33890
  {
33888
33891
  /** @internal */
33889
33892
  constructor(pointer: NativePointer) {
@@ -33922,13 +33925,9 @@ export namespace Multiplayer {
33922
33925
  }
33923
33926
 
33924
33927
  /**
33925
- * @description Gets the position of the origin of this component in world space.
33926
- * NOTE: The coordinate system used follows the glTF 2.0 specification, in meters.
33927
- * - Right handed coordinate system
33928
- * - +Y is UP
33929
- * - +X is left (facing forward)
33930
- * - +Z is forward
33931
- * @return The 3D position as vector (left, up, forward) in meters.
33928
+ * \addtogroup ITransformComponent
33929
+ @{
33930
+ @copydoc IPositionComponent::GetPosition()
33932
33931
  */
33933
33932
 
33934
33933
  getPosition(): Common.Vector3 {
@@ -33947,12 +33946,7 @@ export namespace Multiplayer {
33947
33946
  }
33948
33947
 
33949
33948
  /**
33950
- * @description Sets the position of the origin of this component in world space.
33951
- * NOTE: The coordinate system used follows the glTF 2.0 specification, in meters.
33952
- * - Right handed coordinate system
33953
- * - +Y is UP
33954
- * - +X is left (facing forward)
33955
- * - +Z is forward
33949
+ @copydoc IPositionComponent::SetPosition()
33956
33950
  */
33957
33951
 
33958
33952
  setPosition(value: Common.Vector3): void {
@@ -33965,15 +33959,7 @@ export namespace Multiplayer {
33965
33959
  }
33966
33960
 
33967
33961
  /**
33968
- * @description Gets a quaternion representing the rotation of the origin of this component, expressed in radians.
33969
- * NOTE: The coordinate system respects the following conventions:
33970
- * - Right handed coordinate system
33971
- * - Positive rotation is counterclockwise
33972
- * - The geographic North is along the positive Z axis (+Z) at an orientation of 0 degrees.
33973
- * - North: +Z
33974
- * - East: -X
33975
- * - South: -Z
33976
- * - West: +X
33962
+ @copydoc IRotationComponent::GetRotation()
33977
33963
  */
33978
33964
 
33979
33965
  getRotation(): Common.Vector4 {
@@ -33992,16 +33978,7 @@ export namespace Multiplayer {
33992
33978
  }
33993
33979
 
33994
33980
  /**
33995
- * @description Sets the rotation of the origin of this component according to the specified quaternion "Value", expressed in radians.
33996
- * NOTE: The coordinate system respects the following conventions:
33997
- * - Right handed coordinate system
33998
- * - Positive rotation is counterclockwise
33999
- * - The geographic North is along the positive Z axis (+Z) at an orientation of 0 degrees.
34000
- * - North: +Z
34001
- * - East: -X
34002
- * - South: -Z
34003
- * - West: +X
34004
- * @param value - The quaternion in radians to use as new rotation of this component.
33981
+ @copydoc IRotationComponent::SetRotation()
34005
33982
  */
34006
33983
 
34007
33984
  setRotation(value: Common.Vector4): void {
@@ -34014,13 +33991,7 @@ export namespace Multiplayer {
34014
33991
  }
34015
33992
 
34016
33993
  /**
34017
- * @description Gets the scale of the origin of this component in world space.
34018
- * NOTE: The coordinate system used follows the glTF 2.0 specification.
34019
- * - Right handed coordinate system
34020
- * - +Y is UP
34021
- * - +X is left (facing forward)
34022
- * - +Z is forward
34023
- * @return The 3D scale as vector (left, up, forward).
33994
+ @copydoc IScaleComponent::GetScale()
34024
33995
  */
34025
33996
 
34026
33997
  getScale(): Common.Vector3 {
@@ -34039,13 +34010,7 @@ export namespace Multiplayer {
34039
34010
  }
34040
34011
 
34041
34012
  /**
34042
- * @description Sets the scale of the origin of this component in world space to the specified "Value".
34043
- * @param value - The new value expressed as vector (left, up, forward).
34044
- * NOTE: The coordinate system used follows the glTF 2.0 specification.
34045
- * - Right handed coordinate system
34046
- * - +Y is UP
34047
- * - +X is left (facing forward)
34048
- * - +Z is forward
34013
+ @copydoc IScaleComponent::SetScale()
34049
34014
  */
34050
34015
 
34051
34016
  setScale(value: Common.Vector3): void {
@@ -34058,7 +34023,39 @@ export namespace Multiplayer {
34058
34023
  }
34059
34024
 
34060
34025
  /**
34061
- * @description Gets the collision shape used by this collision component.
34026
+ @copydoc ITransformComponent::GetTransform()
34027
+ */
34028
+
34029
+ getTransform(): Multiplayer.SpaceTransform {
34030
+ var _ret = Module._malloc(8);
34031
+
34032
+ Module.ccall(
34033
+ "csp_multiplayer_CollisionSpaceComponent_GetTransformC_SpaceTransform",
34034
+ "void",
34035
+ ["number", "number"],
34036
+ [_ret, this.pointer],
34037
+ );
34038
+ var _nPtr = new Multiplayer.SpaceTransform(getNativePointer(_ret));
34039
+ Module._free(_ret);
34040
+ return _nPtr;
34041
+ }
34042
+
34043
+ /**
34044
+ @copydoc ITransformComonent::SetTransform()
34045
+ */
34046
+
34047
+ setTransform(value: Multiplayer.SpaceTransform): void {
34048
+ Module.ccall(
34049
+ "csp_multiplayer_CollisionSpaceComponent_SetTransform_void_SpaceTransformRC",
34050
+ "void",
34051
+ ["number", "number"],
34052
+ [this.pointer, value.pointer],
34053
+ );
34054
+ }
34055
+
34056
+ /**
34057
+ @}
34058
+ * @description Gets the collision shape used by this collision component.
34062
34059
  * @return The colllision shape used by this collision component.
34063
34060
  */
34064
34061
 
@@ -34370,7 +34367,10 @@ export namespace Multiplayer {
34370
34367
  */
34371
34368
  export class ConversationSpaceComponent
34372
34369
  extends Multiplayer.ComponentBase
34373
- implements INativeResource
34370
+ implements
34371
+ Multiplayer.IPositionComponent,
34372
+ Multiplayer.IRotationComponent,
34373
+ INativeResource
34374
34374
  {
34375
34375
  /** @internal */
34376
34376
  constructor(pointer: NativePointer) {
@@ -34807,7 +34807,9 @@ export namespace Multiplayer {
34807
34807
  }
34808
34808
 
34809
34809
  /**
34810
- * @description Gets the relative 3D position of this component.
34810
+ * \addtogroup IPositionComponent
34811
+ @{
34812
+ @copydoc IPositionComponent::GetPosition()
34811
34813
  */
34812
34814
 
34813
34815
  getPosition(): Common.Vector3 {
@@ -34826,8 +34828,7 @@ export namespace Multiplayer {
34826
34828
  }
34827
34829
 
34828
34830
  /**
34829
- * @description Sets the relative 3D position of this component.
34830
- * @param value - - The new 3D position assigned to the origin of this component.
34831
+ @copydoc IPositionComponent::SetPosition()
34831
34832
  */
34832
34833
 
34833
34834
  setPosition(value: Common.Vector3): void {
@@ -34840,7 +34841,10 @@ export namespace Multiplayer {
34840
34841
  }
34841
34842
 
34842
34843
  /**
34843
- * @description Gets the quaternion of the rotation of the origin of this component.
34844
+ @}
34845
+ * \addtogroup IRotationComponent
34846
+ @{
34847
+ @copydoc IRotationComponent::GetRotation()
34844
34848
  */
34845
34849
 
34846
34850
  getRotation(): Common.Vector4 {
@@ -34859,8 +34863,7 @@ export namespace Multiplayer {
34859
34863
  }
34860
34864
 
34861
34865
  /**
34862
- * @description Sets the quaternion of the rotation of the origin of this component.
34863
- * @param value - - The new rotation assigned to the origin of this component.
34866
+ @copydoc IRotationComponent::SetRotation()
34864
34867
  */
34865
34868
 
34866
34869
  setRotation(value: Common.Vector4): void {
@@ -34872,6 +34875,10 @@ export namespace Multiplayer {
34872
34875
  );
34873
34876
  }
34874
34877
 
34878
+ /**
34879
+ @}
34880
+ */
34881
+
34875
34882
  getIsVisible(): boolean {
34876
34883
  let _result = Module.ccall(
34877
34884
  "csp_multiplayer_ConversationSpaceComponent_GetIsVisibleC_bool",
@@ -35277,7 +35284,7 @@ export namespace Multiplayer {
35277
35284
  */
35278
35285
  export class ECommerceSpaceComponent
35279
35286
  extends Multiplayer.ComponentBase
35280
- implements INativeResource
35287
+ implements Multiplayer.IPositionComponent, INativeResource
35281
35288
  {
35282
35289
  /** @internal */
35283
35290
  constructor(pointer: NativePointer) {
@@ -35316,13 +35323,9 @@ export namespace Multiplayer {
35316
35323
  }
35317
35324
 
35318
35325
  /**
35319
- * @description Gets the position of the origin of this component in world space.
35320
- * NOTE: The coordinate system used follows the glTF 2.0 specification, in meters.
35321
- * - Right handed coordinate system
35322
- * - +Y is UP
35323
- * - +X is left (facing forward)
35324
- * - +Z is forward
35325
- * @return The 3D position as vector (left, up, forward) in meters.
35326
+ * \addtogroup ITransformComponent
35327
+ @{
35328
+ @copydoc IPositionComponent::GetPosition()
35326
35329
  */
35327
35330
 
35328
35331
  getPosition(): Common.Vector3 {
@@ -35341,12 +35344,7 @@ export namespace Multiplayer {
35341
35344
  }
35342
35345
 
35343
35346
  /**
35344
- * @description Sets the position of the origin of this component in world space.
35345
- * NOTE: The coordinate system used follows the glTF 2.0 specification, in meters.
35346
- * - Right handed coordinate system
35347
- * - +Y is UP
35348
- * - +X is left (facing forward)
35349
- * - +Z is forward
35347
+ @copydoc IPositionComponent::SetPosition()
35350
35348
  */
35351
35349
 
35352
35350
  setPosition(value: Common.Vector3): void {
@@ -35359,7 +35357,8 @@ export namespace Multiplayer {
35359
35357
  }
35360
35358
 
35361
35359
  /**
35362
- * @description Gets the product ID associated with the ECommerce component.
35360
+ @}
35361
+ * @description Gets the product ID associated with the ECommerce component.
35363
35362
  * @return The product ID associated with the ECommerce component.
35364
35363
  */
35365
35364
 
@@ -35418,6 +35417,7 @@ export namespace Multiplayer {
35418
35417
  extends Multiplayer.ComponentBase
35419
35418
  implements
35420
35419
  Multiplayer.IEnableableComponent,
35420
+ Multiplayer.ITransformComponent,
35421
35421
  Multiplayer.IVisibleComponent,
35422
35422
  INativeResource
35423
35423
  {
@@ -35526,7 +35526,9 @@ export namespace Multiplayer {
35526
35526
  }
35527
35527
 
35528
35528
  /**
35529
- * @description Gets the 3D position in world coordinates where the origin of this component is located.
35529
+ * \addtogroup ITransformComponent
35530
+ @{
35531
+ @copydoc IPositionComponent::GetPosition()
35530
35532
  */
35531
35533
 
35532
35534
  getPosition(): Common.Vector3 {
@@ -35545,8 +35547,7 @@ export namespace Multiplayer {
35545
35547
  }
35546
35548
 
35547
35549
  /**
35548
- * @description Sets the 3D position in world coordinates where the origin of this component will be located.
35549
- * @param value - - The new 3D position assigned to the origin of this component.
35550
+ @copydoc IPositionComponent::SetPosition()
35550
35551
  */
35551
35552
 
35552
35553
  setPosition(value: Common.Vector3): void {
@@ -35559,7 +35560,7 @@ export namespace Multiplayer {
35559
35560
  }
35560
35561
 
35561
35562
  /**
35562
- * @description Gets the quaternion of the rotation of the origin of this component.
35563
+ @copydoc IRotationComponent::GetRotation()
35563
35564
  */
35564
35565
 
35565
35566
  getRotation(): Common.Vector4 {
@@ -35578,8 +35579,7 @@ export namespace Multiplayer {
35578
35579
  }
35579
35580
 
35580
35581
  /**
35581
- * @description Sets the quaternion of the rotation of the origin of this component.
35582
- * @param value - - The new rotation assigned to the origin of this component.
35582
+ @copydoc IRotationComponent::SetRotation()
35583
35583
  */
35584
35584
 
35585
35585
  setRotation(value: Common.Vector4): void {
@@ -35592,7 +35592,7 @@ export namespace Multiplayer {
35592
35592
  }
35593
35593
 
35594
35594
  /**
35595
- * @description Gets the 3D scale of this component.
35595
+ @copydoc IScaleComponent::GetScale()
35596
35596
  */
35597
35597
 
35598
35598
  getScale(): Common.Vector3 {
@@ -35611,8 +35611,7 @@ export namespace Multiplayer {
35611
35611
  }
35612
35612
 
35613
35613
  /**
35614
- * @description Sets the 3D scale of this component.
35615
- * @param value - - The new 3D scale assigned to this component.
35614
+ @copydoc IScaleComponent::SetScale()
35616
35615
  */
35617
35616
 
35618
35617
  setScale(value: Common.Vector3): void {
@@ -35625,7 +35624,39 @@ export namespace Multiplayer {
35625
35624
  }
35626
35625
 
35627
35626
  /**
35628
- * @description Gets the text that will be displayed by the component as hyperlink to the URL it redirects to.
35627
+ @copydoc ITransformComponent::GetTransform()
35628
+ */
35629
+
35630
+ getTransform(): Multiplayer.SpaceTransform {
35631
+ var _ret = Module._malloc(8);
35632
+
35633
+ Module.ccall(
35634
+ "csp_multiplayer_ExternalLinkSpaceComponent_GetTransformC_SpaceTransform",
35635
+ "void",
35636
+ ["number", "number"],
35637
+ [_ret, this.pointer],
35638
+ );
35639
+ var _nPtr = new Multiplayer.SpaceTransform(getNativePointer(_ret));
35640
+ Module._free(_ret);
35641
+ return _nPtr;
35642
+ }
35643
+
35644
+ /**
35645
+ @copydoc ITransformComonent::SetTransform()
35646
+ */
35647
+
35648
+ setTransform(value: Multiplayer.SpaceTransform): void {
35649
+ Module.ccall(
35650
+ "csp_multiplayer_ExternalLinkSpaceComponent_SetTransform_void_SpaceTransformRC",
35651
+ "void",
35652
+ ["number", "number"],
35653
+ [this.pointer, value.pointer],
35654
+ );
35655
+ }
35656
+
35657
+ /**
35658
+ @}
35659
+ * @description Gets the text that will be displayed by the component as hyperlink to the URL it redirects to.
35629
35660
  */
35630
35661
 
35631
35662
  getDisplayText(): string {
@@ -35769,7 +35800,10 @@ export namespace Multiplayer {
35769
35800
  */
35770
35801
  export class FiducialMarkerSpaceComponent
35771
35802
  extends Multiplayer.ComponentBase
35772
- implements Multiplayer.IVisibleComponent, INativeResource
35803
+ implements
35804
+ Multiplayer.ITransformComponent,
35805
+ Multiplayer.IVisibleComponent,
35806
+ INativeResource
35773
35807
  {
35774
35808
  /** @internal */
35775
35809
  constructor(pointer: NativePointer) {
@@ -35915,13 +35949,9 @@ export namespace Multiplayer {
35915
35949
  }
35916
35950
 
35917
35951
  /**
35918
- * @description Gets the position of the origin of this component in world space.
35919
- * NOTE: The coordinate system used follows the glTF 2.0 specification, in meters.
35920
- * - Right handed coordinate system
35921
- * - +Y is UP
35922
- * - +X is left (facing forward)
35923
- * - +Z is forward
35924
- * @return The 3D position as vector (left, up, forward) in meters.
35952
+ * \addtogroup ITransformComponent
35953
+ @{
35954
+ @copydoc IPositionComponent::GetPosition()
35925
35955
  */
35926
35956
 
35927
35957
  getPosition(): Common.Vector3 {
@@ -35940,12 +35970,7 @@ export namespace Multiplayer {
35940
35970
  }
35941
35971
 
35942
35972
  /**
35943
- * @description Sets the position of the origin of this component in world space.
35944
- * NOTE: The coordinate system used follows the glTF 2.0 specification, in meters.
35945
- * - Right handed coordinate system
35946
- * - +Y is UP
35947
- * - +X is left (facing forward)
35948
- * - +Z is forward
35973
+ @copydoc IPositionComponent::SetPosition()
35949
35974
  */
35950
35975
 
35951
35976
  setPosition(value: Common.Vector3): void {
@@ -35958,15 +35983,7 @@ export namespace Multiplayer {
35958
35983
  }
35959
35984
 
35960
35985
  /**
35961
- * @description Gets a quaternion representing the rotation of the origin of this component, expressed in radians.
35962
- * NOTE: The coordinate system respects the following conventions:
35963
- * - Right handed coordinate system
35964
- * - Positive rotation is counterclockwise
35965
- * - The geographic North is along the positive Z axis (+Z) at an orientation of 0 degrees.
35966
- * - North: +Z
35967
- * - East: -X
35968
- * - South: -Z
35969
- * - West: +X
35986
+ @copydoc IRotationComponent::GetRotation()
35970
35987
  */
35971
35988
 
35972
35989
  getRotation(): Common.Vector4 {
@@ -35985,16 +36002,7 @@ export namespace Multiplayer {
35985
36002
  }
35986
36003
 
35987
36004
  /**
35988
- * @description Sets the rotation of the origin of this component according to the specified quaternion "Value", expressed in radians.
35989
- * NOTE: The coordinate system respects the following conventions:
35990
- * - Right handed coordinate system
35991
- * - Positive rotation is counterclockwise
35992
- * - The geographic North is along the positive Z axis (+Z) at an orientation of 0 degrees.
35993
- * - North: +Z
35994
- * - East: -X
35995
- * - South: -Z
35996
- * - West: +X
35997
- * @param value - The quaternion in radians to use as new rotation of this component.
36005
+ @copydoc IRotationComponent::SetRotation()
35998
36006
  */
35999
36007
 
36000
36008
  setRotation(value: Common.Vector4): void {
@@ -36007,13 +36015,7 @@ export namespace Multiplayer {
36007
36015
  }
36008
36016
 
36009
36017
  /**
36010
- * @description Gets the scale of the origin of this component in world space.
36011
- * NOTE: The coordinate system used follows the glTF 2.0 specification.
36012
- * - Right handed coordinate system
36013
- * - +Y is UP
36014
- * - +X is left (facing forward)
36015
- * - +Z is forward
36016
- * @return The 3D scale as vector (left, up, forward).
36018
+ @copydoc IScaleComponent::GetScale()
36017
36019
  */
36018
36020
 
36019
36021
  getScale(): Common.Vector3 {
@@ -36032,13 +36034,7 @@ export namespace Multiplayer {
36032
36034
  }
36033
36035
 
36034
36036
  /**
36035
- * @description Sets the scale of the origin of this component in world space to the specified "Value".
36036
- * @param value - The new value expressed as vector (left, up, forward).
36037
- * NOTE: The coordinate system used follows the glTF 2.0 specification.
36038
- * - Right handed coordinate system
36039
- * - +Y is UP
36040
- * - +X is left (facing forward)
36041
- * - +Z is forward
36037
+ @copydoc IScaleComponent::SetScale()
36042
36038
  */
36043
36039
 
36044
36040
  setScale(value: Common.Vector3): void {
@@ -36051,6 +36047,38 @@ export namespace Multiplayer {
36051
36047
  }
36052
36048
 
36053
36049
  /**
36050
+ @copydoc ITransformComponent::GetTransform()
36051
+ */
36052
+
36053
+ getTransform(): Multiplayer.SpaceTransform {
36054
+ var _ret = Module._malloc(8);
36055
+
36056
+ Module.ccall(
36057
+ "csp_multiplayer_FiducialMarkerSpaceComponent_GetTransformC_SpaceTransform",
36058
+ "void",
36059
+ ["number", "number"],
36060
+ [_ret, this.pointer],
36061
+ );
36062
+ var _nPtr = new Multiplayer.SpaceTransform(getNativePointer(_ret));
36063
+ Module._free(_ret);
36064
+ return _nPtr;
36065
+ }
36066
+
36067
+ /**
36068
+ @copydoc ITransformComonent::SetTransform()
36069
+ */
36070
+
36071
+ setTransform(value: Multiplayer.SpaceTransform): void {
36072
+ Module.ccall(
36073
+ "csp_multiplayer_FiducialMarkerSpaceComponent_SetTransform_void_SpaceTransformRC",
36074
+ "void",
36075
+ ["number", "number"],
36076
+ [this.pointer, value.pointer],
36077
+ );
36078
+ }
36079
+
36080
+ /**
36081
+ @}
36054
36082
  * \addtogroup IVisibleComponent
36055
36083
  @{
36056
36084
  @copydoc IVisibleComponent::GetIsVisible()
@@ -36131,8 +36159,9 @@ export namespace Multiplayer {
36131
36159
  export class FogSpaceComponent
36132
36160
  extends Multiplayer.ComponentBase
36133
36161
  implements
36134
- Multiplayer.IVisibleComponent,
36135
36162
  Multiplayer.IThirdPartyComponentRef,
36163
+ Multiplayer.ITransformComponent,
36164
+ Multiplayer.IVisibleComponent,
36136
36165
  INativeResource
36137
36166
  {
36138
36167
  /** @internal */
@@ -36200,13 +36229,9 @@ export namespace Multiplayer {
36200
36229
  }
36201
36230
 
36202
36231
  /**
36203
- * @description Gets the position of the origin of this component in world space.
36204
- * NOTE: The coordinate system used follows the glTF 2.0 specification, in meters.
36205
- * - Right handed coordinate system
36206
- * - +Y is UP
36207
- * - +X is left (facing forward)
36208
- * - +Z is forward
36209
- * @return The 3D position as vector (left, up, forward) in meters.
36232
+ * \addtogroup ITransformComponent
36233
+ @{
36234
+ @copydoc IPositionComponent::GetPosition()
36210
36235
  */
36211
36236
 
36212
36237
  getPosition(): Common.Vector3 {
@@ -36225,12 +36250,7 @@ export namespace Multiplayer {
36225
36250
  }
36226
36251
 
36227
36252
  /**
36228
- * @description Sets the position of the origin of this component in world space.
36229
- * NOTE: The coordinate system used follows the glTF 2.0 specification, in meters.
36230
- * - Right handed coordinate system
36231
- * - +Y is UP
36232
- * - +X is left (facing forward)
36233
- * - +Z is forward
36253
+ @copydoc IPositionComponent::SetPosition()
36234
36254
  */
36235
36255
 
36236
36256
  setPosition(value: Common.Vector3): void {
@@ -36243,15 +36263,7 @@ export namespace Multiplayer {
36243
36263
  }
36244
36264
 
36245
36265
  /**
36246
- * @description Gets a quaternion representing the rotation of the origin of this component, expressed in radians.
36247
- * NOTE: The coordinate system respects the following conventions:
36248
- * - Right handed coordinate system
36249
- * - Positive rotation is counterclockwise
36250
- * - The geographic North is along the positive Z axis (+Z) at an orientation of 0 degrees.
36251
- * - North: +Z
36252
- * - East: -X
36253
- * - South: -Z
36254
- * - West: +X
36266
+ @copydoc IRotationComponent::GetRotation()
36255
36267
  */
36256
36268
 
36257
36269
  getRotation(): Common.Vector4 {
@@ -36270,16 +36282,7 @@ export namespace Multiplayer {
36270
36282
  }
36271
36283
 
36272
36284
  /**
36273
- * @description Sets the rotation of the origin of this component according to the specified quaternion "Value", expressed in radians.
36274
- * NOTE: The coordinate system respects the following conventions:
36275
- * - Right handed coordinate system
36276
- * - Positive rotation is counterclockwise
36277
- * - The geographic North is along the positive Z axis (+Z) at an orientation of 0 degrees.
36278
- * - North: +Z
36279
- * - East: -X
36280
- * - South: -Z
36281
- * - West: +X
36282
- * @param value - The quaternion in radians to use as new rotation of this component.
36285
+ @copydoc IRotationComponent::SetRotation()
36283
36286
  */
36284
36287
 
36285
36288
  setRotation(value: Common.Vector4): void {
@@ -36292,13 +36295,7 @@ export namespace Multiplayer {
36292
36295
  }
36293
36296
 
36294
36297
  /**
36295
- * @description Gets the scale of the origin of this component in world space.
36296
- * NOTE: The coordinate system used follows the glTF 2.0 specification.
36297
- * - Right handed coordinate system
36298
- * - +Y is UP
36299
- * - +X is left (facing forward)
36300
- * - +Z is forward
36301
- * @return The 3D scale as vector (left, up, forward).
36298
+ @copydoc IScaleComponent::GetScale()
36302
36299
  */
36303
36300
 
36304
36301
  getScale(): Common.Vector3 {
@@ -36317,13 +36314,7 @@ export namespace Multiplayer {
36317
36314
  }
36318
36315
 
36319
36316
  /**
36320
- * @description Sets the scale of the origin of this component in world space to the specified "Value".
36321
- * @param value - The new value expressed as vector (left, up, forward).
36322
- * NOTE: The coordinate system used follows the glTF 2.0 specification.
36323
- * - Right handed coordinate system
36324
- * - +Y is UP
36325
- * - +X is left (facing forward)
36326
- * - +Z is forward
36317
+ @copydoc IScaleComponent::SetScale()
36327
36318
  */
36328
36319
 
36329
36320
  setScale(value: Common.Vector3): void {
@@ -36336,9 +36327,41 @@ export namespace Multiplayer {
36336
36327
  }
36337
36328
 
36338
36329
  /**
36339
- * @description Get start sistance
36340
- * Note: Distance from camera that the fog will start.
36341
- * Note: 0 = this property has no effect.
36330
+ @copydoc ITransformComponent::GetTransform()
36331
+ */
36332
+
36333
+ getTransform(): Multiplayer.SpaceTransform {
36334
+ var _ret = Module._malloc(8);
36335
+
36336
+ Module.ccall(
36337
+ "csp_multiplayer_FogSpaceComponent_GetTransformC_SpaceTransform",
36338
+ "void",
36339
+ ["number", "number"],
36340
+ [_ret, this.pointer],
36341
+ );
36342
+ var _nPtr = new Multiplayer.SpaceTransform(getNativePointer(_ret));
36343
+ Module._free(_ret);
36344
+ return _nPtr;
36345
+ }
36346
+
36347
+ /**
36348
+ @copydoc ITransformComonent::SetTransform()
36349
+ */
36350
+
36351
+ setTransform(value: Multiplayer.SpaceTransform): void {
36352
+ Module.ccall(
36353
+ "csp_multiplayer_FogSpaceComponent_SetTransform_void_SpaceTransformRC",
36354
+ "void",
36355
+ ["number", "number"],
36356
+ [this.pointer, value.pointer],
36357
+ );
36358
+ }
36359
+
36360
+ /**
36361
+ @}
36362
+ * @description Get start sistance
36363
+ * Note: Distance from camera that the fog will start.
36364
+ * Note: 0 = this property has no effect.
36342
36365
  * @return Current start distance
36343
36366
  */
36344
36367
 
@@ -36695,7 +36718,10 @@ export namespace Multiplayer {
36695
36718
  */
36696
36719
  export class ImageSpaceComponent
36697
36720
  extends Multiplayer.ComponentBase
36698
- implements Multiplayer.IVisibleComponent, INativeResource
36721
+ implements
36722
+ Multiplayer.ITransformComponent,
36723
+ Multiplayer.IVisibleComponent,
36724
+ INativeResource
36699
36725
  {
36700
36726
  /** @internal */
36701
36727
  constructor(pointer: NativePointer) {
@@ -36839,13 +36865,9 @@ export namespace Multiplayer {
36839
36865
  }
36840
36866
 
36841
36867
  /**
36842
- * @description Gets the position of the origin of this component in world space.
36843
- * NOTE: The coordinate system used follows the glTF 2.0 specification, in meters.
36844
- * - Right handed coordinate system
36845
- * - +Y is UP
36846
- * - +X is left (facing forward)
36847
- * - +Z is forward
36848
- * @return The 3D position as vector (left, up, forward) in meters.
36868
+ * \addtogroup ITransformComponent
36869
+ @{
36870
+ @copydoc IPositionComponent::GetPosition()
36849
36871
  */
36850
36872
 
36851
36873
  getPosition(): Common.Vector3 {
@@ -36864,12 +36886,7 @@ export namespace Multiplayer {
36864
36886
  }
36865
36887
 
36866
36888
  /**
36867
- * @description Sets the position of the origin of this component in world space.
36868
- * NOTE: The coordinate system used follows the glTF 2.0 specification, in meters.
36869
- * - Right handed coordinate system
36870
- * - +Y is UP
36871
- * - +X is left (facing forward)
36872
- * - +Z is forward
36889
+ @copydoc IPositionComponent::SetPosition()
36873
36890
  */
36874
36891
 
36875
36892
  setPosition(value: Common.Vector3): void {
@@ -36882,15 +36899,7 @@ export namespace Multiplayer {
36882
36899
  }
36883
36900
 
36884
36901
  /**
36885
- * @description Gets a quaternion representing the rotation of the origin of this component, expressed in radians.
36886
- * NOTE: The coordinate system respects the following conventions:
36887
- * - Right handed coordinate system
36888
- * - Positive rotation is counterclockwise
36889
- * - The geographic North is along the positive Z axis (+Z) at an orientation of 0 degrees.
36890
- * - North: +Z
36891
- * - East: -X
36892
- * - South: -Z
36893
- * - West: +X
36902
+ @copydoc IRotationComponent::GetRotation()
36894
36903
  */
36895
36904
 
36896
36905
  getRotation(): Common.Vector4 {
@@ -36909,16 +36918,7 @@ export namespace Multiplayer {
36909
36918
  }
36910
36919
 
36911
36920
  /**
36912
- * @description Sets the rotation of the origin of this component according to the specified quaternion "Value", expressed in radians.
36913
- * NOTE: The coordinate system respects the following conventions:
36914
- * - Right handed coordinate system
36915
- * - Positive rotation is counterclockwise
36916
- * - The geographic North is along the positive Z axis (+Z) at an orientation of 0 degrees.
36917
- * - North: +Z
36918
- * - East: -X
36919
- * - South: -Z
36920
- * - West: +X
36921
- * @param value - The quaternion in radians to use as new rotation of this component.
36921
+ @copydoc IRotationComponent::SetRotation()
36922
36922
  */
36923
36923
 
36924
36924
  setRotation(value: Common.Vector4): void {
@@ -36931,13 +36931,7 @@ export namespace Multiplayer {
36931
36931
  }
36932
36932
 
36933
36933
  /**
36934
- * @description Gets the scale of the origin of this component in world space.
36935
- * NOTE: The coordinate system used follows the glTF 2.0 specification.
36936
- * - Right handed coordinate system
36937
- * - +Y is UP
36938
- * - +X is left (facing forward)
36939
- * - +Z is forward
36940
- * @return The 3D scale as vector (left, up, forward).
36934
+ @copydoc IScaleComponent::GetScale()
36941
36935
  */
36942
36936
 
36943
36937
  getScale(): Common.Vector3 {
@@ -36956,13 +36950,7 @@ export namespace Multiplayer {
36956
36950
  }
36957
36951
 
36958
36952
  /**
36959
- * @description Sets the scale of the origin of this component in world space to the specified "Value".
36960
- * @param value - The new value expressed as vector (left, up, forward).
36961
- * NOTE: The coordinate system used follows the glTF 2.0 specification.
36962
- * - Right handed coordinate system
36963
- * - +Y is UP
36964
- * - +X is left (facing forward)
36965
- * - +Z is forward
36953
+ @copydoc IScaleComponent::SetScale()
36966
36954
  */
36967
36955
 
36968
36956
  setScale(value: Common.Vector3): void {
@@ -36975,7 +36963,39 @@ export namespace Multiplayer {
36975
36963
  }
36976
36964
 
36977
36965
  /**
36978
- * @description Gets the billboard mode used by this image component.
36966
+ @copydoc ITransformComponent::GetTransform()
36967
+ */
36968
+
36969
+ getTransform(): Multiplayer.SpaceTransform {
36970
+ var _ret = Module._malloc(8);
36971
+
36972
+ Module.ccall(
36973
+ "csp_multiplayer_ImageSpaceComponent_GetTransformC_SpaceTransform",
36974
+ "void",
36975
+ ["number", "number"],
36976
+ [_ret, this.pointer],
36977
+ );
36978
+ var _nPtr = new Multiplayer.SpaceTransform(getNativePointer(_ret));
36979
+ Module._free(_ret);
36980
+ return _nPtr;
36981
+ }
36982
+
36983
+ /**
36984
+ @copydoc ITransformComonent::SetTransform()
36985
+ */
36986
+
36987
+ setTransform(value: Multiplayer.SpaceTransform): void {
36988
+ Module.ccall(
36989
+ "csp_multiplayer_ImageSpaceComponent_SetTransform_void_SpaceTransformRC",
36990
+ "void",
36991
+ ["number", "number"],
36992
+ [this.pointer, value.pointer],
36993
+ );
36994
+ }
36995
+
36996
+ /**
36997
+ @}
36998
+ * @description Gets the billboard mode used by this image component.
36979
36999
  * @return The billboard mode used by this image component.
36980
37000
  */
36981
37001
 
@@ -37145,8 +37165,10 @@ export namespace Multiplayer {
37145
37165
  export class LightSpaceComponent
37146
37166
  extends Multiplayer.ComponentBase
37147
37167
  implements
37148
- Multiplayer.IVisibleComponent,
37168
+ Multiplayer.IPositionComponent,
37169
+ Multiplayer.IRotationComponent,
37149
37170
  Multiplayer.IThirdPartyComponentRef,
37171
+ Multiplayer.IVisibleComponent,
37150
37172
  INativeResource
37151
37173
  {
37152
37174
  /** @internal */
@@ -37410,13 +37432,9 @@ export namespace Multiplayer {
37410
37432
  }
37411
37433
 
37412
37434
  /**
37413
- * @description Gets the position of the origin of this component in world space.
37414
- * NOTE: The coordinate system used follows the glTF 2.0 specification, in meters.
37415
- * - Right handed coordinate system
37416
- * - +Y is UP
37417
- * - +X is left (facing forward)
37418
- * - +Z is forward
37419
- * @return The 3D position as vector (left, up, forward) in meters.
37435
+ * \addtogroup IPositionComponent
37436
+ @{
37437
+ @copydoc IPositionComponent::GetPosition()
37420
37438
  */
37421
37439
 
37422
37440
  getPosition(): Common.Vector3 {
@@ -37435,12 +37453,7 @@ export namespace Multiplayer {
37435
37453
  }
37436
37454
 
37437
37455
  /**
37438
- * @description Sets the position of the origin of this component in world space.
37439
- * NOTE: The coordinate system used follows the glTF 2.0 specification, in meters.
37440
- * - Right handed coordinate system
37441
- * - +Y is UP
37442
- * - +X is left (facing forward)
37443
- * - +Z is forward
37456
+ @copydoc IPositionComponent::SetPosition()
37444
37457
  */
37445
37458
 
37446
37459
  setPosition(value: Common.Vector3): void {
@@ -37453,15 +37466,10 @@ export namespace Multiplayer {
37453
37466
  }
37454
37467
 
37455
37468
  /**
37456
- * @description Gets a quaternion representing the rotation of the origin of this component, expressed in radians.
37457
- * NOTE: The coordinate system respects the following conventions:
37458
- * - Right handed coordinate system
37459
- * - Positive rotation is counterclockwise
37460
- * - The geographic North is along the positive Z axis (+Z) at an orientation of 0 degrees.
37461
- * - North: +Z
37462
- * - East: -X
37463
- * - South: -Z
37464
- * - West: +X
37469
+ @}
37470
+ * \addtogroup IRotationComponent
37471
+ @{
37472
+ @copydoc IRotationComponent::GetRotation()
37465
37473
  */
37466
37474
 
37467
37475
  getRotation(): Common.Vector4 {
@@ -37480,16 +37488,7 @@ export namespace Multiplayer {
37480
37488
  }
37481
37489
 
37482
37490
  /**
37483
- * @description Sets the rotation of the origin of this component according to the specified quaternion "Value", expressed in radians.
37484
- * NOTE: The coordinate system respects the following conventions:
37485
- * - Right handed coordinate system
37486
- * - Positive rotation is counterclockwise
37487
- * - The geographic North is along the positive Z axis (+Z) at an orientation of 0 degrees.
37488
- * - North: +Z
37489
- * - East: -X
37490
- * - South: -Z
37491
- * - West: +X
37492
- * @param value - The quaternion in radians to use as new rotation of this component.
37491
+ @copydoc IRotationComponent::SetRotation()
37493
37492
  */
37494
37493
 
37495
37494
  setRotation(value: Common.Vector4): void {
@@ -37502,7 +37501,8 @@ export namespace Multiplayer {
37502
37501
  }
37503
37502
 
37504
37503
  /**
37505
- * @description Gets the ID of the asset used for the light cookie of this light component.
37504
+ @}
37505
+ * @description Gets the ID of the asset used for the light cookie of this light component.
37506
37506
  * @return The ID of the asset used for the light cookie of this light component.
37507
37507
  */
37508
37508
 
@@ -37713,7 +37713,10 @@ export namespace Multiplayer {
37713
37713
  export namespace Multiplayer {
37714
37714
  export class PortalSpaceComponent
37715
37715
  extends Multiplayer.ComponentBase
37716
- implements Multiplayer.IEnableableComponent, INativeResource
37716
+ implements
37717
+ Multiplayer.IEnableableComponent,
37718
+ Multiplayer.IPositionComponent,
37719
+ INativeResource
37717
37720
  {
37718
37721
  /** @internal */
37719
37722
  constructor(pointer: NativePointer) {
@@ -37791,13 +37794,9 @@ export namespace Multiplayer {
37791
37794
  }
37792
37795
 
37793
37796
  /**
37794
- * @description Gets the position of the origin of this component in world space.
37795
- * NOTE: The coordinate system used follows the glTF 2.0 specification, in meters.
37796
- * - Right handed coordinate system
37797
- * - +Y is UP
37798
- * - +X is left (facing forward)
37799
- * - +Z is forward
37800
- * @return The 3D position as vector (left, up, forward) in meters.
37797
+ * \addtogroup IPositionComponent
37798
+ @{
37799
+ @copydoc IPositionComponent::GetPosition()
37801
37800
  */
37802
37801
 
37803
37802
  getPosition(): Common.Vector3 {
@@ -37816,12 +37815,7 @@ export namespace Multiplayer {
37816
37815
  }
37817
37816
 
37818
37817
  /**
37819
- * @description Sets the position of the origin of this component in world space.
37820
- * NOTE: The coordinate system used follows the glTF 2.0 specification, in meters.
37821
- * - Right handed coordinate system
37822
- * - +Y is UP
37823
- * - +X is left (facing forward)
37824
- * - +Z is forward
37818
+ @copydoc IPositionComponent::SetPosition()
37825
37819
  */
37826
37820
 
37827
37821
  setPosition(value: Common.Vector3): void {
@@ -37834,7 +37828,8 @@ export namespace Multiplayer {
37834
37828
  }
37835
37829
 
37836
37830
  /**
37837
- * @description Gets the radius of this portal.
37831
+ @}
37832
+ * @description Gets the radius of this portal.
37838
37833
  * @return The radius of this portal.
37839
37834
  */
37840
37835
 
@@ -37959,7 +37954,11 @@ export namespace Multiplayer {
37959
37954
  */
37960
37955
  export class ReflectionSpaceComponent
37961
37956
  extends Multiplayer.ComponentBase
37962
- implements Multiplayer.IThirdPartyComponentRef, INativeResource
37957
+ implements
37958
+ Multiplayer.IPositionComponent,
37959
+ Multiplayer.IScaleComponent,
37960
+ Multiplayer.IThirdPartyComponentRef,
37961
+ INativeResource
37963
37962
  {
37964
37963
  /** @internal */
37965
37964
  constructor(pointer: NativePointer) {
@@ -38104,7 +38103,9 @@ export namespace Multiplayer {
38104
38103
  }
38105
38104
 
38106
38105
  /**
38107
- * @description Position of the Reflection component.
38106
+ * \addtogroup IPositionComponent
38107
+ @{
38108
+ @copydoc IPositionComponent::GetPosition()
38108
38109
  */
38109
38110
 
38110
38111
  getPosition(): Common.Vector3 {
@@ -38123,8 +38124,7 @@ export namespace Multiplayer {
38123
38124
  }
38124
38125
 
38125
38126
  /**
38126
- * @description Set the position of the Reflection component.
38127
- * @param value - Position of the Reflection Component.
38127
+ @copydoc IPositionComponent::SetPosition()
38128
38128
  */
38129
38129
 
38130
38130
  setPosition(value: Common.Vector3): void {
@@ -38137,28 +38137,10 @@ export namespace Multiplayer {
38137
38137
  }
38138
38138
 
38139
38139
  /**
38140
- * @description Rotation of the Reflection component.
38141
- * @return Will return an Identity Quaternion (0, 0, 0, 1).
38142
- */
38143
-
38144
- getRotation(): Common.Vector4 {
38145
- var _ret = Module._malloc(8);
38146
-
38147
- Module.ccall(
38148
- "csp_multiplayer_ReflectionSpaceComponent_GetRotationC_Vector4RC",
38149
- "void",
38150
- ["number", "number"],
38151
- [_ret, this.pointer],
38152
- );
38153
- var _nPtr = new Common.Vector4(getNativePointer(_ret));
38154
- Module._free(_ret);
38155
-
38156
- return _nPtr;
38157
- }
38158
-
38159
- /**
38160
- * @description Scale of the Reflection components spatial extents over which the reflection should apply.
38161
- * UnitBox/Sphere * Scale == Spatial Extents.
38140
+ @}
38141
+ * \addtogroup IScaleComponent
38142
+ @{
38143
+ @copydoc IScaleComponent::GetScale()
38162
38144
  */
38163
38145
 
38164
38146
  getScale(): Common.Vector3 {
@@ -38177,9 +38159,7 @@ export namespace Multiplayer {
38177
38159
  }
38178
38160
 
38179
38161
  /**
38180
- * @description Set the scale of the Reflection components spatial extents.
38181
- * @param value - Scale extents of the Reflection Component.
38182
- * UnitBox/Sphere * Scale == Spatial Extents.
38162
+ @copydoc IScaleComponent::SetScale()
38183
38163
  */
38184
38164
 
38185
38165
  setScale(value: Common.Vector3): void {
@@ -38192,9 +38172,10 @@ export namespace Multiplayer {
38192
38172
  }
38193
38173
 
38194
38174
  /**
38195
- * @description Get the reflection shape enum value.
38196
- * ReflectionShape.UnitBox: Projects a texture in a planar fashion from all six directions (like an inward facing cube).
38197
- * ReflectionShape.UnitSphere: Warps the texture into a spherical shape and projects it onto a surface.
38175
+ @}
38176
+ * @description Get the reflection shape enum value.
38177
+ * ReflectionShape.UnitBox: Projects a texture in a planar fashion from all six directions (like an inward facing cube).
38178
+ * ReflectionShape.UnitSphere: Warps the texture into a spherical shape and projects it onto a surface.
38198
38179
  * @return Enum specifying whether the captured reflections are box projected (UnitCube) or spherical projected (UnitSphere).
38199
38180
  */
38200
38181
 
@@ -38560,11 +38541,11 @@ export namespace Multiplayer {
38560
38541
  export class StaticModelSpaceComponent
38561
38542
  extends Multiplayer.ComponentBase
38562
38543
  implements
38563
- Multiplayer.ITransformComponent,
38564
- Multiplayer.IVisibleComponent,
38565
38544
  Multiplayer.IExternalResourceComponent,
38566
- Multiplayer.IThirdPartyComponentRef,
38567
38545
  Multiplayer.IShadowCasterComponent,
38546
+ Multiplayer.IThirdPartyComponentRef,
38547
+ Multiplayer.ITransformComponent,
38548
+ Multiplayer.IVisibleComponent,
38568
38549
  INativeResource
38569
38550
  {
38570
38551
  /** @internal */
@@ -38603,6 +38584,10 @@ export namespace Multiplayer {
38603
38584
  return new StaticModelSpaceComponent(_nPtr);
38604
38585
  }
38605
38586
 
38587
+ /** @deprecated
38588
+ Due to the introduction of LODs it doesn't make sense to set a specific asset anymore
38589
+ */
38590
+
38606
38591
  getExternalResourceAssetId(): string {
38607
38592
  let _result = Module.ccall(
38608
38593
  "csp_multiplayer_StaticModelSpaceComponent_GetExternalResourceAssetIdC_StringRC",
@@ -38619,6 +38604,10 @@ export namespace Multiplayer {
38619
38604
  return _result;
38620
38605
  }
38621
38606
 
38607
+ /** @deprecated
38608
+ Due to the introduction of LODs it doesn't make sense to set a specific asset anymore
38609
+ */
38610
+
38622
38611
  setExternalResourceAssetId(value: string): void {
38623
38612
  Module.ccall(
38624
38613
  "csp_multiplayer_StaticModelSpaceComponent_SetExternalResourceAssetId_void_StringRC",
@@ -38943,8 +38932,9 @@ export namespace Multiplayer {
38943
38932
  export class VideoPlayerSpaceComponent
38944
38933
  extends Multiplayer.ComponentBase
38945
38934
  implements
38946
- Multiplayer.IVisibleComponent,
38947
38935
  Multiplayer.IEnableableComponent,
38936
+ Multiplayer.ITransformComponent,
38937
+ Multiplayer.IVisibleComponent,
38948
38938
  INativeResource
38949
38939
  {
38950
38940
  /** @internal */
@@ -39126,13 +39116,9 @@ export namespace Multiplayer {
39126
39116
  }
39127
39117
 
39128
39118
  /**
39129
- * @description Gets the position of the origin of this component in world space.
39130
- * NOTE: The coordinate system used follows the glTF 2.0 specification, in meters.
39131
- * - Right handed coordinate system
39132
- * - +Y is UP
39133
- * - +X is left (facing forward)
39134
- * - +Z is forward
39135
- * @return The 3D position as vector (left, up, forward) in meters.
39119
+ * \addtogroup ITransformComponent
39120
+ @{
39121
+ @copydoc IPositionComponent::GetPosition()
39136
39122
  */
39137
39123
 
39138
39124
  getPosition(): Common.Vector3 {
@@ -39151,12 +39137,7 @@ export namespace Multiplayer {
39151
39137
  }
39152
39138
 
39153
39139
  /**
39154
- * @description Sets the position of the origin of this component in world space.
39155
- * NOTE: The coordinate system used follows the glTF 2.0 specification, in meters.
39156
- * - Right handed coordinate system
39157
- * - +Y is UP
39158
- * - +X is left (facing forward)
39159
- * - +Z is forward
39140
+ @copydoc IPositionComponent::SetPosition()
39160
39141
  */
39161
39142
 
39162
39143
  setPosition(value: Common.Vector3): void {
@@ -39169,15 +39150,7 @@ export namespace Multiplayer {
39169
39150
  }
39170
39151
 
39171
39152
  /**
39172
- * @description Gets a quaternion representing the rotation of the origin of this component, expressed in radians.
39173
- * NOTE: The coordinate system respects the following conventions:
39174
- * - Right handed coordinate system
39175
- * - Positive rotation is counterclockwise
39176
- * - The geographic North is along the positive Z axis (+Z) at an orientation of 0 degrees.
39177
- * - North: +Z
39178
- * - East: -X
39179
- * - South: -Z
39180
- * - West: +X
39153
+ @copydoc IRotationComponent::GetRotation()
39181
39154
  */
39182
39155
 
39183
39156
  getRotation(): Common.Vector4 {
@@ -39196,16 +39169,7 @@ export namespace Multiplayer {
39196
39169
  }
39197
39170
 
39198
39171
  /**
39199
- * @description Sets the rotation of the origin of this component according to the specified quaternion "Value", expressed in radians.
39200
- * NOTE: The coordinate system respects the following conventions:
39201
- * - Right handed coordinate system
39202
- * - Positive rotation is counterclockwise
39203
- * - The geographic North is along the positive Z axis (+Z) at an orientation of 0 degrees.
39204
- * - North: +Z
39205
- * - East: -X
39206
- * - South: -Z
39207
- * - West: +X
39208
- * @param value - The quaternion in radians to use as new rotation of this component.
39172
+ @copydoc IRotationComponent::SetRotation()
39209
39173
  */
39210
39174
 
39211
39175
  setRotation(value: Common.Vector4): void {
@@ -39218,13 +39182,7 @@ export namespace Multiplayer {
39218
39182
  }
39219
39183
 
39220
39184
  /**
39221
- * @description Gets the scale of the origin of this component in world space.
39222
- * NOTE: The coordinate system used follows the glTF 2.0 specification.
39223
- * - Right handed coordinate system
39224
- * - +Y is UP
39225
- * - +X is left (facing forward)
39226
- * - +Z is forward
39227
- * @return The 3D scale as vector (left, up, forward).
39185
+ @copydoc IScaleComponent::GetScale()
39228
39186
  */
39229
39187
 
39230
39188
  getScale(): Common.Vector3 {
@@ -39243,13 +39201,7 @@ export namespace Multiplayer {
39243
39201
  }
39244
39202
 
39245
39203
  /**
39246
- * @description Sets the scale of the origin of this component in world space to the specified "Value".
39247
- * @param value - The new value expressed as vector (left, up, forward).
39248
- * NOTE: The coordinate system used follows the glTF 2.0 specification.
39249
- * - Right handed coordinate system
39250
- * - +Y is UP
39251
- * - +X is left (facing forward)
39252
- * - +Z is forward
39204
+ @copydoc IScaleComponent::SetScale()
39253
39205
  */
39254
39206
 
39255
39207
  setScale(value: Common.Vector3): void {
@@ -39262,7 +39214,39 @@ export namespace Multiplayer {
39262
39214
  }
39263
39215
 
39264
39216
  /**
39265
- * @description Checks if the playback state of this video player needs to be shared with other users through replication.
39217
+ @copydoc ITransformComponent::GetTransform()
39218
+ */
39219
+
39220
+ getTransform(): Multiplayer.SpaceTransform {
39221
+ var _ret = Module._malloc(8);
39222
+
39223
+ Module.ccall(
39224
+ "csp_multiplayer_VideoPlayerSpaceComponent_GetTransformC_SpaceTransform",
39225
+ "void",
39226
+ ["number", "number"],
39227
+ [_ret, this.pointer],
39228
+ );
39229
+ var _nPtr = new Multiplayer.SpaceTransform(getNativePointer(_ret));
39230
+ Module._free(_ret);
39231
+ return _nPtr;
39232
+ }
39233
+
39234
+ /**
39235
+ @copydoc ITransformComonent::SetTransform()
39236
+ */
39237
+
39238
+ setTransform(value: Multiplayer.SpaceTransform): void {
39239
+ Module.ccall(
39240
+ "csp_multiplayer_VideoPlayerSpaceComponent_SetTransform_void_SpaceTransformRC",
39241
+ "void",
39242
+ ["number", "number"],
39243
+ [this.pointer, value.pointer],
39244
+ );
39245
+ }
39246
+
39247
+ /**
39248
+ @}
39249
+ * @description Checks if the playback state of this video player needs to be shared with other users through replication.
39266
39250
  * @return True if the playback state of the video needs to be shared among all users, false otherwise.
39267
39251
  */
39268
39252
 
@@ -40630,6 +40614,15 @@ export namespace Systems {
40630
40614
  return _result;
40631
40615
  }
40632
40616
 
40617
+ setUri(value: string): void {
40618
+ Module.ccall(
40619
+ "csp_systems_UriResult_SetUri_void_StringRC",
40620
+ "void",
40621
+ ["number", "string"],
40622
+ [this.pointer, value],
40623
+ );
40624
+ }
40625
+
40633
40626
  delete(): void {
40634
40627
  if (this.ownsPointer && !this.disposed) {
40635
40628
  Module.ccall(
@@ -43627,48 +43620,6 @@ export namespace Systems {
43627
43620
  );
43628
43621
  }
43629
43622
 
43630
- static create(): MaintenanceInfoResult {
43631
- var _ptr = Module._malloc(8);
43632
- Module.ccall(
43633
- "csp_systems_MaintenanceInfoResult_Ctor",
43634
- "void",
43635
- ["number"],
43636
- [_ptr],
43637
- );
43638
- var _nPtr = getNativePointer(_ptr);
43639
-
43640
- return new MaintenanceInfoResult(_nPtr);
43641
- }
43642
-
43643
- static create_arg1(arg1: number): MaintenanceInfoResult {
43644
- var _ptr = Module._malloc(8);
43645
- Module.ccall(
43646
- "csp_systems_MaintenanceInfoResult_Ctor_voidP",
43647
- "void",
43648
- ["number", "void"],
43649
- [_ptr, arg1],
43650
- );
43651
- var _nPtr = getNativePointer(_ptr);
43652
-
43653
- return new MaintenanceInfoResult(_nPtr);
43654
- }
43655
-
43656
- static create_resCode_httpResCode(
43657
- resCode: Systems.EResultCode,
43658
- httpResCode: number,
43659
- ): MaintenanceInfoResult {
43660
- var _ptr = Module._malloc(8);
43661
- Module.ccall(
43662
- "csp_systems_MaintenanceInfoResult_Ctor_EResultCode_uint16_t",
43663
- "void",
43664
- ["number", "number", "number"],
43665
- [_ptr, resCode, httpResCode],
43666
- );
43667
- var _nPtr = getNativePointer(_ptr);
43668
-
43669
- return new MaintenanceInfoResult(_nPtr);
43670
- }
43671
-
43672
43623
  /**
43673
43624
  * @description Retrieves response data from the Maintenance Window Server
43674
43625
  * @return Return all maintenance information available in date order
@@ -44555,6 +44506,76 @@ export namespace Systems {
44555
44506
  }
44556
44507
  }
44557
44508
 
44509
+ export namespace Systems {
44510
+ /**
44511
+ * @description A result handler that is used to notify a user of an error while passing a String value.
44512
+ */
44513
+ export class AvatarInfoResult
44514
+ extends Systems.ResultBase
44515
+ implements INativeResource
44516
+ {
44517
+ /** @internal */
44518
+ constructor(pointer: NativePointer) {
44519
+ super(pointer);
44520
+ }
44521
+
44522
+ static fromResultBase(
44523
+ baseInstance: Systems.ResultBase,
44524
+ ): Systems.AvatarInfoResult {
44525
+ const nativeClassWrapper = baseInstance as unknown as NativeClassWrapper;
44526
+ return new Systems.AvatarInfoResult(
44527
+ new NativePointer(
44528
+ nativeClassWrapper.pointer,
44529
+ nativeClassWrapper.ownsPointer,
44530
+ ),
44531
+ );
44532
+ }
44533
+
44534
+ /**
44535
+ * @description A getter which returns the String passed via the result.
44536
+ */
44537
+
44538
+ getAvatarType(): Systems.AvatarType {
44539
+ let _result = Module.ccall(
44540
+ "csp_systems_AvatarInfoResult_GetAvatarTypeC_AvatarType",
44541
+ "number",
44542
+ ["number"],
44543
+ [this.pointer],
44544
+ );
44545
+
44546
+ return _result;
44547
+ }
44548
+
44549
+ getAvatarIdentifier(): Common.Variant {
44550
+ var _ret = Module._malloc(8);
44551
+
44552
+ Module.ccall(
44553
+ "csp_systems_AvatarInfoResult_GetAvatarIdentifierC_VariantRC",
44554
+ "void",
44555
+ ["number", "number"],
44556
+ [_ret, this.pointer],
44557
+ );
44558
+ var _nPtr = new Common.Variant(getNativePointer(_ret));
44559
+ Module._free(_ret);
44560
+
44561
+ return _nPtr;
44562
+ }
44563
+
44564
+ delete(): void {
44565
+ if (this.ownsPointer && !this.disposed) {
44566
+ Module.ccall(
44567
+ "csp_systems_AvatarInfoResult_Dtor",
44568
+ "void",
44569
+ ["number"],
44570
+ [this.pointer],
44571
+ );
44572
+
44573
+ this.disposed = true;
44574
+ }
44575
+ }
44576
+ }
44577
+ }
44578
+
44558
44579
  export namespace Systems {
44559
44580
  /**
44560
44581
  @ingroup Settings System
@@ -45155,6 +45176,90 @@ export namespace Systems {
45155
45176
 
45156
45177
  return _promise;
45157
45178
  }
45179
+
45180
+ /**
45181
+ * @description Sets the avatar type and identifier for a user.
45182
+ * @param inUserId - The ID of the user to set avatar info for.
45183
+ * @param inType - The type of avatar (predefined, Ready Player Me, or custom).
45184
+ * @param inIdentifier - A value used to identify or locate the avatar. Differs depending on the value of InType.
45185
+ * @param callback - Callback to call when task finishes.
45186
+ */
45187
+
45188
+ async setAvatarInfo(
45189
+ userId: string,
45190
+ type: Systems.AvatarType,
45191
+ identifier: Common.Variant,
45192
+ ): Promise<Systems.NullResult> {
45193
+ var _resolve;
45194
+
45195
+ var _promise = new Promise<Systems.NullResult>((_r) => {
45196
+ _resolve = _r;
45197
+ });
45198
+
45199
+ var _callbackPtr: number;
45200
+ var _callback = (_stateObject__: number, result) => {
45201
+ var _resultPtr = getNativePointer(result);
45202
+ var _resultInstance = new Systems.NullResult(_resultPtr);
45203
+
45204
+ if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
45205
+ return;
45206
+ }
45207
+
45208
+ _resolve(_resultInstance);
45209
+
45210
+ Module.removeFunction(_callbackPtr);
45211
+ };
45212
+
45213
+ _callbackPtr = Module.addFunction(_callback, "vii");
45214
+
45215
+ Module.ccall(
45216
+ "csp_systems_SettingsSystem_SetAvatarInfo_void_StringRC_AvatarType_VariantRC_NullResultCallback",
45217
+ "void",
45218
+ ["number", "string", "number", "number", "number", "number"],
45219
+ [this.pointer, userId, type, identifier.pointer, _callbackPtr, 0],
45220
+ );
45221
+
45222
+ return _promise;
45223
+ }
45224
+
45225
+ /**
45226
+ * @description Retrieves the avatar type and identifier for a user.
45227
+ * @param inUserId - The ID of the user to get avatar info for.
45228
+ * @param callback - Callback to call when task finishes.
45229
+ */
45230
+
45231
+ async getAvatarInfo(userId: string): Promise<Systems.AvatarInfoResult> {
45232
+ var _resolve;
45233
+
45234
+ var _promise = new Promise<Systems.AvatarInfoResult>((_r) => {
45235
+ _resolve = _r;
45236
+ });
45237
+
45238
+ var _callbackPtr: number;
45239
+ var _callback = (_stateObject__: number, result) => {
45240
+ var _resultPtr = getNativePointer(result);
45241
+ var _resultInstance = new Systems.AvatarInfoResult(_resultPtr);
45242
+
45243
+ if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
45244
+ return;
45245
+ }
45246
+
45247
+ _resolve(_resultInstance);
45248
+
45249
+ Module.removeFunction(_callbackPtr);
45250
+ };
45251
+
45252
+ _callbackPtr = Module.addFunction(_callback, "vii");
45253
+
45254
+ Module.ccall(
45255
+ "csp_systems_SettingsSystem_GetAvatarInfo_void_StringRC_AvatarInfoResultCallback",
45256
+ "void",
45257
+ ["number", "string", "number", "number"],
45258
+ [this.pointer, userId, _callbackPtr, 0],
45259
+ );
45260
+
45261
+ return _promise;
45262
+ }
45158
45263
  }
45159
45264
  }
45160
45265
 
@@ -49703,17 +49808,16 @@ export namespace Systems {
49703
49808
  }
49704
49809
 
49705
49810
  /**
49706
- * @description Log in to Magnopus Connected Services using a login token
49707
- * The login token can be obtained after using the Login API with credentials and having registered a callback through
49708
- * SetNewLoginTokenReceivedCallback. If the login is successful in the callback result the token and it's expiration time will be provided.
49709
- * @param userId - The user id associated with this login token
49710
- * @param loginToken - Token to be used for authenticating
49811
+ * @description Resume a previous session for the associated user ID using a refresh token
49812
+ * The refresh token can be obtained after registering a callback with `SetNewLoginTokenReceivedCallback` and logging in regularly.
49813
+ * @param userId - User ID for the previous session
49814
+ * @param refreshToken - Refresh token to be used for refreshing the authentication token
49711
49815
  * @param callback - Callback when asynchronous task finishes
49712
49816
  */
49713
49817
 
49714
- async loginWithToken(
49818
+ async refreshSession(
49715
49819
  userId: string,
49716
- loginToken: string,
49820
+ refreshToken: string,
49717
49821
  ): Promise<Systems.LoginStateResult> {
49718
49822
  var _resolve;
49719
49823
 
@@ -49738,10 +49842,10 @@ export namespace Systems {
49738
49842
  _callbackPtr = Module.addFunction(_callback, "vii");
49739
49843
 
49740
49844
  Module.ccall(
49741
- "csp_systems_UserSystem_LoginWithToken_void_StringRC_StringRC_LoginStateResultCallback",
49845
+ "csp_systems_UserSystem_RefreshSession_void_StringRC_StringRC_LoginStateResultCallback",
49742
49846
  "void",
49743
49847
  ["number", "string", "string", "number", "number"],
49744
- [this.pointer, userId, loginToken, _callbackPtr, 0],
49848
+ [this.pointer, userId, refreshToken, _callbackPtr, 0],
49745
49849
  );
49746
49850
 
49747
49851
  return _promise;
@@ -50276,7 +50380,7 @@ export namespace Systems {
50276
50380
  }
50277
50381
 
50278
50382
  /**
50279
- * @description Delete the user.
50383
+ * @description Delete the user. Note that you need permission to be able to delete the user (You can delete the user you are logged in as).
50280
50384
  * @param userId - Id of the user that will be deleted
50281
50385
  * @param callback - Callback when asynchronous task finishes
50282
50386
  */