connected-spaces-platform.web 4.17.0 → 4.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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
  }
@@ -1678,7 +1687,7 @@ export var Multiplayer;
1678
1687
  })(Multiplayer || (Multiplayer = {}));
1679
1688
  (function (Multiplayer) {
1680
1689
  /**
1681
- * @description Enum used to specify the current state of the muiltiplayer connection.
1690
+ * @description Enum used to specify the current state of the multiplayer connection.
1682
1691
  */
1683
1692
  let ConnectionState;
1684
1693
  (function (ConnectionState) {
@@ -1688,6 +1697,19 @@ export var Multiplayer;
1688
1697
  ConnectionState[ConnectionState["Disconnected"] = 3] = "Disconnected";
1689
1698
  })(ConnectionState = Multiplayer.ConnectionState || (Multiplayer.ConnectionState = {}));
1690
1699
  })(Multiplayer || (Multiplayer = {}));
1700
+ (function (Multiplayer) {
1701
+ /**
1702
+ * @description Enum used to indicate the failure state of a multiplayer request.
1703
+ */
1704
+ let ErrorCode;
1705
+ (function (ErrorCode) {
1706
+ ErrorCode[ErrorCode["None"] = 0] = "None";
1707
+ ErrorCode[ErrorCode["Unknown"] = 1] = "Unknown";
1708
+ ErrorCode[ErrorCode["NotConnected"] = 2] = "NotConnected";
1709
+ ErrorCode[ErrorCode["AlreadyConnected"] = 3] = "AlreadyConnected";
1710
+ ErrorCode[ErrorCode["SpaceUserLimitExceeded"] = 4] = "SpaceUserLimitExceeded";
1711
+ })(ErrorCode = Multiplayer.ErrorCode || (Multiplayer.ErrorCode = {}));
1712
+ })(Multiplayer || (Multiplayer = {}));
1691
1713
  (function (Multiplayer) {
1692
1714
  /**
1693
1715
  * @description Enum representing the type of a replicated value.
@@ -1717,7 +1739,13 @@ export var Multiplayer;
1717
1739
  })(Multiplayer || (Multiplayer = {}));
1718
1740
  (function (Multiplayer) {
1719
1741
  /**
1720
- * @description Enum used to specify the type of an update operation
1742
+ * @description This Enum should be used to determine what kind of operation the component update represents.
1743
+ * Update means properties on the component have updated, all need to be checked as we do not provide reference of specific property updates.
1744
+ * Add means the component is newly added, clients should ensure that this triggers appropriate instantiation of wrapping objects.
1745
+ * All properties for the component should be included.
1746
+ * 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
1747
+ * recieved. Any wrapping data objects should be deleted when this is recieved, and clients should cease updating this component as any call would
1748
+ * fail. The CSP representation of the component has been removed at this point.
1721
1749
  */
1722
1750
  let ComponentUpdateType;
1723
1751
  (function (ComponentUpdateType) {
@@ -1727,6 +1755,11 @@ export var Multiplayer;
1727
1755
  })(ComponentUpdateType = Multiplayer.ComponentUpdateType || (Multiplayer.ComponentUpdateType = {}));
1728
1756
  })(Multiplayer || (Multiplayer = {}));
1729
1757
  (function (Multiplayer) {
1758
+ /**
1759
+ * @description Enum used to specify what part of a SpaceEntity was updated when deserialising.
1760
+ * Use this to determine which parts of an entity to copy values from when an update occurs.
1761
+ * It is a bitwise flag enum, so values are additive, the value may represent several flags.
1762
+ */
1730
1763
  let SpaceEntityUpdateFlags;
1731
1764
  (function (SpaceEntityUpdateFlags) {
1732
1765
  SpaceEntityUpdateFlags[SpaceEntityUpdateFlags["UPDATE_FLAGS_NAME"] = 1] = "UPDATE_FLAGS_NAME";
@@ -2186,7 +2219,7 @@ export var Multiplayer;
2186
2219
  ReflectionPropertyKeys[ReflectionPropertyKeys["ReflectionAssetId"] = 1] = "ReflectionAssetId";
2187
2220
  ReflectionPropertyKeys[ReflectionPropertyKeys["AssetCollectionId"] = 2] = "AssetCollectionId";
2188
2221
  ReflectionPropertyKeys[ReflectionPropertyKeys["Position"] = 3] = "Position";
2189
- ReflectionPropertyKeys[ReflectionPropertyKeys["Rotation"] = 4] = "Rotation";
2222
+ ReflectionPropertyKeys[ReflectionPropertyKeys["Rotation_NOT_USED"] = 4] = "Rotation_NOT_USED";
2190
2223
  ReflectionPropertyKeys[ReflectionPropertyKeys["Scale"] = 5] = "Scale";
2191
2224
  ReflectionPropertyKeys[ReflectionPropertyKeys["ReflectionShape"] = 6] = "ReflectionShape";
2192
2225
  ReflectionPropertyKeys[ReflectionPropertyKeys["ThirdPartyComponentRef"] = 7] = "ThirdPartyComponentRef";
@@ -2383,6 +2416,7 @@ export var Multiplayer;
2383
2416
  ERequestFailureReason[ERequestFailureReason["ShopifyConnectionBroken"] = 31] = "ShopifyConnectionBroken";
2384
2417
  ERequestFailureReason[ERequestFailureReason["ShopifyInvalidStoreName"] = 32] = "ShopifyInvalidStoreName";
2385
2418
  ERequestFailureReason[ERequestFailureReason["UserShopifyLimitReached"] = 33] = "UserShopifyLimitReached";
2419
+ ERequestFailureReason[ERequestFailureReason["UserTokenRefreshFailed"] = 34] = "UserTokenRefreshFailed";
2386
2420
  })(ERequestFailureReason = Systems.ERequestFailureReason || (Systems.ERequestFailureReason = {}));
2387
2421
  })(Systems || (Systems = {}));
2388
2422
  (function (Systems) {
@@ -2494,6 +2528,18 @@ export var Multiplayer;
2494
2528
  TierNames[TierNames["Invalid"] = 4] = "Invalid";
2495
2529
  })(TierNames = Systems.TierNames || (Systems.TierNames = {}));
2496
2530
  })(Systems || (Systems = {}));
2531
+ (function (Systems) {
2532
+ /**
2533
+ * @description Used to specify the type of the user's avatar
2534
+ */
2535
+ let AvatarType;
2536
+ (function (AvatarType) {
2537
+ AvatarType[AvatarType["None"] = 0] = "None";
2538
+ AvatarType[AvatarType["Premade"] = 1] = "Premade";
2539
+ AvatarType[AvatarType["ReadyPlayerMe"] = 2] = "ReadyPlayerMe";
2540
+ AvatarType[AvatarType["Custom"] = 3] = "Custom";
2541
+ })(AvatarType = Systems.AvatarType || (Systems.AvatarType = {}));
2542
+ })(Systems || (Systems = {}));
2497
2543
  (function (Systems) {
2498
2544
  let SpaceAttributes;
2499
2545
  (function (SpaceAttributes) {
@@ -2818,18 +2864,6 @@ export class CSPFoundation {
2818
2864
  _result = _resultString;
2819
2865
  return _result;
2820
2866
  }
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
2867
  /**
2834
2868
  * @description Unique identifier for the current device.
2835
2869
  * Used internally by certain user authentication endpoints.
@@ -9002,7 +9036,7 @@ export class CSPFoundation {
9002
9036
  }
9003
9037
  /**
9004
9038
  * @description Start the connection and register to start receiving updates from the server.
9005
- * @param callback - A callback with success status.
9039
+ * @param callback - A callback with failure state.
9006
9040
  */
9007
9041
  async connect() {
9008
9042
  var _resolve;
@@ -9011,16 +9045,16 @@ export class CSPFoundation {
9011
9045
  });
9012
9046
  var _callbackPtr;
9013
9047
  var _callback = (_stateObject__, arg1) => {
9014
- _resolve(!!arg1);
9048
+ _resolve(arg1);
9015
9049
  Module.removeFunction(_callbackPtr);
9016
9050
  };
9017
9051
  _callbackPtr = Module.addFunction(_callback, "vii");
9018
- Module.ccall("csp_multiplayer_MultiplayerConnection_Connect_void_CallbackHandler", "void", ["number", "number", "number"], [this.pointer, _callbackPtr, 0]);
9052
+ Module.ccall("csp_multiplayer_MultiplayerConnection_Connect_void_ErrorCodeCallbackHandler", "void", ["number", "number", "number"], [this.pointer, _callbackPtr, 0]);
9019
9053
  return _promise;
9020
9054
  }
9021
9055
  /**
9022
9056
  * @description End the multiplayer connection.
9023
- * @param callback - A callback with success status.
9057
+ * @param callback - A callback with failure state.
9024
9058
  */
9025
9059
  async disconnect() {
9026
9060
  var _resolve;
@@ -9029,16 +9063,16 @@ export class CSPFoundation {
9029
9063
  });
9030
9064
  var _callbackPtr;
9031
9065
  var _callback = (_stateObject__, arg1) => {
9032
- _resolve(!!arg1);
9066
+ _resolve(arg1);
9033
9067
  Module.removeFunction(_callbackPtr);
9034
9068
  };
9035
9069
  _callbackPtr = Module.addFunction(_callback, "vii");
9036
- Module.ccall("csp_multiplayer_MultiplayerConnection_Disconnect_void_CallbackHandler", "void", ["number", "number", "number"], [this.pointer, _callbackPtr, 0]);
9070
+ Module.ccall("csp_multiplayer_MultiplayerConnection_Disconnect_void_ErrorCodeCallbackHandler", "void", ["number", "number", "number"], [this.pointer, _callbackPtr, 0]);
9037
9071
  return _promise;
9038
9072
  }
9039
9073
  /**
9040
9074
  * @description Initialise the connection and get initial entity data from the server.
9041
- * @param callback - A callback with success status.
9075
+ * @param callback - A callback with failure state.
9042
9076
  */
9043
9077
  async initialiseConnection() {
9044
9078
  var _resolve;
@@ -9047,18 +9081,18 @@ export class CSPFoundation {
9047
9081
  });
9048
9082
  var _callbackPtr;
9049
9083
  var _callback = (_stateObject__, arg1) => {
9050
- _resolve(!!arg1);
9084
+ _resolve(arg1);
9051
9085
  Module.removeFunction(_callbackPtr);
9052
9086
  };
9053
9087
  _callbackPtr = Module.addFunction(_callback, "vii");
9054
- Module.ccall("csp_multiplayer_MultiplayerConnection_InitialiseConnection_void_CallbackHandler", "void", ["number", "number", "number"], [this.pointer, _callbackPtr, 0]);
9088
+ Module.ccall("csp_multiplayer_MultiplayerConnection_InitialiseConnection_void_ErrorCodeCallbackHandler", "void", ["number", "number", "number"], [this.pointer, _callbackPtr, 0]);
9055
9089
  return _promise;
9056
9090
  }
9057
9091
  /**
9058
9092
  * @description Sends a network event by EventName to all currently connected clients.
9059
9093
  * @param eventName - The identifying name for the event.
9060
9094
  * @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.
9095
+ * @param callback - A callback with failure state.
9062
9096
  */
9063
9097
  async sendNetworkEvent(eventName, args) {
9064
9098
  var _resolve;
@@ -9067,11 +9101,11 @@ export class CSPFoundation {
9067
9101
  });
9068
9102
  var _callbackPtr;
9069
9103
  var _callback = (_stateObject__, arg1) => {
9070
- _resolve(!!arg1);
9104
+ _resolve(arg1);
9071
9105
  Module.removeFunction(_callbackPtr);
9072
9106
  };
9073
9107
  _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]);
