connected-spaces-platform.web 6.13.0 → 6.14.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.
@@ -599,9 +599,9 @@ export declare namespace Multiplayer {
599
599
  AvatarId = 0,
600
600
  UserId = 1,
601
601
  State = 2,
602
- AvatarMeshIndex = 3,
602
+ AvatarMeshIndex_DEPRECATED = 3,
603
603
  AgoraUserId = 4,
604
- CustomAvatarUrl = 5,
604
+ CustomAvatarUrl_DEPRECATED = 5,
605
605
  IsHandIKEnabled = 6,
606
606
  TargetHandIKTargetLocation = 7,
607
607
  HandRotation = 8,
@@ -614,7 +614,8 @@ export declare namespace Multiplayer {
614
614
  IsVisible = 15,
615
615
  IsARVisible = 16,
616
616
  IsVirtualVisible = 17,
617
- Num = 18
617
+ AvatarUrl = 18,
618
+ Num = 19
618
619
  }
619
620
  }
620
621
  export declare namespace Multiplayer {
@@ -4337,6 +4338,7 @@ export declare namespace Multiplayer {
4337
4338
  * exiting a space.
4338
4339
  */
4339
4340
  getOnlineRealtimeEngine(): Multiplayer.OnlineRealtimeEngine;
4341
+ __CauseFailure(): void;
4340
4342
  delete(): void;
4341
4343
  }
4342
4344
  }
@@ -7210,18 +7212,6 @@ export declare namespace Multiplayer {
7210
7212
  * @param value - The play mode used by this avatar.
7211
7213
  */
7212
7214
  setAvatarPlayMode(value: Multiplayer.AvatarPlayMode): void;
7213
- /**
7214
- * @description Gets the ID of the mesh of the avatar of this component.
7215
- * NOTE: Used to establish which mesh this avatar should use among a collection of predefined meshes.
7216
- * @return The ID of the mesh of the avatar of this component.
7217
- */
7218
- getAvatarMeshIndex(): bigint;
7219
- /**
7220
- * @description Sets the ID of the mesh of the avatar of this component.
7221
- * NOTE: Used to establish which mesh this avatar should use among a collection of predefined meshes.
7222
- * @param value - The ID of the mesh of the avatar of this component.
7223
- */
7224
- setAvatarMeshIndex(value: bigint): void;
7225
7215
  /**
7226
7216
  * @description Gets the ID of the Agora user bounded to this avatar.
7227
7217
  * NOTE: When using voice chat, an Agora user is associated with a specific avatar component, so that
@@ -7236,18 +7226,6 @@ export declare namespace Multiplayer {
7236
7226
  * @param value - The ID of the Agora user associated with this avatar component.
7237
7227
  */
7238
7228
  setAgoraUserId(value: string): void;
7239
- /**
7240
- * @description Gets the URL of a custom mesh for this avatar.
7241
- * NOTE: This is intended for use with external avatar managers, such as ReadyPlayerMe.
7242
- * @return The URL of the custom mesh this avatar component uses for its avatar.
7243
- */
7244
- getCustomAvatarUrl(): string;
7245
- /**
7246
- * @description Sets the URL of a custom mesh for this avatar.
7247
- * NOTE: This is intended for use with external avatar managers, such as ReadyPlayerMe.
7248
- * @param value - The URL of the custom mesh this avatar component uses for its avatar.
7249
- */
7250
- setCustomAvatarUrl(value: string): void;
7251
7229
  /**
7252
7230
  * @description Checks if the Hands Inverse Kinematics (IK) are enabled for this avatar.
7253
7231
  * NOTE: Intended for use in VR or with virtual hands controllers.
@@ -7402,6 +7380,19 @@ export declare namespace Multiplayer {
7402
7380
  @copydoc IVisibleComponent::SetIsVirtualVisible()
7403
7381
  */
7404
7382
  setIsVirtualVisible(value: boolean): void;
7383
+ /**
7384
+ @}
7385
+ * @description Gets the URL of a mesh for this avatar.
7386
+ * NOTE: This is intended for use with external avatar managers, such as ReadyPlayerMe.
7387
+ * @return The URL of the mesh this avatar component uses for its avatar.
7388
+ */
7389
+ getAvatarUrl(): string;
7390
+ /**
7391
+ * @description Sets the URL of a mesh for this avatar.
7392
+ * NOTE: This is intended for use with external avatar managers, such as ReadyPlayerMe.
7393
+ * @param value - The URL of the mesh this avatar component uses for its avatar.
7394
+ */
7395
+ setAvatarUrl(value: string): void;
7405
7396
  delete(): void;
7406
7397
  }
