connected-spaces-platform.web 4.21.0 → 4.22.1

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.
@@ -3550,17 +3550,6 @@ export declare namespace Multiplayer {
3550
3550
  class MultiplayerConnection extends NativeClassWrapper {
3551
3551
  /** @internal */
3552
3552
  constructor(pointer: NativePointer);
3553
- /**
3554
- * @description Start the connection and register to start receiving updates from the server.
3555
- * Connect should be called after LogIn and before EnterSpace.
3556
- * @param callback - A callback with failure state.
3557
- */
3558
- connect(): Promise<Multiplayer.ErrorCode>;
3559
- /**
3560
- * @description End the multiplayer connection.
3561
- * @param callback - A callback with failure state.
3562
- */
3563
- disconnect(): Promise<Multiplayer.ErrorCode>;
3564
3553
  /**
3565
3554
  * @description Sends a network event by EventName to all currently connected clients.
3566
3555
  * @param eventName - The identifying name for the event.
@@ -9101,9 +9090,10 @@ export declare namespace Systems {
9101
9090
  * @description Retrieves the Avatar Portrait information associated with the space
9102
9091
  * If the user of the Avatar portrait associated with it the result callback will be successful, the HTTP res code will be ResponseNotFound
9103
9092
  * and the Uri field inside the UriResult will be empty
9093
+ * @param inUserID - The id of the user we are seelomg to retrieve the portrait for
9104
9094
  * @param callback - Callback when asynchronous task finishes
9105
9095
  */
9106
- getAvatarPortrait(): Promise<Systems.UriResult>;
9096
+ getAvatarPortrait(userID: string): Promise<Systems.UriResult>;
9107
9097
  /**
9108
9098
  * @description Updates the Avatar Portrait image or adds one if it didn't have it previously using BufferAssetDataSource
9109
9099
  * @param newAvatarPortrait - New Avatar Portrait information
@@ -8996,43 +8996,6 @@ export class CSPFoundation {
8996
8996
  constructor(pointer) {
8997
8997
  super(pointer);
8998
8998
  }
8999
- /**
9000
- * @description Start the connection and register to start receiving updates from the server.
9001
- * Connect should be called after LogIn and before EnterSpace.
9002
- * @param callback - A callback with failure state.
9003
- */
9004
- async connect() {
9005
- var _resolve;
9006
- var _promise = new Promise((_r) => {
9007
- _resolve = _r;
9008
- });
9009
- var _callbackPtr;
9010
- var _callback = (_stateObject__, arg1) => {
9011
- _resolve(arg1);
9012
- Module.removeFunction(_callbackPtr);
9013
- };
9014
- _callbackPtr = Module.addFunction(_callback, "vii");
9015
- Module.ccall("csp_multiplayer_MultiplayerConnection_Connect_void_ErrorCodeCallbackHandler", "void", ["number", "number", "number"], [this.pointer, _callbackPtr, 0]);
9016
- return _promise;
9017
- }
9018
- /**
9019
- * @description End the multiplayer connection.
9020
- * @param callback - A callback with failure state.
9021
- */
9022
- async disconnect() {
9023
- var _resolve;
9024
- var _promise = new Promise((_r) => {
9025
- _resolve = _r;
9026
- });
9027
- var _callbackPtr;
9028
- var _callback = (_stateObject__, arg1) => {
9029
- _resolve(arg1);
9030
- Module.removeFunction(_callbackPtr);
9031
- };
9032
- _callbackPtr = Module.addFunction(_callback, "vii");
9033
- Module.ccall("csp_multiplayer_MultiplayerConnection_Disconnect_void_ErrorCodeCallbackHandler", "void", ["number", "number", "number"], [this.pointer, _callbackPtr, 0]);
9034
- return _promise;
9035
- }
9036
8999
  /**
9037
9000
  * @description Sends a network event by EventName to all currently connected clients.
9038
9001
  * @param eventName - The identifying name for the event.
@@ -21310,9 +21273,10 @@ export class CSPFoundation {
21310
21273
  * @description Retrieves the Avatar Portrait information associated with the space
21311
21274
  * If the user of the Avatar portrait associated with it the result callback will be successful, the HTTP res code will be ResponseNotFound
21312
21275
  * and the Uri field inside the UriResult will be empty
21276
+ * @param inUserID - The id of the user we are seelomg to retrieve the portrait for
21313
21277
  * @param callback - Callback when asynchronous task finishes
21314
21278
  */
21315
- async getAvatarPortrait() {
21279
+ async getAvatarPortrait(userID) {
21316
21280
  var _resolve;
21317
21281
  var _promise = new Promise((_r) => {
21318
21282
  _resolve = _r;
@@ -21328,7 +21292,7 @@ export class CSPFoundation {
21328
21292
  Module.removeFunction(_callbackPtr);
21329
21293
  };
21330
21294
  _callbackPtr = Module.addFunction(_callback, "vii");
21331
- Module.ccall("csp_systems_SettingsSystem_GetAvatarPortrait_void_UriResultCallback", "void", ["number", "number", "number"], [this.pointer, _callbackPtr, 0]);
21295
+ Module.ccall("csp_systems_SettingsSystem_GetAvatarPortrait_void_StringC_UriResultCallback", "void", ["number", "string", "number", "number"], [this.pointer, userID, _callbackPtr, 0]);
21332
21296
  return _promise;
21333
21297
  }
21334
21298
  /**