connected-spaces-platform.web 5.15.0 → 5.16.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.
@@ -4779,57 +4779,17 @@ export declare namespace Multiplayer {
4779
4779
  static create(): AnnotationData;
4780
4780
  static create_annotationId_annotationThumbnailId_verticalFov_authorCameraPosition_authorCameraRotation(annotationId: string, annotationThumbnailId: string, verticalFov: number, authorCameraPosition: Common.Vector3, authorCameraRotation: Common.Vector4): AnnotationData;
4781
4781
  static create_annotationData(annotationData: Multiplayer.AnnotationData): AnnotationData;
4782
- /**
4783
- * @description Get the annotation id
4784
- * @return Csp::common::string
4785
- */
4786
- getAnnotationId(): string;
4787
- /**
4788
- * @description Get the annotation collection id
4789
- * @return Csp::common::string
4790
- */
4791
- getAnnotationThumbnailId(): string;
4792
- /**
4793
- * @description Get the vertical FOV
4794
- * @return A uint16_t representing the vertical fov
4795
- */
4796
- getVerticalFov(): number;
4797
- /**
4798
- * @description Get the AuthorCameraPosition
4799
- * @return A vector3 representing the authorcameraposition
4800
- */
4801
- getAuthorCameraPosition(): Common.Vector3;
4802
- /**
4803
- * @description Get the AuthorCameraRotation
4804
- * @return A vector4 representing the authorcamerarotation
4805
- */
4806
- getAuthorCameraRotation(): Common.Vector4;
4807
- /**
4808
- * @description Set the annotation id
4809
- * @param id - Const csp::common::string& id
4810
- */
4811
- setAnnotationId(id: string): void;
4812
- /**
4813
- * @description Set the annotation collection id
4814
- * @param id - Const csp::common::string& id
4815
- */
4816
- setAnnotationThumbnailId(id: string): void;
4817
- /**
4818
- * @description Set the VerticalFov
4819
- * @param inVerticalFo - InVerticalFov
4820
- */
4821
- setVerticalFov(verticalFov: number): void;
4822
- /**
4823
- * @description Set the AuthorCameraPosition
4824
- * @param inAuthorCameraPositio - InAuthorCameraPosition
4825
- */
4826
- setAuthorCameraPosition(authorCameraPosition: Common.Vector3): void;
4827
- /**
4828
- * @description Set the AuthorCameraRotation
4829
- * @param inAuthorCameraRotatio - InAuthorCameraRotation
4830
- */
4831
- setAuthorCameraRotation(authorCameraRotation: Common.Vector4): void;
4832
4782
  delete(): void;
4783
+ get annotationId(): string;
4784
+ set annotationId(value: string);
4785
+ get annotationThumbnailId(): string;
4786
+ set annotationThumbnailId(value: string);
4787
+ get verticalFov(): number;
4788
+ set verticalFov(value: number);
4789
+ get authorCameraPosition(): Common.Vector3;
4790
+ set authorCameraPosition(value: Common.Vector3);
4791
+ get authorCameraRotation(): Common.Vector4;
4792
+ set authorCameraRotation(value: Common.Vector4);
4833
4793
  }
4834
4794
  }
4835
4795
  export declare namespace Multiplayer {
@@ -7526,7 +7486,7 @@ export declare namespace Multiplayer {
7526
7486
  @pre This component must contain a valid conversation id (component must have a conversation id that isn't an empty string).
7527
7487
  * A CSP error will be sent to the LogSystem if this condition is not met, with a EResultCode::Failed response.
7528
7488
  */
7529
- getAnnotationThumbnailsForConversation(callback: (result: Multiplayer.AnnotationThumbnailCollectionResult) => void): void;
7489
+ getAnnotationThumbnailsForConversation(): Promise<Multiplayer.AnnotationThumbnailCollectionResult>;
7530
7490
  /**
7531
7491
  * @description Sets a callback for when the conversation is updated by another client.
7532
7492
  * @param callback - Callback to receive data for the conversation that has been changed.
@@ -9796,6 +9756,7 @@ export declare namespace Systems {
9796
9756
  * @return Const ref of asset collection class
9797
9757
  */
9798
9758
  getAssetCollection(): Systems.AssetCollection;
9759
+ static create(): AssetCollectionResult;
9799
9760
  delete(): void;
9800
9761
  }
9801
9762
  }
@@ -11328,6 +11289,7 @@ export declare namespace Systems {
11328
11289
  * @return The space code
11329
11290
  */
11330
11291
  getSpaceCode(): string;
11292
+ static create(): SpaceResult;
11331
11293
  delete(): void;
11332
11294
  }
11333
11295
  }