9108
+ Module.ccall("csp_multiplayer_MultiplayerConnection_SendNetworkEvent_void_StringRC_ArrayRC_ErrorCodeCallbackHandler", "void", ["number", "string", "number", "number", "number"], [this.pointer, eventName, args.pointer, _callbackPtr, 0]);
9075
9109
  return _promise;
9076
9110
  }
9077
9111
  /**
@@ -9079,7 +9113,7 @@ export class CSPFoundation {
9079
9113
  * @param eventName - The identifying name for the event.
9080
9114
  * @param args - An array of arguments (ReplicatedValue) to be passed as part of the event payload.
9081
9115
  * @param targetClientId - The client ID to send the event to.
9082
- * @param callback - A status callback which indicates if the event successfully sent.
9116
+ * @param callback - A callback with failure state.
9083
9117
  */
9084
9118
  async sendNetworkEventToClient(eventName, args, targetClientId) {
9085
9119
  var _resolve;
@@ -9088,11 +9122,11 @@ export class CSPFoundation {
9088
9122
  });
9089
9123
  var _callbackPtr;
9090
9124
  var _callback = (_stateObject__, arg1) => {
9091
- _resolve(!!arg1);
9125
+ _resolve(arg1);
9092
9126
  Module.removeFunction(_callbackPtr);
9093
9127
  };
9094
9128
  _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"], [
