connected-spaces-platform.web 4.17.1 → 4.19.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.
@@ -289,6 +289,11 @@ function csp_multiplayer_ConnectionStateFactory(nativePointer) {
289
289
  }
290
290
  ProxyClassFactories["csp_multiplayer_ConnectionState"] =
291
291
  csp_multiplayer_ConnectionStateFactory;
292
+ function csp_multiplayer_ErrorCodeFactory(nativePointer) {
293
+ return nativePointer.pointer;
294
+ }
295
+ ProxyClassFactories["csp_multiplayer_ErrorCode"] =
296
+ csp_multiplayer_ErrorCodeFactory;
292
297
  function csp_multiplayer_ReplicatedValueTypeFactory(nativePointer) {
293
298
  return nativePointer.pointer;
294
299
  }
@@ -558,6 +563,10 @@ function csp_systems_TierNamesFactory(nativePointer) {
558
563
  return nativePointer.pointer;
559
564
  }
560
565
  ProxyClassFactories["csp_systems_TierNames"] = csp_systems_TierNamesFactory;
566
+ function csp_systems_AvatarTypeFactory(nativePointer) {
567
+ return nativePointer.pointer;
568
+ }
569
+ ProxyClassFactories["csp_systems_AvatarType"] = csp_systems_AvatarTypeFactory;
561
570
  function csp_systems_SpaceAttributesFactory(nativePointer) {
562
571
  return nativePointer.pointer;
563
572
  }
@@ -660,11 +669,6 @@ function csp_multiplayer_ReplicatedValueFactory(nativePointer) {
660
669
  }
661
670
  ProxyClassFactories["csp_multiplayer_ReplicatedValue"] =
662
671
  csp_multiplayer_ReplicatedValueFactory;
663
- function csp_multiplayer_PropertyUpdateInfoFactory(nativePointer) {
664
- return new Multiplayer.PropertyUpdateInfo(nativePointer);
665
- }
666
- ProxyClassFactories["csp_multiplayer_PropertyUpdateInfo"] =
667
- csp_multiplayer_PropertyUpdateInfoFactory;
668
672
  function csp_multiplayer_ComponentUpdateInfoFactory(nativePointer) {
669
673
  return new Multiplayer.ComponentUpdateInfo(nativePointer);
670
674
  }
@@ -1228,6 +1232,11 @@ function csp_systems_SettingsCollectionResultFactory(nativePointer) {
1228
1232
  }
1229
1233
  ProxyClassFactories["csp_systems_SettingsCollectionResult"] =
1230
1234
  csp_systems_SettingsCollectionResultFactory;
1235
+ function csp_systems_AvatarInfoResultFactory(nativePointer) {
1236
+ return new Systems.AvatarInfoResult(nativePointer);
1237
+ }
1238
+ ProxyClassFactories["csp_systems_AvatarInfoResult"] =
1239
+ csp_systems_AvatarInfoResultFactory;
1231
1240
  function csp_systems_SettingsSystemFactory(nativePointer) {
1232
1241
  return new Systems.SettingsSystem(nativePointer);
1233
1242
  }
@@ -1338,36 +1347,11 @@ function csp_systems_LoginStateResultFactory(nativePointer) {
1338
1347
  }
1339
1348
  ProxyClassFactories["csp_systems_LoginStateResult"] =
1340
1349
  csp_systems_LoginStateResultFactory;
1341
- function csp_systems_LogoutResultFactory(nativePointer) {
1342
- return new Systems.LogoutResult(nativePointer);
1343
- }
1344
- ProxyClassFactories["csp_systems_LogoutResult"] =
1345
- csp_systems_LogoutResultFactory;
1346
- function csp_systems_LoginTokenReceivedFactory(nativePointer) {
1347
- return new Systems.LoginTokenReceived(nativePointer);
1348
- }
1349
- ProxyClassFactories["csp_systems_LoginTokenReceived"] =
1350
- csp_systems_LoginTokenReceivedFactory;
1351
- function csp_systems_PingResponseReceivedFactory(nativePointer) {
1352
- return new Systems.PingResponseReceived(nativePointer);
1353
- }
1354
- ProxyClassFactories["csp_systems_PingResponseReceived"] =
1355
- csp_systems_PingResponseReceivedFactory;
1356
- function csp_systems_AgoraUserTokenResultFactory(nativePointer) {
1357
- return new Systems.AgoraUserTokenResult(nativePointer);
1358
- }
1359
- ProxyClassFactories["csp_systems_AgoraUserTokenResult"] =
1360
- csp_systems_AgoraUserTokenResultFactory;
1361
- function csp_systems_CheckoutSessionUrlResultFactory(nativePointer) {
1362
- return new Systems.CheckoutSessionUrlResult(nativePointer);
1363
- }
1364
- ProxyClassFactories["csp_systems_CheckoutSessionUrlResult"] =
1365
- csp_systems_CheckoutSessionUrlResultFactory;
1366
- function csp_systems_CustomerPortalUrlResultFactory(nativePointer) {
1367
- return new Systems.CustomerPortalUrlResult(nativePointer);
1368
- }
1369
- ProxyClassFactories["csp_systems_CustomerPortalUrlResult"] =
1370
- csp_systems_CustomerPortalUrlResultFactory;
1350
+ function csp_systems_LoginTokenInfoResultFactory(nativePointer) {
1351
+ return new Systems.LoginTokenInfoResult(nativePointer);
1352
+ }
1353
+ ProxyClassFactories["csp_systems_LoginTokenInfoResult"] =
1354
+ csp_systems_LoginTokenInfoResultFactory;
1371
1355
  function csp_systems_ProfileFactory(nativePointer) {
1372
1356
  return new Systems.Profile(nativePointer);
1373
1357
  }
@@ -1430,6 +1414,11 @@ function csp_common_Array_csp_systems_AssetCollectionFactory(nativePointer) {
1430
1414
  }
1431
1415
  ProxyClassFactories["csp_common_Array_csp_systems_AssetCollection"] =
1432
1416
  csp_common_Array_csp_systems_AssetCollectionFactory;
1417
+ function csp_common_Array_csp_systems_EAssetCollectionTypeFactory(nativePointer) {
1418
+ return new Common.Array(nativePointer, csp_systems_EAssetCollectionTypeFactory, "csp_systems_EAssetCollectionType");
1419
+ }
1420
+ ProxyClassFactories["csp_common_Array_csp_systems_EAssetCollectionType"] =
1421
+ csp_common_Array_csp_systems_EAssetCollectionTypeFactory;
1433
1422
  function csp_common_Array_csp_systems_EAssetTypeFactory(nativePointer) {
1434
1423
  return new Common.Array(nativePointer, csp_systems_EAssetTypeFactory, "csp_systems_EAssetType");
1435
1424
  }
@@ -1678,7 +1667,7 @@ export var Multiplayer;
1678
1667
  })(Multiplayer || (Multiplayer = {}));
1679
1668
  (function (Multiplayer) {
1680
1669
  /**
1681
- * @description Enum used to specify the current state of the muiltiplayer connection.
1670
+ * @description Enum used to specify the current state of the multiplayer connection.
1682
1671
  */
1683
1672
  let ConnectionState;
1684
1673
  (function (ConnectionState) {
@@ -1688,6 +1677,19 @@ export var Multiplayer;
1688
1677
  ConnectionState[ConnectionState["Disconnected"] = 3] = "Disconnected";
1689
1678
  })(ConnectionState = Multiplayer.ConnectionState || (Multiplayer.ConnectionState = {}));
1690
1679
  })(Multiplayer || (Multiplayer = {}));
1680
+ (function (Multiplayer) {
1681
+ /**
1682
+ * @description Enum used to indicate the failure state of a multiplayer request.
1683
+ */
1684
+ let ErrorCode;
1685
+ (function (ErrorCode) {
1686
+ ErrorCode[ErrorCode["None"] = 0] = "None";
1687
+ ErrorCode[ErrorCode["Unknown"] = 1] = "Unknown";
1688
+ ErrorCode[ErrorCode["NotConnected"] = 2] = "NotConnected";
1689
+ ErrorCode[ErrorCode["AlreadyConnected"] = 3] = "AlreadyConnected";
1690
+ ErrorCode[ErrorCode["SpaceUserLimitExceeded"] = 4] = "SpaceUserLimitExceeded";
1691
+ })(ErrorCode = Multiplayer.ErrorCode || (Multiplayer.ErrorCode = {}));
1692
+ })(Multiplayer || (Multiplayer = {}));
1691
1693
  (function (Multiplayer) {
1692
1694
  /**
1693
1695
  * @description Enum representing the type of a replicated value.
@@ -1717,7 +1719,13 @@ export var Multiplayer;
1717
1719
  })(Multiplayer || (Multiplayer = {}));
1718
1720
  (function (Multiplayer) {
1719
1721
  /**
1720
- * @description Enum used to specify the type of an update operation
1722
+ * @description This Enum should be used to determine what kind of operation the component update represents.
1723
+ * Update means properties on the component have updated, all need to be checked as we do not provide reference of specific property updates.
1724
+ * Add means the component is newly added, clients should ensure that this triggers appropriate instantiation of wrapping objects.
1725
+ * All properties for the component should be included.
1726
+ * 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
1727
+ * recieved. Any wrapping data objects should be deleted when this is recieved, and clients should cease updating this component as any call would
1728
+ * fail. The CSP representation of the component has been removed at this point.
1721
1729
  */
1722
1730
  let ComponentUpdateType;
1723
1731
  (function (ComponentUpdateType) {
@@ -1727,6 +1735,11 @@ export var Multiplayer;
1727
1735
  })(ComponentUpdateType = Multiplayer.ComponentUpdateType || (Multiplayer.ComponentUpdateType = {}));
1728
1736
  })(Multiplayer || (Multiplayer = {}));
1729
1737
  (function (Multiplayer) {
1738
+ /**
1739
+ * @description Enum used to specify what part of a SpaceEntity was updated when deserialising.
1740
+ * Use this to determine which parts of an entity to copy values from when an update occurs.
1741
+ * It is a bitwise flag enum, so values are additive, the value may represent several flags.
1742
+ */
1730
1743
  let SpaceEntityUpdateFlags;
1731
1744
  (function (SpaceEntityUpdateFlags) {
1732
1745
  SpaceEntityUpdateFlags[SpaceEntityUpdateFlags["UPDATE_FLAGS_NAME"] = 1] = "UPDATE_FLAGS_NAME";
@@ -2186,7 +2199,7 @@ export var Multiplayer;
2186
2199
  ReflectionPropertyKeys[ReflectionPropertyKeys["ReflectionAssetId"] = 1] = "ReflectionAssetId";
2187
2200
  ReflectionPropertyKeys[ReflectionPropertyKeys["AssetCollectionId"] = 2] = "AssetCollectionId";
2188
2201
  ReflectionPropertyKeys[ReflectionPropertyKeys["Position"] = 3] = "Position";
2189
- ReflectionPropertyKeys[ReflectionPropertyKeys["Rotation"] = 4] = "Rotation";
2202
+ ReflectionPropertyKeys[ReflectionPropertyKeys["Rotation_NOT_USED"] = 4] = "Rotation_NOT_USED";
2190
2203
  ReflectionPropertyKeys[ReflectionPropertyKeys["Scale"] = 5] = "Scale";
2191
2204
  ReflectionPropertyKeys[ReflectionPropertyKeys["ReflectionShape"] = 6] = "ReflectionShape";
2192
2205
  ReflectionPropertyKeys[ReflectionPropertyKeys["ThirdPartyComponentRef"] = 7] = "ThirdPartyComponentRef";
@@ -2383,6 +2396,7 @@ export var Multiplayer;
2383
2396
  ERequestFailureReason[ERequestFailureReason["ShopifyConnectionBroken"] = 31] = "ShopifyConnectionBroken";
2384
2397
  ERequestFailureReason[ERequestFailureReason["ShopifyInvalidStoreName"] = 32] = "ShopifyInvalidStoreName";
2385
2398
  ERequestFailureReason[ERequestFailureReason["UserShopifyLimitReached"] = 33] = "UserShopifyLimitReached";
2399
+ ERequestFailureReason[ERequestFailureReason["UserTokenRefreshFailed"] = 34] = "UserTokenRefreshFailed";
2386
2400
  })(ERequestFailureReason = Systems.ERequestFailureReason || (Systems.ERequestFailureReason = {}));
2387
2401
  })(Systems || (Systems = {}));
2388
2402
  (function (Systems) {
@@ -2494,6 +2508,18 @@ export var Multiplayer;
2494
2508
  TierNames[TierNames["Invalid"] = 4] = "Invalid";
2495
2509
  })(TierNames = Systems.TierNames || (Systems.TierNames = {}));
2496
2510
  })(Systems || (Systems = {}));
2511
+ (function (Systems) {
2512
+ /**
2513
+ * @description Used to specify the type of the user's avatar
2514
+ */
2515
+ let AvatarType;
2516
+ (function (AvatarType) {
2517
+ AvatarType[AvatarType["None"] = 0] = "None";
2518
+ AvatarType[AvatarType["Premade"] = 1] = "Premade";
2519
+ AvatarType[AvatarType["ReadyPlayerMe"] = 2] = "ReadyPlayerMe";
2520
+ AvatarType[AvatarType["Custom"] = 3] = "Custom";
2521
+ })(AvatarType = Systems.AvatarType || (Systems.AvatarType = {}));
2522
+ })(Systems || (Systems = {}));
2497
2523
  (function (Systems) {
2498
2524
  let SpaceAttributes;
2499
2525
  (function (SpaceAttributes) {
@@ -2818,18 +2844,6 @@ export class CSPFoundation {
2818
2844
  _result = _resultString;
2819
2845
  return _result;
2820
2846
  }
2821
- /**
2822
- * @description Gets the EntitySystemVersion number.
2823
- * This represents the system used to parse data for Entities,
2824
- * and is used to prevent conflicting entity data versions from being used together where we cannot parse both.
2825
- * This is currently unused.
2826
- * @return The system version number, a manually incremented counter that changes when significant breaking changes occur in the entity
2827
- * parsing systems
2828
- */
2829
- static getEntitySystemVersion() {
2830
- let _result = Module.ccall("csp_CSPFoundation_GetEntitySystemVersion_int32_t", "number", [], []);
2831
- return _result;
2832
- }
2833
2847
  /**
2834
2848
  * @description Unique identifier for the current device.
2835
2849
  * Used internally by certain user authentication endpoints.
@@ -9002,7 +9016,7 @@ export class CSPFoundation {
9002
9016
  }
9003
9017
  /**
9004
9018
  * @description Start the connection and register to start receiving updates from the server.
9005
- * @param callback - A callback with success status.
9019
+ * @param callback - A callback with failure state.
9006
9020
  */
9007
9021
  async connect() {
9008
9022
  var _resolve;
@@ -9011,16 +9025,16 @@ export class CSPFoundation {
9011
9025
  });
9012
9026
  var _callbackPtr;
9013
9027
  var _callback = (_stateObject__, arg1) => {
9014
- _resolve(!!arg1);
9028
+ _resolve(arg1);
9015
9029
  Module.removeFunction(_callbackPtr);
9016
9030
  };
9017
9031
  _callbackPtr = Module.addFunction(_callback, "vii");
9018
- Module.ccall("csp_multiplayer_MultiplayerConnection_Connect_void_CallbackHandler", "void", ["number", "number", "number"], [this.pointer, _callbackPtr, 0]);
9032
+ Module.ccall("csp_multiplayer_MultiplayerConnection_Connect_void_ErrorCodeCallbackHandler", "void", ["number", "number", "number"], [this.pointer, _callbackPtr, 0]);
9019
9033
  return _promise;
9020
9034
  }
9021
9035
  /**
9022
9036
  * @description End the multiplayer connection.
9023
- * @param callback - A callback with success status.
9037
+ * @param callback - A callback with failure state.
9024
9038
  */
9025
9039
  async disconnect() {
9026
9040
  var _resolve;
@@ -9029,16 +9043,16 @@ export class CSPFoundation {
9029
9043
  });
9030
9044
  var _callbackPtr;
9031
9045
  var _callback = (_stateObject__, arg1) => {
9032
- _resolve(!!arg1);
9046
+ _resolve(arg1);
9033
9047
  Module.removeFunction(_callbackPtr);
9034
9048
  };
9035
9049
  _callbackPtr = Module.addFunction(_callback, "vii");
9036
- Module.ccall("csp_multiplayer_MultiplayerConnection_Disconnect_void_CallbackHandler", "void", ["number", "number", "number"], [this.pointer, _callbackPtr, 0]);
9050
+ Module.ccall("csp_multiplayer_MultiplayerConnection_Disconnect_void_ErrorCodeCallbackHandler", "void", ["number", "number", "number"], [this.pointer, _callbackPtr, 0]);
9037
9051
  return _promise;
9038
9052
  }
9039
9053
  /**
9040
9054
  * @description Initialise the connection and get initial entity data from the server.
9041
- * @param callback - A callback with success status.
9055
+ * @param callback - A callback with failure state.
9042
9056
  */
9043
9057
  async initialiseConnection() {
9044
9058
  var _resolve;
@@ -9047,18 +9061,18 @@ export class CSPFoundation {
9047
9061
  });
9048
9062
  var _callbackPtr;
9049
9063
  var _callback = (_stateObject__, arg1) => {
9050
- _resolve(!!arg1);
9064
+ _resolve(arg1);
9051
9065
  Module.removeFunction(_callbackPtr);
9052
9066
  };
9053
9067
  _callbackPtr = Module.addFunction(_callback, "vii");
9054
- Module.ccall("csp_multiplayer_MultiplayerConnection_InitialiseConnection_void_CallbackHandler", "void", ["number", "number", "number"], [this.pointer, _callbackPtr, 0]);
9068
+ Module.ccall("csp_multiplayer_MultiplayerConnection_InitialiseConnection_void_ErrorCodeCallbackHandler", "void", ["number", "number", "number"], [this.pointer, _callbackPtr, 0]);
9055
9069
  return _promise;
9056
9070
  }
9057
9071
  /**
9058
9072
  * @description Sends a network event by EventName to all currently connected clients.
9059
9073
  * @param eventName - The identifying name for the event.
9060
9074
  * @param args - An array of arguments (ReplicatedValue) to be passed as part of the event payload.
9061
- * @param callback - A status callback which indicates if the event successfully sent.
9075
+ * @param callback - A callback with failure state.
9062
9076
  */
9063
9077
  async sendNetworkEvent(eventName, args) {
9064
9078
  var _resolve;
@@ -9067,11 +9081,11 @@ export class CSPFoundation {
9067
9081
  });
9068
9082
  var _callbackPtr;
9069
9083
  var _callback = (_stateObject__, arg1) => {
9070
- _resolve(!!arg1);
9084
+ _resolve(arg1);
9071
9085
  Module.removeFunction(_callbackPtr);
9072
9086
  };
9073
9087
  _callbackPtr = Module.addFunction(_callback, "vii");
9074
- Module.ccall("csp_multiplayer_MultiplayerConnection_SendNetworkEvent_void_StringRC_ArrayRC_CallbackHandler", "void", ["number", "string", "number", "number", "number"], [this.pointer, eventName, args.pointer, _callbackPtr, 0]);
9088
+ Module.ccall("csp_multiplayer_MultiplayerConnection_SendNetworkEvent_void_StringRC_ArrayRC_ErrorCodeCallbackHandler", "void", ["number", "string", "number", "number", "number"], [this.pointer, eventName, args.pointer, _callbackPtr, 0]);
9075
9089
  return _promise;
9076
9090
  }