@@ -11541,7 +11503,7 @@ export declare namespace Systems {
11541
11503
  */
11542
11504
  updateSpace(spaceId: string, name: string | null, description: string | null, type: Systems.SpaceAttributes | null, tags: Common.Array<string> | null): Promise<Systems.BasicSpaceResult>;
11543
11505
  /**
11544
- * @description Deletes a given space and the corresponding UserService group.
11506
+ * @description Deletes a given space and the associated objects that belong to it. Including UserService group, Metadata, and Thumbnail.
11545
11507
  * @param space - Space to delete
11546
11508
  * @param callback - Callback when asynchronous task finishes
11547
11509
  */
@@ -9384,7 +9384,7 @@ export class CSPFoundation {
9384
9384
  * @return The type of the component as an enum.
9385
9385
  */
9386
9386
  getComponentType() {
9387
- let _result = Module.ccall("csp_multiplayer_ComponentBase_GetComponentType_ComponentType", "number", ["number"], [this.pointer]);
9387
+ let _result = Module.ccall("csp_multiplayer_ComponentBase_GetComponentTypeC_ComponentType", "number", ["number"], [this.pointer]);
9388
9388
  return _result;
9389
9389
  }
9390
9390
  /**
@@ -9395,7 +9395,7 @@ export class CSPFoundation {
9395
9395
  */
9396
9396
  getProperties() {
9397
9397
  var _ret = Module._malloc(8);
9398
- Module.ccall("csp_multiplayer_ComponentBase_GetProperties_MapPC", "void", ["number", "number"], [_ret, this.pointer]);
9398
+ Module.ccall("csp_multiplayer_ComponentBase_GetPropertiesC_MapPC", "void", ["number", "number"], [_ret, this.pointer]);
9399
9399
  var _nPtr = new Common.Map(getNativePointer(_ret), NumberFactory, "UInt32", csp_multiplayer_ReplicatedValueFactory, "csp_multiplayer_ReplicatedValue");
9400
9400
  Module._free(_ret);
9401
9401
  return _nPtr;
@@ -11486,9 +11486,6 @@ export class CSPFoundation {
11486
11486
  }
11487
11487
  get verticalFov() {
11488
11488
  let _result = Module.ccall("csp_multiplayer_AnnotationUpdateParams__Get_VerticalFov", "number", ["number"], [this.pointer]);
11489
- const _unfixedValue = _result;
11490
- let _fixedValue = _unfixedValue < 0 ? _unfixedValue + 2 ** 16 : _unfixedValue;
11491
- _result = _fixedValue;
11492
11489
  return _result;
11493
11490
  }
11494
11491
  set verticalFov(value) {
@@ -11533,7 +11530,7 @@ export class CSPFoundation {
11533
11530
  }
11534
11531
  static create_annotationId_annotationThumbnailId_verticalFov_authorCameraPosition_authorCameraRotation(annotationId, annotationThumbnailId, verticalFov, authorCameraPosition, authorCameraRotation) {
11535
11532
  var _ptr = Module._malloc(8);
11536
- Module.ccall("csp_multiplayer_AnnotationData_Ctor_StringRC_StringRC_uint16_tC_Vector3RC_Vector4RC", "void", ["number", "string", "string", "number", "number", "number"], [
11533
+ Module.ccall("csp_multiplayer_AnnotationData_Ctor_StringRC_StringRC_double_Vector3RC_Vector4RC", "void", ["number", "string", "string", "number", "number", "number"], [
11537
11534
  _ptr,
11538
11535
  annotationId,
11539
11536
  annotationThumbnailId,
@@ -11550,104 +11547,50 @@ export class CSPFoundation {
11550
11547
  var _nPtr = getNativePointer(_ptr);
11551
11548
  return new AnnotationData(_nPtr);
11552
11549
  }
11553
- /**
11554
- * @description Get the annotation id
11555
- * @return Csp::common::string
11556
- */
11557
- getAnnotationId() {
11558
- let _result = Module.ccall("csp_multiplayer_AnnotationData_GetAnnotationIdC_String", "number", ["number"], [this.pointer]);
11559
- const _resultString = Module.UTF8ToString(_result);
11560
- free(_result);
11561
- _result = _resultString;
11562
- return _result;
11550
+ delete() {
11551
+ if (this.ownsPointer && !this.disposed) {
11552
+ Module.ccall("csp_multiplayer_AnnotationData_Dtor", "void", ["number"], [this.pointer]);
11553
+ this.disposed = true;
11554
+ }
11563
11555
  }
11564
- /**
11565
- * @description Get the annotation collection id
11566
- * @return Csp::common::string
11567
- */
11568
- getAnnotationThumbnailId() {
11569
- let _result = Module.ccall("csp_multiplayer_AnnotationData_GetAnnotationThumbnailIdC_String", "number", ["number"], [this.pointer]);
11570
- const _resultString = Module.UTF8ToString(_result);
11571
- free(_result);
11572
- _result = _resultString;
11556
+ get annotationId() {
11557
+ let _result = Module.ccall("csp_multiplayer_AnnotationData__Get_AnnotationId", "string", ["number"], [this.pointer]);
11573
11558
  return _result;
11574
11559
  }
11575
- /**
11576
- * @description Get the vertical FOV
11577
- * @return A uint16_t representing the vertical fov
11578
- */
11579
- getVerticalFov() {
11580
- let _result = Module.ccall("csp_multiplayer_AnnotationData_GetVerticalFovC_uint16_t", "number", ["number"], [this.pointer]);
11581
- const _unfixedValue = _result;
11582
- let _fixedValue = _unfixedValue < 0 ? _unfixedValue + 2 ** 16 : _unfixedValue;
11583
- _result = _fixedValue;
11584
- return _result;
11560
+ set annotationId(value) {
11561
+ Module.ccall("csp_multiplayer_AnnotationData__Set_AnnotationId", "void", ["number", "string"], [this.pointer, value]);
11585
11562
  }
11586
- /**
11587
- * @description Get the AuthorCameraPosition
11588
- * @return A vector3 representing the authorcameraposition
11589
- */
11590
- getAuthorCameraPosition() {
11591
- var _ret = Module._malloc(8);
11592
- Module.ccall("csp_multiplayer_AnnotationData_GetAuthorCameraPositionC_Vector3", "void", ["number", "number"], [_ret, this.pointer]);
11593
- var _nPtr = new Common.Vector3(getNativePointer(_ret));
11594
- Module._free(_ret);
11595
- return _nPtr;
11563
+ get annotationThumbnailId() {
11564
+ let _result = Module.ccall("csp_multiplayer_AnnotationData__Get_AnnotationThumbnailId", "string", ["number"], [this.pointer]);
11565
+ return _result;
11596
11566
  }
11597
- /**
11598
- * @description Get the AuthorCameraRotation
11599
- * @return A vector4 representing the authorcamerarotation
11600
- */
11601
- getAuthorCameraRotation() {
11602
- var _ret = Module._malloc(8);
11603
- Module.ccall("csp_multiplayer_AnnotationData_GetAuthorCameraRotationC_Vector4", "void", ["number", "number"], [_ret, this.pointer]);
11604
- var _nPtr = new Common.Vector4(getNativePointer(_ret));
11605
- Module._free(_ret);
11606
- return _nPtr;
11567
+ set annotationThumbnailId(value) {
11568
+ Module.ccall("csp_multiplayer_AnnotationData__Set_AnnotationThumbnailId", "void", ["number", "string"], [this.pointer, value]);
11607
11569
  }
11608
- /**
11609
- * @description Set the annotation id
11610
- * @param id - Const csp::common::string& id
11611
- */
11612
- setAnnotationId(id) {
11613
- Module.ccall("csp_multiplayer_AnnotationData_SetAnnotationId_void_StringRC", "void", ["number", "string"], [this.pointer, id]);
11570
+ get verticalFov() {
11571
+ let _result = Module.ccall("csp_multiplayer_AnnotationData__Get_VerticalFov", "number", ["number"], [this.pointer]);
11572
+ return _result;
11614
11573
  }
11615
- /**
11616
- * @description Set the annotation collection id
11617
- * @param id - Const csp::common::string& id
11618
- */
11619
- setAnnotationThumbnailId(id) {
11620
- Module.ccall("csp_multiplayer_AnnotationData_SetAnnotationThumbnailId_void_StringRC", "void", ["number", "string"], [this.pointer, id]);
11574
+ set verticalFov(value) {
11575
+ Module.ccall("csp_multiplayer_AnnotationData__Set_VerticalFov", "void", ["number", "number"], [this.pointer, value]);
11621
11576
  }
11622
- /**
11623
- * @description Set the VerticalFov
11624
- * @param inVerticalFo - InVerticalFov
11625
- */
11626
- setVerticalFov(verticalFov) {
11627
- assert(Number.isInteger(verticalFov));
11628
- assert(verticalFov >= Limits.UINT16_MIN);
11629
- assert(verticalFov <= Limits.UINT16_MAX);
11630
- Module.ccall("csp_multiplayer_AnnotationData_SetVerticalFov_void_uint16_tC", "void", ["number", "number"], [this.pointer, verticalFov]);
11577
+ get authorCameraPosition() {
11578
+ const _ptr = Module._malloc(8);
11579
+ Module.ccall("csp_multiplayer_AnnotationData__Get_AuthorCameraPosition", "void", ["number", "number"], [_ptr, this.pointer]);
11580
+ const _nPtr = getNativePointer(_ptr);
11581
+ return new Common.Vector3(_nPtr);
11631
11582
  }
11632
- /**
11633
- * @description Set the AuthorCameraPosition
11634
- * @param inAuthorCameraPositio - InAuthorCameraPosition
11635
- */
11636
- setAuthorCameraPosition(authorCameraPosition) {
11637
- Module.ccall("csp_multiplayer_AnnotationData_SetAuthorCameraPosition_void_Vector3RC", "void", ["number", "number"], [this.pointer, authorCameraPosition.pointer]);
11583
+ set authorCameraPosition(value) {
11584
+ Module.ccall("csp_multiplayer_AnnotationData__Set_AuthorCameraPosition", "void", ["number", "number"], [this.pointer, value.pointer]);
11638
11585
  }
11639
- /**
11640
- * @description Set the AuthorCameraRotation
11641
- * @param inAuthorCameraRotatio - InAuthorCameraRotation
11642
- */
11643
- setAuthorCameraRotation(authorCameraRotation) {
11644
- Module.ccall("csp_multiplayer_AnnotationData_SetAuthorCameraRotation_void_Vector4RC", "void", ["number", "number"], [this.pointer, authorCameraRotation.pointer]);
11586
+ get authorCameraRotation() {
11587
+ const _ptr = Module._malloc(8);
11588
+ Module.ccall("csp_multiplayer_AnnotationData__Get_AuthorCameraRotation", "void", ["number", "number"], [_ptr, this.pointer]);
11589
+ const _nPtr = getNativePointer(_ptr);
11590
+ return new Common.Vector4(_nPtr);
11645
11591
  }
11646
- delete() {
11647
- if (this.ownsPointer && !this.disposed) {
11648
- Module.ccall("csp_multiplayer_AnnotationData_Dtor", "void", ["number"], [this.pointer]);
11649
- this.disposed = true;
11650
- }
11592
+ set authorCameraRotation(value) {
11593
+ Module.ccall("csp_multiplayer_AnnotationData__Set_AuthorCameraRotation", "void", ["number", "number"], [this.pointer, value.pointer]);
11651
11594
  }
11652
11595
  }
11653
11596
  Multiplayer.AnnotationData = AnnotationData;
@@ -17582,13 +17525,24 @@ export class CSPFoundation {
17582
17525
  @pre This component must contain a valid conversation id (component must have a conversation id that isn't an empty string).
17583
17526
  * A CSP error will be sent to the LogSystem if this condition is not met, with a EResultCode::Failed response.
17584
17527
  */
17585
- getAnnotationThumbnailsForConversation(callback) {
17528
+ async getAnnotationThumbnailsForConversation() {
17529
+ var _resolve;
17530
+ var _promise = new Promise((_r) => {
17531
+ _resolve = _r;
17532
+ });
17533
+ var _callbackPtr;
17586
17534
  var _callback = (_stateObject__, result) => {
17587
- var _result = new Multiplayer.AnnotationThumbnailCollectionResult(getNativePointer(result));
17588
- callback(_result);
17535
+ var _resultPtr = getNativePointer(result);
17536
+ var _resultInstance = new Multiplayer.AnnotationThumbnailCollectionResult(_resultPtr);
17537
+ if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
17538
+ return;
17539
+ }
17540
+ _resolve(_resultInstance);
17541
+ Module.removeFunction(_callbackPtr);
17589
17542
  };
17590
- var callbackPtr = Module.addFunction(_callback, "vii");
17591
- Module.ccall("csp_multiplayer_ConversationSpaceComponent_GetAnnotationThumbnailsForConversation_void_AnnotationThumbnailCollectionResultCallback", "void", ["number", "number"], [this.pointer, callbackPtr]);
17543
+ _callbackPtr = Module.addFunction(_callback, "vii");
17544
+ Module.ccall("csp_multiplayer_ConversationSpaceComponent_GetAnnotationThumbnailsForConversation_void_AnnotationThumbnailCollectionResultCallback", "void", ["number", "number", "number"], [this.pointer, _callbackPtr, 0]);
17545
+ return _promise;
17592
17546
  }
17593
17547
  /**
17594
17548
  * @description Sets a callback for when the conversation is updated by another client.
@@ -21610,6 +21564,12 @@ export class CSPFoundation {
21610
21564
  Module._free(_ret);
21611
21565
  return _nPtr;
21612
21566
  }
21567
+ static create() {
21568
+ var _ptr = Module._malloc(8);
21569
+ Module.ccall("csp_systems_AssetCollectionResult_Ctor", "void", ["number"], [_ptr]);
21570
+ var _nPtr = getNativePointer(_ptr);
21571
+ return new AssetCollectionResult(_nPtr);
21572
+ }
21613
21573
  delete() {
21614
21574
  if (this.ownsPointer && !this.disposed) {
21615
21575
  Module.ccall("csp_systems_AssetCollectionResult_Dtor", "void", ["number"], [this.pointer]);
@@ -25900,6 +25860,12 @@ export class CSPFoundation {
25900
25860
  _result = _resultString;
25901
25861
  return _result;
25902
25862
  }
25863
+ static create() {
25864
+ var _ptr = Module._malloc(8);
25865
+ Module.ccall("csp_systems_SpaceResult_Ctor", "void", ["number"], [_ptr]);
25866
+ var _nPtr = getNativePointer(_ptr);
25867
+ return new SpaceResult(_nPtr);
25868
+ }
25903
25869
  delete() {
25904
25870
  if (this.ownsPointer && !this.disposed) {
25905
25871
  Module.ccall("csp_systems_SpaceResult_Dtor", "void", ["number"], [this.pointer]);
@@ -26444,7 +26410,7 @@ export class CSPFoundation {
26444
26410
  return _promise;
26445
26411
  }
26446
26412
  /**
26447
- * @description Deletes a given space and the corresponding UserService group.
26413
+ * @description Deletes a given space and the associated objects that belong to it. Including UserService group, Metadata, and Thumbnail.
26448
26414
  * @param space - Space to delete
26449
26415
  * @param callback - Callback when asynchronous task finishes
26450
26416
  */