9129
+ Module.ccall("csp_multiplayer_MultiplayerConnection_SendNetworkEventToClient_void_StringRC_ArrayRC_uint64_t_ErrorCodeCallbackHandler", "void", ["number", "string", "number", "bigint", "number", "number"], [
9096
9130
  this.pointer,
9097
9131
  eventName,
9098
9132
  args.pointer,
@@ -9108,6 +9142,11 @@ export class CSPFoundation {
9108
9142
  */
9109
9143
  setDisconnectionCallback(callback) {
9110
9144
  var _callback = (_stateObject__, arg1) => {
9145
+ {
9146
+ const _stringValue = Module.UTF8ToString(arg1);
9147
+ free(arg1);
9148
+ arg1 = _stringValue;
9149
+ }
9111
9150
  callback(arg1);
9112
9151
  };
9113
9152
  var _callbackPtr = Module.addFunction(_callback, "vii");
@@ -9119,6 +9158,11 @@ export class CSPFoundation {
9119
9158
  */
9120
9159
  setConnectionCallback(callback) {
9121
9160
  var _callback = (_stateObject__, arg1) => {
9161
+ {
9162
+ const _stringValue = Module.UTF8ToString(arg1);
9163
+ free(arg1);
9164
+ arg1 = _stringValue;
9165
+ }
9122
9166
  callback(arg1);
9123
9167
  };
9124
9168
  var _callbackPtr = Module.addFunction(_callback, "vii");
@@ -9126,11 +9170,16 @@ export class CSPFoundation {
9126
9170
  }
9127
9171
  /**
9128
9172
  * @description Sets a callback for a network interruption event.
9129
- * /// Connection isn't recoverable after this point and Disconnect should be called.
9130
- * /// @param Callback NetworkInterruptionCallbackHandler : The callback for network interruption, contains a string showing failure.
9173
+ * Connection isn't recoverable after this point and Disconnect should be called.
9174
+ * @param callback - The callback for network interruption, contains a string showing failure.
9131
9175
  */
9132
9176
  setNetworkInterruptionCallback(callback) {
9133
9177
  var _callback = (_stateObject__, arg1) => {
9178
+ {
9179
+ const _stringValue = Module.UTF8ToString(arg1);
9180
+ free(arg1);
9181
+ arg1 = _stringValue;
9182
+ }
9134
9183
  callback(arg1);
9135
9184
  };
9136
9185
  var _callbackPtr = Module.addFunction(_callback, "vii");
@@ -9236,10 +9285,10 @@ export class CSPFoundation {
9236
9285
  }
9237
9286
  /**
9238
9287
  * @description Sets the Self Messaging flag for this client.
9239
- * /// This allows a client to declare that it wishes to recieve every patch and object message it sends.
9240
- * /// @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!
9288
+ * This allows a client to declare that it wishes to recieve every patch and object message it sends.
9289
+ @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!
9241
9290
  * @param allowSelfMessaging - True to allow and false to disallow.
9242
- * @param callback - Callback providing success/fail boolean.
9291
+ * @param callback - A callback with failure state.
9243
9292
  */
9244
9293
  async setAllowSelfMessagingFlag(allowSelfMessaging) {
9245
9294
  var _resolve;
@@ -9248,11 +9297,11 @@ export class CSPFoundation {
9248
9297
  });
9249
9298
  var _callbackPtr;
9250
9299
  var _callback = (_stateObject__, arg1) => {
9251
- _resolve(!!arg1);
9300
+ _resolve(arg1);
9252
9301
  Module.removeFunction(_callbackPtr);
9253
9302
  };
9254
9303
  _callbackPtr = Module.addFunction(_callback, "vii");
9255
- Module.ccall("csp_multiplayer_MultiplayerConnection_SetAllowSelfMessagingFlag_void_boolC_CallbackHandler", "void", ["number", "boolean", "number", "number"], [this.pointer, allowSelfMessaging, _callbackPtr, 0]);
9304
+ Module.ccall("csp_multiplayer_MultiplayerConnection_SetAllowSelfMessagingFlag_void_boolC_ErrorCodeCallbackHandler", "void", ["number", "boolean", "number", "number"], [this.pointer, allowSelfMessaging, _callbackPtr, 0]);
9256
9305
  return _promise;
9257
9306
  }
9258
9307
  /**
@@ -9494,44 +9543,6 @@ export class CSPFoundation {
9494
9543
  }
9495
9544
  Multiplayer.ReplicatedValue = ReplicatedValue;
9496
9545
  })(Multiplayer || (Multiplayer = {}));
9497
- (function (Multiplayer) {
9498
- class PropertyUpdateInfo extends NativeClassWrapper {
9499
- /** @internal */
9500
- constructor(pointer) {
9501
- super(pointer);
9502
- }
9503
- static create() {
9504
- var _ptr = Module._malloc(8);
9505
- Module.ccall("csp_multiplayer_PropertyUpdateInfo_Ctor", "void", ["number"], [_ptr]);
9506
- var _nPtr = getNativePointer(_ptr);
9507
- return new PropertyUpdateInfo(_nPtr);
9508
- }
9509
- delete() {
9510
- if (this.ownsPointer && !this.disposed) {
9511
- Module.ccall("csp_multiplayer_PropertyUpdateInfo_Dtor", "void", ["number"], [this.pointer]);
9512
- this.disposed = true;
9513
- }
9514
- }
9515
- get propertyId() {
9516
- let _result = Module.ccall("csp_multiplayer_PropertyUpdateInfo__Get_PropertyId", "number", ["number"], [this.pointer]);
9517
- const _unfixedValue = _result;
9518
- let _fixedValue = _unfixedValue < 0 ? _unfixedValue + 2 ** 32 : _unfixedValue;
9519
- _result = _fixedValue;
9520
- return _result;
9521
- }
9522
- set propertyId(value) {
9523
- Module.ccall("csp_multiplayer_PropertyUpdateInfo__Set_PropertyId", "void", ["number", "number"], [this.pointer, value]);
9524
- }
9525
- get updateType() {
9526
- let _result = Module.ccall("csp_multiplayer_PropertyUpdateInfo__Get_UpdateType", "number", ["number"], [this.pointer]);
9527
- return _result;
9528
- }
9529
- set updateType(value) {
9530
- Module.ccall("csp_multiplayer_PropertyUpdateInfo__Set_UpdateType", "void", ["number", "number"], [this.pointer, value]);
9531
- }
9532
- }
9533
- Multiplayer.PropertyUpdateInfo = PropertyUpdateInfo;
9534
- })(Multiplayer || (Multiplayer = {}));
9535
9546
  (function (Multiplayer) {
9536
9547
  /**
9537
9548
  * @description Info class that specifies a type of update and the ID of a component the update is applied to.
@@ -9807,6 +9818,7 @@ export class CSPFoundation {
9807
9818
  * @description Set a callback to be executed when a patch message is received for this Entity. Only one callback can be set.
9808
9819
  * @param callback - Contains the SpaceEntity that updated, a set of flags to tell which parts updated
9809
9820
  * and an array of information to tell which components updated.
9821
+ * When this callback is recieved, the flags and arrays should be used to determine which properties have updated data.
9810
9822
  */
9811
9823
  setUpdateCallback(callback) {
9812
9824
  var _callback = (_stateObject__, arg1, arg2, arg3) => {
@@ -12641,6 +12653,11 @@ export class CSPFoundation {
12641
12653
  */
12642
12654
  setLogCallback(callback) {
12643
12655
  var _callback = (_stateObject__, arg1) => {
12656
+ {
12657
+ const _stringValue = Module.UTF8ToString(arg1);
12658
+ free(arg1);
12659
+ arg1 = _stringValue;
12660
+ }
12644
12661
  callback(arg1);
12645
12662
  };
12646
12663
  var _callbackPtr = Module.addFunction(_callback, "vii");
@@ -12652,6 +12669,11 @@ export class CSPFoundation {
12652
12669
  */
12653
12670
  setEventCallback(callback) {
12654
12671
  var _callback = (_stateObject__, arg1) => {
12672
+ {
12673
+ const _stringValue = Module.UTF8ToString(arg1);
12674
+ free(arg1);
12675
+ arg1 = _stringValue;
12676
+ }
12655
12677
  callback(arg1);
12656
12678
  };
12657
12679
  var _callbackPtr = Module.addFunction(_callback, "vii");
@@ -12663,6 +12685,11 @@ export class CSPFoundation {
12663
12685
  */
12664
12686
  setBeginMarkerCallback(callback) {
12665
12687
  var _callback = (_stateObject__, arg1) => {
12688
+ {
12689
+ const _stringValue = Module.UTF8ToString(arg1);
12690
+ free(arg1);
12691
+ arg1 = _stringValue;
12692
+ }
12666
12693
  callback(arg1);
12667
12694
  };
12668
12695
  var _callbackPtr = Module.addFunction(_callback, "vii");
@@ -12701,6 +12728,33 @@ export class CSPFoundation {
12701
12728
  let _result = Module.ccall("csp_systems_LogSystem_LoggingEnabled_bool_LogLevelC", "boolean", ["number", "number"], [this.pointer, level]);
12702
12729
  return _result;
12703
12730
  }
12731
+ /**
12732
+ * @description Log a message at a specific verbosity level.
12733
+ * @param level - The level to log this message at.
12734
+ * @param inMessage - The message to be logged.
12735
+ */
12736
+ logMsg(level, message) {
12737
+ Module.ccall("csp_systems_LogSystem_LogMsg_void_LogLevelC_StringRC", "void", ["number", "number", "string"], [this.pointer, level, message]);
12738
+ }
12739
+ /**
12740
+ * @description Log an event.
12741
+ * @param inEvent - The event to be logged.
12742
+ */
12743
+ logEvent(event) {
12744
+ Module.ccall("csp_systems_LogSystem_LogEvent_void_StringRC", "void", ["number", "string"], [this.pointer, event]);
12745
+ }
12746
+ /**
12747
+ * @description Specify a 'Marker' event which can be used to communicate a certain process occurring, usually for debugging.
12748
+ */
12749
+ beginMarker(marker) {
12750
+ Module.ccall("csp_systems_LogSystem_BeginMarker_void_StringRC", "void", ["number", "string"], [this.pointer, marker]);
12751
+ }
12752
+ /**
12753
+ * @description End a 'Marker' event.
12754
+ */
12755
+ endMarker() {
12756
+ Module.ccall("csp_systems_LogSystem_EndMarker_void", "void", ["number"], [this.pointer]);
12757
+ }
12704
12758
  /**
12705
12759
  * @description Clears all logging callbacks.
12706
12760
  */
@@ -14157,6 +14211,9 @@ export class CSPFoundation {
14157
14211
  var _nPtr = getNativePointer(_ptr);
14158
14212
  return new AnimatedModelSpaceComponent(_nPtr);
14159
14213
  }
14214
+ /** @deprecated
14215
+ Due to the introduction of LODs it doesn't make sense to set a specific asset anymore
14216
+ */
14160
14217
  getExternalResourceAssetId() {
14161
14218
  let _result = Module.ccall("csp_multiplayer_AnimatedModelSpaceComponent_GetExternalResourceAssetIdC_StringRC", "number", ["number"], [this.pointer]);
14162
14219
  const _resultString = Module.UTF8ToString(_result);
@@ -14164,6 +14221,9 @@ export class CSPFoundation {
14164
14221
  _result = _resultString;
14165
14222
  return _result;
14166
14223
  }
14224
+ /** @deprecated
14225
+ Due to the introduction of LODs it doesn't make sense to set a specific asset anymore
14226
+ */
14167
14227
  setExternalResourceAssetId(value) {
14168
14228
  Module.ccall("csp_multiplayer_AnimatedModelSpaceComponent_SetExternalResourceAssetId_void_StringRC", "void", ["number", "string"], [this.pointer, value]);
14169
14229
  }
@@ -14397,13 +14457,9 @@ export class CSPFoundation {
14397
14457
  return new AudioSpaceComponent(_nPtr);
14398
14458
  }
14399
14459
  /**
14400
- * @description Gets the position of the origin of this component in world space.
14401
- * NOTE: The coordinate system used follows the glTF 2.0 specification, in meters.
14402
- * - Right handed coordinate system
14403
- * - +Y is UP
14404
- * - +X is left (facing forward)
14405
- * - +Z is forward
14406
- * @return The 3D position as vector (left, up, forward) in meters.
14460
+ * \addtogroup IPositionComponent
14461
+ @{
14462
+ @copydoc IPositionComponent::GetPosition()
14407
14463
  */
14408
14464
  getPosition() {
14409
14465
  var _ret = Module._malloc(8);
@@ -14413,17 +14469,13 @@ export class CSPFoundation {
14413
14469
  return _nPtr;
14414
14470
  }
14415
14471
  /**
14416
- * @description Sets the position of the origin of this component in world space.
14417
- * NOTE: The coordinate system used follows the glTF 2.0 specification, in meters.
14418
- * - Right handed coordinate system
14419
- * - +Y is UP
14420
- * - +X is left (facing forward)
14421
- * - +Z is forward
14472
+ @copydoc IPositionComponent::SetPosition()
14422
14473
  */
14423
14474
  setPosition(value) {
14424
14475
  Module.ccall("csp_multiplayer_AudioSpaceComponent_SetPosition_void_Vector3RC", "void", ["number", "number"], [this.pointer, value.pointer]);
14425
14476
  }
14426
14477
  /**
14478
+ @}
14427
14479
  * @description Gets the current playback state of the audio of this audio component.
14428
14480
  * @return The current playback state of the audio of this audio component.
14429
14481
  */
@@ -15038,13 +15090,9 @@ export class CSPFoundation {
15038
15090
  Module.ccall("csp_multiplayer_ButtonSpaceComponent_SetAssetCollectionId_void_StringRC", "void", ["number", "string"], [this.pointer, value]);
15039
15091
  }
15040
15092
  /**
15041
- * @description Gets the position of the origin of this component in world space.
15042
- * NOTE: The coordinate system used follows the glTF 2.0 specification, in meters.
15043
- * - Right handed coordinate system
15044
- * - +Y is UP
15045
- * - +X is left (facing forward)
15046
- * - +Z is forward
15047
- * @return The 3D position as vector (left, up, forward) in meters.
15093
+ * \addtogroup ITransformComponent
15094
+ @{
15095
+ @copydoc IPositionComponent::GetPosition()
15048
15096
  */
15049
15097
  getPosition() {
15050
15098
  var _ret = Module._malloc(8);
@@ -15054,26 +15102,13 @@ export class CSPFoundation {
15054
15102
  return _nPtr;
15055
15103
  }
15056
15104
  /**
15057
- * @description Sets the position of the origin of this component in world space.
15058
- * NOTE: The coordinate system used follows the glTF 2.0 specification, in meters.
15059
- * - Right handed coordinate system
15060
- * - +Y is UP
15061
- * - +X is left (facing forward)
15062
- * - +Z is forward
15105
+ @copydoc IPositionComponent::SetPosition()
15063
15106
  */
15064
15107
  setPosition(value) {
15065
15108
  Module.ccall("csp_multiplayer_ButtonSpaceComponent_SetPosition_void_Vector3RC", "void", ["number", "number"], [this.pointer, value.pointer]);
15066
15109
  }
15067
15110
  /**
15068
- * @description Gets a quaternion representing the rotation of the origin of this component, expressed in radians.
15069
- * NOTE: The coordinate system respects the following conventions:
15070
- * - Right handed coordinate system
15071
- * - Positive rotation is counterclockwise
15072
- * - The geographic North is along the positive Z axis (+Z) at an orientation of 0 degrees.
15073
- * - North: +Z
15074
- * - East: -X
15075
- * - South: -Z
15076
- * - West: +X
15111
+ @copydoc IRotationComponent::GetRotation()
15077
15112
  */
15078
15113
  getRotation() {
15079
15114
  var _ret = Module._malloc(8);
@@ -15083,28 +15118,13 @@ export class CSPFoundation {
15083
15118
  return _nPtr;
15084
15119
  }
15085
15120
  /**
15086
- * @description Sets the rotation of the origin of this component according to the specified quaternion "Value", expressed in radians.
15087
- * NOTE: The coordinate system respects the following conventions:
15088
- * - Right handed coordinate system
15089
- * - Positive rotation is counterclockwise
15090
- * - The geographic North is along the positive Z axis (+Z) at an orientation of 0 degrees.
15091
- * - North: +Z
15092
- * - East: -X
15093
- * - South: -Z
15094
- * - West: +X
15095
- * @param value - The quaternion in radians to use as new rotation of this component.
15121
+ @copydoc IRotationComponent::SetRotation()
15096
15122
  */
15097
15123
  setRotation(value) {
15098
15124
  Module.ccall("csp_multiplayer_ButtonSpaceComponent_SetRotation_void_Vector4RC", "void", ["number", "number"], [this.pointer, value.pointer]);
15099
15125
  }
15100
15126
  /**
15101
- * @description Gets the scale of the origin of this component in world space.
15102
- * NOTE: The coordinate system used follows the glTF 2.0 specification.
15103
- * - Right handed coordinate system
15104
- * - +Y is UP
15105
- * - +X is left (facing forward)
15106
- * - +Z is forward
15107
- * @return The 3D scale as vector (left, up, forward).
15127
+ @copydoc IScaleComponent::GetScale()
15108
15128
  */
15109
15129
  getScale() {
15110
15130
  var _ret = Module._malloc(8);
@@ -15114,18 +15134,29 @@ export class CSPFoundation {
15114
15134
  return _nPtr;
15115
15135
  }
15116
15136
  /**
15117
- * @description Sets the scale of the origin of this component in world space to the specified "Value".
15118
- * @param value - The new value expressed as vector (left, up, forward).
15119
- * NOTE: The coordinate system used follows the glTF 2.0 specification.
15120
- * - Right handed coordinate system
15121
- * - +Y is UP
15122
- * - +X is left (facing forward)
15123
- * - +Z is forward
15137
+ @copydoc IScaleComponent::SetScale()
15124
15138
  */
15125
15139
  setScale(value) {
15126
15140
  Module.ccall("csp_multiplayer_ButtonSpaceComponent_SetScale_void_Vector3RC", "void", ["number", "number"], [this.pointer, value.pointer]);
15127
15141
  }
15128
15142
  /**
15143
+ @copydoc ITransformComponent::GetTransform()
15144
+ */
15145
+ getTransform() {
15146
+ var _ret = Module._malloc(8);
15147
+ Module.ccall("csp_multiplayer_ButtonSpaceComponent_GetTransformC_SpaceTransform", "void", ["number", "number"], [_ret, this.pointer]);
15148
+ var _nPtr = new Multiplayer.SpaceTransform(getNativePointer(_ret));
15149
+ Module._free(_ret);
15150
+ return _nPtr;
15151
+ }
15152
+ /**
15153
+ @copydoc ITransformComonent::SetTransform()
15154
+ */
15155
+ setTransform(value) {
15156
+ Module.ccall("csp_multiplayer_ButtonSpaceComponent_SetTransform_void_SpaceTransformRC", "void", ["number", "number"], [this.pointer, value.pointer]);
15157
+ }
15158
+ /**
15159
+ @}
15129
15160
  * \addtogroup IClickableComponent
15130
15161
  @{
15131
15162
  @copydoc IClickableComponent::GetIsEnabled()
@@ -15203,13 +15234,9 @@ export class CSPFoundation {
15203
15234
  return new CollisionSpaceComponent(_nPtr);
15204
15235
  }
15205
15236
  /**
15206
- * @description Gets the position of the origin of this component in world space.
15207
- * NOTE: The coordinate system used follows the glTF 2.0 specification, in meters.
15208
- * - Right handed coordinate system
15209
- * - +Y is UP
15210
- * - +X is left (facing forward)
15211
- * - +Z is forward
15212
- * @return The 3D position as vector (left, up, forward) in meters.
15237
+ * \addtogroup ITransformComponent
15238
+ @{
15239
+ @copydoc IPositionComponent::GetPosition()
15213
15240
  */
15214
15241
  getPosition() {
15215
15242
  var _ret = Module._malloc(8);
@@ -15219,26 +15246,13 @@ export class CSPFoundation {
15219
15246
  return _nPtr;
15220
15247
  }
15221
15248
  /**
15222
- * @description Sets the position of the origin of this component in world space.
15223
- * NOTE: The coordinate system used follows the glTF 2.0 specification, in meters.
15224
- * - Right handed coordinate system
15225
- * - +Y is UP
15226
- * - +X is left (facing forward)
15227
- * - +Z is forward
15249
+ @copydoc IPositionComponent::SetPosition()
15228
15250
  */
15229
15251
  setPosition(value) {
15230
15252
  Module.ccall("csp_multiplayer_CollisionSpaceComponent_SetPosition_void_Vector3RC", "void", ["number", "number"], [this.pointer, value.pointer]);
15231
15253
  }
15232
15254
  /**
15233
- * @description Gets a quaternion representing the rotation of the origin of this component, expressed in radians.
15234
- * NOTE: The coordinate system respects the following conventions:
15235
- * - Right handed coordinate system
15236
- * - Positive rotation is counterclockwise
15237
- * - The geographic North is along the positive Z axis (+Z) at an orientation of 0 degrees.
15238
- * - North: +Z
15239
- * - East: -X
15240
- * - South: -Z
15241
- * - West: +X
15255
+ @copydoc IRotationComponent::GetRotation()
15242
15256
  */
15243
15257
  getRotation() {
15244
15258
  var _ret = Module._malloc(8);
@@ -15248,28 +15262,13 @@ export class CSPFoundation {
15248
15262
  return _nPtr;
15249
15263
  }
15250
15264
  /**
15251
- * @description Sets the rotation of the origin of this component according to the specified quaternion "Value", expressed in radians.
15252
- * NOTE: The coordinate system respects the following conventions:
15253
- * - Right handed coordinate system
15254
- * - Positive rotation is counterclockwise
15255
- * - The geographic North is along the positive Z axis (+Z) at an orientation of 0 degrees.
15256
- * - North: +Z
15257
- * - East: -X
15258
- * - South: -Z
15259
- * - West: +X
15260
- * @param value - The quaternion in radians to use as new rotation of this component.
15265
+ @copydoc IRotationComponent::SetRotation()
15261
15266
  */
15262
15267
  setRotation(value) {
15263
15268
  Module.ccall("csp_multiplayer_CollisionSpaceComponent_SetRotation_void_Vector4RC", "void", ["number", "number"], [this.pointer, value.pointer]);
15264
15269
  }
15265
15270
  /**
15266
- * @description Gets the scale of the origin of this component in world space.
15267
- * NOTE: The coordinate system used follows the glTF 2.0 specification.
15268
- * - Right handed coordinate system
15269
- * - +Y is UP
15270
- * - +X is left (facing forward)
15271
- * - +Z is forward
15272
- * @return The 3D scale as vector (left, up, forward).
15271
+ @copydoc IScaleComponent::GetScale()
15273
15272
  */
15274
15273
  getScale() {
15275
15274
  var _ret = Module._malloc(8);
@@ -15279,18 +15278,29 @@ export class CSPFoundation {
15279
15278
  return _nPtr;
15280
15279
  }
15281
15280
  /**
15282
- * @description Sets the scale of the origin of this component in world space to the specified "Value".
15283
- * @param value - The new value expressed as vector (left, up, forward).
15284
- * NOTE: The coordinate system used follows the glTF 2.0 specification.
15285
- * - Right handed coordinate system
15286
- * - +Y is UP
15287
- * - +X is left (facing forward)
15288
- * - +Z is forward
15281
+ @copydoc IScaleComponent::SetScale()
15289
15282
  */
15290
15283
  setScale(value) {
15291
15284
  Module.ccall("csp_multiplayer_CollisionSpaceComponent_SetScale_void_Vector3RC", "void", ["number", "number"], [this.pointer, value.pointer]);
15292
15285
  }
15293
15286
  /**
15287
+ @copydoc ITransformComponent::GetTransform()
15288
+ */
15289
+ getTransform() {
15290
+ var _ret = Module._malloc(8);
15291
+ Module.ccall("csp_multiplayer_CollisionSpaceComponent_GetTransformC_SpaceTransform", "void", ["number", "number"], [_ret, this.pointer]);
15292
+ var _nPtr = new Multiplayer.SpaceTransform(getNativePointer(_ret));
15293
+ Module._free(_ret);
15294
+ return _nPtr;
15295
+ }
15296
+ /**
15297
+ @copydoc ITransformComonent::SetTransform()
15298
+ */
15299
+ setTransform(value) {
15300
+ Module.ccall("csp_multiplayer_CollisionSpaceComponent_SetTransform_void_SpaceTransformRC", "void", ["number", "number"], [this.pointer, value.pointer]);
15301
+ }
15302
+ /**
15303
+ @}
15294
15304
  * @description Gets the collision shape used by this collision component.
15295
15305
  * @return The colllision shape used by this collision component.
15296
15306
  */
@@ -15717,7 +15727,9 @@ export class CSPFoundation {
15717
15727
  return _promise;
15718
15728
  }
15719
15729
  /**
15720
- * @description Gets the relative 3D position of this component.
15730
+ * \addtogroup IPositionComponent
15731
+ @{
15732
+ @copydoc IPositionComponent::GetPosition()
15721
15733
  */
15722
15734
  getPosition() {
15723
15735
  var _ret = Module._malloc(8);
@@ -15727,14 +15739,16 @@ export class CSPFoundation {
15727
15739
  return _nPtr;
15728
15740
  }
15729
15741
  /**
15730
- * @description Sets the relative 3D position of this component.
15731
- * @param value - - The new 3D position assigned to the origin of this component.
15742
+ @copydoc IPositionComponent::SetPosition()
15732
15743
  */
15733
15744
  setPosition(value) {
15734
15745
  Module.ccall("csp_multiplayer_ConversationSpaceComponent_SetPosition_void_Vector3RC", "void", ["number", "number"], [this.pointer, value.pointer]);
15735
15746
  }
15736
15747
  /**
15737
- * @description Gets the quaternion of the rotation of the origin of this component.
15748
+ @}
15749
+ * \addtogroup IRotationComponent
15750
+ @{
15751
+ @copydoc IRotationComponent::GetRotation()
15738
15752
  */
15739
15753
  getRotation() {
15740
15754
  var _ret = Module._malloc(8);
@@ -15744,12 +15758,14 @@ export class CSPFoundation {
15744
15758
  return _nPtr;
15745
15759
  }
15746
15760
  /**
15747
- * @description Sets the quaternion of the rotation of the origin of this component.
15748
- * @param value - - The new rotation assigned to the origin of this component.
15761
+ @copydoc IRotationComponent::SetRotation()
15749
15762
  */
15750
15763
  setRotation(value) {
15751
15764
  Module.ccall("csp_multiplayer_ConversationSpaceComponent_SetRotation_void_Vector4RC", "void", ["number", "number"], [this.pointer, value.pointer]);
15752
15765
  }
15766
+ /**
15767
+ @}
15768
+ */
15753
15769
  getIsVisible() {
15754
15770
  let _result = Module.ccall("csp_multiplayer_ConversationSpaceComponent_GetIsVisibleC_bool", "boolean", ["number"], [this.pointer]);
15755
15771
  return _result;
@@ -15976,13 +15992,9 @@ export class CSPFoundation {
15976
15992
  return new ECommerceSpaceComponent(_nPtr);
15977
15993
  }
15978
15994
  /**
15979
- * @description Gets the position of the origin of this component in world space.
15980
- * NOTE: The coordinate system used follows the glTF 2.0 specification, in meters.
15981
- * - Right handed coordinate system
15982
- * - +Y is UP
15983
- * - +X is left (facing forward)
15984
- * - +Z is forward
15985
- * @return The 3D position as vector (left, up, forward) in meters.
15995
+ * \addtogroup ITransformComponent
15996
+ @{
15997
+ @copydoc IPositionComponent::GetPosition()
15986
15998
  */
15987
15999
  getPosition() {
15988
16000
  var _ret = Module._malloc(8);
@@ -15992,17 +16004,13 @@ export class CSPFoundation {
15992
16004
  return _nPtr;
15993
16005
  }
15994
16006
  /**
15995
- * @description Sets the position of the origin of this component in world space.
15996
- * NOTE: The coordinate system used follows the glTF 2.0 specification, in meters.
15997
- * - Right handed coordinate system
15998
- * - +Y is UP
15999
- * - +X is left (facing forward)
16000
- * - +Z is forward
16007
+ @copydoc IPositionComponent::SetPosition()
16001
16008
  */
16002
16009
  setPosition(value) {
16003
16010
  Module.ccall("csp_multiplayer_ECommerceSpaceComponent_SetPosition_void_Vector3RC", "void", ["number", "number"], [this.pointer, value.pointer]);
16004
16011
  }
16005
16012
  /**
16013
+ @}
16006
16014
  * @description Gets the product ID associated with the ECommerce component.
16007
16015
  * @return The product ID associated with the ECommerce component.
16008
16016
  */
@@ -16089,7 +16097,9 @@ export class CSPFoundation {
16089
16097
  Module.ccall("csp_multiplayer_ExternalLinkSpaceComponent_SetLinkUrl_void_StringRC", "void", ["number", "string"], [this.pointer, value]);
16090
16098
  }
16091
16099
  /**
16092
- * @description Gets the 3D position in world coordinates where the origin of this component is located.
16100
+ * \addtogroup ITransformComponent
16101
+ @{
16102
+ @copydoc IPositionComponent::GetPosition()
16093
16103
  */
16094
16104
  getPosition() {
16095
16105
  var _ret = Module._malloc(8);
@@ -16099,14 +16109,13 @@ export class CSPFoundation {
16099
16109
  return _nPtr;
16100
16110
  }
16101
16111
  /**
16102
- * @description Sets the 3D position in world coordinates where the origin of this component will be located.
16103
- * @param value - - The new 3D position assigned to the origin of this component.
16112
+ @copydoc IPositionComponent::SetPosition()
16104
16113
  */
16105
16114
  setPosition(value) {
16106
16115
  Module.ccall("csp_multiplayer_ExternalLinkSpaceComponent_SetPosition_void_Vector3RC", "void", ["number", "number"], [this.pointer, value.pointer]);
16107
16116
  }
16108
16117
  /**
16109
- * @description Gets the quaternion of the rotation of the origin of this component.
16118
+ @copydoc IRotationComponent::GetRotation()
16110
16119
  */
16111
16120
  getRotation() {
16112
16121
  var _ret = Module._malloc(8);
@@ -16116,14 +16125,13 @@ export class CSPFoundation {
16116
16125
  return _nPtr;
16117
16126
  }
16118
16127
  /**
16119
- * @description Sets the quaternion of the rotation of the origin of this component.
16120
- * @param value - - The new rotation assigned to the origin of this component.
16128
+ @copydoc IRotationComponent::SetRotation()
16121
16129
  */
16122
16130
  setRotation(value) {
16123
16131
  Module.ccall("csp_multiplayer_ExternalLinkSpaceComponent_SetRotation_void_Vector4RC", "void", ["number", "number"], [this.pointer, value.pointer]);
16124
16132
  }
16125
16133
  /**
16126
- * @description Gets the 3D scale of this component.
16134
+ @copydoc IScaleComponent::GetScale()
16127
16135
  */
16128
16136
  getScale() {
16129
16137
  var _ret = Module._malloc(8);
@@ -16133,13 +16141,29 @@ export class CSPFoundation {
16133
16141
  return _nPtr;
16134
16142
  }
16135
16143
  /**
16136
- * @description Sets the 3D scale of this component.
16137
- * @param value - - The new 3D scale assigned to this component.
16144
+ @copydoc IScaleComponent::SetScale()
16138
16145
  */
16139
16146
  setScale(value) {
16140
16147
  Module.ccall("csp_multiplayer_ExternalLinkSpaceComponent_SetScale_void_Vector3RC", "void", ["number", "number"], [this.pointer, value.pointer]);
16141
16148
  }
16142
16149
  /**
16150
+ @copydoc ITransformComponent::GetTransform()
16151
+ */
16152
+ getTransform() {
16153
+ var _ret = Module._malloc(8);
16154
+ Module.ccall("csp_multiplayer_ExternalLinkSpaceComponent_GetTransformC_SpaceTransform", "void", ["number", "number"], [_ret, this.pointer]);
16155
+ var _nPtr = new Multiplayer.SpaceTransform(getNativePointer(_ret));
16156
+ Module._free(_ret);
16157
+ return _nPtr;
16158
+ }
16159
+ /**
16160
+ @copydoc ITransformComonent::SetTransform()
16161
+ */
16162
+ setTransform(value) {
16163
+ Module.ccall("csp_multiplayer_ExternalLinkSpaceComponent_SetTransform_void_SpaceTransformRC", "void", ["number", "number"], [this.pointer, value.pointer]);
16164
+ }
16165
+ /**
16166
+ @}
16143
16167
  * @description Gets the text that will be displayed by the component as hyperlink to the URL it redirects to.
16144
16168
  */
16145
16169
  getDisplayText() {
@@ -16290,13 +16314,9 @@ export class CSPFoundation {
16290
16314
  Module.ccall("csp_multiplayer_FiducialMarkerSpaceComponent_SetAssetCollectionId_void_StringRC", "void", ["number", "string"], [this.pointer, value]);
16291
16315
  }
16292
16316
  /**
16293
- * @description Gets the position of the origin of this component in world space.
16294
- * NOTE: The coordinate system used follows the glTF 2.0 specification, in meters.
16295
- * - Right handed coordinate system
16296
- * - +Y is UP
16297
- * - +X is left (facing forward)
16298
- * - +Z is forward
16299
- * @return The 3D position as vector (left, up, forward) in meters.
16317
+ * \addtogroup ITransformComponent
16318
+ @{
16319
+ @copydoc IPositionComponent::GetPosition()
16300
16320
  */
16301
16321
  getPosition() {
16302
16322
  var _ret = Module._malloc(8);
@@ -16306,26 +16326,13 @@ export class CSPFoundation {
16306
16326
  return _nPtr;
16307
16327
  }
16308
16328
  /**
16309
- * @description Sets the position of the origin of this component in world space.
16310
- * NOTE: The coordinate system used follows the glTF 2.0 specification, in meters.
16311
- * - Right handed coordinate system
16312
- * - +Y is UP
16313
- * - +X is left (facing forward)
16314
- * - +Z is forward
16329
+ @copydoc IPositionComponent::SetPosition()
16315
16330
  */
16316
16331
  setPosition(value) {
16317
16332
  Module.ccall("csp_multiplayer_FiducialMarkerSpaceComponent_SetPosition_void_Vector3RC", "void", ["number", "number"], [this.pointer, value.pointer]);
16318
16333
  }
16319
16334
  /**
16320
- * @description Gets a quaternion representing the rotation of the origin of this component, expressed in radians.
16321
- * NOTE: The coordinate system respects the following conventions:
16322
- * - Right handed coordinate system
16323
- * - Positive rotation is counterclockwise
16324
- * - The geographic North is along the positive Z axis (+Z) at an orientation of 0 degrees.
16325
- * - North: +Z
16326
- * - East: -X
16327
- * - South: -Z
16328
- * - West: +X
16335
+ @copydoc IRotationComponent::GetRotation()
16329
16336
  */
16330
16337
  getRotation() {
16331
16338
  var _ret = Module._malloc(8);
@@ -16335,28 +16342,13 @@ export class CSPFoundation {
16335
16342
  return _nPtr;
16336
16343
  }
16337
16344
  /**
16338
- * @description Sets the rotation of the origin of this component according to the specified quaternion "Value", expressed in radians.
16339
- * NOTE: The coordinate system respects the following conventions:
16340
- * - Right handed coordinate system
16341
- * - Positive rotation is counterclockwise
16342
- * - The geographic North is along the positive Z axis (+Z) at an orientation of 0 degrees.
16343
- * - North: +Z
16344
- * - East: -X
16345
- * - South: -Z
16346
- * - West: +X
16347
- * @param value - The quaternion in radians to use as new rotation of this component.
16345
+ @copydoc IRotationComponent::SetRotation()
16348
16346
  */
16349
16347
  setRotation(value) {
16350
16348
  Module.ccall("csp_multiplayer_FiducialMarkerSpaceComponent_SetRotation_void_Vector4RC", "void", ["number", "number"], [this.pointer, value.pointer]);
16351
16349
  }
16352
16350
  /**
16353
- * @description Gets the scale of the origin of this component in world space.
16354
- * NOTE: The coordinate system used follows the glTF 2.0 specification.
16355
- * - Right handed coordinate system
16356
- * - +Y is UP
16357
- * - +X is left (facing forward)
16358
- * - +Z is forward
16359
- * @return The 3D scale as vector (left, up, forward).
16351
+ @copydoc IScaleComponent::GetScale()
16360
16352
  */
16361
16353
  getScale() {
16362
16354
  var _ret = Module._malloc(8);
@@ -16366,18 +16358,29 @@ export class CSPFoundation {
16366
16358
  return _nPtr;
16367
16359
  }
16368
16360
  /**
16369
- * @description Sets the scale of the origin of this component in world space to the specified "Value".
16370
- * @param value - The new value expressed as vector (left, up, forward).
16371
- * NOTE: The coordinate system used follows the glTF 2.0 specification.
16372
- * - Right handed coordinate system
16373
- * - +Y is UP
16374
- * - +X is left (facing forward)
16375
- * - +Z is forward
16361
+ @copydoc IScaleComponent::SetScale()
16376
16362
  */
16377
16363
  setScale(value) {
16378
16364
  Module.ccall("csp_multiplayer_FiducialMarkerSpaceComponent_SetScale_void_Vector3RC", "void", ["number", "number"], [this.pointer, value.pointer]);
16379
16365
  }
16380
16366
  /**
16367
+ @copydoc ITransformComponent::GetTransform()
16368
+ */
16369
+ getTransform() {
16370
+ var _ret = Module._malloc(8);
16371
+ Module.ccall("csp_multiplayer_FiducialMarkerSpaceComponent_GetTransformC_SpaceTransform", "void", ["number", "number"], [_ret, this.pointer]);
16372
+ var _nPtr = new Multiplayer.SpaceTransform(getNativePointer(_ret));
16373
+ Module._free(_ret);
16374
+ return _nPtr;
16375
+ }
16376
+ /**
16377
+ @copydoc ITransformComonent::SetTransform()
16378
+ */
16379
+ setTransform(value) {
16380
+ Module.ccall("csp_multiplayer_FiducialMarkerSpaceComponent_SetTransform_void_SpaceTransformRC", "void", ["number", "number"], [this.pointer, value.pointer]);
16381
+ }
16382
+ /**
16383
+ @}
16381
16384
  * \addtogroup IVisibleComponent
16382
16385
  @{
16383
16386
  @copydoc IVisibleComponent::GetIsVisible()
@@ -16454,13 +16457,9 @@ export class CSPFoundation {
16454
16457
  Module.ccall("csp_multiplayer_FogSpaceComponent_SetFogMode_void_FogMode", "void", ["number", "number"], [this.pointer, value]);
16455
16458
  }
16456
16459
  /**
16457
- * @description Gets the position of the origin of this component in world space.
16458
- * NOTE: The coordinate system used follows the glTF 2.0 specification, in meters.
16459
- * - Right handed coordinate system
16460
- * - +Y is UP
16461
- * - +X is left (facing forward)
16462
- * - +Z is forward
16463
- * @return The 3D position as vector (left, up, forward) in meters.
16460
+ * \addtogroup ITransformComponent
16461
+ @{
16462
+ @copydoc IPositionComponent::GetPosition()
16464
16463
  */
16465
16464
  getPosition() {
16466
16465
  var _ret = Module._malloc(8);
@@ -16470,26 +16469,13 @@ export class CSPFoundation {
16470
16469
  return _nPtr;
16471
16470
  }
16472
16471
  /**
16473
- * @description Sets the position of the origin of this component in world space.
16474
- * NOTE: The coordinate system used follows the glTF 2.0 specification, in meters.
16475
- * - Right handed coordinate system
16476
- * - +Y is UP
16477
- * - +X is left (facing forward)
16478
- * - +Z is forward
16472
+ @copydoc IPositionComponent::SetPosition()
16479
16473
  */
16480
16474
  setPosition(value) {
16481
16475
  Module.ccall("csp_multiplayer_FogSpaceComponent_SetPosition_void_Vector3RC", "void", ["number", "number"], [this.pointer, value.pointer]);
16482
16476
  }
16483
16477
  /**
16484
- * @description Gets a quaternion representing the rotation of the origin of this component, expressed in radians.
16485
- * NOTE: The coordinate system respects the following conventions:
16486
- * - Right handed coordinate system
16487
- * - Positive rotation is counterclockwise
16488
- * - The geographic North is along the positive Z axis (+Z) at an orientation of 0 degrees.
16489
- * - North: +Z
16490
- * - East: -X
16491
- * - South: -Z
16492
- * - West: +X
16478
+ @copydoc IRotationComponent::GetRotation()
16493
16479
  */
16494
16480
  getRotation() {
16495
16481
  var _ret = Module._malloc(8);
@@ -16499,28 +16485,13 @@ export class CSPFoundation {
16499
16485
  return _nPtr;
16500
16486
  }
16501
16487
  /**
16502
- * @description Sets the rotation of the origin of this component according to the specified quaternion "Value", expressed in radians.
16503
- * NOTE: The coordinate system respects the following conventions:
16504
- * - Right handed coordinate system
16505
- * - Positive rotation is counterclockwise
16506
- * - The geographic North is along the positive Z axis (+Z) at an orientation of 0 degrees.
16507
- * - North: +Z
16508
- * - East: -X
16509
- * - South: -Z
16510
- * - West: +X
16511
- * @param value - The quaternion in radians to use as new rotation of this component.
16488
+ @copydoc IRotationComponent::SetRotation()
16512
16489
  */
16513
16490
  setRotation(value) {
16514
16491
  Module.ccall("csp_multiplayer_FogSpaceComponent_SetRotation_void_Vector4RC", "void", ["number", "number"], [this.pointer, value.pointer]);
16515
16492
  }
16516
16493
  /**
16517
- * @description Gets the scale of the origin of this component in world space.
16518
- * NOTE: The coordinate system used follows the glTF 2.0 specification.
16519
- * - Right handed coordinate system
16520
- * - +Y is UP
16521
- * - +X is left (facing forward)
16522
- * - +Z is forward
16523
- * @return The 3D scale as vector (left, up, forward).
16494
+ @copydoc IScaleComponent::GetScale()
16524
16495
  */
16525
16496
  getScale() {
16526
16497
  var _ret = Module._malloc(8);
@@ -16530,18 +16501,29 @@ export class CSPFoundation {
16530
16501
  return _nPtr;
16531
16502
  }
16532
16503
  /**
16533
- * @description Sets the scale of the origin of this component in world space to the specified "Value".
16534
- * @param value - The new value expressed as vector (left, up, forward).
16535
- * NOTE: The coordinate system used follows the glTF 2.0 specification.
16536
- * - Right handed coordinate system
16537
- * - +Y is UP
16538
- * - +X is left (facing forward)
16539
- * - +Z is forward
16504
+ @copydoc IScaleComponent::SetScale()
16540
16505
  */
16541
16506
  setScale(value) {
16542
16507
  Module.ccall("csp_multiplayer_FogSpaceComponent_SetScale_void_Vector3RC", "void", ["number", "number"], [this.pointer, value.pointer]);
16543
16508
  }
16544
16509
  /**
16510
+ @copydoc ITransformComponent::GetTransform()
16511
+ */
16512
+ getTransform() {
16513
+ var _ret = Module._malloc(8);
16514
+ Module.ccall("csp_multiplayer_FogSpaceComponent_GetTransformC_SpaceTransform", "void", ["number", "number"], [_ret, this.pointer]);
16515
+ var _nPtr = new Multiplayer.SpaceTransform(getNativePointer(_ret));
16516
+ Module._free(_ret);
16517
+ return _nPtr;
16518
+ }
16519
+ /**
16520
+ @copydoc ITransformComonent::SetTransform()
16521
+ */
16522
+ setTransform(value) {
16523
+ Module.ccall("csp_multiplayer_FogSpaceComponent_SetTransform_void_SpaceTransformRC", "void", ["number", "number"], [this.pointer, value.pointer]);
16524
+ }
16525
+ /**
16526
+ @}
16545
16527
  * @description Get start sistance
16546
16528
  * Note: Distance from camera that the fog will start.
16547
16529
  * Note: 0 = this property has no effect.
@@ -16811,13 +16793,9 @@ export class CSPFoundation {
16811
16793
  Module.ccall("csp_multiplayer_ImageSpaceComponent_SetAssetCollectionId_void_StringRC", "void", ["number", "string"], [this.pointer, value]);
16812
16794
  }
16813
16795
  /**
16814
- * @description Gets the position of the origin of this component in world space.
16815
- * NOTE: The coordinate system used follows the glTF 2.0 specification, in meters.
16816
- * - Right handed coordinate system
16817
- * - +Y is UP
16818
- * - +X is left (facing forward)
16819
- * - +Z is forward
16820
- * @return The 3D position as vector (left, up, forward) in meters.
16796
+ * \addtogroup ITransformComponent
16797
+ @{
16798
+ @copydoc IPositionComponent::GetPosition()
16821
16799
  */
16822
16800
  getPosition() {
16823
16801
  var _ret = Module._malloc(8);
@@ -16827,26 +16805,13 @@ export class CSPFoundation {
16827
16805
  return _nPtr;
16828
16806
  }
16829
16807
  /**
16830
- * @description Sets the position of the origin of this component in world space.
16831
- * NOTE: The coordinate system used follows the glTF 2.0 specification, in meters.
16832
- * - Right handed coordinate system
16833
- * - +Y is UP
16834
- * - +X is left (facing forward)
16835
- * - +Z is forward
16808
+ @copydoc IPositionComponent::SetPosition()
16836
16809
  */
16837
16810
  setPosition(value) {
16838
16811
  Module.ccall("csp_multiplayer_ImageSpaceComponent_SetPosition_void_Vector3RC", "void", ["number", "number"], [this.pointer, value.pointer]);
16839
16812
  }
16840
16813
  /**
16841
- * @description Gets a quaternion representing the rotation of the origin of this component, expressed in radians.
16842
- * NOTE: The coordinate system respects the following conventions:
16843
- * - Right handed coordinate system
16844
- * - Positive rotation is counterclockwise
16845
- * - The geographic North is along the positive Z axis (+Z) at an orientation of 0 degrees.
16846
- * - North: +Z
16847
- * - East: -X
16848
- * - South: -Z
16849
- * - West: +X
16814
+ @copydoc IRotationComponent::GetRotation()
16850
16815
  */
16851
16816
  getRotation() {
16852
16817
  var _ret = Module._malloc(8);
@@ -16856,28 +16821,13 @@ export class CSPFoundation {
16856
16821
  return _nPtr;
16857
16822
  }
16858
16823
  /**
16859
- * @description Sets the rotation of the origin of this component according to the specified quaternion "Value", expressed in radians.
16860
- * NOTE: The coordinate system respects the following conventions:
16861
- * - Right handed coordinate system
16862
- * - Positive rotation is counterclockwise
16863
- * - The geographic North is along the positive Z axis (+Z) at an orientation of 0 degrees.
16864
- * - North: +Z
16865
- * - East: -X
16866
- * - South: -Z
16867
- * - West: +X
16868
- * @param value - The quaternion in radians to use as new rotation of this component.
16824
+ @copydoc IRotationComponent::SetRotation()
16869
16825
  */
16870
16826
  setRotation(value) {
16871
16827
  Module.ccall("csp_multiplayer_ImageSpaceComponent_SetRotation_void_Vector4RC", "void", ["number", "number"], [this.pointer, value.pointer]);
16872
16828
  }
16873
16829
  /**
16874
- * @description Gets the scale of the origin of this component in world space.
16875
- * NOTE: The coordinate system used follows the glTF 2.0 specification.
16876
- * - Right handed coordinate system
16877
- * - +Y is UP
16878
- * - +X is left (facing forward)
16879
- * - +Z is forward
16880
- * @return The 3D scale as vector (left, up, forward).
16830
+ @copydoc IScaleComponent::GetScale()
16881
16831
  */
16882
16832
  getScale() {
16883
16833
  var _ret = Module._malloc(8);
@@ -16887,18 +16837,29 @@ export class CSPFoundation {
16887
16837
  return _nPtr;
16888
16838
  }
16889
16839
  /**
16890
- * @description Sets the scale of the origin of this component in world space to the specified "Value".
16891
- * @param value - The new value expressed as vector (left, up, forward).
16892
- * NOTE: The coordinate system used follows the glTF 2.0 specification.
16893
- * - Right handed coordinate system
16894
- * - +Y is UP
16895
- * - +X is left (facing forward)
16896
- * - +Z is forward
16840
+ @copydoc IScaleComponent::SetScale()
16897
16841
  */
16898
16842
  setScale(value) {
16899
16843
  Module.ccall("csp_multiplayer_ImageSpaceComponent_SetScale_void_Vector3RC", "void", ["number", "number"], [this.pointer, value.pointer]);
16900
16844
  }
16901
16845
  /**
16846
+ @copydoc ITransformComponent::GetTransform()
16847
+ */
16848
+ getTransform() {
16849
+ var _ret = Module._malloc(8);
16850
+ Module.ccall("csp_multiplayer_ImageSpaceComponent_GetTransformC_SpaceTransform", "void", ["number", "number"], [_ret, this.pointer]);
16851
+ var _nPtr = new Multiplayer.SpaceTransform(getNativePointer(_ret));
16852
+ Module._free(_ret);
16853
+ return _nPtr;
16854
+ }
16855
+ /**
16856
+ @copydoc ITransformComonent::SetTransform()
16857
+ */
16858
+ setTransform(value) {
16859
+ Module.ccall("csp_multiplayer_ImageSpaceComponent_SetTransform_void_SpaceTransformRC", "void", ["number", "number"], [this.pointer, value.pointer]);
16860
+ }
16861
+ /**
16862
+ @}
16902
16863
  * @description Gets the billboard mode used by this image component.
16903
16864
  * @return The billboard mode used by this image component.
16904
16865
  */
@@ -17121,13 +17082,9 @@ export class CSPFoundation {
17121
17082
  Module.ccall("csp_multiplayer_LightSpaceComponent_SetOuterConeAngle_void_float", "void", ["number", "number"], [this.pointer, value]);
17122
17083
  }
17123
17084
  /**
17124
- * @description Gets the position of the origin of this component in world space.
17125
- * NOTE: The coordinate system used follows the glTF 2.0 specification, in meters.
17126
- * - Right handed coordinate system
17127
- * - +Y is UP
17128
- * - +X is left (facing forward)
17129
- * - +Z is forward
17130
- * @return The 3D position as vector (left, up, forward) in meters.
17085
+ * \addtogroup IPositionComponent
17086
+ @{
17087
+ @copydoc IPositionComponent::GetPosition()
17131
17088
  */
17132
17089
  getPosition() {
17133
17090
  var _ret = Module._malloc(8);
@@ -17137,26 +17094,16 @@ export class CSPFoundation {
17137
17094
  return _nPtr;
17138
17095
  }
17139
17096
  /**
17140
- * @description Sets the position of the origin of this component in world space.
17141
- * NOTE: The coordinate system used follows the glTF 2.0 specification, in meters.
17142
- * - Right handed coordinate system
17143
- * - +Y is UP
17144
- * - +X is left (facing forward)
17145
- * - +Z is forward
17097
+ @copydoc IPositionComponent::SetPosition()
17146
17098
  */
17147
17099
  setPosition(value) {
17148
17100
  Module.ccall("csp_multiplayer_LightSpaceComponent_SetPosition_void_Vector3RC", "void", ["number", "number"], [this.pointer, value.pointer]);
17149
17101
  }
17150
17102
  /**
17151
- * @description Gets a quaternion representing the rotation of the origin of this component, expressed in radians.
17152
- * NOTE: The coordinate system respects the following conventions:
17153
- * - Right handed coordinate system
17154
- * - Positive rotation is counterclockwise
17155
- * - The geographic North is along the positive Z axis (+Z) at an orientation of 0 degrees.
17156
- * - North: +Z
17157
- * - East: -X
17158
- * - South: -Z
17159
- * - West: +X
17103
+ @}
17104
+ * \addtogroup IRotationComponent
17105
+ @{
17106
+ @copydoc IRotationComponent::GetRotation()
17160
17107
  */
17161
17108
  getRotation() {
17162
17109
  var _ret = Module._malloc(8);
@@ -17166,21 +17113,13 @@ export class CSPFoundation {
17166
17113
  return _nPtr;
17167
17114
  }
17168
17115
  /**
17169
- * @description Sets the rotation of the origin of this component according to the specified quaternion "Value", expressed in radians.
17170
- * NOTE: The coordinate system respects the following conventions:
17171
- * - Right handed coordinate system
17172
- * - Positive rotation is counterclockwise
17173
- * - The geographic North is along the positive Z axis (+Z) at an orientation of 0 degrees.
17174
- * - North: +Z
17175
- * - East: -X
17176
- * - South: -Z
17177
- * - West: +X
17178
- * @param value - The quaternion in radians to use as new rotation of this component.
17116
+ @copydoc IRotationComponent::SetRotation()
17179
17117
  */
17180
17118
  setRotation(value) {
17181
17119
  Module.ccall("csp_multiplayer_LightSpaceComponent_SetRotation_void_Vector4RC", "void", ["number", "number"], [this.pointer, value.pointer]);
17182
17120
  }
17183
17121
  /**
17122
+ @}
17184
17123
  * @description Gets the ID of the asset used for the light cookie of this light component.
17185
17124
  * @return The ID of the asset used for the light cookie of this light component.
17186
17125
  */
@@ -17330,13 +17269,9 @@ export class CSPFoundation {
17330
17269
  Module.ccall("csp_multiplayer_PortalSpaceComponent_SetSpaceId_void_StringRC", "void", ["number", "string"], [this.pointer, value]);
17331
17270
  }
17332
17271
  /**
17333
- * @description Gets the position of the origin of this component in world space.
17334
- * NOTE: The coordinate system used follows the glTF 2.0 specification, in meters.
17335
- * - Right handed coordinate system
17336
- * - +Y is UP
17337
- * - +X is left (facing forward)
17338
- * - +Z is forward
17339
- * @return The 3D position as vector (left, up, forward) in meters.
17272
+ * \addtogroup IPositionComponent
17273
+ @{
17274
+ @copydoc IPositionComponent::GetPosition()
17340
17275
  */
17341
17276
  getPosition() {
17342
17277
  var _ret = Module._malloc(8);
@@ -17346,17 +17281,13 @@ export class CSPFoundation {
17346
17281
  return _nPtr;
17347
17282
  }
17348
17283
  /**
17349
- * @description Sets the position of the origin of this component in world space.
17350
- * NOTE: The coordinate system used follows the glTF 2.0 specification, in meters.
17351
- * - Right handed coordinate system
17352
- * - +Y is UP
17353
- * - +X is left (facing forward)
17354
- * - +Z is forward
17284
+ @copydoc IPositionComponent::SetPosition()
17355
17285
  */
17356
17286
  setPosition(value) {
17357
17287
  Module.ccall("csp_multiplayer_PortalSpaceComponent_SetPosition_void_Vector3RC", "void", ["number", "number"], [this.pointer, value.pointer]);
17358
17288
  }
17359
17289
  /**
17290
+ @}
17360
17291
  * @description Gets the radius of this portal.
17361
17292
  * @return The radius of this portal.
17362
17293
  */
@@ -17503,7 +17434,9 @@ export class CSPFoundation {
17503
17434
  Module.ccall("csp_multiplayer_ReflectionSpaceComponent_SetAssetCollectionId_void_StringRC", "void", ["number", "string"], [this.pointer, value]);
17504
17435
  }
17505
17436
  /**
17506
- * @description Position of the Reflection component.
17437
+ * \addtogroup IPositionComponent
17438
+ @{
17439
+ @copydoc IPositionComponent::GetPosition()
17507
17440
  */
17508
17441
  getPosition() {
17509
17442
  var _ret = Module._malloc(8);
@@ -17513,26 +17446,16 @@ export class CSPFoundation {
17513
17446
  return _nPtr;
17514
17447
  }
17515
17448
  /**
17516
- * @description Set the position of the Reflection component.
17517
- * @param value - Position of the Reflection Component.
17449
+ @copydoc IPositionComponent::SetPosition()
17518
17450
  */
17519
17451
  setPosition(value) {
17520
17452
  Module.ccall("csp_multiplayer_ReflectionSpaceComponent_SetPosition_void_Vector3RC", "void", ["number", "number"], [this.pointer, value.pointer]);
17521
17453
  }
17522
17454
  /**
17523
- * @description Rotation of the Reflection component.
17524
- * @return Will return an Identity Quaternion (0, 0, 0, 1).
17525
- */
17526
- getRotation() {
17527
- var _ret = Module._malloc(8);
17528
- Module.ccall("csp_multiplayer_ReflectionSpaceComponent_GetRotationC_Vector4RC", "void", ["number", "number"], [_ret, this.pointer]);
17529
- var _nPtr = new Common.Vector4(getNativePointer(_ret));
17530
- Module._free(_ret);
17531
- return _nPtr;
17532
- }
17533
- /**
17534
- * @description Scale of the Reflection components spatial extents over which the reflection should apply.
17535
- * UnitBox/Sphere * Scale == Spatial Extents.
17455
+ @}
17456
+ * \addtogroup IScaleComponent
17457
+ @{
17458
+ @copydoc IScaleComponent::GetScale()
17536
17459
  */
17537
17460
  getScale() {
17538
17461
  var _ret = Module._malloc(8);
@@ -17542,14 +17465,13 @@ export class CSPFoundation {
17542
17465
  return _nPtr;
17543
17466
  }
17544
17467
  /**
17545
- * @description Set the scale of the Reflection components spatial extents.
17546
- * @param value - Scale extents of the Reflection Component.
17547
- * UnitBox/Sphere * Scale == Spatial Extents.
17468
+ @copydoc IScaleComponent::SetScale()
17548
17469
  */
17549
17470
  setScale(value) {
17550
17471
  Module.ccall("csp_multiplayer_ReflectionSpaceComponent_SetScale_void_Vector3RC", "void", ["number", "number"], [this.pointer, value.pointer]);
17551
17472
  }
17552
17473
  /**
17474
+ @}
17553
17475
  * @description Get the reflection shape enum value.
17554
17476
  * ReflectionShape.UnitBox: Projects a texture in a planar fashion from all six directions (like an inward facing cube).
17555
17477
  * ReflectionShape.UnitSphere: Warps the texture into a spherical shape and projects it onto a surface.
@@ -17766,6 +17688,9 @@ export class CSPFoundation {
17766
17688
  var _nPtr = getNativePointer(_ptr);
17767
17689
  return new StaticModelSpaceComponent(_nPtr);
17768
17690
  }
17691
+ /** @deprecated
17692
+ Due to the introduction of LODs it doesn't make sense to set a specific asset anymore
17693
+ */
17769
17694
  getExternalResourceAssetId() {
17770
17695
  let _result = Module.ccall("csp_multiplayer_StaticModelSpaceComponent_GetExternalResourceAssetIdC_StringRC", "number", ["number"], [this.pointer]);
17771
17696
  const _resultString = Module.UTF8ToString(_result);
@@ -17773,6 +17698,9 @@ export class CSPFoundation {
17773
17698
  _result = _resultString;
17774
17699
  return _result;
17775
17700
  }
17701
+ /** @deprecated
17702
+ Due to the introduction of LODs it doesn't make sense to set a specific asset anymore
17703
+ */
17776
17704
  setExternalResourceAssetId(value) {
17777
17705
  Module.ccall("csp_multiplayer_StaticModelSpaceComponent_SetExternalResourceAssetId_void_StringRC", "void", ["number", "string"], [this.pointer, value]);
17778
17706
  }
@@ -18034,13 +17962,9 @@ export class CSPFoundation {
18034
17962
  Module.ccall("csp_multiplayer_VideoPlayerSpaceComponent_SetAssetCollectionId_void_StringRC", "void", ["number", "string"], [this.pointer, value]);
18035
17963
  }
18036
17964
  /**
18037
- * @description Gets the position of the origin of this component in world space.
18038
- * NOTE: The coordinate system used follows the glTF 2.0 specification, in meters.
18039
- * - Right handed coordinate system
18040
- * - +Y is UP
18041
- * - +X is left (facing forward)
18042
- * - +Z is forward
18043
- * @return The 3D position as vector (left, up, forward) in meters.
17965
+ * \addtogroup ITransformComponent
17966
+ @{
17967
+ @copydoc IPositionComponent::GetPosition()
18044
17968
  */
18045
17969
  getPosition() {
18046
17970
  var _ret = Module._malloc(8);
@@ -18050,26 +17974,13 @@ export class CSPFoundation {
18050
17974
  return _nPtr;
18051
17975
  }
18052
17976
  /**
18053
- * @description Sets the position of the origin of this component in world space.
18054
- * NOTE: The coordinate system used follows the glTF 2.0 specification, in meters.
18055
- * - Right handed coordinate system
18056
- * - +Y is UP
18057
- * - +X is left (facing forward)
18058
- * - +Z is forward
17977
+ @copydoc IPositionComponent::SetPosition()
18059
17978
  */
18060
17979
  setPosition(value) {
18061
17980
  Module.ccall("csp_multiplayer_VideoPlayerSpaceComponent_SetPosition_void_Vector3RC", "void", ["number", "number"], [this.pointer, value.pointer]);
18062
17981
  }
18063
17982
  /**
18064
- * @description Gets a quaternion representing the rotation of the origin of this component, expressed in radians.
18065
- * NOTE: The coordinate system respects the following conventions:
18066
- * - Right handed coordinate system
18067
- * - Positive rotation is counterclockwise
18068
- * - The geographic North is along the positive Z axis (+Z) at an orientation of 0 degrees.
18069
- * - North: +Z
18070
- * - East: -X
18071
- * - South: -Z
18072
- * - West: +X
17983
+ @copydoc IRotationComponent::GetRotation()
18073
17984
  */
18074
17985
  getRotation() {
18075
17986
  var _ret = Module._malloc(8);
@@ -18079,28 +17990,13 @@ export class CSPFoundation {
18079
17990
  return _nPtr;
18080
17991
  }
18081
17992
  /**
18082
- * @description Sets the rotation of the origin of this component according to the specified quaternion "Value", expressed in radians.
18083
- * NOTE: The coordinate system respects the following conventions:
18084
- * - Right handed coordinate system
18085
- * - Positive rotation is counterclockwise
18086
- * - The geographic North is along the positive Z axis (+Z) at an orientation of 0 degrees.
18087
- * - North: +Z
18088
- * - East: -X
18089
- * - South: -Z
18090
- * - West: +X
18091
- * @param value - The quaternion in radians to use as new rotation of this component.
17993
+ @copydoc IRotationComponent::SetRotation()
18092
17994
  */
18093
17995
  setRotation(value) {
18094
17996
  Module.ccall("csp_multiplayer_VideoPlayerSpaceComponent_SetRotation_void_Vector4RC", "void", ["number", "number"], [this.pointer, value.pointer]);
18095
17997
  }
18096
17998
  /**
18097
- * @description Gets the scale of the origin of this component in world space.
18098
- * NOTE: The coordinate system used follows the glTF 2.0 specification.
18099
- * - Right handed coordinate system
18100
- * - +Y is UP
18101
- * - +X is left (facing forward)
18102
- * - +Z is forward
18103
- * @return The 3D scale as vector (left, up, forward).
17999
+ @copydoc IScaleComponent::GetScale()
18104
18000
  */
18105
18001
  getScale() {
18106
18002
  var _ret = Module._malloc(8);
@@ -18110,18 +18006,29 @@ export class CSPFoundation {
18110
18006
  return _nPtr;
18111
18007
  }
18112
18008
  /**
18113
- * @description Sets the scale of the origin of this component in world space to the specified "Value".
18114
- * @param value - The new value expressed as vector (left, up, forward).
18115
- * NOTE: The coordinate system used follows the glTF 2.0 specification.
18116
- * - Right handed coordinate system
18117
- * - +Y is UP
18118
- * - +X is left (facing forward)
18119
- * - +Z is forward
18009
+ @copydoc IScaleComponent::SetScale()
18120
18010
  */
18121
18011
  setScale(value) {
18122
18012
  Module.ccall("csp_multiplayer_VideoPlayerSpaceComponent_SetScale_void_Vector3RC", "void", ["number", "number"], [this.pointer, value.pointer]);
18123
18013
  }
18124
18014
  /**
18015
+ @copydoc ITransformComponent::GetTransform()
18016
+ */
18017
+ getTransform() {
18018
+ var _ret = Module._malloc(8);
18019
+ Module.ccall("csp_multiplayer_VideoPlayerSpaceComponent_GetTransformC_SpaceTransform", "void", ["number", "number"], [_ret, this.pointer]);
18020
+ var _nPtr = new Multiplayer.SpaceTransform(getNativePointer(_ret));
18021
+ Module._free(_ret);
18022
+ return _nPtr;
18023
+ }
18024
+ /**
18025
+ @copydoc ITransformComonent::SetTransform()
18026
+ */
18027
+ setTransform(value) {
18028
+ Module.ccall("csp_multiplayer_VideoPlayerSpaceComponent_SetTransform_void_SpaceTransformRC", "void", ["number", "number"], [this.pointer, value.pointer]);
18029
+ }
18030
+ /**
18031
+ @}
18125
18032
  * @description Checks if the playback state of this video player needs to be shared with other users through replication.
18126
18033
  * @return True if the playback state of the video needs to be shared among all users, false otherwise.
18127
18034
  */
@@ -18828,6 +18735,9 @@ export class CSPFoundation {
18828
18735
  _result = _resultString;
18829
18736
  return _result;
18830
18737
  }
18738
+ setUri(value) {
18739
+ Module.ccall("csp_systems_UriResult_SetUri_void_StringRC", "void", ["number", "string"], [this.pointer, value]);
18740
+ }
18831
18741
  delete() {
18832
18742
  if (this.ownsPointer && !this.disposed) {
18833
18743
  Module.ccall("csp_systems_UriResult_Dtor", "void", ["number"], [this.pointer]);
@@ -20612,24 +20522,6 @@ export class CSPFoundation {
20612
20522
  const nativeClassWrapper = baseInstance;
20613
20523
  return new Systems.MaintenanceInfoResult(new NativePointer(nativeClassWrapper.pointer, nativeClassWrapper.ownsPointer));
20614
20524
  }
20615
- static create() {
20616
- var _ptr = Module._malloc(8);
20617
- Module.ccall("csp_systems_MaintenanceInfoResult_Ctor", "void", ["number"], [_ptr]);
20618
- var _nPtr = getNativePointer(_ptr);
20619
- return new MaintenanceInfoResult(_nPtr);
20620
- }
20621
- static create_arg1(arg1) {
20622
- var _ptr = Module._malloc(8);
20623
- Module.ccall("csp_systems_MaintenanceInfoResult_Ctor_voidP", "void", ["number", "void"], [_ptr, arg1]);
20624
- var _nPtr = getNativePointer(_ptr);
20625
- return new MaintenanceInfoResult(_nPtr);
20626
- }
20627
- static create_resCode_httpResCode(resCode, httpResCode) {
20628
- var _ptr = Module._malloc(8);
20629
- Module.ccall("csp_systems_MaintenanceInfoResult_Ctor_EResultCode_uint16_t", "void", ["number", "number", "number"], [_ptr, resCode, httpResCode]);
20630
- var _nPtr = getNativePointer(_ptr);
20631
- return new MaintenanceInfoResult(_nPtr);
20632
- }
20633
20525
  /**
20634
20526
  * @description Retrieves response data from the Maintenance Window Server
20635
20527
  * @return Return all maintenance information available in date order
@@ -21136,6 +21028,42 @@ export class CSPFoundation {
21136
21028
  }
21137
21029
  Systems.SettingsCollectionResult = SettingsCollectionResult;
21138
21030
  })(Systems || (Systems = {}));
21031
+ (function (Systems) {
21032
+ /**
21033
+ * @description A result handler that is used to notify a user of an error while passing a String value.
21034
+ */
21035
+ class AvatarInfoResult extends Systems.ResultBase {
21036
+ /** @internal */
21037
+ constructor(pointer) {
21038
+ super(pointer);
21039
+ }
21040
+ static fromResultBase(baseInstance) {
21041
+ const nativeClassWrapper = baseInstance;
21042
+ return new Systems.AvatarInfoResult(new NativePointer(nativeClassWrapper.pointer, nativeClassWrapper.ownsPointer));
21043
+ }
21044
+ /**
21045
+ * @description A getter which returns the String passed via the result.
21046
+ */
21047
+ getAvatarType() {
21048
+ let _result = Module.ccall("csp_systems_AvatarInfoResult_GetAvatarTypeC_AvatarType", "number", ["number"], [this.pointer]);
21049
+ return _result;
21050
+ }
21051
+ getAvatarIdentifier() {
21052
+ var _ret = Module._malloc(8);
21053
+ Module.ccall("csp_systems_AvatarInfoResult_GetAvatarIdentifierC_VariantRC", "void", ["number", "number"], [_ret, this.pointer]);
21054
+ var _nPtr = new Common.Variant(getNativePointer(_ret));
21055
+ Module._free(_ret);
21056
+ return _nPtr;
21057
+ }
21058
+ delete() {
21059
+ if (this.ownsPointer && !this.disposed) {
21060
+ Module.ccall("csp_systems_AvatarInfoResult_Dtor", "void", ["number"], [this.pointer]);
21061
+ this.disposed = true;
21062
+ }
21063
+ }
21064
+ }
21065
+ Systems.AvatarInfoResult = AvatarInfoResult;
21066
+ })(Systems || (Systems = {}));
21139
21067
  (function (Systems) {
21140
21068
  /**
21141
21069
  @ingroup Settings System
@@ -21493,6 +21421,56 @@ export class CSPFoundation {
21493
21421
  Module.ccall("csp_systems_SettingsSystem_UpdateAvatarPortraitWithBuffer_void_StringRC_BufferAssetDataSourceRC_NullResultCallback", "void", ["number", "string", "number", "number", "number"], [this.pointer, userId, newAvatarPortrait.pointer, _callbackPtr, 0]);
21494
21422
  return _promise;
21495
21423
  }
21424
+ /**
21425
+ * @description Sets the avatar type and identifier for a user.
21426
+ * @param inUserId - The ID of the user to set avatar info for.
21427
+ * @param inType - The type of avatar (predefined, Ready Player Me, or custom).
21428
+ * @param inIdentifier - A value used to identify or locate the avatar. Differs depending on the value of InType.
21429
+ * @param callback - Callback to call when task finishes.
21430
+ */
21431
+ async setAvatarInfo(userId, type, identifier) {
21432
+ var _resolve;
21433
+ var _promise = new Promise((_r) => {
21434
+ _resolve = _r;
21435
+ });
21436
+ var _callbackPtr;
21437
+ var _callback = (_stateObject__, result) => {
21438
+ var _resultPtr = getNativePointer(result);
21439
+ var _resultInstance = new Systems.NullResult(_resultPtr);
21440
+ if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
21441
+ return;
21442
+ }
21443
+ _resolve(_resultInstance);
21444
+ Module.removeFunction(_callbackPtr);
21445
+ };
21446
+ _callbackPtr = Module.addFunction(_callback, "vii");
21447
+ Module.ccall("csp_systems_SettingsSystem_SetAvatarInfo_void_StringRC_AvatarType_VariantRC_NullResultCallback", "void", ["number", "string", "number", "number", "number", "number"], [this.pointer, userId, type, identifier.pointer, _callbackPtr, 0]);
21448
+ return _promise;
21449
+ }
21450
+ /**
21451
+ * @description Retrieves the avatar type and identifier for a user.
21452
+ * @param inUserId - The ID of the user to get avatar info for.
21453
+ * @param callback - Callback to call when task finishes.
21454
+ */
21455
+ async getAvatarInfo(userId) {
21456
+ var _resolve;
21457
+ var _promise = new Promise((_r) => {
21458
+ _resolve = _r;
21459
+ });
21460
+ var _callbackPtr;
21461
+ var _callback = (_stateObject__, result) => {
21462
+ var _resultPtr = getNativePointer(result);
21463
+ var _resultInstance = new Systems.AvatarInfoResult(_resultPtr);
21464
+ if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
21465
+ return;
21466
+ }
21467
+ _resolve(_resultInstance);
21468
+ Module.removeFunction(_callbackPtr);
21469
+ };
21470
+ _callbackPtr = Module.addFunction(_callback, "vii");
21471
+ Module.ccall("csp_systems_SettingsSystem_GetAvatarInfo_void_StringRC_AvatarInfoResultCallback", "void", ["number", "string", "number", "number"], [this.pointer, userId, _callbackPtr, 0]);
21472
+ return _promise;
21473
+ }
21496
21474
  }
21497
21475
  Systems.SettingsSystem = SettingsSystem;
21498
21476
  })(Systems || (Systems = {}));
@@ -24127,14 +24105,13 @@ export class CSPFoundation {
24127
24105
  return _promise;
24128
24106
  }
24129
24107
  /**
24130
- * @description Log in to Magnopus Connected Services using a login token
24131
- * The login token can be obtained after using the Login API with credentials and having registered a callback through
24132
- * SetNewLoginTokenReceivedCallback. If the login is successful in the callback result the token and it's expiration time will be provided.
24133
- * @param userId - The user id associated with this login token
24134
- * @param loginToken - Token to be used for authenticating
24108
+ * @description Resume a previous session for the associated user ID using a refresh token
24109
+ * The refresh token can be obtained after registering a callback with `SetNewLoginTokenReceivedCallback` and logging in regularly.
24110
+ * @param userId - User ID for the previous session
24111
+ * @param refreshToken - Refresh token to be used for refreshing the authentication token
24135
24112
  * @param callback - Callback when asynchronous task finishes
24136
24113
  */
24137
- async loginWithToken(userId, loginToken) {
24114
+ async refreshSession(userId, refreshToken) {
24138
24115
  var _resolve;
24139
24116
  var _promise = new Promise((_r) => {
24140
24117
  _resolve = _r;
@@ -24150,7 +24127,7 @@ export class CSPFoundation {
24150
24127
  Module.removeFunction(_callbackPtr);
24151
24128
  };
24152
24129
  _callbackPtr = Module.addFunction(_callback, "vii");
24153
- Module.ccall("csp_systems_UserSystem_LoginWithToken_void_StringRC_StringRC_LoginStateResultCallback", "void", ["number", "string", "string", "number", "number"], [this.pointer, userId, loginToken, _callbackPtr, 0]);
24130
+ Module.ccall("csp_systems_UserSystem_RefreshSession_void_StringRC_StringRC_LoginStateResultCallback", "void", ["number", "string", "string", "number", "number"], [this.pointer, userId, refreshToken, _callbackPtr, 0]);
24154
24131
  return _promise;
24155
24132
  }
24156
24133
  /**
@@ -24475,7 +24452,7 @@ export class CSPFoundation {
24475
24452
  return _promise;
24476
24453
  }
24477
24454
  /**
24478
- * @description Delete the user.
24455
+ * @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).
24479
24456
  * @param userId - Id of the user that will be deleted
24480
24457
  * @param callback - Callback when asynchronous task finishes
24481
24458
  */
@@ -24698,7 +24675,7 @@ export class CSPFoundation {
24698
24675
  Module.removeFunction(_callbackPtr);
24699
24676
  };
24700
24677
  _callbackPtr = Module.addFunction(_callback, "vii");
24701
- Module.ccall("csp_systems_UserSystem_GetCheckoutSessionUrl_void_TierNamesRC_CheckoutSessionUrlResultCallback", "void", ["number", "number", "number", "number"], [this.pointer, tier, _callbackPtr, 0]);
24678
+ Module.ccall("csp_systems_UserSystem_GetCheckoutSessionUrl_void_TierNames_CheckoutSessionUrlResultCallback", "void", ["number", "number", "number", "number"], [this.pointer, tier, _callbackPtr, 0]);
24702
24679
  return _promise;
24703
24680
  }
24704
24681
  }