7407
7398
  }
@@ -2605,9 +2605,9 @@ export var Systems;
2605
2605
  AvatarComponentPropertyKeys[AvatarComponentPropertyKeys["AvatarId"] = 0] = "AvatarId";
2606
2606
  AvatarComponentPropertyKeys[AvatarComponentPropertyKeys["UserId"] = 1] = "UserId";
2607
2607
  AvatarComponentPropertyKeys[AvatarComponentPropertyKeys["State"] = 2] = "State";
2608
- AvatarComponentPropertyKeys[AvatarComponentPropertyKeys["AvatarMeshIndex"] = 3] = "AvatarMeshIndex";
2608
+ AvatarComponentPropertyKeys[AvatarComponentPropertyKeys["AvatarMeshIndex_DEPRECATED"] = 3] = "AvatarMeshIndex_DEPRECATED";
2609
2609
  AvatarComponentPropertyKeys[AvatarComponentPropertyKeys["AgoraUserId"] = 4] = "AgoraUserId";
2610
- AvatarComponentPropertyKeys[AvatarComponentPropertyKeys["CustomAvatarUrl"] = 5] = "CustomAvatarUrl";
2610
+ AvatarComponentPropertyKeys[AvatarComponentPropertyKeys["CustomAvatarUrl_DEPRECATED"] = 5] = "CustomAvatarUrl_DEPRECATED";
2611
2611
  AvatarComponentPropertyKeys[AvatarComponentPropertyKeys["IsHandIKEnabled"] = 6] = "IsHandIKEnabled";
2612
2612
  AvatarComponentPropertyKeys[AvatarComponentPropertyKeys["TargetHandIKTargetLocation"] = 7] = "TargetHandIKTargetLocation";
2613
2613
  AvatarComponentPropertyKeys[AvatarComponentPropertyKeys["HandRotation"] = 8] = "HandRotation";
@@ -2620,7 +2620,8 @@ export var Systems;
2620
2620
  AvatarComponentPropertyKeys[AvatarComponentPropertyKeys["IsVisible"] = 15] = "IsVisible";
2621
2621
  AvatarComponentPropertyKeys[AvatarComponentPropertyKeys["IsARVisible"] = 16] = "IsARVisible";
2622
2622
  AvatarComponentPropertyKeys[AvatarComponentPropertyKeys["IsVirtualVisible"] = 17] = "IsVirtualVisible";
2623
- AvatarComponentPropertyKeys[AvatarComponentPropertyKeys["Num"] = 18] = "Num";
2623
+ AvatarComponentPropertyKeys[AvatarComponentPropertyKeys["AvatarUrl"] = 18] = "AvatarUrl";
2624
+ AvatarComponentPropertyKeys[AvatarComponentPropertyKeys["Num"] = 19] = "Num";
2624
2625
  })(AvatarComponentPropertyKeys = Multiplayer.AvatarComponentPropertyKeys || (Multiplayer.AvatarComponentPropertyKeys = {}));
2625
2626
  })(Multiplayer || (Multiplayer = {}));
