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.
@@ -21378,69 +21378,6 @@ export namespace Multiplayer {
21378
21378
  super(pointer);
21379
21379
  }
21380
21380
 
21381
- /**
21382
- * @description Start the connection and register to start receiving updates from the server.
21383
- * Connect should be called after LogIn and before EnterSpace.
21384
- * @param callback - A callback with failure state.
21385
- */
21386
-
21387
- async connect(): Promise<Multiplayer.ErrorCode> {
21388
- var _resolve;
21389
-
21390
- var _promise = new Promise<Multiplayer.ErrorCode>((_r) => {
21391
- _resolve = _r;
21392
- });
21393
-
21394
- var _callbackPtr: number;
21395
- var _callback = (_stateObject__: number, arg1) => {
21396
- _resolve(arg1);
21397
-
21398
- Module.removeFunction(_callbackPtr);
21399
- };
21400
-
21401
- _callbackPtr = Module.addFunction(_callback, "vii");
21402
-
21403
- Module.ccall(
21404
- "csp_multiplayer_MultiplayerConnection_Connect_void_ErrorCodeCallbackHandler",
21405
- "void",
21406
- ["number", "number", "number"],
21407
- [this.pointer, _callbackPtr, 0],
21408
- );
21409
-
21410
- return _promise;
21411
- }
21412
-
21413
- /**
21414
- * @description End the multiplayer connection.
21415
- * @param callback - A callback with failure state.
21416
- */
21417
-
21418
- async disconnect(): Promise<Multiplayer.ErrorCode> {
21419
- var _resolve;
21420
-
21421
- var _promise = new Promise<Multiplayer.ErrorCode>((_r) => {
21422
- _resolve = _r;
21423
- });
21424
-
21425
- var _callbackPtr: number;
21426
- var _callback = (_stateObject__: number, arg1) => {
21427
- _resolve(arg1);
21428
-
21429
- Module.removeFunction(_callbackPtr);
21430
- };
21431
-
21432
- _callbackPtr = Module.addFunction(_callback, "vii");
21433
-
21434
- Module.ccall(
21435
- "csp_multiplayer_MultiplayerConnection_Disconnect_void_ErrorCodeCallbackHandler",
21436
- "void",
21437
- ["number", "number", "number"],
21438
- [this.pointer, _callbackPtr, 0],
21439
- );
21440
-
21441
- return _promise;
21442
- }
21443
-
21444
21381
  /**
21445
21382
  * @description Sends a network event by EventName to all currently connected clients.
21446
21383
  * @param eventName - The identifying name for the event.
@@ -44962,10 +44899,11 @@ export namespace Systems {
44962
44899
  * @description Retrieves the Avatar Portrait information associated with the space
44963
44900
  * If the user of the Avatar portrait associated with it the result callback will be successful, the HTTP res code will be ResponseNotFound
44964
44901
  * and the Uri field inside the UriResult will be empty
44902
+ * @param inUserID - The id of the user we are seelomg to retrieve the portrait for
44965
44903
  * @param callback - Callback when asynchronous task finishes
44966
44904
  */
44967
44905
 
44968
- async getAvatarPortrait(): Promise<Systems.UriResult> {
44906
+ async getAvatarPortrait(userID: string): Promise<Systems.UriResult> {
44969
44907
  var _resolve;
44970
44908
 
44971
44909
  var _promise = new Promise<Systems.UriResult>((_r) => {
@@ -44989,10 +44927,10 @@ export namespace Systems {
44989
44927
  _callbackPtr = Module.addFunction(_callback, "vii");
44990
44928
 
44991
44929
  Module.ccall(
44992
- "csp_systems_SettingsSystem_GetAvatarPortrait_void_UriResultCallback",
44930
+ "csp_systems_SettingsSystem_GetAvatarPortrait_void_StringC_UriResultCallback",
44993
44931
  "void",
44994
- ["number", "number", "number"],
44995
- [this.pointer, _callbackPtr, 0],
44932
+ ["number", "string", "number", "number"],
44933
+ [this.pointer, userID, _callbackPtr, 0],
44996
44934
  );
44997
44935
 
44998
44936
  return _promise;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "connected-spaces-platform.web",
3
3
  "displayName": "connected-spaces-platform.web",
4
- "version": "4.21.0+501",
4
+ "version": "4.22.1+503",
5
5
  "description": "This package provides the binaries required to interface with the Connected Spaces Platform API.",
6
6
  "license": "Apache-2.0",
7
7
  "dependencies": {