9077
9091
  /**
@@ -9079,7 +9093,7 @@ export class CSPFoundation {
9079
9093
  * @param eventName - The identifying name for the event.
9080
9094
  * @param args - An array of arguments (ReplicatedValue) to be passed as part of the event payload.
9081
9095
  * @param targetClientId - The client ID to send the event to.
9082
- * @param callback - A status callback which indicates if the event successfully sent.
9096
+ * @param callback - A callback with failure state.
9083
9097
  */
9084
9098
  async sendNetworkEventToClient(eventName, args, targetClientId) {
9085
9099
  var _resolve;
@@ -9088,11 +9102,11 @@ export class CSPFoundation {
9088
9102
  });
9089
9103
  var _callbackPtr;
9090
9104
  var _callback = (_stateObject__, arg1) => {
9091
- _resolve(!!arg1);
9105
+ _resolve(arg1);
9092
9106
  Module.removeFunction(_callbackPtr);
9093
9107
  };
9094
9108
  _callbackPtr = Module.addFunction(_callback, "vii");
9095
- Module.ccall("csp_multiplayer_MultiplayerConnection_SendNetworkEventToClient_void_StringRC_ArrayRC_uint64_t_CallbackHandler", "void", ["number", "string", "number", "bigint", "number", "number"], [
9109
+ Module.ccall("csp_multiplayer_MultiplayerConnection_SendNetworkEventToClient_void_StringRC_ArrayRC_uint64_t_ErrorCodeCallbackHandler", "void", ["number", "string", "number", "bigint", "number", "number"], [
9096
9110
  this.pointer,
9097
9111
  eventName,
9098
9112
  args.pointer,
@@ -9136,8 +9150,8 @@ export class CSPFoundation {
9136
9150
  }
9137
9151
  /**
9138
9152
  * @description Sets a callback for a network interruption event.
9139
- * /// Connection isn't recoverable after this point and Disconnect should be called.
9140
- * /// @param Callback NetworkInterruptionCallbackHandler : The callback for network interruption, contains a string showing failure.
9153
+ * Connection isn't recoverable after this point and Disconnect should be called.
9154
+ * @param callback - The callback for network interruption, contains a string showing failure.
9141
9155
  */
9142
9156
  setNetworkInterruptionCallback(callback) {
9143
9157
  var _callback = (_stateObject__, arg1) => {
@@ -9251,10 +9265,10 @@ export class CSPFoundation {
9251
9265
  }
9252
9266
  /**
9253
9267
  * @description Sets the Self Messaging flag for this client.
9254
- * /// This allows a client to declare that it wishes to recieve every patch and object message it sends.
9255
- * /// @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!
9268
+ * This allows a client to declare that it wishes to recieve every patch and object message it sends.
9269
+ @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!
9256
9270
  * @param allowSelfMessaging - True to allow and false to disallow.
9257
- * @param callback - Callback providing success/fail boolean.
9271
+ * @param callback - A callback with failure state.
9258
9272
  */
9259
9273
  async setAllowSelfMessagingFlag(allowSelfMessaging) {
9260
9274
  var _resolve;
@@ -9263,11 +9277,11 @@ export class CSPFoundation {
9263
9277
  });
9264
9278
  var _callbackPtr;
9265
9279
  var _callback = (_stateObject__, arg1) => {
9266
- _resolve(!!arg1);
9280
+ _resolve(arg1);
9267
9281
  Module.removeFunction(_callbackPtr);
9268
9282
  };
9269
9283
  _callbackPtr = Module.addFunction(_callback, "vii");
9270
- Module.ccall("csp_multiplayer_MultiplayerConnection_SetAllowSelfMessagingFlag_void_boolC_CallbackHandler", "void", ["number", "boolean", "number", "number"], [this.pointer, allowSelfMessaging, _callbackPtr, 0]);
9284
+ Module.ccall("csp_multiplayer_MultiplayerConnection_SetAllowSelfMessagingFlag_void_boolC_ErrorCodeCallbackHandler", "void", ["number", "boolean", "number", "number"], [this.pointer, allowSelfMessaging, _callbackPtr, 0]);
9271
9285
  return _promise;
9272
9286
  }
9273
9287
  /**
@@ -9509,44 +9523,6 @@ export class CSPFoundation {
9509
9523
  }
9510
9524
  Multiplayer.ReplicatedValue = ReplicatedValue;
9511
9525
  })(Multiplayer || (Multiplayer = {}));
9512
- (function (Multiplayer) {
9513
- class PropertyUpdateInfo extends NativeClassWrapper {
9514
- /** @internal */
9515
- constructor(pointer) {
9516
- super(pointer);
9517
- }
9518
- static create() {
9519
- var _ptr = Module._malloc(8);
9520
- Module.ccall("csp_multiplayer_PropertyUpdateInfo_Ctor", "void", ["number"], [_ptr]);
9521
- var _nPtr = getNativePointer(_ptr);
9522
- return new PropertyUpdateInfo(_nPtr);
9523
- }
9524
- delete() {
9525
- if (this.ownsPointer && !this.disposed) {
9526
- Module.ccall("csp_multiplayer_PropertyUpdateInfo_Dtor", "void", ["number"], [this.pointer]);
9527
- this.disposed = true;
9528
- }
9529
- }
9530
- get propertyId() {
9531
- let _result = Module.ccall("csp_multiplayer_PropertyUpdateInfo__Get_PropertyId", "number", ["number"], [this.pointer]);
9532
- const _unfixedValue = _result;
9533
- let _fixedValue = _unfixedValue < 0 ? _unfixedValue + 2 ** 32 : _unfixedValue;
9534
- _result = _fixedValue;
9535
- return _result;
9536
- }
9537
- set propertyId(value) {
9538
- Module.ccall("csp_multiplayer_PropertyUpdateInfo__Set_PropertyId", "void", ["number", "number"], [this.pointer, value]);
9539
- }
9540
- get updateType() {
9541
- let _result = Module.ccall("csp_multiplayer_PropertyUpdateInfo__Get_UpdateType", "number", ["number"], [this.pointer]);
9542
- return _result;
9543
- }
9544
- set updateType(value) {
9545
- Module.ccall("csp_multiplayer_PropertyUpdateInfo__Set_UpdateType", "void", ["number", "number"], [this.pointer, value]);
9546
- }
9547
- }
9548
- Multiplayer.PropertyUpdateInfo = PropertyUpdateInfo;
9549
- })(Multiplayer || (Multiplayer = {}));
9550
9526
  (function (Multiplayer) {
9551
9527
  /**
9552
9528
  * @description Info class that specifies a type of update and the ID of a component the update is applied to.
@@ -9822,6 +9798,7 @@ export class CSPFoundation {
9822
9798
  * @description Set a callback to be executed when a patch message is received for this Entity. Only one callback can be set.
9823
9799
  * @param callback - Contains the SpaceEntity that updated, a set of flags to tell which parts updated
9824
9800
  * and an array of information to tell which components updated.
9801
+ * When this callback is recieved, the flags and arrays should be used to determine which properties have updated data.
9825
9802
  */
9826
9803
  setUpdateCallback(callback) {
9827
9804
  var _callback = (_stateObject__, arg1, arg2, arg3) => {
@@ -9987,6 +9964,15 @@ export class CSPFoundation {
9987
9964
  let _result = Module.ccall("csp_multiplayer_SpaceEntity_Deselect_bool", "boolean", ["number"], [this.pointer]);
9988
9965
  return _result;
9989
9966
  }
9967
+ /**
9968
+ * @description Checks if the entity can be modified.
9969
+ * Specifically whether the local client already owns the entity or can take ownership of the entity.
9970
+ * @return True if the entity can be modified, False if not.
9971
+ */
9972
+ isModifiable() {
9973
+ let _result = Module.ccall("csp_multiplayer_SpaceEntity_IsModifiable_bool", "boolean", ["number"], [this.pointer]);
9974
+ return _result;
9975
+ }
9990
9976
  }
9991
9977
  Multiplayer.SpaceEntity = SpaceEntity;
9992
9978
  })(Multiplayer || (Multiplayer = {}));
@@ -11344,12 +11330,6 @@ export class CSPFoundation {
11344
11330
  constructor(pointer) {
11345
11331
  super(pointer);
11346
11332
  }
11347
- static create() {
11348
- var _ptr = Module._malloc(8);
11349
- Module.ccall("csp_systems_AnalyticsSystem_Ctor", "void", ["number"], [_ptr]);
11350
- var _nPtr = getNativePointer(_ptr);
11351
- return new AnalyticsSystem(_nPtr);
11352
- }
11353
11333
  /**
11354
11334
  * @description Send an event
11355
11335
  * @param event - AnalyticsEvent
@@ -11804,14 +11784,12 @@ export class CSPFoundation {
11804
11784
  set parentId(value) {
11805
11785
  Module.ccall("csp_systems_AssetCollection__Set_ParentId", "void", ["number", "string"], [this.pointer, value]);
11806
11786
  }
11807
- get spaceIds() {
11808
- const _ptr = Module._malloc(8);
11809
- Module.ccall("csp_systems_AssetCollection__Get_SpaceIds", "void", ["number", "number"], [_ptr, this.pointer]);
11810
- const _nPtr = getNativePointer(_ptr);
11811
- return new Common.Array(_nPtr, StringFactory, "String");
11787
+ get spaceId() {
11788
+ let _result = Module.ccall("csp_systems_AssetCollection__Get_SpaceId", "string", ["number"], [this.pointer]);
11789
+ return _result;
11812
11790
  }
11813
- set spaceIds(value) {
11814
- Module.ccall("csp_systems_AssetCollection__Set_SpaceIds", "void", ["number", "number"], [this.pointer, value.pointer]);
11791
+ set spaceId(value) {
11792
+ Module.ccall("csp_systems_AssetCollection__Set_SpaceId", "void", ["number", "string"], [this.pointer, value]);
11815
11793
  }
11816
11794
  get createdBy() {
11817
11795
  let _result = Module.ccall("csp_systems_AssetCollection__Get_CreatedBy", "string", ["number"], [this.pointer]);
@@ -12731,6 +12709,33 @@ export class CSPFoundation {
12731
12709
  let _result = Module.ccall("csp_systems_LogSystem_LoggingEnabled_bool_LogLevelC", "boolean", ["number", "number"], [this.pointer, level]);
12732
12710
  return _result;
12733
12711
  }
12712
+ /**
12713
+ * @description Log a message at a specific verbosity level.
12714
+ * @param level - The level to log this message at.
12715
+ * @param inMessage - The message to be logged.
12716
+ */
12717
+ logMsg(level, message) {
12718
+ Module.ccall("csp_systems_LogSystem_LogMsg_void_LogLevelC_StringRC", "void", ["number", "number", "string"], [this.pointer, level, message]);
12719
+ }
12720
+ /**
12721
+ * @description Log an event.
12722
+ * @param inEvent - The event to be logged.
12723
+ */
12724
+ logEvent(event) {
12725
+ Module.ccall("csp_systems_LogSystem_LogEvent_void_StringRC", "void", ["number", "string"], [this.pointer, event]);
12726
+ }
12727
+ /**
12728
+ * @description Specify a 'Marker' event which can be used to communicate a certain process occurring, usually for debugging.
12729
+ */
12730
+ beginMarker(marker) {
12731
+ Module.ccall("csp_systems_LogSystem_BeginMarker_void_StringRC", "void", ["number", "string"], [this.pointer, marker]);
12732
+ }
12733
+ /**
12734
+ * @description End a 'Marker' event.
12735
+ */
12736
+ endMarker() {
12737
+ Module.ccall("csp_systems_LogSystem_EndMarker_void", "void", ["number"], [this.pointer]);
12738
+ }
12734
12739
  /**
12735
12740
  * @description Clears all logging callbacks.
12736
12741
  */
@@ -13976,13 +13981,6 @@ export class CSPFoundation {
13976
13981
  set agoraUserId(value) {
13977
13982
  Module.ccall("csp_systems_AgoraUserTokenParams__Set_AgoraUserId", "void", ["number", "string"], [this.pointer, value]);
13978
13983
  }
13979
- get lifespan() {
13980
- let _result = Module.ccall("csp_systems_AgoraUserTokenParams__Get_Lifespan", "number", ["number"], [this.pointer]);
13981
- return _result;
13982
- }
13983
- set lifespan(value) {
13984
- Module.ccall("csp_systems_AgoraUserTokenParams__Set_Lifespan", "void", ["number", "number"], [this.pointer, value]);
13985
- }
13986
13984
  get channelName() {
13987
13985
  let _result = Module.ccall("csp_systems_AgoraUserTokenParams__Get_ChannelName", "string", ["number"], [this.pointer]);
13988
13986
  return _result;
@@ -13990,6 +13988,13 @@ export class CSPFoundation {
13990
13988
  set channelName(value) {
13991
13989
  Module.ccall("csp_systems_AgoraUserTokenParams__Set_ChannelName", "void", ["number", "string"], [this.pointer, value]);
13992
13990
  }
13991
+ get lifespan() {
13992
+ let _result = Module.ccall("csp_systems_AgoraUserTokenParams__Get_Lifespan", "number", ["number"], [this.pointer]);
13993
+ return _result;
13994
+ }
13995
+ set lifespan(value) {
13996
+ Module.ccall("csp_systems_AgoraUserTokenParams__Set_Lifespan", "void", ["number", "number"], [this.pointer, value]);
13997
+ }
13993
13998
  get readOnly() {
13994
13999
  let _result = Module.ccall("csp_systems_AgoraUserTokenParams__Get_ReadOnly", "boolean", ["number"], [this.pointer]);
13995
14000
  return _result;
@@ -14187,6 +14192,9 @@ export class CSPFoundation {
14187
14192
  var _nPtr = getNativePointer(_ptr);
14188
14193
  return new AnimatedModelSpaceComponent(_nPtr);
14189
14194
  }
14195
+ /** @deprecated
14196
+ Due to the introduction of LODs it doesn't make sense to set a specific asset anymore
14197
+ */
14190
14198
  getExternalResourceAssetId() {
14191
14199
  let _result = Module.ccall("csp_multiplayer_AnimatedModelSpaceComponent_GetExternalResourceAssetIdC_StringRC", "number", ["number"], [this.pointer]);
14192
14200
  const _resultString = Module.UTF8ToString(_result);
@@ -14194,6 +14202,9 @@ export class CSPFoundation {
14194
14202
  _result = _resultString;
14195
14203
  return _result;
14196
14204
  }
14205
+ /** @deprecated
14206
+ Due to the introduction of LODs it doesn't make sense to set a specific asset anymore
14207
+ */
14197
14208
  setExternalResourceAssetId(value) {
14198
14209
  Module.ccall("csp_multiplayer_AnimatedModelSpaceComponent_SetExternalResourceAssetId_void_StringRC", "void", ["number", "string"], [this.pointer, value]);
14199
14210
  }
@@ -14427,13 +14438,9 @@ export class CSPFoundation {
14427
14438
  return new AudioSpaceComponent(_nPtr);
14428
14439
  }
14429
14440
  /**
14430
- * @description Gets the position of the origin of this component in world space.
14431
- * NOTE: The coordinate system used follows the glTF 2.0 specification, in meters.
14432
- * - Right handed coordinate system
14433
- * - +Y is UP
14434
- * - +X is left (facing forward)
14435
- * - +Z is forward
14436
- * @return The 3D position as vector (left, up, forward) in meters.
14441
+ * \addtogroup IPositionComponent
14442
+ @{
14443
+ @copydoc IPositionComponent::GetPosition()
14437
14444
  */
14438
14445
  getPosition() {
14439
14446
  var _ret = Module._malloc(8);
@@ -14443,17 +14450,13 @@ export class CSPFoundation {
14443
14450
  return _nPtr;
14444
14451
  }
14445
14452
  /**
14446
- * @description Sets the position of the origin of this component in world space.
14447
- * NOTE: The coordinate system used follows the glTF 2.0 specification, in meters.
14448
- * - Right handed coordinate system
14449
- * - +Y is UP
14450
- * - +X is left (facing forward)
14451
- * - +Z is forward
14453
+ @copydoc IPositionComponent::SetPosition()
14452
14454
  */
14453
14455
  setPosition(value) {
14454
14456
  Module.ccall("csp_multiplayer_AudioSpaceComponent_SetPosition_void_Vector3RC", "void", ["number", "number"], [this.pointer, value.pointer]);
14455
14457
  }
14456
14458
  /**
14459
+ @}
14457
14460
  * @description Gets the current playback state of the audio of this audio component.
14458
14461
  * @return The current playback state of the audio of this audio component.
14459
14462
  */
@@ -15068,13 +15071,9 @@ export class CSPFoundation {
15068
15071
  Module.ccall("csp_multiplayer_ButtonSpaceComponent_SetAssetCollectionId_void_StringRC", "void", ["number", "string"], [this.pointer, value]);
15069
15072
  }
15070
15073
  /**
15071
- * @description Gets the position of the origin of this component in world space.
15072
- * NOTE: The coordinate system used follows the glTF 2.0 specification, in meters.
15073
- * - Right handed coordinate system
15074
- * - +Y is UP
15075
- * - +X is left (facing forward)
15076
- * - +Z is forward
15077
- * @return The 3D position as vector (left, up, forward) in meters.
15074
+ * \addtogroup ITransformComponent
15075
+ @{
15076
+ @copydoc IPositionComponent::GetPosition()
15078
15077
  */
15079
15078
  getPosition() {
15080
15079
  var _ret = Module._malloc(8);
@@ -15084,26 +15083,13 @@ export class CSPFoundation {
15084
15083
  return _nPtr;
15085
15084
  }
15086
15085
  /**
15087
- * @description Sets the position of the origin of this component in world space.
15088
- * NOTE: The coordinate system used follows the glTF 2.0 specification, in meters.
15089
- * - Right handed coordinate system
15090
- * - +Y is UP
15091
- * - +X is left (facing forward)
15092
- * - +Z is forward
15086
+ @copydoc IPositionComponent::SetPosition()
15093
15087
  */
15094
15088
  setPosition(value) {
15095
15089
  Module.ccall("csp_multiplayer_ButtonSpaceComponent_SetPosition_void_Vector3RC", "void", ["number", "number"], [this.pointer, value.pointer]);
15096
15090
  }
15097
15091
  /**
15098
- * @description Gets a quaternion representing the rotation of the origin of this component, expressed in radians.
15099
- * NOTE: The coordinate system respects the following conventions:
15100
- * - Right handed coordinate system
15101
- * - Positive rotation is counterclockwise
15102
- * - The geographic North is along the positive Z axis (+Z) at an orientation of 0 degrees.
15103
- * - North: +Z
15104
- * - East: -X
15105
- * - South: -Z
15106
- * - West: +X
15092
+ @copydoc IRotationComponent::GetRotation()
15107
15093
  */
15108
15094
  getRotation() {
15109
15095
  var _ret = Module._malloc(8);
@@ -15113,28 +15099,13 @@ export class CSPFoundation {
15113
15099
  return _nPtr;
15114
15100
  }
15115
15101
  /**
15116
- * @description Sets the rotation of the origin of this component according to the specified quaternion "Value", expressed in radians.
15117
- * NOTE: The coordinate system respects the following conventions:
15118
- * - Right handed coordinate system
15119
- * - Positive rotation is counterclockwise
15120
- * - The geographic North is along the positive Z axis (+Z) at an orientation of 0 degrees.
15121
- * - North: +Z
15122
- * - East: -X
15123
- * - South: -Z
15124
- * - West: +X
15125
- * @param value - The quaternion in radians to use as new rotation of this component.
15102
+ @copydoc IRotationComponent::SetRotation()
15126
15103
  */
15127
15104
  setRotation(value) {
15128
15105
  Module.ccall("csp_multiplayer_ButtonSpaceComponent_SetRotation_void_Vector4RC", "void", ["number", "number"], [this.pointer, value.pointer]);
15129
15106
  }
15130
15107
  /**
15131
- * @description Gets the scale of the origin of this component in world space.
15132
- * NOTE: The coordinate system used follows the glTF 2.0 specification.
15133
- * - Right handed coordinate system
15134
- * - +Y is UP
15135
- * - +X is left (facing forward)
15136
- * - +Z is forward
15137
- * @return The 3D scale as vector (left, up, forward).
15108
+ @copydoc IScaleComponent::GetScale()
15138
15109
  */
15139
15110
  getScale() {
15140
15111
  var _ret = Module._malloc(8);
@@ -15144,18 +15115,29 @@ export class CSPFoundation {
15144
15115
  return _nPtr;
15145
15116
  }
15146
15117
  /**
15147
- * @description Sets the scale of the origin of this component in world space to the specified "Value".
15148
- * @param value - The new value expressed as vector (left, up, forward).
15149
- * NOTE: The coordinate system used follows the glTF 2.0 specification.
15150
- * - Right handed coordinate system
15151
- * - +Y is UP
15152
- * - +X is left (facing forward)
15153
- * - +Z is forward
15118
+ @copydoc IScaleComponent::SetScale()
15154
15119
  */
15155
15120
  setScale(value) {
15156
15121
  Module.ccall("csp_multiplayer_ButtonSpaceComponent_SetScale_void_Vector3RC", "void", ["number", "number"], [this.pointer, value.pointer]);
15157
15122
  }
15158
15123
  /**
15124
+ @copydoc ITransformComponent::GetTransform()
15125
+ */
15126
+ getTransform() {
15127
+ var _ret = Module._malloc(8);
15128
+ Module.ccall("csp_multiplayer_ButtonSpaceComponent_GetTransformC_SpaceTransform", "void", ["number", "number"], [_ret, this.pointer]);
15129
+ var _nPtr = new Multiplayer.SpaceTransform(getNativePointer(_ret));
15130
+ Module._free(_ret);
15131
+ return _nPtr;
15132
+ }
15133
+ /**
15134
+ @copydoc ITransformComonent::SetTransform()
15135
+ */
15136
+ setTransform(value) {
15137
+ Module.ccall("csp_multiplayer_ButtonSpaceComponent_SetTransform_void_SpaceTransformRC", "void", ["number", "number"], [this.pointer, value.pointer]);
15138
+ }
15139
+ /**
15140
+ @}
15159
15141
  * \addtogroup IClickableComponent
15160
15142
  @{
15161
15143
  @copydoc IClickableComponent::GetIsEnabled()
@@ -15233,13 +15215,9 @@ export class CSPFoundation {
15233
15215
  return new CollisionSpaceComponent(_nPtr);
15234
15216
  }
15235
15217
  /**
15236
- * @description Gets the position of the origin of this component in world space.
15237
- * NOTE: The coordinate system used follows the glTF 2.0 specification, in meters.
15238
- * - Right handed coordinate system
15239
- * - +Y is UP
15240
- * - +X is left (facing forward)
15241
- * - +Z is forward
15242
- * @return The 3D position as vector (left, up, forward) in meters.
15218
+ * \addtogroup ITransformComponent
15219
+ @{
15220
+ @copydoc IPositionComponent::GetPosition()
15243
15221
  */
15244
15222
  getPosition() {
15245
15223
  var _ret = Module._malloc(8);
@@ -15249,26 +15227,13 @@ export class CSPFoundation {
15249
15227
  return _nPtr;
15250
15228
  }
15251
15229
  /**
15252
- * @description Sets the position of the origin of this component in world space.
15253
- * NOTE: The coordinate system used follows the glTF 2.0 specification, in meters.
15254
- * - Right handed coordinate system
15255
- * - +Y is UP
15256
- * - +X is left (facing forward)
15257
- * - +Z is forward
15230
+ @copydoc IPositionComponent::SetPosition()
15258
15231
  */
15259
15232
  setPosition(value) {
15260
15233
  Module.ccall("csp_multiplayer_CollisionSpaceComponent_SetPosition_void_Vector3RC", "void", ["number", "number"], [this.pointer, value.pointer]);
15261
15234
  }
15262
15235
  /**
15263
- * @description Gets a quaternion representing the rotation of the origin of this component, expressed in radians.
15264
- * NOTE: The coordinate system respects the following conventions:
15265
- * - Right handed coordinate system
15266
- * - Positive rotation is counterclockwise
15267
- * - The geographic North is along the positive Z axis (+Z) at an orientation of 0 degrees.
15268
- * - North: +Z
15269
- * - East: -X
15270
- * - South: -Z
15271
- * - West: +X
15236
+ @copydoc IRotationComponent::GetRotation()
15272
15237
  */
15273
15238
  getRotation() {
15274
15239
  var _ret = Module._malloc(8);
@@ -15278,28 +15243,13 @@ export class CSPFoundation {
15278
15243
  return _nPtr;
15279
15244
  }
15280
15245
  /**
15281
- * @description Sets the rotation of the origin of this component according to the specified quaternion "Value", expressed in radians.
15282
- * NOTE: The coordinate system respects the following conventions:
15283
- * - Right handed coordinate system
15284
- * - Positive rotation is counterclockwise
15285
- * - The geographic North is along the positive Z axis (+Z) at an orientation of 0 degrees.
15286
- * - North: +Z
15287
- * - East: -X
15288
- * - South: -Z
15289
- * - West: +X
15290
- * @param value - The quaternion in radians to use as new rotation of this component.
15246
+ @copydoc IRotationComponent::SetRotation()
15291
15247
  */
15292
15248
  setRotation(value) {
15293
15249
  Module.ccall("csp_multiplayer_CollisionSpaceComponent_SetRotation_void_Vector4RC", "void", ["number", "number"], [this.pointer, value.pointer]);
15294
15250
  }
15295
15251
  /**
15296
- * @description Gets the scale of the origin of this component in world space.
15297
- * NOTE: The coordinate system used follows the glTF 2.0 specification.
15298
- * - Right handed coordinate system
15299
- * - +Y is UP
15300
- * - +X is left (facing forward)
15301
- * - +Z is forward
15302
- * @return The 3D scale as vector (left, up, forward).
15252
+ @copydoc IScaleComponent::GetScale()
15303
15253
  */
15304
15254
  getScale() {
15305
15255
  var _ret = Module._malloc(8);
@@ -15309,18 +15259,29 @@ export class CSPFoundation {
15309
15259
  return _nPtr;
15310
15260
  }
15311
15261
  /**
15312
- * @description Sets the scale of the origin of this component in world space to the specified "Value".
15313
- * @param value - The new value expressed as vector (left, up, forward).
15314
- * NOTE: The coordinate system used follows the glTF 2.0 specification.
15315
- * - Right handed coordinate system
15316
- * - +Y is UP
15317
- * - +X is left (facing forward)
15318
- * - +Z is forward
15262
+ @copydoc IScaleComponent::SetScale()
15319
15263
  */
15320
15264
  setScale(value) {
15321
15265
  Module.ccall("csp_multiplayer_CollisionSpaceComponent_SetScale_void_Vector3RC", "void", ["number", "number"], [this.pointer, value.pointer]);
15322
15266
  }
15323
15267
  /**
15268
+ @copydoc ITransformComponent::GetTransform()
15269
+ */
15270
+ getTransform() {
15271
+ var _ret = Module._malloc(8);
15272
+ Module.ccall("csp_multiplayer_CollisionSpaceComponent_GetTransformC_SpaceTransform", "void", ["number", "number"], [_ret, this.pointer]);
15273
+ var _nPtr = new Multiplayer.SpaceTransform(getNativePointer(_ret));
15274
+ Module._free(_ret);
15275
+ return _nPtr;
15276
+ }
15277
+ /**
15278
+ @copydoc ITransformComonent::SetTransform()
15279
+ */
15280
+ setTransform(value) {
15281
+ Module.ccall("csp_multiplayer_CollisionSpaceComponent_SetTransform_void_SpaceTransformRC", "void", ["number", "number"], [this.pointer, value.pointer]);
15282
+ }
15283
+ /**
15284
+ @}
15324
15285
  * @description Gets the collision shape used by this collision component.
15325
15286
  * @return The colllision shape used by this collision component.
15326
15287
  */
@@ -15747,7 +15708,9 @@ export class CSPFoundation {
15747
15708
  return _promise;
15748
15709
  }
15749
15710
  /**
15750
- * @description Gets the relative 3D position of this component.
15711
+ * \addtogroup IPositionComponent
15712
+ @{
15713
+ @copydoc IPositionComponent::GetPosition()
15751
15714
  */
15752
15715
  getPosition() {
15753
15716
  var _ret = Module._malloc(8);
@@ -15757,14 +15720,16 @@ export class CSPFoundation {
15757
15720
  return _nPtr;
15758
15721
  }
15759
15722
  /**
15760
- * @description Sets the relative 3D position of this component.
15761
- * @param value - - The new 3D position assigned to the origin of this component.
15723
+ @copydoc IPositionComponent::SetPosition()
15762
15724
  */
15763
15725
  setPosition(value) {
15764
15726
  Module.ccall("csp_multiplayer_ConversationSpaceComponent_SetPosition_void_Vector3RC", "void", ["number", "number"], [this.pointer, value.pointer]);
15765
15727
  }
15766
15728
  /**
15767
- * @description Gets the quaternion of the rotation of the origin of this component.
15729
+ @}
15730
+ * \addtogroup IRotationComponent
15731
+ @{
15732
+ @copydoc IRotationComponent::GetRotation()
15768
15733
  */
15769
15734
  getRotation() {
15770
15735
  var _ret = Module._malloc(8);
@@ -15774,12 +15739,14 @@ export class CSPFoundation {
15774
15739
  return _nPtr;
15775
15740
  }
15776
15741
  /**
15777
- * @description Sets the quaternion of the rotation of the origin of this component.
15778
- * @param value - - The new rotation assigned to the origin of this component.
15742
+ @copydoc IRotationComponent::SetRotation()
15779
15743
  */
15780
15744
  setRotation(value) {
15781
15745
  Module.ccall("csp_multiplayer_ConversationSpaceComponent_SetRotation_void_Vector4RC", "void", ["number", "number"], [this.pointer, value.pointer]);
15782
15746
  }
15747
+ /**
15748
+ @}
15749
+ */
15783
15750
  getIsVisible() {
15784
15751
  let _result = Module.ccall("csp_multiplayer_ConversationSpaceComponent_GetIsVisibleC_bool", "boolean", ["number"], [this.pointer]);
15785
15752
  return _result;
@@ -16006,13 +15973,9 @@ export class CSPFoundation {
16006
15973
  return new ECommerceSpaceComponent(_nPtr);
16007
15974
  }
16008
15975
  /**
16009
- * @description Gets the position of the origin of this component in world space.
16010
- * NOTE: The coordinate system used follows the glTF 2.0 specification, in meters.
16011
- * - Right handed coordinate system
16012
- * - +Y is UP
16013
- * - +X is left (facing forward)
16014
- * - +Z is forward
16015
- * @return The 3D position as vector (left, up, forward) in meters.
15976
+ * \addtogroup ITransformComponent
15977
+ @{
15978
+ @copydoc IPositionComponent::GetPosition()
16016
15979
  */
16017
15980
  getPosition() {
16018
15981
  var _ret = Module._malloc(8);
@@ -16022,17 +15985,13 @@ export class CSPFoundation {
16022
15985
  return _nPtr;
16023
15986
  }
16024
15987
  /**
16025
- * @description Sets the position of the origin of this component in world space.
16026
- * NOTE: The coordinate system used follows the glTF 2.0 specification, in meters.
16027
- * - Right handed coordinate system
16028
- * - +Y is UP
16029
- * - +X is left (facing forward)
16030
- * - +Z is forward
15988
+ @copydoc IPositionComponent::SetPosition()
16031
15989
  */
16032
15990
  setPosition(value) {
16033
15991
  Module.ccall("csp_multiplayer_ECommerceSpaceComponent_SetPosition_void_Vector3RC", "void", ["number", "number"], [this.pointer, value.pointer]);
16034
15992
  }
16035
15993
  /**
15994
+ @}
16036
15995
  * @description Gets the product ID associated with the ECommerce component.
16037
15996
  * @return The product ID associated with the ECommerce component.
16038
15997
  */
@@ -16119,7 +16078,9 @@ export class CSPFoundation {
16119
16078
  Module.ccall("csp_multiplayer_ExternalLinkSpaceComponent_SetLinkUrl_void_StringRC", "void", ["number", "string"], [this.pointer, value]);
16120
16079
  }
16121
16080
  /**
16122
- * @description Gets the 3D position in world coordinates where the origin of this component is located.
16081
+ * \addtogroup ITransformComponent
16082
+ @{
16083
+ @copydoc IPositionComponent::GetPosition()
16123
16084
  */
16124
16085
  getPosition() {
16125
16086
  var _ret = Module._malloc(8);
@@ -16129,14 +16090,13 @@ export class CSPFoundation {
16129
16090
  return _nPtr;
16130
16091
  }
16131
16092
  /**
16132
- * @description Sets the 3D position in world coordinates where the origin of this component will be located.
16133
- * @param value - - The new 3D position assigned to the origin of this component.
16093
+ @copydoc IPositionComponent::SetPosition()
16134
16094
  */
16135
16095
  setPosition(value) {
16136
16096
  Module.ccall("csp_multiplayer_ExternalLinkSpaceComponent_SetPosition_void_Vector3RC", "void", ["number", "number"], [this.pointer, value.pointer]);
16137
16097
  }
16138
16098
  /**
16139
- * @description Gets the quaternion of the rotation of the origin of this component.
16099
+ @copydoc IRotationComponent::GetRotation()
16140
16100
  */
16141
16101
  getRotation() {
16142
16102
  var _ret = Module._malloc(8);
@@ -16146,14 +16106,13 @@ export class CSPFoundation {
16146
16106
  return _nPtr;
16147
16107
  }
16148
16108
  /**
16149
- * @description Sets the quaternion of the rotation of the origin of this component.
16150
- * @param value - - The new rotation assigned to the origin of this component.
16109
+ @copydoc IRotationComponent::SetRotation()
16151
16110
  */
16152
16111
  setRotation(value) {
16153
16112
  Module.ccall("csp_multiplayer_ExternalLinkSpaceComponent_SetRotation_void_Vector4RC", "void", ["number", "number"], [this.pointer, value.pointer]);
16154
16113
  }
16155
16114
  /**
16156
- * @description Gets the 3D scale of this component.
16115
+ @copydoc IScaleComponent::GetScale()
16157
16116
  */
16158
16117
  getScale() {
16159
16118
  var _ret = Module._malloc(8);
@@ -16163,13 +16122,29 @@ export class CSPFoundation {
16163
16122
  return _nPtr;
16164
16123
  }
16165
16124
  /**
16166
- * @description Sets the 3D scale of this component.
16167
- * @param value - - The new 3D scale assigned to this component.
16125
+ @copydoc IScaleComponent::SetScale()
16168
16126
  */
16169
16127
  setScale(value) {
16170
16128
  Module.ccall("csp_multiplayer_ExternalLinkSpaceComponent_SetScale_void_Vector3RC", "void", ["number", "number"], [this.pointer, value.pointer]);
16171
16129
  }
16172
16130
  /**
16131
+ @copydoc ITransformComponent::GetTransform()
16132
+ */
16133
+ getTransform() {
16134
+ var _ret = Module._malloc(8);
16135
+ Module.ccall("csp_multiplayer_ExternalLinkSpaceComponent_GetTransformC_SpaceTransform", "void", ["number", "number"], [_ret, this.pointer]);
16136
+ var _nPtr = new Multiplayer.SpaceTransform(getNativePointer(_ret));
16137
+ Module._free(_ret);
16138
+ return _nPtr;
16139
+ }
16140
+ /**
16141
+ @copydoc ITransformComonent::SetTransform()
16142
+ */
16143
+ setTransform(value) {
16144
+ Module.ccall("csp_multiplayer_ExternalLinkSpaceComponent_SetTransform_void_SpaceTransformRC", "void", ["number", "number"], [this.pointer, value.pointer]);
16145
+ }
16146
+ /**
16147
+ @}
16173
16148
  * @description Gets the text that will be displayed by the component as hyperlink to the URL it redirects to.
16174
16149
  */
16175
16150
  getDisplayText() {
@@ -16320,13 +16295,9 @@ export class CSPFoundation {
16320
16295
  Module.ccall("csp_multiplayer_FiducialMarkerSpaceComponent_SetAssetCollectionId_void_StringRC", "void", ["number", "string"], [this.pointer, value]);
16321
16296
  }
16322
16297
  /**
16323
- * @description Gets the position of the origin of this component in world space.
16324
- * NOTE: The coordinate system used follows the glTF 2.0 specification, in meters.
16325
- * - Right handed coordinate system
16326
- * - +Y is UP
16327
- * - +X is left (facing forward)
16328
- * - +Z is forward
16329
- * @return The 3D position as vector (left, up, forward) in meters.
16298
+ * \addtogroup ITransformComponent
16299
+ @{
16300
+ @copydoc IPositionComponent::GetPosition()
16330
16301
  */
16331
16302
  getPosition() {
16332
16303
  var _ret = Module._malloc(8);
@@ -16336,26 +16307,13 @@ export class CSPFoundation {
16336
16307
  return _nPtr;
16337
16308
  }
16338
16309
  /**
16339
- * @description Sets the position of the origin of this component in world space.
16340
- * NOTE: The coordinate system used follows the glTF 2.0 specification, in meters.
16341
- * - Right handed coordinate system
16342
- * - +Y is UP
16343
- * - +X is left (facing forward)
16344
- * - +Z is forward
16310
+ @copydoc IPositionComponent::SetPosition()
16345
16311
  */
16346
16312
  setPosition(value) {
16347
16313
  Module.ccall("csp_multiplayer_FiducialMarkerSpaceComponent_SetPosition_void_Vector3RC", "void", ["number", "number"], [this.pointer, value.pointer]);
16348
16314
  }
16349
16315
  /**
16350
- * @description Gets a quaternion representing the rotation of the origin of this component, expressed in radians.
16351
- * NOTE: The coordinate system respects the following conventions:
16352
- * - Right handed coordinate system
16353
- * - Positive rotation is counterclockwise
16354
- * - The geographic North is along the positive Z axis (+Z) at an orientation of 0 degrees.
16355
- * - North: +Z
16356
- * - East: -X
16357
- * - South: -Z
16358
- * - West: +X
16316
+ @copydoc IRotationComponent::GetRotation()
16359
16317
  */
16360
16318
  getRotation() {
16361
16319
  var _ret = Module._malloc(8);
@@ -16365,28 +16323,13 @@ export class CSPFoundation {
16365
16323
  return _nPtr;
16366
16324
  }
16367
16325
  /**
16368
- * @description Sets the rotation of the origin of this component according to the specified quaternion "Value", expressed in radians.
16369
- * NOTE: The coordinate system respects the following conventions:
16370
- * - Right handed coordinate system
16371
- * - Positive rotation is counterclockwise
16372
- * - The geographic North is along the positive Z axis (+Z) at an orientation of 0 degrees.
16373
- * - North: +Z
16374
- * - East: -X
16375
- * - South: -Z
16376
- * - West: +X
16377
- * @param value - The quaternion in radians to use as new rotation of this component.
16326
+ @copydoc IRotationComponent::SetRotation()
16378
16327
  */
16379
16328
  setRotation(value) {
16380
16329
  Module.ccall("csp_multiplayer_FiducialMarkerSpaceComponent_SetRotation_void_Vector4RC", "void", ["number", "number"], [this.pointer, value.pointer]);
16381
16330
  }
16382
16331
  /**
16383
- * @description Gets the scale of the origin of this component in world space.
16384
- * NOTE: The coordinate system used follows the glTF 2.0 specification.
16385
- * - Right handed coordinate system
16386
- * - +Y is UP
16387
- * - +X is left (facing forward)
16388
- * - +Z is forward
16389
- * @return The 3D scale as vector (left, up, forward).
16332
+ @copydoc IScaleComponent::GetScale()
16390
16333
  */
16391
16334
  getScale() {
16392
16335
  var _ret = Module._malloc(8);
@@ -16396,19 +16339,30 @@ export class CSPFoundation {
16396
16339
  return _nPtr;
16397
16340
  }
16398
16341
  /**
16399
- * @description Sets the scale of the origin of this component in world space to the specified "Value".
16400
- * @param value - The new value expressed as vector (left, up, forward).
16401
- * NOTE: The coordinate system used follows the glTF 2.0 specification.
16402
- * - Right handed coordinate system
16403
- * - +Y is UP
16404
- * - +X is left (facing forward)
16405
- * - +Z is forward
16342
+ @copydoc IScaleComponent::SetScale()
16406
16343
  */
16407
16344
  setScale(value) {
16408
16345
  Module.ccall("csp_multiplayer_FiducialMarkerSpaceComponent_SetScale_void_Vector3RC", "void", ["number", "number"], [this.pointer, value.pointer]);
16409
16346
  }
16410
16347
  /**
16411
- * \addtogroup IVisibleComponent
16348
+ @copydoc ITransformComponent::GetTransform()
16349
+ */
16350
+ getTransform() {
16351
+ var _ret = Module._malloc(8);
16352
+ Module.ccall("csp_multiplayer_FiducialMarkerSpaceComponent_GetTransformC_SpaceTransform", "void", ["number", "number"], [_ret, this.pointer]);
16353
+ var _nPtr = new Multiplayer.SpaceTransform(getNativePointer(_ret));
16354
+ Module._free(_ret);
16355
+ return _nPtr;
16356
+ }
16357
+ /**
16358
+ @copydoc ITransformComonent::SetTransform()
16359
+ */
16360
+ setTransform(value) {
16361
+ Module.ccall("csp_multiplayer_FiducialMarkerSpaceComponent_SetTransform_void_SpaceTransformRC", "void", ["number", "number"], [this.pointer, value.pointer]);
16362
+ }
16363
+ /**
16364
+ @}
16365
+ * \addtogroup IVisibleComponent
16412
16366
  @{
16413
16367
  @copydoc IVisibleComponent::GetIsVisible()
16414
16368
  */
@@ -16484,13 +16438,9 @@ export class CSPFoundation {
16484
16438
  Module.ccall("csp_multiplayer_FogSpaceComponent_SetFogMode_void_FogMode", "void", ["number", "number"], [this.pointer, value]);
16485
16439
  }
16486
16440
  /**
16487
- * @description Gets the position of the origin of this component in world space.
16488
- * NOTE: The coordinate system used follows the glTF 2.0 specification, in meters.
16489
- * - Right handed coordinate system
16490
- * - +Y is UP
16491
- * - +X is left (facing forward)
16492
- * - +Z is forward
16493
- * @return The 3D position as vector (left, up, forward) in meters.
16441
+ * \addtogroup ITransformComponent
16442
+ @{
16443
+ @copydoc IPositionComponent::GetPosition()
16494
16444
  */
16495
16445
  getPosition() {
16496
16446
  var _ret = Module._malloc(8);
@@ -16500,26 +16450,13 @@ export class CSPFoundation {
16500
16450
  return _nPtr;
16501
16451
  }
16502
16452
  /**
16503
- * @description Sets the position of the origin of this component in world space.
16504
- * NOTE: The coordinate system used follows the glTF 2.0 specification, in meters.
16505
- * - Right handed coordinate system
16506
- * - +Y is UP
16507
- * - +X is left (facing forward)
16508
- * - +Z is forward
16453
+ @copydoc IPositionComponent::SetPosition()
16509
16454
  */
16510
16455
  setPosition(value) {
16511
16456
  Module.ccall("csp_multiplayer_FogSpaceComponent_SetPosition_void_Vector3RC", "void", ["number", "number"], [this.pointer, value.pointer]);
16512
16457
  }
16513
16458
  /**
16514
- * @description Gets a quaternion representing the rotation of the origin of this component, expressed in radians.
16515
- * NOTE: The coordinate system respects the following conventions:
16516
- * - Right handed coordinate system
16517
- * - Positive rotation is counterclockwise
16518
- * - The geographic North is along the positive Z axis (+Z) at an orientation of 0 degrees.
16519
- * - North: +Z
16520
- * - East: -X
16521
- * - South: -Z
16522
- * - West: +X
16459
+ @copydoc IRotationComponent::GetRotation()
16523
16460
  */
16524
16461
  getRotation() {
16525
16462
  var _ret = Module._malloc(8);
@@ -16529,28 +16466,13 @@ export class CSPFoundation {
16529
16466
  return _nPtr;
16530
16467
  }
16531
16468
  /**
16532
- * @description Sets the rotation of the origin of this component according to the specified quaternion "Value", expressed in radians.
16533
- * NOTE: The coordinate system respects the following conventions:
16534
- * - Right handed coordinate system
16535
- * - Positive rotation is counterclockwise
16536
- * - The geographic North is along the positive Z axis (+Z) at an orientation of 0 degrees.
16537
- * - North: +Z
16538
- * - East: -X
16539
- * - South: -Z
16540
- * - West: +X
16541
- * @param value - The quaternion in radians to use as new rotation of this component.
16469
+ @copydoc IRotationComponent::SetRotation()
16542
16470
  */
16543
16471
  setRotation(value) {
16544
16472
  Module.ccall("csp_multiplayer_FogSpaceComponent_SetRotation_void_Vector4RC", "void", ["number", "number"], [this.pointer, value.pointer]);
16545
16473
  }
16546
16474
  /**
16547
- * @description Gets the scale of the origin of this component in world space.
16548
- * NOTE: The coordinate system used follows the glTF 2.0 specification.
16549
- * - Right handed coordinate system
16550
- * - +Y is UP
16551
- * - +X is left (facing forward)
16552
- * - +Z is forward
16553
- * @return The 3D scale as vector (left, up, forward).
16475
+ @copydoc IScaleComponent::GetScale()
16554
16476
  */
16555
16477
  getScale() {
16556
16478
  var _ret = Module._malloc(8);
@@ -16560,18 +16482,29 @@ export class CSPFoundation {
16560
16482
  return _nPtr;
16561
16483
  }
16562
16484
  /**
16563
- * @description Sets the scale of the origin of this component in world space to the specified "Value".
16564
- * @param value - The new value expressed as vector (left, up, forward).
16565
- * NOTE: The coordinate system used follows the glTF 2.0 specification.
16566
- * - Right handed coordinate system
16567
- * - +Y is UP
16568
- * - +X is left (facing forward)
16569
- * - +Z is forward
16485
+ @copydoc IScaleComponent::SetScale()
16570
16486
  */
16571
16487
  setScale(value) {
16572
16488
  Module.ccall("csp_multiplayer_FogSpaceComponent_SetScale_void_Vector3RC", "void", ["number", "number"], [this.pointer, value.pointer]);
16573
16489
  }
16574
16490
  /**
16491
+ @copydoc ITransformComponent::GetTransform()
16492
+ */
16493
+ getTransform() {
16494
+ var _ret = Module._malloc(8);
16495
+ Module.ccall("csp_multiplayer_FogSpaceComponent_GetTransformC_SpaceTransform", "void", ["number", "number"], [_ret, this.pointer]);
16496
+ var _nPtr = new Multiplayer.SpaceTransform(getNativePointer(_ret));
16497
+ Module._free(_ret);
16498
+ return _nPtr;
16499
+ }
16500
+ /**
16501
+ @copydoc ITransformComonent::SetTransform()
16502
+ */
16503
+ setTransform(value) {
16504
+ Module.ccall("csp_multiplayer_FogSpaceComponent_SetTransform_void_SpaceTransformRC", "void", ["number", "number"], [this.pointer, value.pointer]);
16505
+ }
16506
+ /**
16507
+ @}
16575
16508
  * @description Get start sistance
16576
16509
  * Note: Distance from camera that the fog will start.
16577
16510
  * Note: 0 = this property has no effect.
@@ -16841,13 +16774,9 @@ export class CSPFoundation {
16841
16774
  Module.ccall("csp_multiplayer_ImageSpaceComponent_SetAssetCollectionId_void_StringRC", "void", ["number", "string"], [this.pointer, value]);
16842
16775
  }
16843
16776
  /**
16844
- * @description Gets the position of the origin of this component in world space.
16845
- * NOTE: The coordinate system used follows the glTF 2.0 specification, in meters.
16846
- * - Right handed coordinate system
16847
- * - +Y is UP
16848
- * - +X is left (facing forward)
16849
- * - +Z is forward
16850
- * @return The 3D position as vector (left, up, forward) in meters.
16777
+ * \addtogroup ITransformComponent
16778
+ @{
16779
+ @copydoc IPositionComponent::GetPosition()
16851
16780
  */
16852
16781
  getPosition() {
16853
16782
  var _ret = Module._malloc(8);
@@ -16857,26 +16786,13 @@ export class CSPFoundation {
16857
16786
  return _nPtr;
16858
16787
  }
16859
16788
  /**
16860
- * @description Sets the position of the origin of this component in world space.
16861
- * NOTE: The coordinate system used follows the glTF 2.0 specification, in meters.
16862
- * - Right handed coordinate system
16863
- * - +Y is UP
16864
- * - +X is left (facing forward)
16865
- * - +Z is forward
16789
+ @copydoc IPositionComponent::SetPosition()
16866
16790
  */
16867
16791
  setPosition(value) {
16868
16792
  Module.ccall("csp_multiplayer_ImageSpaceComponent_SetPosition_void_Vector3RC", "void", ["number", "number"], [this.pointer, value.pointer]);
16869
16793
  }
16870
16794
  /**
16871
- * @description Gets a quaternion representing the rotation of the origin of this component, expressed in radians.
16872
- * NOTE: The coordinate system respects the following conventions:
16873
- * - Right handed coordinate system
16874
- * - Positive rotation is counterclockwise
16875
- * - The geographic North is along the positive Z axis (+Z) at an orientation of 0 degrees.
16876
- * - North: +Z
16877
- * - East: -X
16878
- * - South: -Z
16879
- * - West: +X
16795
+ @copydoc IRotationComponent::GetRotation()
16880
16796
  */
16881
16797
  getRotation() {
16882
16798
  var _ret = Module._malloc(8);
@@ -16886,28 +16802,13 @@ export class CSPFoundation {
16886
16802
  return _nPtr;
16887
16803
  }
16888
16804
  /**
16889
- * @description Sets the rotation of the origin of this component according to the specified quaternion "Value", expressed in radians.
16890
- * NOTE: The coordinate system respects the following conventions:
16891
- * - Right handed coordinate system
16892
- * - Positive rotation is counterclockwise
16893
- * - The geographic North is along the positive Z axis (+Z) at an orientation of 0 degrees.
16894
- * - North: +Z
16895
- * - East: -X
16896
- * - South: -Z
16897
- * - West: +X
16898
- * @param value - The quaternion in radians to use as new rotation of this component.
16805
+ @copydoc IRotationComponent::SetRotation()
16899
16806
  */
16900
16807
  setRotation(value) {
16901
16808
  Module.ccall("csp_multiplayer_ImageSpaceComponent_SetRotation_void_Vector4RC", "void", ["number", "number"], [this.pointer, value.pointer]);
16902
16809
  }
16903
16810
  /**
16904
- * @description Gets the scale of the origin of this component in world space.
16905
- * NOTE: The coordinate system used follows the glTF 2.0 specification.
16906
- * - Right handed coordinate system
16907
- * - +Y is UP
16908
- * - +X is left (facing forward)
16909
- * - +Z is forward
16910
- * @return The 3D scale as vector (left, up, forward).
16811
+ @copydoc IScaleComponent::GetScale()
16911
16812
  */
16912
16813
  getScale() {
16913
16814
  var _ret = Module._malloc(8);
@@ -16917,18 +16818,29 @@ export class CSPFoundation {
16917
16818
  return _nPtr;
16918
16819
  }
16919
16820
  /**
16920
- * @description Sets the scale of the origin of this component in world space to the specified "Value".
16921
- * @param value - The new value expressed as vector (left, up, forward).
16922
- * NOTE: The coordinate system used follows the glTF 2.0 specification.
16923
- * - Right handed coordinate system
16924
- * - +Y is UP
16925
- * - +X is left (facing forward)
16926
- * - +Z is forward
16821
+ @copydoc IScaleComponent::SetScale()
16927
16822
  */
16928
16823
  setScale(value) {
16929
16824
  Module.ccall("csp_multiplayer_ImageSpaceComponent_SetScale_void_Vector3RC", "void", ["number", "number"], [this.pointer, value.pointer]);
16930
16825
  }
16931
16826
  /**
16827
+ @copydoc ITransformComponent::GetTransform()
16828
+ */
16829
+ getTransform() {
16830
+ var _ret = Module._malloc(8);
16831
+ Module.ccall("csp_multiplayer_ImageSpaceComponent_GetTransformC_SpaceTransform", "void", ["number", "number"], [_ret, this.pointer]);
16832
+ var _nPtr = new Multiplayer.SpaceTransform(getNativePointer(_ret));
16833
+ Module._free(_ret);
16834
+ return _nPtr;
16835
+ }
16836
+ /**
16837
+ @copydoc ITransformComonent::SetTransform()
16838
+ */
16839
+ setTransform(value) {
16840
+ Module.ccall("csp_multiplayer_ImageSpaceComponent_SetTransform_void_SpaceTransformRC", "void", ["number", "number"], [this.pointer, value.pointer]);
16841
+ }
16842
+ /**
16843
+ @}
16932
16844
  * @description Gets the billboard mode used by this image component.
16933
16845
  * @return The billboard mode used by this image component.
16934
16846
  */
@@ -17151,13 +17063,9 @@ export class CSPFoundation {
17151
17063
  Module.ccall("csp_multiplayer_LightSpaceComponent_SetOuterConeAngle_void_float", "void", ["number", "number"], [this.pointer, value]);
17152
17064
  }
17153
17065
  /**
17154
- * @description Gets the position of the origin of this component in world space.
17155
- * NOTE: The coordinate system used follows the glTF 2.0 specification, in meters.
17156
- * - Right handed coordinate system
17157
- * - +Y is UP
17158
- * - +X is left (facing forward)
17159
- * - +Z is forward
17160
- * @return The 3D position as vector (left, up, forward) in meters.
17066
+ * \addtogroup IPositionComponent
17067
+ @{
17068
+ @copydoc IPositionComponent::GetPosition()
17161
17069
  */
17162
17070
  getPosition() {
17163
17071
  var _ret = Module._malloc(8);
@@ -17167,26 +17075,16 @@ export class CSPFoundation {
17167
17075
  return _nPtr;
17168
17076
  }
17169
17077
  /**
17170
- * @description Sets the position of the origin of this component in world space.
17171
- * NOTE: The coordinate system used follows the glTF 2.0 specification, in meters.
17172
- * - Right handed coordinate system
17173
- * - +Y is UP
17174
- * - +X is left (facing forward)
17175
- * - +Z is forward
17078
+ @copydoc IPositionComponent::SetPosition()
17176
17079
  */
17177
17080
  setPosition(value) {
17178
17081
  Module.ccall("csp_multiplayer_LightSpaceComponent_SetPosition_void_Vector3RC", "void", ["number", "number"], [this.pointer, value.pointer]);
17179
17082
  }
17180
17083
  /**
17181
- * @description Gets a quaternion representing the rotation of the origin of this component, expressed in radians.
17182
- * NOTE: The coordinate system respects the following conventions:
17183
- * - Right handed coordinate system
17184
- * - Positive rotation is counterclockwise
17185
- * - The geographic North is along the positive Z axis (+Z) at an orientation of 0 degrees.
17186
- * - North: +Z
17187
- * - East: -X
17188
- * - South: -Z
17189
- * - West: +X
17084
+ @}
17085
+ * \addtogroup IRotationComponent
17086
+ @{
17087
+ @copydoc IRotationComponent::GetRotation()
17190
17088
  */
17191
17089
  getRotation() {
17192
17090
  var _ret = Module._malloc(8);
@@ -17196,21 +17094,13 @@ export class CSPFoundation {
17196
17094
  return _nPtr;
17197
17095
  }
17198
17096
  /**
17199
- * @description Sets the rotation of the origin of this component according to the specified quaternion "Value", expressed in radians.
17200
- * NOTE: The coordinate system respects the following conventions:
17201
- * - Right handed coordinate system
17202
- * - Positive rotation is counterclockwise
17203
- * - The geographic North is along the positive Z axis (+Z) at an orientation of 0 degrees.
17204
- * - North: +Z
17205
- * - East: -X
17206
- * - South: -Z
17207
- * - West: +X
17208
- * @param value - The quaternion in radians to use as new rotation of this component.
17097
+ @copydoc IRotationComponent::SetRotation()
17209
17098
  */
17210
17099
  setRotation(value) {
17211
17100
  Module.ccall("csp_multiplayer_LightSpaceComponent_SetRotation_void_Vector4RC", "void", ["number", "number"], [this.pointer, value.pointer]);
17212
17101
  }
17213
17102
  /**
17103
+ @}
17214
17104
  * @description Gets the ID of the asset used for the light cookie of this light component.
17215
17105
  * @return The ID of the asset used for the light cookie of this light component.
17216
17106
  */
@@ -17360,13 +17250,9 @@ export class CSPFoundation {
17360
17250
  Module.ccall("csp_multiplayer_PortalSpaceComponent_SetSpaceId_void_StringRC", "void", ["number", "string"], [this.pointer, value]);
17361
17251
  }
17362
17252
  /**
17363
- * @description Gets the position of the origin of this component in world space.
17364
- * NOTE: The coordinate system used follows the glTF 2.0 specification, in meters.
17365
- * - Right handed coordinate system
17366
- * - +Y is UP
17367
- * - +X is left (facing forward)
17368
- * - +Z is forward
17369
- * @return The 3D position as vector (left, up, forward) in meters.
17253
+ * \addtogroup IPositionComponent
17254
+ @{
17255
+ @copydoc IPositionComponent::GetPosition()
17370
17256
  */
17371
17257
  getPosition() {
17372
17258
  var _ret = Module._malloc(8);
@@ -17376,17 +17262,13 @@ export class CSPFoundation {
17376
17262
  return _nPtr;
17377
17263
  }
17378
17264
  /**
17379
- * @description Sets the position of the origin of this component in world space.
17380
- * NOTE: The coordinate system used follows the glTF 2.0 specification, in meters.
17381
- * - Right handed coordinate system
17382
- * - +Y is UP
17383
- * - +X is left (facing forward)
17384
- * - +Z is forward
17265
+ @copydoc IPositionComponent::SetPosition()
17385
17266
  */
17386
17267
  setPosition(value) {
17387
17268
  Module.ccall("csp_multiplayer_PortalSpaceComponent_SetPosition_void_Vector3RC", "void", ["number", "number"], [this.pointer, value.pointer]);
17388
17269
  }
17389
17270
  /**
17271
+ @}
17390
17272
  * @description Gets the radius of this portal.
17391
17273
  * @return The radius of this portal.
17392
17274
  */
@@ -17533,7 +17415,9 @@ export class CSPFoundation {
17533
17415
  Module.ccall("csp_multiplayer_ReflectionSpaceComponent_SetAssetCollectionId_void_StringRC", "void", ["number", "string"], [this.pointer, value]);
17534
17416
  }
17535
17417
  /**
17536
- * @description Position of the Reflection component.
17418
+ * \addtogroup IPositionComponent
17419
+ @{
17420
+ @copydoc IPositionComponent::GetPosition()
17537
17421
  */
17538
17422
  getPosition() {
17539
17423
  var _ret = Module._malloc(8);
@@ -17543,26 +17427,16 @@ export class CSPFoundation {
17543
17427
  return _nPtr;
17544
17428
  }
17545
17429
  /**
17546
- * @description Set the position of the Reflection component.
17547
- * @param value - Position of the Reflection Component.
17430
+ @copydoc IPositionComponent::SetPosition()
17548
17431
  */
17549
17432
  setPosition(value) {
17550
17433
  Module.ccall("csp_multiplayer_ReflectionSpaceComponent_SetPosition_void_Vector3RC", "void", ["number", "number"], [this.pointer, value.pointer]);
17551
17434
  }
17552
17435
  /**
17553
- * @description Rotation of the Reflection component.
17554
- * @return Will return an Identity Quaternion (0, 0, 0, 1).
17555
- */
17556
- getRotation() {
17557
- var _ret = Module._malloc(8);
17558
- Module.ccall("csp_multiplayer_ReflectionSpaceComponent_GetRotationC_Vector4RC", "void", ["number", "number"], [_ret, this.pointer]);
17559
- var _nPtr = new Common.Vector4(getNativePointer(_ret));
17560
- Module._free(_ret);
17561
- return _nPtr;
17562
- }
17563
- /**
17564
- * @description Scale of the Reflection components spatial extents over which the reflection should apply.
17565
- * UnitBox/Sphere * Scale == Spatial Extents.
17436
+ @}
17437
+ * \addtogroup IScaleComponent
17438
+ @{
17439
+ @copydoc IScaleComponent::GetScale()
17566
17440
  */
17567
17441
  getScale() {
17568
17442
  var _ret = Module._malloc(8);
@@ -17572,14 +17446,13 @@ export class CSPFoundation {
17572
17446
  return _nPtr;
17573
17447
  }
17574
17448
  /**
17575
- * @description Set the scale of the Reflection components spatial extents.
17576
- * @param value - Scale extents of the Reflection Component.
17577
- * UnitBox/Sphere * Scale == Spatial Extents.
17449
+ @copydoc IScaleComponent::SetScale()
17578
17450
  */
17579
17451
  setScale(value) {
17580
17452
  Module.ccall("csp_multiplayer_ReflectionSpaceComponent_SetScale_void_Vector3RC", "void", ["number", "number"], [this.pointer, value.pointer]);
17581
17453
  }
17582
17454
  /**
17455
+ @}
17583
17456
  * @description Get the reflection shape enum value.
17584
17457
  * ReflectionShape.UnitBox: Projects a texture in a planar fashion from all six directions (like an inward facing cube).
17585
17458
  * ReflectionShape.UnitSphere: Warps the texture into a spherical shape and projects it onto a surface.
@@ -17796,6 +17669,9 @@ export class CSPFoundation {
17796
17669
  var _nPtr = getNativePointer(_ptr);
17797
17670
  return new StaticModelSpaceComponent(_nPtr);
17798
17671
  }
17672
+ /** @deprecated
17673
+ Due to the introduction of LODs it doesn't make sense to set a specific asset anymore
17674
+ */
17799
17675
  getExternalResourceAssetId() {
17800
17676
  let _result = Module.ccall("csp_multiplayer_StaticModelSpaceComponent_GetExternalResourceAssetIdC_StringRC", "number", ["number"], [this.pointer]);
17801
17677
  const _resultString = Module.UTF8ToString(_result);
@@ -17803,6 +17679,9 @@ export class CSPFoundation {
17803
17679
  _result = _resultString;
17804
17680
  return _result;
17805
17681
  }
17682
+ /** @deprecated
17683
+ Due to the introduction of LODs it doesn't make sense to set a specific asset anymore
17684
+ */
17806
17685
  setExternalResourceAssetId(value) {
17807
17686
  Module.ccall("csp_multiplayer_StaticModelSpaceComponent_SetExternalResourceAssetId_void_StringRC", "void", ["number", "string"], [this.pointer, value]);
17808
17687
  }
@@ -18064,13 +17943,9 @@ export class CSPFoundation {
18064
17943
  Module.ccall("csp_multiplayer_VideoPlayerSpaceComponent_SetAssetCollectionId_void_StringRC", "void", ["number", "string"], [this.pointer, value]);
18065
17944
  }
18066
17945
  /**
18067
- * @description Gets the position of the origin of this component in world space.
18068
- * NOTE: The coordinate system used follows the glTF 2.0 specification, in meters.
18069
- * - Right handed coordinate system
18070
- * - +Y is UP
18071
- * - +X is left (facing forward)
18072
- * - +Z is forward
18073
- * @return The 3D position as vector (left, up, forward) in meters.
17946
+ * \addtogroup ITransformComponent
17947
+ @{
17948
+ @copydoc IPositionComponent::GetPosition()
18074
17949
  */
18075
17950
  getPosition() {
18076
17951
  var _ret = Module._malloc(8);
@@ -18080,26 +17955,13 @@ export class CSPFoundation {
18080
17955
  return _nPtr;
18081
17956
  }
18082
17957
  /**
18083
- * @description Sets the position of the origin of this component in world space.
18084
- * NOTE: The coordinate system used follows the glTF 2.0 specification, in meters.
18085
- * - Right handed coordinate system
18086
- * - +Y is UP
18087
- * - +X is left (facing forward)
18088
- * - +Z is forward
17958
+ @copydoc IPositionComponent::SetPosition()
18089
17959
  */
18090
17960
  setPosition(value) {
18091
17961
  Module.ccall("csp_multiplayer_VideoPlayerSpaceComponent_SetPosition_void_Vector3RC", "void", ["number", "number"], [this.pointer, value.pointer]);
18092
17962
  }
18093
17963
  /**
18094
- * @description Gets a quaternion representing the rotation of the origin of this component, expressed in radians.
18095
- * NOTE: The coordinate system respects the following conventions:
18096
- * - Right handed coordinate system
18097
- * - Positive rotation is counterclockwise
18098
- * - The geographic North is along the positive Z axis (+Z) at an orientation of 0 degrees.
18099
- * - North: +Z
18100
- * - East: -X
18101
- * - South: -Z
18102
- * - West: +X
17964
+ @copydoc IRotationComponent::GetRotation()
18103
17965
  */
18104
17966
  getRotation() {
18105
17967
  var _ret = Module._malloc(8);
@@ -18109,28 +17971,13 @@ export class CSPFoundation {
18109
17971
  return _nPtr;
18110
17972
  }
18111
17973
  /**
18112
- * @description Sets the rotation of the origin of this component according to the specified quaternion "Value", expressed in radians.
18113
- * NOTE: The coordinate system respects the following conventions:
18114
- * - Right handed coordinate system
18115
- * - Positive rotation is counterclockwise
18116
- * - The geographic North is along the positive Z axis (+Z) at an orientation of 0 degrees.
18117
- * - North: +Z
18118
- * - East: -X
18119
- * - South: -Z
18120
- * - West: +X
18121
- * @param value - The quaternion in radians to use as new rotation of this component.
17974
+ @copydoc IRotationComponent::SetRotation()
18122
17975
  */
18123
17976
  setRotation(value) {
18124
17977
  Module.ccall("csp_multiplayer_VideoPlayerSpaceComponent_SetRotation_void_Vector4RC", "void", ["number", "number"], [this.pointer, value.pointer]);
18125
17978
  }
18126
17979
  /**
18127
- * @description Gets the scale of the origin of this component in world space.
18128
- * NOTE: The coordinate system used follows the glTF 2.0 specification.
18129
- * - Right handed coordinate system
18130
- * - +Y is UP
18131
- * - +X is left (facing forward)
18132
- * - +Z is forward
18133
- * @return The 3D scale as vector (left, up, forward).
17980
+ @copydoc IScaleComponent::GetScale()
18134
17981
  */
18135
17982
  getScale() {
18136
17983
  var _ret = Module._malloc(8);
@@ -18140,18 +17987,29 @@ export class CSPFoundation {
18140
17987
  return _nPtr;
18141
17988
  }
18142
17989
  /**
18143
- * @description Sets the scale of the origin of this component in world space to the specified "Value".
18144
- * @param value - The new value expressed as vector (left, up, forward).
18145
- * NOTE: The coordinate system used follows the glTF 2.0 specification.
18146
- * - Right handed coordinate system
18147
- * - +Y is UP
18148
- * - +X is left (facing forward)
18149
- * - +Z is forward
17990
+ @copydoc IScaleComponent::SetScale()
18150
17991
  */
18151
17992
  setScale(value) {
18152
17993
  Module.ccall("csp_multiplayer_VideoPlayerSpaceComponent_SetScale_void_Vector3RC", "void", ["number", "number"], [this.pointer, value.pointer]);
18153
17994
  }
18154
17995
  /**
17996
+ @copydoc ITransformComponent::GetTransform()
17997
+ */
17998
+ getTransform() {
17999
+ var _ret = Module._malloc(8);
18000
+ Module.ccall("csp_multiplayer_VideoPlayerSpaceComponent_GetTransformC_SpaceTransform", "void", ["number", "number"], [_ret, this.pointer]);
18001
+ var _nPtr = new Multiplayer.SpaceTransform(getNativePointer(_ret));
18002
+ Module._free(_ret);
18003
+ return _nPtr;
18004
+ }
18005
+ /**
18006
+ @copydoc ITransformComonent::SetTransform()
18007
+ */
18008
+ setTransform(value) {
18009
+ Module.ccall("csp_multiplayer_VideoPlayerSpaceComponent_SetTransform_void_SpaceTransformRC", "void", ["number", "number"], [this.pointer, value.pointer]);
18010
+ }
18011
+ /**
18012
+ @}
18155
18013
  * @description Checks if the playback state of this video player needs to be shared with other users through replication.
18156
18014
  * @return True if the playback state of the video needs to be shared among all users, false otherwise.
18157
18015
  */
@@ -18858,6 +18716,9 @@ export class CSPFoundation {
18858
18716
  _result = _resultString;
18859
18717
  return _result;
18860
18718
  }
18719
+ setUri(value) {
18720
+ Module.ccall("csp_systems_UriResult_SetUri_void_StringRC", "void", ["number", "string"], [this.pointer, value]);
18721
+ }
18861
18722
  delete() {
18862
18723
  if (this.ownsPointer && !this.disposed) {
18863
18724
  Module.ccall("csp_systems_UriResult_Dtor", "void", ["number"], [this.pointer]);
@@ -19085,11 +18946,15 @@ export class CSPFoundation {
19085
18946
  return _promise;
19086
18947
  }
19087
18948
  /**
19088
- * @description Finds an asset collection by its Id.
19089
- * @param assetCollectionId - Asset collection to delete
18949
+ * @description Copies an array of asset collections to another space. Note that all source asset collections must belong to the same space.
18950
+ * @param sourceAssetCollections - The array of asset collections to copy. They must all belong to the same
18951
+ * space.
18952
+ * @param destSpaceId - The unique identifier of the space to copy these asset collections to.
18953
+ * @param copyAsync - Whether to instruct the services to perform the copy of the asset collections
18954
+ * asynchronously.
19090
18955
  * @param callback - Callback when asynchronous task finishes
19091
18956
  */
19092
- async getAssetCollectionById(assetCollectionId) {
18957
+ async copyAssetCollectionsToSpace(sourceAssetCollections, destSpaceId, copyAsync) {
19093
18958
  var _resolve;
19094
18959
  var _promise = new Promise((_r) => {
19095
18960
  _resolve = _r;
@@ -19097,7 +18962,7 @@ export class CSPFoundation {
19097
18962
  var _callbackPtr;
19098
18963
  var _callback = (_stateObject__, result) => {
19099
18964
  var _resultPtr = getNativePointer(result);
19100
- var _resultInstance = new Systems.AssetCollectionResult(_resultPtr);
18965
+ var _resultInstance = new Systems.AssetCollectionsResult(_resultPtr);
19101
18966
  if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
19102
18967
  return;
19103
18968
  }
@@ -19105,15 +18970,22 @@ export class CSPFoundation {
19105
18970
  Module.removeFunction(_callbackPtr);
19106
18971
  };
19107
18972
  _callbackPtr = Module.addFunction(_callback, "vii");
19108
- Module.ccall("csp_systems_AssetSystem_GetAssetCollectionById_void_StringRC_AssetCollectionResultCallback", "void", ["number", "string", "number", "number"], [this.pointer, assetCollectionId, _callbackPtr, 0]);
18973
+ Module.ccall("csp_systems_AssetSystem_CopyAssetCollectionsToSpace_void_ArrayR_StringRC_bool_AssetCollectionsResultCallback", "void", ["number", "number", "string", "boolean", "number", "number"], [
18974
+ this.pointer,
18975
+ sourceAssetCollections.pointer,
18976
+ destSpaceId,
18977
+ copyAsync,
18978
+ _callbackPtr,
18979
+ 0,
18980
+ ]);
19109
18981
  return _promise;
19110
18982
  }
19111
18983
  /**
19112
- * @description Finds an asset collection by its Name.
19113
- * @param assetCollectionName - Name of the asset collection to be retrieved
18984
+ * @description Finds an asset collection by its Id.
18985
+ * @param assetCollectionId - Asset collection to delete
19114
18986
  * @param callback - Callback when asynchronous task finishes
19115
18987
  */
19116
- async getAssetCollectionByName(assetCollectionName) {
18988
+ async getAssetCollectionById(assetCollectionId) {
19117
18989
  var _resolve;
19118
18990
  var _promise = new Promise((_r) => {
19119
18991
  _resolve = _r;
@@ -19129,15 +19001,15 @@ export class CSPFoundation {
19129
19001
  Module.removeFunction(_callbackPtr);
19130
19002
  };
19131
19003
  _callbackPtr = Module.addFunction(_callback, "vii");
19132
- Module.ccall("csp_systems_AssetSystem_GetAssetCollectionByName_void_StringRC_AssetCollectionResultCallback", "void", ["number", "string", "number", "number"], [this.pointer, assetCollectionName, _callbackPtr, 0]);
19004
+ Module.ccall("csp_systems_AssetSystem_GetAssetCollectionById_void_StringRC_AssetCollectionResultCallback", "void", ["number", "string", "number", "number"], [this.pointer, assetCollectionId, _callbackPtr, 0]);
19133
19005
  return _promise;
19134
19006
  }
19135
19007
  /**
19136
- * @description Finds a collection of asset collections by their Ids.
19137
- * @param assetCollectionIds - An array of ids to search for
19008
+ * @description Finds an asset collection by its Name.
19009
+ * @param assetCollectionName - Name of the asset collection to be retrieved
19138
19010
  * @param callback - Callback when asynchronous task finishes
19139
19011
  */
19140
- async getAssetCollectionsByIds(assetCollectionIds) {
19012
+ async getAssetCollectionByName(assetCollectionName) {
19141
19013
  var _resolve;
19142
19014
  var _promise = new Promise((_r) => {
19143
19015
  _resolve = _r;
@@ -19145,7 +19017,7 @@ export class CSPFoundation {
19145
19017
  var _callbackPtr;
19146
19018
  var _callback = (_stateObject__, result) => {
19147
19019
  var _resultPtr = getNativePointer(result);
19148
- var _resultInstance = new Systems.AssetCollectionsResult(_resultPtr);
19020
+ var _resultInstance = new Systems.AssetCollectionResult(_resultPtr);
19149
19021
  if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
19150
19022
  return;
19151
19023
  }
@@ -19153,7 +19025,7 @@ export class CSPFoundation {
19153
19025
  Module.removeFunction(_callbackPtr);
19154
19026
  };
19155
19027
  _callbackPtr = Module.addFunction(_callback, "vii");
19156
- Module.ccall("csp_systems_AssetSystem_GetAssetCollectionsByIds_void_ArrayRC_AssetCollectionsResultCallback", "void", ["number", "number", "number", "number"], [this.pointer, assetCollectionIds.pointer, _callbackPtr, 0]);
19028
+ Module.ccall("csp_systems_AssetSystem_GetAssetCollectionByName_void_StringRC_AssetCollectionResultCallback", "void", ["number", "string", "number", "number"], [this.pointer, assetCollectionName, _callbackPtr, 0]);
19157
19029
  return _promise;
19158
19030
  }
19159
19031
  /**
@@ -19171,7 +19043,7 @@ export class CSPFoundation {
19171
19043
  * entries pass nullptr.
19172
19044
  * @param callback - Callback when asynchronous task finishes
19173
19045
  */
19174
- async getAssetCollectionsByCriteria(spaceId, assetCollectionParentId, assetCollectionType, assetCollectionTags, assetCollectionNames, resultsSkipNumber, resultsMaxNumber) {
19046
+ async findAssetCollections(ids, parentId, names, types, tags, spaceIds, resultsSkipNumber, resultsMaxNumber) {
19175
19047
  var _resolve;
19176
19048
  var _promise = new Promise((_r) => {
19177
19049
  _resolve = _r;
@@ -19187,11 +19059,6 @@ export class CSPFoundation {
19187
19059
  Module.removeFunction(_callbackPtr);
19188
19060
  };
19189
19061
  _callbackPtr = Module.addFunction(_callback, "vii");
19190
- var assetCollectionTypePointer = 0;
19191
- if (assetCollectionType != null) {
19192
- assetCollectionTypePointer = Module._malloc(4);
19193
- Module.setValue(assetCollectionTypePointer, assetCollectionType, "i32");
19194
- }
19195
19062
  var resultsSkipNumberPointer = 0;
19196
19063
  if (resultsSkipNumber != null) {
19197
19064
  resultsSkipNumberPointer = Module._malloc(4);
@@ -19202,10 +19069,11 @@ export class CSPFoundation {
19202
19069
  resultsMaxNumberPointer = Module._malloc(4);
19203
19070
  Module.setValue(resultsMaxNumberPointer, resultsMaxNumber, "i32");
19204
19071
  }
19205
- Module.ccall("csp_systems_AssetSystem_GetAssetCollectionsByCriteria_void_StringRC_StringRC_EAssetCollectionTypeRC_ArrayRC_ArrayRC_intRC_intRC_AssetCollectionsResultCallback", "void", [
19072
+ Module.ccall("csp_systems_AssetSystem_FindAssetCollections_void_ArrayRC_StringRC_ArrayRC_ArrayRC_ArrayRC_ArrayRC_intRC_intRC_AssetCollectionsResultCallback", "void", [
19073
+ "number",
19206
19074
  "number",
19207
19075
  "string",
19208
- "string",
19076
+ "number",
19209
19077
  "number",
19210
19078
  "number",
19211
19079
  "number",
@@ -19215,19 +19083,17 @@ export class CSPFoundation {
19215
19083
  "number",
19216
19084
  ], [
19217
19085
  this.pointer,
19218
- spaceId,
19219
- assetCollectionParentId,
19220
- assetCollectionTypePointer,
19221
- assetCollectionTags != null ? assetCollectionTags.pointer : 0,
19222
- assetCollectionNames != null ? assetCollectionNames.pointer : 0,
19086
+ ids != null ? ids.pointer : 0,
19087
+ parentId,
19088
+ names != null ? names.pointer : 0,
19089
+ types != null ? types.pointer : 0,
19090
+ tags != null ? tags.pointer : 0,
19091
+ spaceIds != null ? spaceIds.pointer : 0,
19223
19092
  resultsSkipNumberPointer,
19224
19093
  resultsMaxNumberPointer,
19225
19094
  _callbackPtr,
19226
19095
  0,
19227
19096
  ]);
19228
- if (assetCollectionTypePointer) {
19229
- Module._free(assetCollectionTypePointer);
19230
- }
19231
19097
  if (resultsSkipNumberPointer) {
19232
19098
  Module._free(resultsSkipNumberPointer);
19233
19099
  }
@@ -19899,12 +19765,6 @@ export class CSPFoundation {
19899
19765
  const nativeClassWrapper = baseInstance;
19900
19766
  return new Systems.ECommerceSystem(new NativePointer(nativeClassWrapper.pointer, nativeClassWrapper.ownsPointer));
19901
19767
  }
19902
- static create() {
19903
- var _ptr = Module._malloc(8);
19904
- Module.ccall("csp_systems_ECommerceSystem_Ctor", "void", ["number"], [_ptr]);
19905
- var _nPtr = getNativePointer(_ptr);
19906
- return new ECommerceSystem(_nPtr);
19907
- }
19908
19768
  /**
19909
19769
  * @description Get product information from a shopify store within a space
19910
19770
  * @param spaceId - Space id of product
@@ -20642,24 +20502,6 @@ export class CSPFoundation {
20642
20502
  const nativeClassWrapper = baseInstance;
20643
20503
  return new Systems.MaintenanceInfoResult(new NativePointer(nativeClassWrapper.pointer, nativeClassWrapper.ownsPointer));
20644
20504
  }
20645
- static create() {
20646
- var _ptr = Module._malloc(8);
20647
- Module.ccall("csp_systems_MaintenanceInfoResult_Ctor", "void", ["number"], [_ptr]);
20648
- var _nPtr = getNativePointer(_ptr);
20649
- return new MaintenanceInfoResult(_nPtr);
20650
- }
20651
- static create_arg1(arg1) {
20652
- var _ptr = Module._malloc(8);
20653
- Module.ccall("csp_systems_MaintenanceInfoResult_Ctor_voidP", "void", ["number", "void"], [_ptr, arg1]);
20654
- var _nPtr = getNativePointer(_ptr);
20655
- return new MaintenanceInfoResult(_nPtr);
20656
- }
20657
- static create_resCode_httpResCode(resCode, httpResCode) {
20658
- var _ptr = Module._malloc(8);
20659
- Module.ccall("csp_systems_MaintenanceInfoResult_Ctor_EResultCode_uint16_t", "void", ["number", "number", "number"], [_ptr, resCode, httpResCode]);
20660
- var _nPtr = getNativePointer(_ptr);
20661
- return new MaintenanceInfoResult(_nPtr);
20662
- }
20663
20505
  /**
20664
20506
  * @description Retrieves response data from the Maintenance Window Server
20665
20507
  * @return Return all maintenance information available in date order
@@ -21166,6 +21008,42 @@ export class CSPFoundation {
21166
21008
  }
21167
21009
  Systems.SettingsCollectionResult = SettingsCollectionResult;
21168
21010
  })(Systems || (Systems = {}));
21011
+ (function (Systems) {
21012
+ /**
21013
+ * @description A result handler that is used to notify a user of an error while passing a String value.
21014
+ */
21015
+ class AvatarInfoResult extends Systems.ResultBase {
21016
+ /** @internal */
21017
+ constructor(pointer) {
21018
+ super(pointer);
21019
+ }
21020
+ static fromResultBase(baseInstance) {
21021
+ const nativeClassWrapper = baseInstance;
21022
+ return new Systems.AvatarInfoResult(new NativePointer(nativeClassWrapper.pointer, nativeClassWrapper.ownsPointer));
21023
+ }
21024
+ /**
21025
+ * @description A getter which returns the String passed via the result.
21026
+ */
21027
+ getAvatarType() {
21028
+ let _result = Module.ccall("csp_systems_AvatarInfoResult_GetAvatarTypeC_AvatarType", "number", ["number"], [this.pointer]);
21029
+ return _result;
21030
+ }
21031
+ getAvatarIdentifier() {
21032
+ var _ret = Module._malloc(8);
21033
+ Module.ccall("csp_systems_AvatarInfoResult_GetAvatarIdentifierC_VariantRC", "void", ["number", "number"], [_ret, this.pointer]);
21034
+ var _nPtr = new Common.Variant(getNativePointer(_ret));
21035
+ Module._free(_ret);
21036
+ return _nPtr;
21037
+ }
21038
+ delete() {
21039
+ if (this.ownsPointer && !this.disposed) {
21040
+ Module.ccall("csp_systems_AvatarInfoResult_Dtor", "void", ["number"], [this.pointer]);
21041
+ this.disposed = true;
21042
+ }
21043
+ }
21044
+ }
21045
+ Systems.AvatarInfoResult = AvatarInfoResult;
21046
+ })(Systems || (Systems = {}));
21169
21047
  (function (Systems) {
21170
21048
  /**
21171
21049
  @ingroup Settings System
@@ -21187,7 +21065,7 @@ export class CSPFoundation {
21187
21065
  * @param inValue - Boolean reflecting desired state to store in magnopus connected services.
21188
21066
  * @param callback - Callback when asynchronous task finishes.
21189
21067
  */
21190
- async setNDAStatus(userId, value) {
21068
+ async setNDAStatus(value) {
21191
21069
  var _resolve;
21192
21070
  var _promise = new Promise((_r) => {
21193
21071
  _resolve = _r;
@@ -21203,14 +21081,14 @@ export class CSPFoundation {
21203
21081
  Module.removeFunction(_callbackPtr);
21204
21082
  };
21205
21083
  _callbackPtr = Module.addFunction(_callback, "vii");
21206
- Module.ccall("csp_systems_SettingsSystem_SetNDAStatus_void_StringRC_bool_NullResultCallback", "void", ["number", "string", "boolean", "number", "number"], [this.pointer, userId, value, _callbackPtr, 0]);
21084
+ Module.ccall("csp_systems_SettingsSystem_SetNDAStatus_void_bool_NullResultCallback", "void", ["number", "boolean", "number", "number"], [this.pointer, value, _callbackPtr, 0]);
21207
21085
  return _promise;
21208
21086
  }
21209
21087
  /**
21210
21088
  * @description Get a boolean indicating whether the current user has completed a non-disclosure agreement.
21211
21089
  * @param callback - Callback to call when a response is received.
21212
21090
  */
21213
- async getNDAStatus(userId) {
21091
+ async getNDAStatus() {
21214
21092
  var _resolve;
21215
21093
  var _promise = new Promise((_r) => {
21216
21094
  _resolve = _r;
@@ -21226,7 +21104,7 @@ export class CSPFoundation {
21226
21104
  Module.removeFunction(_callbackPtr);
21227
21105
  };
21228
21106
  _callbackPtr = Module.addFunction(_callback, "vii");
21229
- Module.ccall("csp_systems_SettingsSystem_GetNDAStatus_void_StringRC_BooleanResultCallback", "void", ["number", "string", "number", "number"], [this.pointer, userId, _callbackPtr, 0]);
21107
+ Module.ccall("csp_systems_SettingsSystem_GetNDAStatus_void_BooleanResultCallback", "void", ["number", "number", "number"], [this.pointer, _callbackPtr, 0]);
21230
21108
  return _promise;
21231
21109
  }
21232
21110
  /**
@@ -21235,7 +21113,7 @@ export class CSPFoundation {
21235
21113
  * @param inValue - Boolean reflecting desired state to store in magnopus connected services
21236
21114
  * @param callback - Callback when asynchronous task finishes
21237
21115
  */
21238
- async setNewsletterStatus(userId, value) {
21116
+ async setNewsletterStatus(value) {
21239
21117
  var _resolve;
21240
21118
  var _promise = new Promise((_r) => {
21241
21119
  _resolve = _r;
@@ -21251,14 +21129,14 @@ export class CSPFoundation {
21251
21129
  Module.removeFunction(_callbackPtr);
21252
21130
  };
21253
21131
  _callbackPtr = Module.addFunction(_callback, "vii");
21254
- Module.ccall("csp_systems_SettingsSystem_SetNewsletterStatus_void_StringRC_bool_NullResultCallback", "void", ["number", "string", "boolean", "number", "number"], [this.pointer, userId, value, _callbackPtr, 0]);
21132
+ Module.ccall("csp_systems_SettingsSystem_SetNewsletterStatus_void_bool_NullResultCallback", "void", ["number", "boolean", "number", "number"], [this.pointer, value, _callbackPtr, 0]);
21255
21133
  return _promise;
21256
21134
  }
21257
21135
  /**
21258
21136
  * @description Get a boolean indicating whether the current user has opted into receiving a newsletter.
21259
21137
  * @param callback - Callback to call when a response is received.
21260
21138
  */
21261
- async getNewsletterStatus(userId) {
21139
+ async getNewsletterStatus() {
21262
21140
  var _resolve;
21263
21141
  var _promise = new Promise((_r) => {
21264
21142
  _resolve = _r;
@@ -21274,7 +21152,7 @@ export class CSPFoundation {
21274
21152
  Module.removeFunction(_callbackPtr);
21275
21153
  };
21276
21154
  _callbackPtr = Module.addFunction(_callback, "vii");
21277
- Module.ccall("csp_systems_SettingsSystem_GetNewsletterStatus_void_StringRC_BooleanResultCallback", "void", ["number", "string", "number", "number"], [this.pointer, userId, _callbackPtr, 0]);
21155
+ Module.ccall("csp_systems_SettingsSystem_GetNewsletterStatus_void_BooleanResultCallback", "void", ["number", "number", "number"], [this.pointer, _callbackPtr, 0]);
21278
21156
  return _promise;
21279
21157
  }
21280
21158
  /**
@@ -21284,7 +21162,7 @@ export class CSPFoundation {
21284
21162
  * @param inSpaceID - SpaceID of most recent space entered
21285
21163
  * @param callback - Callback when asynchronous task finishes
21286
21164
  */
21287
- async addRecentlyVisitedSpace(userId, spaceID) {
21165
+ async addRecentlyVisitedSpace(spaceID) {
21288
21166
  var _resolve;
21289
21167
  var _promise = new Promise((_r) => {
21290
21168
  _resolve = _r;
@@ -21300,7 +21178,7 @@ export class CSPFoundation {
21300
21178
  Module.removeFunction(_callbackPtr);
21301
21179
  };
21302
21180
  _callbackPtr = Module.addFunction(_callback, "vii");
21303
- Module.ccall("csp_systems_SettingsSystem_AddRecentlyVisitedSpace_void_StringRC_StringC_NullResultCallback", "void", ["number", "string", "string", "number", "number"], [this.pointer, userId, spaceID, _callbackPtr, 0]);
21181
+ Module.ccall("csp_systems_SettingsSystem_AddRecentlyVisitedSpace_void_StringC_NullResultCallback", "void", ["number", "string", "number", "number"], [this.pointer, spaceID, _callbackPtr, 0]);
21304
21182
  return _promise;
21305
21183
  }
21306
21184
  /**
@@ -21308,7 +21186,7 @@ export class CSPFoundation {
21308
21186
  * Returns an csp::common::Array of csp::common::Strings ordered from most to least recent spaces up to a maximum of 10 entries.
21309
21187
  * @param callback - Callback to call when a response is received.
21310
21188
  */
21311
- async getRecentlyVisitedSpaces(userId) {
21189
+ async getRecentlyVisitedSpaces() {
21312
21190
  var _resolve;
21313
21191
  var _promise = new Promise((_r) => {
21314
21192
  _resolve = _r;
@@ -21324,14 +21202,14 @@ export class CSPFoundation {
21324
21202
  Module.removeFunction(_callbackPtr);
21325
21203
  };
21326
21204
  _callbackPtr = Module.addFunction(_callback, "vii");
21327
- Module.ccall("csp_systems_SettingsSystem_GetRecentlyVisitedSpaces_void_StringRC_StringArrayResultCallback", "void", ["number", "string", "number", "number"], [this.pointer, userId, _callbackPtr, 0]);
21205
+ Module.ccall("csp_systems_SettingsSystem_GetRecentlyVisitedSpaces_void_StringArrayResultCallback", "void", ["number", "number", "number"], [this.pointer, _callbackPtr, 0]);
21328
21206
  return _promise;
21329
21207
  }
21330
21208
  /**
21331
21209
  * @description Clear the list of recently-visited spaces for the current user.
21332
21210
  * @param callback - Callback when asynchronous task finishes.
21333
21211
  */
21334
- async clearRecentlyVisitedSpaces(userId) {
21212
+ async clearRecentlyVisitedSpaces() {
21335
21213
  var _resolve;
21336
21214
  var _promise = new Promise((_r) => {
21337
21215
  _resolve = _r;
@@ -21347,7 +21225,7 @@ export class CSPFoundation {
21347
21225
  Module.removeFunction(_callbackPtr);
21348
21226
  };
21349
21227
  _callbackPtr = Module.addFunction(_callback, "vii");
21350
- Module.ccall("csp_systems_SettingsSystem_ClearRecentlyVisitedSpaces_void_StringRC_NullResultCallback", "void", ["number", "string", "number", "number"], [this.pointer, userId, _callbackPtr, 0]);
21228
+ Module.ccall("csp_systems_SettingsSystem_ClearRecentlyVisitedSpaces_void_NullResultCallback", "void", ["number", "number", "number"], [this.pointer, _callbackPtr, 0]);
21351
21229
  return _promise;
21352
21230
  }
21353
21231
  /**
@@ -21357,7 +21235,7 @@ export class CSPFoundation {
21357
21235
  * @param inSpaceID - SpaceID of most space to block
21358
21236
  * @param callback - Callback when asynchronous task finishes
21359
21237
  */
21360
- async addBlockedSpace(userId, spaceID) {
21238
+ async addBlockedSpace(spaceID) {
21361
21239
  var _resolve;
21362
21240
  var _promise = new Promise((_r) => {
21363
21241
  _resolve = _r;
@@ -21373,7 +21251,7 @@ export class CSPFoundation {
21373
21251
  Module.removeFunction(_callbackPtr);
21374
21252
  };
21375
21253
  _callbackPtr = Module.addFunction(_callback, "vii");
21376
- Module.ccall("csp_systems_SettingsSystem_AddBlockedSpace_void_StringRC_StringC_NullResultCallback", "void", ["number", "string", "string", "number", "number"], [this.pointer, userId, spaceID, _callbackPtr, 0]);
21254
+ Module.ccall("csp_systems_SettingsSystem_AddBlockedSpace_void_StringC_NullResultCallback", "void", ["number", "string", "number", "number"], [this.pointer, spaceID, _callbackPtr, 0]);
21377
21255
  return _promise;
21378
21256
  }
21379
21257
  /**
@@ -21381,7 +21259,7 @@ export class CSPFoundation {
21381
21259
  * @param inSpaceID - SpaceID of most space to block
21382
21260
  * @param callback - Callback when asynchronous task finishes
21383
21261
  */
21384
- async removeBlockedSpace(userId, spaceID) {
21262
+ async removeBlockedSpace(spaceID) {
21385
21263
  var _resolve;
21386
21264
  var _promise = new Promise((_r) => {
21387
21265
  _resolve = _r;
@@ -21397,7 +21275,7 @@ export class CSPFoundation {
21397
21275
  Module.removeFunction(_callbackPtr);
21398
21276
  };
21399
21277
  _callbackPtr = Module.addFunction(_callback, "vii");
21400
- Module.ccall("csp_systems_SettingsSystem_RemoveBlockedSpace_void_StringRC_StringC_NullResultCallback", "void", ["number", "string", "string", "number", "number"], [this.pointer, userId, spaceID, _callbackPtr, 0]);
21278
+ Module.ccall("csp_systems_SettingsSystem_RemoveBlockedSpace_void_StringC_NullResultCallback", "void", ["number", "string", "number", "number"], [this.pointer, spaceID, _callbackPtr, 0]);
21401
21279
  return _promise;
21402
21280
  }
21403
21281
  /**
@@ -21405,7 +21283,7 @@ export class CSPFoundation {
21405
21283
  * Returns an csp::common::Array of csp::common::Strings ordered from most to least recent blocked spaces.
21406
21284
  * @param callback - Callback to call when a response is received.
21407
21285
  */
21408
- async getBlockedSpaces(userId) {
21286
+ async getBlockedSpaces() {
21409
21287
  var _resolve;
21410
21288
  var _promise = new Promise((_r) => {
21411
21289
  _resolve = _r;
@@ -21421,14 +21299,14 @@ export class CSPFoundation {
21421
21299
  Module.removeFunction(_callbackPtr);
21422
21300
  };
21423
21301
  _callbackPtr = Module.addFunction(_callback, "vii");
21424
- Module.ccall("csp_systems_SettingsSystem_GetBlockedSpaces_void_StringRC_StringArrayResultCallback", "void", ["number", "string", "number", "number"], [this.pointer, userId, _callbackPtr, 0]);
21302
+ Module.ccall("csp_systems_SettingsSystem_GetBlockedSpaces_void_StringArrayResultCallback", "void", ["number", "number", "number"], [this.pointer, _callbackPtr, 0]);
21425
21303
  return _promise;
21426
21304
  }
21427
21305
  /**
21428
21306
  * @description Clear the list of blocked Spaces for the current user.
21429
21307
  * @param callback - Callback when asynchronous task finishes.
21430
21308
  */
21431
- async clearBlockedSpaces(userId) {
21309
+ async clearBlockedSpaces() {
21432
21310
  var _resolve;
21433
21311
  var _promise = new Promise((_r) => {
21434
21312
  _resolve = _r;
@@ -21444,16 +21322,15 @@ export class CSPFoundation {
21444
21322
  Module.removeFunction(_callbackPtr);
21445
21323
  };
21446
21324
  _callbackPtr = Module.addFunction(_callback, "vii");
21447
- Module.ccall("csp_systems_SettingsSystem_ClearBlockedSpaces_void_StringRC_NullResultCallback", "void", ["number", "string", "number", "number"], [this.pointer, userId, _callbackPtr, 0]);
21325
+ Module.ccall("csp_systems_SettingsSystem_ClearBlockedSpaces_void_NullResultCallback", "void", ["number", "number", "number"], [this.pointer, _callbackPtr, 0]);
21448
21326
  return _promise;
21449
21327
  }
21450
21328
  /**
21451
21329
  * @description Updates the Portrait Avatar image or adds one if it didn't have it previously using FileAssetDataSource
21452
- * @param userId - UserId of Avatar Portrait
21453
21330
  * @param newAvatarPortrait - New Portrait Avatar information
21454
21331
  * @param callback - Callback when asynchronous task finishes
21455
21332
  */
21456
- async updateAvatarPortrait(userId, newAvatarPortrait) {
21333
+ async updateAvatarPortrait(newAvatarPortrait) {
21457
21334
  var _resolve;
21458
21335
  var _promise = new Promise((_r) => {
21459
21336
  _resolve = _r;
@@ -21469,17 +21346,16 @@ export class CSPFoundation {
21469
21346
  Module.removeFunction(_callbackPtr);
21470
21347
  };
21471
21348
  _callbackPtr = Module.addFunction(_callback, "vii");
21472
- Module.ccall("csp_systems_SettingsSystem_UpdateAvatarPortrait_void_StringRC_FileAssetDataSourceRC_NullResultCallback", "void", ["number", "string", "number", "number", "number"], [this.pointer, userId, newAvatarPortrait.pointer, _callbackPtr, 0]);
21349
+ Module.ccall("csp_systems_SettingsSystem_UpdateAvatarPortrait_void_FileAssetDataSourceRC_NullResultCallback", "void", ["number", "number", "number", "number"], [this.pointer, newAvatarPortrait.pointer, _callbackPtr, 0]);
21473
21350
  return _promise;
21474
21351
  }
21475
21352
  /**
21476
21353
  * @description Retrieves the Avatar Portrait information associated with the space
21477
21354
  * If the user of the Avatar portrait associated with it the result callback will be successful, the HTTP res code will be ResponseNotFound
21478
21355
  * and the Uri field inside the UriResult will be empty
21479
- * @param userId - UserId of Avatar Portrait
21480
21356
  * @param callback - Callback when asynchronous task finishes
21481
21357
  */
21482
- async getAvatarPortrait(userId) {
21358
+ async getAvatarPortrait() {
21483
21359
  var _resolve;
21484
21360
  var _promise = new Promise((_r) => {
21485
21361
  _resolve = _r;
@@ -21495,16 +21371,15 @@ export class CSPFoundation {
21495
21371
  Module.removeFunction(_callbackPtr);
21496
21372
  };
21497
21373
  _callbackPtr = Module.addFunction(_callback, "vii");
21498
- Module.ccall("csp_systems_SettingsSystem_GetAvatarPortrait_void_StringRC_UriResultCallback", "void", ["number", "string", "number", "number"], [this.pointer, userId, _callbackPtr, 0]);
21374
+ Module.ccall("csp_systems_SettingsSystem_GetAvatarPortrait_void_UriResultCallback", "void", ["number", "number", "number"], [this.pointer, _callbackPtr, 0]);
21499
21375
  return _promise;
21500
21376
  }
21501
21377
  /**
21502
21378
  * @description Updates the Avatar Portrait image or adds one if it didn't have it previously using BufferAssetDataSource
21503
- * @param userId - UserId of Avatar Portrait
21504
21379
  * @param newAvatarPortrait - New Avatar Portrait information
21505
21380
  * @param callback - Callback when asynchronous task finishes
21506
21381
  */
21507
- async updateAvatarPortraitWithBuffer(userId, newAvatarPortrait) {
21382
+ async updateAvatarPortraitWithBuffer(newAvatarPortrait) {
21508
21383
  var _resolve;
21509
21384
  var _promise = new Promise((_r) => {
21510
21385
  _resolve = _r;
@@ -21520,7 +21395,55 @@ export class CSPFoundation {
21520
21395
  Module.removeFunction(_callbackPtr);
21521
21396
  };
21522
21397
  _callbackPtr = Module.addFunction(_callback, "vii");
21523
- Module.ccall("csp_systems_SettingsSystem_UpdateAvatarPortraitWithBuffer_void_StringRC_BufferAssetDataSourceRC_NullResultCallback", "void", ["number", "string", "number", "number", "number"], [this.pointer, userId, newAvatarPortrait.pointer, _callbackPtr, 0]);
21398
+ Module.ccall("csp_systems_SettingsSystem_UpdateAvatarPortraitWithBuffer_void_BufferAssetDataSourceRC_NullResultCallback", "void", ["number", "number", "number", "number"], [this.pointer, newAvatarPortrait.pointer, _callbackPtr, 0]);
21399
+ return _promise;
21400
+ }
21401
+ /**
21402
+ * @description Sets the avatar type and identifier for a user.
21403
+ * @param inType - The type of avatar (predefined, Ready Player Me, or custom).
21404
+ * @param inIdentifier - A value used to identify or locate the avatar. Differs depending on the value of InType.
21405
+ * @param callback - Callback to call when task finishes.
21406
+ */
21407
+ async setAvatarInfo(type, identifier) {
21408
+ var _resolve;
21409
+ var _promise = new Promise((_r) => {
21410
+ _resolve = _r;
21411
+ });
21412
+ var _callbackPtr;
21413
+ var _callback = (_stateObject__, result) => {
21414
+ var _resultPtr = getNativePointer(result);
21415
+ var _resultInstance = new Systems.NullResult(_resultPtr);
21416
+ if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
21417
+ return;
21418
+ }
21419
+ _resolve(_resultInstance);
21420
+ Module.removeFunction(_callbackPtr);
21421
+ };
21422
+ _callbackPtr = Module.addFunction(_callback, "vii");
21423
+ Module.ccall("csp_systems_SettingsSystem_SetAvatarInfo_void_AvatarType_VariantRC_NullResultCallback", "void", ["number", "number", "number", "number", "number"], [this.pointer, type, identifier.pointer, _callbackPtr, 0]);
21424
+ return _promise;
21425
+ }
21426
+ /**
21427
+ * @description Retrieves the avatar type and identifier for a user.
21428
+ * @param callback - Callback to call when task finishes.
21429
+ */
21430
+ async getAvatarInfo() {
21431
+ var _resolve;
21432
+ var _promise = new Promise((_r) => {
21433
+ _resolve = _r;
21434
+ });
21435
+ var _callbackPtr;
21436
+ var _callback = (_stateObject__, result) => {
21437
+ var _resultPtr = getNativePointer(result);
21438
+ var _resultInstance = new Systems.AvatarInfoResult(_resultPtr);
21439
+ if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
21440
+ return;
21441
+ }
21442
+ _resolve(_resultInstance);
21443
+ Module.removeFunction(_callbackPtr);
21444
+ };
21445
+ _callbackPtr = Module.addFunction(_callback, "vii");
21446
+ Module.ccall("csp_systems_SettingsSystem_GetAvatarInfo_void_AvatarInfoResultCallback", "void", ["number", "number", "number"], [this.pointer, _callbackPtr, 0]);
21524
21447
  return _promise;
21525
21448
  }
21526
21449
  }
@@ -23685,7 +23608,7 @@ export class CSPFoundation {
23685
23608
  }
23686
23609
  getLoginState() {
23687
23610
  var _ret = Module._malloc(8);
23688
- Module.ccall("csp_systems_LoginStateResult_GetLoginState_LoginStateR", "void", ["number", "number"], [_ret, this.pointer]);
23611
+ Module.ccall("csp_systems_LoginStateResult_GetLoginStateC_LoginStateRC", "void", ["number", "number"], [_ret, this.pointer]);
23689
23612
  var _nPtr = new Systems.LoginState(getNativePointer(_ret));
23690
23613
  Module._free(_ret);
23691
23614
  return _nPtr;
@@ -23699,192 +23622,35 @@ export class CSPFoundation {
23699
23622
  }
23700
23623
  Systems.LoginStateResult = LoginStateResult;
23701
23624
  })(Systems || (Systems = {}));
23702
- (function (Systems) {
23703
- /**
23704
- * @description Result structure for a logout state request.
23705
- */
23706
- class LogoutResult extends Systems.NullResult {
23707
- /** @internal */
23708
- constructor(pointer) {
23709
- super(pointer);
23710
- }
23711
- static fromNullResult(baseInstance) {
23712
- const nativeClassWrapper = baseInstance;
23713
- return new Systems.LogoutResult(new NativePointer(nativeClassWrapper.pointer, nativeClassWrapper.ownsPointer));
23714
- }
23715
- delete() {
23716
- if (this.ownsPointer && !this.disposed) {
23717
- Module.ccall("csp_systems_LogoutResult_Dtor", "void", ["number"], [this.pointer]);
23718
- this.disposed = true;
23719
- }
23720
- }
23721
- }
23722
- Systems.LogoutResult = LogoutResult;
23723
- })(Systems || (Systems = {}));
23724
23625
  (function (Systems) {
23725
23626
  /**
23726
23627
  @ingroup User System
23727
23628
  * @description @brief Data class used to contain information when the login token has changed
23728
23629
  */
23729
- class LoginTokenReceived extends Systems.ResultBase {
23630
+ class LoginTokenInfoResult extends Systems.ResultBase {
23730
23631
  /** @internal */
23731
23632
  constructor(pointer) {
23732
23633
  super(pointer);
23733
23634
  }
23734
23635
  static fromResultBase(baseInstance) {
23735
23636
  const nativeClassWrapper = baseInstance;
23736
- return new Systems.LoginTokenReceived(new NativePointer(nativeClassWrapper.pointer, nativeClassWrapper.ownsPointer));
23637
+ return new Systems.LoginTokenInfoResult(new NativePointer(nativeClassWrapper.pointer, nativeClassWrapper.ownsPointer));
23737
23638
  }
23738
23639
  getLoginTokenInfo() {
23739
23640
  var _ret = Module._malloc(8);
23740
- Module.ccall("csp_systems_LoginTokenReceived_GetLoginTokenInfo_LoginTokenInfoR", "void", ["number", "number"], [_ret, this.pointer]);
23641
+ Module.ccall("csp_systems_LoginTokenInfoResult_GetLoginTokenInfoC_LoginTokenInfoRC", "void", ["number", "number"], [_ret, this.pointer]);
23741
23642
  var _nPtr = new Systems.LoginTokenInfo(getNativePointer(_ret));
23742
23643
  Module._free(_ret);
23743
23644
  return _nPtr;
23744
23645
  }
23745
23646
  delete() {
23746
23647
  if (this.ownsPointer && !this.disposed) {
23747
- Module.ccall("csp_systems_LoginTokenReceived_Dtor", "void", ["number"], [this.pointer]);
23648
+ Module.ccall("csp_systems_LoginTokenInfoResult_Dtor", "void", ["number"], [this.pointer]);
23748
23649
  this.disposed = true;
23749
23650
  }
23750
23651
  }
23751
23652
  }
23752
- Systems.LoginTokenReceived = LoginTokenReceived;
23753
- })(Systems || (Systems = {}));
23754
- (function (Systems) {
23755
- /**
23756
- @ingroup User System
23757
- * @description @brief Data class used to contain information when a ping response is received
23758
- */
23759
- class PingResponseReceived extends Systems.ResultBase {
23760
- /** @internal */
23761
- constructor(pointer) {
23762
- super(pointer);
23763
- }
23764
- static fromResultBase(baseInstance) {
23765
- const nativeClassWrapper = baseInstance;
23766
- return new Systems.PingResponseReceived(new NativePointer(nativeClassWrapper.pointer, nativeClassWrapper.ownsPointer));
23767
- }
23768
- delete() {
23769
- if (this.ownsPointer && !this.disposed) {
23770
- Module.ccall("csp_systems_PingResponseReceived_Dtor", "void", ["number"], [this.pointer]);
23771
- this.disposed = true;
23772
- }
23773
- }
23774
- }
23775
- Systems.PingResponseReceived = PingResponseReceived;
23776
- })(Systems || (Systems = {}));
23777
- (function (Systems) {
23778
- /**
23779
- @ingroup User System
23780
- * @description @brief Data class used to contain information requesting a user token
23781
- */
23782
- class AgoraUserTokenResult extends Systems.ResultBase {
23783
- /** @internal */
23784
- constructor(pointer) {
23785
- super(pointer);
23786
- }
23787
- static fromResultBase(baseInstance) {
23788
- const nativeClassWrapper = baseInstance;
23789
- return new Systems.AgoraUserTokenResult(new NativePointer(nativeClassWrapper.pointer, nativeClassWrapper.ownsPointer));
23790
- }
23791
- getUserToken() {
23792
- let _result = Module.ccall("csp_systems_AgoraUserTokenResult_GetUserTokenC_StringRC", "number", ["number"], [this.pointer]);
23793
- const _resultString = Module.UTF8ToString(_result);
23794
- free(_result);
23795
- _result = _resultString;
23796
- return _result;
23797
- }
23798
- delete() {
23799
- if (this.ownsPointer && !this.disposed) {
23800
- Module.ccall("csp_systems_AgoraUserTokenResult_Dtor", "void", ["number"], [this.pointer]);
23801
- this.disposed = true;
23802
- }
23803
- }
23804
- }
23805
- Systems.AgoraUserTokenResult = AgoraUserTokenResult;
23806
- })(Systems || (Systems = {}));
23807
- (function (Systems) {
23808
- /**
23809
- * @description Result url for a tier checkout session request
23810
- */
23811
- class CheckoutSessionUrlResult extends Systems.ResultBase {
23812
- /** @internal */
23813
- constructor(pointer) {
23814
- super(pointer);
23815
- }
23816
- static fromResultBase(baseInstance) {
23817
- const nativeClassWrapper = baseInstance;
23818
- return new Systems.CheckoutSessionUrlResult(new NativePointer(nativeClassWrapper.pointer, nativeClassWrapper.ownsPointer));
23819
- }
23820
- static create() {
23821
- var _ptr = Module._malloc(8);
23822
- Module.ccall("csp_systems_CheckoutSessionUrlResult_Ctor", "void", ["number"], [_ptr]);
23823
- var _nPtr = getNativePointer(_ptr);
23824
- return new CheckoutSessionUrlResult(_nPtr);
23825
- }
23826
- static create_arg1(arg1) {
23827
- var _ptr = Module._malloc(8);
23828
- Module.ccall("csp_systems_CheckoutSessionUrlResult_Ctor_voidP", "void", ["number", "void"], [_ptr, arg1]);
23829
- var _nPtr = getNativePointer(_ptr);
23830
- return new CheckoutSessionUrlResult(_nPtr);
23831
- }
23832
- getUrl() {
23833
- let _result = Module.ccall("csp_systems_CheckoutSessionUrlResult_GetUrl_StringRC", "number", ["number"], [this.pointer]);
23834
- const _resultString = Module.UTF8ToString(_result);
23835
- free(_result);
23836
- _result = _resultString;
23837
- return _result;
23838
- }
23839
- delete() {
23840
- if (this.ownsPointer && !this.disposed) {
23841
- Module.ccall("csp_systems_CheckoutSessionUrlResult_Dtor", "void", ["number"], [this.pointer]);
23842
- this.disposed = true;
23843
- }
23844
- }
23845
- }
23846
- Systems.CheckoutSessionUrlResult = CheckoutSessionUrlResult;
23847
- })(Systems || (Systems = {}));
23848
- (function (Systems) {
23849
- /**
23850
- * @description Result url for a user customer portal request
23851
- */
23852
- class CustomerPortalUrlResult extends Systems.ResultBase {
23853
- /** @internal */
23854
- constructor(pointer) {
23855
- super(pointer);
23856
- }
23857
- static fromResultBase(baseInstance) {
23858
- const nativeClassWrapper = baseInstance;
23859
- return new Systems.CustomerPortalUrlResult(new NativePointer(nativeClassWrapper.pointer, nativeClassWrapper.ownsPointer));
23860
- }
23861
- static create() {
23862
- var _ptr = Module._malloc(8);
23863
- Module.ccall("csp_systems_CustomerPortalUrlResult_Ctor", "void", ["number"], [_ptr]);
23864
- var _nPtr = getNativePointer(_ptr);
23865
- return new CustomerPortalUrlResult(_nPtr);
23866
- }
23867
- static create_arg1(arg1) {
23868
- var _ptr = Module._malloc(8);
23869
- Module.ccall("csp_systems_CustomerPortalUrlResult_Ctor_voidP", "void", ["number", "void"], [_ptr, arg1]);
23870
- var _nPtr = getNativePointer(_ptr);
23871
- return new CustomerPortalUrlResult(_nPtr);
23872
- }
23873
- getUrl() {
23874
- let _result = Module.ccall("csp_systems_CustomerPortalUrlResult_GetUrl_StringRC", "number", ["number"], [this.pointer]);
23875
- const _resultString = Module.UTF8ToString(_result);
23876
- free(_result);
23877
- _result = _resultString;
23878
- return _result;
23879
- }
23880
- delete() {
23881
- if (this.ownsPointer && !this.disposed) {
23882
- Module.ccall("csp_systems_CustomerPortalUrlResult_Dtor", "void", ["number"], [this.pointer]);
23883
- this.disposed = true;
23884
- }
23885
- }
23886
- }
23887
- Systems.CustomerPortalUrlResult = CustomerPortalUrlResult;
23653
+ Systems.LoginTokenInfoResult = LoginTokenInfoResult;
23888
23654
  })(Systems || (Systems = {}));
23889
23655
  (function (Systems) {
23890
23656
  /**
@@ -24107,11 +23873,11 @@ export class CSPFoundation {
24107
23873
  */
24108
23874
  setNewLoginTokenReceivedCallback(callback) {
24109
23875
  var _callback = (_stateObject__, result) => {
24110
- var _result = new Systems.LoginTokenReceived(getNativePointer(result));
23876
+ var _result = new Systems.LoginTokenInfoResult(getNativePointer(result));
24111
23877
  callback(_result);
24112
23878
  };
24113
23879
  var _callbackPtr = Module.addFunction(_callback, "vii");
24114
- Module.ccall("csp_systems_UserSystem_SetNewLoginTokenReceivedCallback_void_NewLoginTokenReceivedCallback", "void", ["number", "number", "number"], [this.pointer, _callbackPtr, 0]);
23880
+ Module.ccall("csp_systems_UserSystem_SetNewLoginTokenReceivedCallback_void_LoginTokenInfoResultCallback", "void", ["number", "number", "number"], [this.pointer, _callbackPtr, 0]);
24115
23881
  }
24116
23882
  /**
24117
23883
  * @description Log in to Magnopus Connected Services services using a username-password or email-password combination.
@@ -24157,14 +23923,13 @@ export class CSPFoundation {
24157
23923
  return _promise;
24158
23924
  }
24159
23925
  /**
24160
- * @description Log in to Magnopus Connected Services using a login token
24161
- * The login token can be obtained after using the Login API with credentials and having registered a callback through
24162
- * SetNewLoginTokenReceivedCallback. If the login is successful in the callback result the token and it's expiration time will be provided.
24163
- * @param userId - The user id associated with this login token
24164
- * @param loginToken - Token to be used for authenticating
23926
+ * @description Resume a previous session for the associated user ID using a refresh token
23927
+ * The refresh token can be obtained after registering a callback with `SetNewLoginTokenReceivedCallback` and logging in regularly.
23928
+ * @param userId - User ID for the previous session
23929
+ * @param refreshToken - Refresh token to be used for refreshing the authentication token
24165
23930
  * @param callback - Callback when asynchronous task finishes
24166
23931
  */
24167
- async loginWithToken(userId, loginToken) {
23932
+ async refreshSession(userId, refreshToken) {
24168
23933
  var _resolve;
24169
23934
  var _promise = new Promise((_r) => {
24170
23935
  _resolve = _r;
@@ -24180,7 +23945,7 @@ export class CSPFoundation {
24180
23945
  Module.removeFunction(_callbackPtr);
24181
23946
  };
24182
23947
  _callbackPtr = Module.addFunction(_callback, "vii");
24183
- Module.ccall("csp_systems_UserSystem_LoginWithToken_void_StringRC_StringRC_LoginStateResultCallback", "void", ["number", "string", "string", "number", "number"], [this.pointer, userId, loginToken, _callbackPtr, 0]);
23948
+ Module.ccall("csp_systems_UserSystem_RefreshSession_void_StringRC_StringRC_LoginStateResultCallback", "void", ["number", "string", "string", "number", "number"], [this.pointer, userId, refreshToken, _callbackPtr, 0]);
24184
23949
  return _promise;
24185
23950
  }
24186
23951
  /**
@@ -24337,7 +24102,7 @@ export class CSPFoundation {
24337
24102
  var _callbackPtr;
24338
24103
  var _callback = (_stateObject__, result) => {
24339
24104
  var _resultPtr = getNativePointer(result);
24340
- var _resultInstance = new Systems.LogoutResult(_resultPtr);
24105
+ var _resultInstance = new Systems.NullResult(_resultPtr);
24341
24106
  if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
24342
24107
  return;
24343
24108
  }
@@ -24345,7 +24110,7 @@ export class CSPFoundation {
24345
24110
  Module.removeFunction(_callbackPtr);
24346
24111
  };
24347
24112
  _callbackPtr = Module.addFunction(_callback, "vii");
24348
- Module.ccall("csp_systems_UserSystem_Logout_void_LogoutResultCallback", "void", ["number", "number", "number"], [this.pointer, _callbackPtr, 0]);
24113
+ Module.ccall("csp_systems_UserSystem_Logout_void_NullResultCallback", "void", ["number", "number", "number"], [this.pointer, _callbackPtr, 0]);
24349
24114
  return _promise;
24350
24115
  }
24351
24116
  /**
@@ -24505,7 +24270,7 @@ export class CSPFoundation {
24505
24270
  return _promise;
24506
24271
  }
24507
24272
  /**
24508
- * @description Delete the user.
24273
+ * @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).
24509
24274
  * @param userId - Id of the user that will be deleted
24510
24275
  * @param callback - Callback when asynchronous task finishes
24511
24276
  */
@@ -24623,7 +24388,7 @@ export class CSPFoundation {
24623
24388
  var _callbackPtr;
24624
24389
  var _callback = (_stateObject__, result) => {
24625
24390
  var _resultPtr = getNativePointer(result);
24626
- var _resultInstance = new Systems.PingResponseReceived(_resultPtr);
24391
+ var _resultInstance = new Systems.NullResult(_resultPtr);
24627
24392
  if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
24628
24393
  return;
24629
24394
  }
@@ -24631,7 +24396,7 @@ export class CSPFoundation {
24631
24396
  Module.removeFunction(_callbackPtr);
24632
24397
  };
24633
24398
  _callbackPtr = Module.addFunction(_callback, "vii");
24634
- Module.ccall("csp_systems_UserSystem_Ping_void_PingResponseReceivedCallback", "void", ["number", "number", "number"], [this.pointer, _callbackPtr, 0]);
24399
+ Module.ccall("csp_systems_UserSystem_Ping_void_NullResultCallback", "void", ["number", "number", "number"], [this.pointer, _callbackPtr, 0]);
24635
24400
  return _promise;
24636
24401
  }
24637
24402
  /**
@@ -24647,7 +24412,7 @@ export class CSPFoundation {
24647
24412
  var _callbackPtr;
24648
24413
  var _callback = (_stateObject__, result) => {
24649
24414
  var _resultPtr = getNativePointer(result);
24650
- var _resultInstance = new Systems.AgoraUserTokenResult(_resultPtr);
24415
+ var _resultInstance = new Systems.StringResult(_resultPtr);
24651
24416
  if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
24652
24417
  return;
24653
24418
  }
@@ -24655,7 +24420,7 @@ export class CSPFoundation {
24655
24420
  Module.removeFunction(_callbackPtr);
24656
24421
  };
24657
24422
  _callbackPtr = Module.addFunction(_callback, "vii");
24658
- Module.ccall("csp_systems_UserSystem_GetAgoraUserToken_void_AgoraUserTokenParamsRC_UserTokenResultCallback", "void", ["number", "number", "number", "number"], [this.pointer, params.pointer, _callbackPtr, 0]);
24423
+ Module.ccall("csp_systems_UserSystem_GetAgoraUserToken_void_AgoraUserTokenParamsRC_StringResultCallback", "void", ["number", "number", "number", "number"], [this.pointer, params.pointer, _callbackPtr, 0]);
24659
24424
  return _promise;
24660
24425
  }
24661
24426
  /**
@@ -24696,7 +24461,7 @@ export class CSPFoundation {
24696
24461
  var _callbackPtr;
24697
24462
  var _callback = (_stateObject__, result) => {
24698
24463
  var _resultPtr = getNativePointer(result);
24699
- var _resultInstance = new Systems.CustomerPortalUrlResult(_resultPtr);
24464
+ var _resultInstance = new Systems.StringResult(_resultPtr);
24700
24465
  if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
24701
24466
  return;
24702
24467
  }
@@ -24704,7 +24469,7 @@ export class CSPFoundation {
24704
24469
  Module.removeFunction(_callbackPtr);
24705
24470
  };
24706
24471
  _callbackPtr = Module.addFunction(_callback, "vii");
24707
- Module.ccall("csp_systems_UserSystem_GetCustomerPortalUrl_void_StringRC_CustomerPortalUrlResultCallback", "void", ["number", "string", "number", "number"], [this.pointer, userId, _callbackPtr, 0]);
24472
+ Module.ccall("csp_systems_UserSystem_GetCustomerPortalUrl_void_StringRC_StringResultCallback", "void", ["number", "string", "number", "number"], [this.pointer, userId, _callbackPtr, 0]);
24708
24473
  return _promise;
24709
24474
  }
24710
24475
  /**
@@ -24720,7 +24485,7 @@ export class CSPFoundation {
24720
24485
  var _callbackPtr;
24721
24486
  var _callback = (_stateObject__, result) => {
24722
24487
  var _resultPtr = getNativePointer(result);
24723
- var _resultInstance = new Systems.CheckoutSessionUrlResult(_resultPtr);
24488
+ var _resultInstance = new Systems.StringResult(_resultPtr);
24724
24489
  if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
24725
24490
  return;
24726
24491
  }
@@ -24728,7 +24493,7 @@ export class CSPFoundation {
24728
24493
  Module.removeFunction(_callbackPtr);
24729
24494
  };
24730
24495
  _callbackPtr = Module.addFunction(_callback, "vii");
24731
- Module.ccall("csp_systems_UserSystem_GetCheckoutSessionUrl_void_TierNames_CheckoutSessionUrlResultCallback", "void", ["number", "number", "number", "number"], [this.pointer, tier, _callbackPtr, 0]);
24496
+ Module.ccall("csp_systems_UserSystem_GetCheckoutSessionUrl_void_TierNames_StringResultCallback", "void", ["number", "number", "number", "number"], [this.pointer, tier, _callbackPtr, 0]);
24732
24497
  return _promise;
24733
24498
  }
24734
24499
  }
@@ -24798,6 +24563,13 @@ export class CSPFoundation {
24798
24563
  Module._free(_ret);
24799
24564
  return _inst;
24800
24565
  }
24566
+ static ofcsp_systems_EAssetCollectionType() {
24567
+ var _ret = Module._malloc(8);
24568
+ Module.ccall("csp_common_Array_Ctor_csp_systems_EAssetCollectionType", "void", ["number"], [_ret]);
24569
+ var _inst = new Array(getNativePointer(_ret), csp_systems_EAssetCollectionTypeFactory, "csp_systems_EAssetCollectionType");
24570
+ Module._free(_ret);
24571
+ return _inst;
24572
+ }
24801
24573
  static ofcsp_systems_EAssetType() {
24802
24574
  var _ret = Module._malloc(8);
24803
24575
  Module.ccall("csp_common_Array_Ctor_csp_systems_EAssetType", "void", ["number"], [_ret]);
@@ -25036,6 +24808,13 @@ export class CSPFoundation {
25036
24808
  Module._free(_ret);
25037
24809
  return _inst;
25038
24810
  }
24811
+ static ofcsp_systems_EAssetCollectionType_number(size) {
24812
+ var _ret = Module._malloc(8);
24813
+ Module.ccall("csp_common_Array_Conv_size_tC_csp_systems_EAssetCollectionType", "void", ["number", "number"], [_ret, size]);
24814
+ var _inst = new Array(getNativePointer(_ret), csp_systems_EAssetCollectionTypeFactory, "csp_systems_EAssetCollectionType");
24815
+ Module._free(_ret);
24816
+ return _inst;
24817
+ }
25039
24818
  static ofcsp_systems_EAssetType_number(size) {
25040
24819
  var _ret = Module._malloc(8);
25041
24820
  Module.ccall("csp_common_Array_Conv_size_tC_csp_systems_EAssetType", "void", ["number", "number"], [_ret, size]);