2626
2627
  (function (Multiplayer) {
@@ -11258,6 +11259,9 @@ export class CSPFoundation {
11258
11259
  Module._free(_ret);
11259
11260
  return _nPtr;
11260
11261
  }
11262
+ __CauseFailure() {
11263
+ Module.ccall("csp_multiplayer_MultiplayerConnection___CauseFailure_void", "void", ["number"], [this.pointer]);
11264
+ }
11261
11265
  delete() {
11262
11266
  if (this.ownsPointer && !this.disposed) {
11263
11267
  Module.ccall("csp_multiplayer_MultiplayerConnection_Dtor", "void", ["number"], [this.pointer]);
@@ -17899,25 +17903,6 @@ export class CSPFoundation {
17899
17903
  setAvatarPlayMode(value) {
17900
17904
  Module.ccall("csp_multiplayer_AvatarSpaceComponent_SetAvatarPlayMode_void_AvatarPlayMode", "void", ["number", "number"], [this.pointer, value]);
17901
17905
  }
17902
- /**
17903
- * @description Gets the ID of the mesh of the avatar of this component.
17904
- * NOTE: Used to establish which mesh this avatar should use among a collection of predefined meshes.
17905
- * @return The ID of the mesh of the avatar of this component.
17906
- */
17907
- getAvatarMeshIndex() {
17908
- let _result = Module.ccall("csp_multiplayer_AvatarSpaceComponent_GetAvatarMeshIndexC_int64_t", "bigint", ["number"], [this.pointer]);
17909
- return _result;
17910
- }
17911
- /**
17912
- * @description Sets the ID of the mesh of the avatar of this component.
17913
- * NOTE: Used to establish which mesh this avatar should use among a collection of predefined meshes.
17914
- * @param value - The ID of the mesh of the avatar of this component.
17915
- */
17916
- setAvatarMeshIndex(value) {
17917
- assert(value >= Limits.INT64_MIN);
17918
- assert(value <= Limits.INT64_MAX);
17919
- Module.ccall("csp_multiplayer_AvatarSpaceComponent_SetAvatarMeshIndex_void_int64_t", "void", ["number", "bigint"], [this.pointer, value]);
17920
- }
17921
17906
  /**
17922
17907
  * @description Gets the ID of the Agora user bounded to this avatar.
17923
17908
  * NOTE: When using voice chat, an Agora user is associated with a specific avatar component, so that
@@ -17940,26 +17925,6 @@ export class CSPFoundation {
17940
17925
  setAgoraUserId(value) {
17941
17926
  Module.ccall("csp_multiplayer_AvatarSpaceComponent_SetAgoraUserId_void_StringRC", "void", ["number", "string"], [this.pointer, value]);
17942
17927
  }
17943
- /**
17944
- * @description Gets the URL of a custom mesh for this avatar.
17945
- * NOTE: This is intended for use with external avatar managers, such as ReadyPlayerMe.
17946
- * @return The URL of the custom mesh this avatar component uses for its avatar.
17947
- */
17948
- getCustomAvatarUrl() {
17949
- let _result = Module.ccall("csp_multiplayer_AvatarSpaceComponent_GetCustomAvatarUrlC_StringRC", "number", ["number"], [this.pointer]);
17950
- const _resultString = Module.UTF8ToString(_result);
17951
- free(_result);
17952
- _result = _resultString;
17953
- return _result;
17954
- }
17955
- /**
17956
- * @description Sets the URL of a custom mesh for this avatar.
17957
- * NOTE: This is intended for use with external avatar managers, such as ReadyPlayerMe.
17958
- * @param value - The URL of the custom mesh this avatar component uses for its avatar.
17959
- */
17960
- setCustomAvatarUrl(value) {
17961
- Module.ccall("csp_multiplayer_AvatarSpaceComponent_SetCustomAvatarUrl_void_StringRC", "void", ["number", "string"], [this.pointer, value]);
17962
- }
17963
17928
  /**
17964
17929
  * @description Checks if the Hands Inverse Kinematics (IK) are enabled for this avatar.
17965
17930
  * NOTE: Intended for use in VR or with virtual hands controllers.
@@ -18185,6 +18150,27 @@ export class CSPFoundation {
18185
18150
  setIsVirtualVisible(value) {
18186
18151
  Module.ccall("csp_multiplayer_AvatarSpaceComponent_SetIsVirtualVisible_void_bool", "void", ["number", "boolean"], [this.pointer, value]);
18187
18152
  }
18153
+ /**
18154
+ @}
18155
+ * @description Gets the URL of a mesh for this avatar.
18156
+ * NOTE: This is intended for use with external avatar managers, such as ReadyPlayerMe.
18157
+ * @return The URL of the mesh this avatar component uses for its avatar.
18158
+ */
18159
+ getAvatarUrl() {
18160
+ let _result = Module.ccall("csp_multiplayer_AvatarSpaceComponent_GetAvatarUrlC_StringRC", "number", ["number"], [this.pointer]);
18161
+ const _resultString = Module.UTF8ToString(_result);
18162
+ free(_result);
18163
+ _result = _resultString;
18164
+ return _result;
18165
+ }
18166
+ /**
18167
+ * @description Sets the URL of a mesh for this avatar.
18168
+ * NOTE: This is intended for use with external avatar managers, such as ReadyPlayerMe.
18169
+ * @param value - The URL of the mesh this avatar component uses for its avatar.
18170
+ */
18171
+ setAvatarUrl(value) {
18172
+ Module.ccall("csp_multiplayer_AvatarSpaceComponent_SetAvatarUrl_void_StringRC", "void", ["number", "string"], [this.pointer, value]);
18173
+ }
18188
18174
  delete() {
18189
18175
  if (this.ownsPointer && !this.disposed) {
18190
18176
  Module.ccall("csp_multiplayer_AvatarSpaceComponent_Dtor", "void", ["number"], [this.pointer]);