connected-spaces-platform.web 5.15.0 → 5.17.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.
- package/Debug/ConnectedSpacesPlatform_WASM.js +30 -26
- package/Debug/ConnectedSpacesPlatform_WASM.wasm +0 -0
- package/Debug/ConnectedSpacesPlatform_WASM.wasm.debug.wasm +0 -0
- package/README.md +1 -1
- package/Release/ConnectedSpacesPlatform_WASM.js +1 -1
- package/Release/ConnectedSpacesPlatform_WASM.wasm +0 -0
- package/connectedspacesplatform.d.ts +32 -312
- package/connectedspacesplatform.js +98 -139
- package/connectedspacesplatform.js.map +1 -1
- package/connectedspacesplatform.ts +179 -497
- package/package.json +1 -1
|
@@ -1999,7 +1999,7 @@ export var Multiplayer;
|
|
|
1999
1999
|
* Add means the component is newly added, clients should ensure that this triggers appropriate instantiation of wrapping objects.
|
|
2000
2000
|
* All properties for the component should be included.
|
|
2001
2001
|
* 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
|
|
2002
|
-
*
|
|
2002
|
+
* received. Any wrapping data objects should be deleted when this is received, and clients should cease updating this component as any call would
|
|
2003
2003
|
* fail. The CSP representation of the component has been removed at this point.
|
|
2004
2004
|
*/
|
|
2005
2005
|
let ComponentUpdateType;
|
|
@@ -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("
|
|
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("
|
|
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;
|
|
@@ -9547,6 +9547,12 @@ export class CSPFoundation {
|
|
|
9547
9547
|
startEventMessageListening() {
|
|
9548
9548
|
Module.ccall("csp_multiplayer_EventBus_StartEventMessageListening_void", "void", ["number"], [this.pointer]);
|
|
9549
9549
|
}
|
|
9550
|
+
delete() {
|
|
9551
|
+
if (this.ownsPointer && !this.disposed) {
|
|
9552
|
+
Module.ccall("csp_multiplayer_EventBus_Dtor", "void", ["number"], [this.pointer]);
|
|
9553
|
+
this.disposed = true;
|
|
9554
|
+
}
|
|
9555
|
+
}
|
|
9550
9556
|
}
|
|
9551
9557
|
Multiplayer.EventBus = EventBus;
|
|
9552
9558
|
})(Multiplayer || (Multiplayer = {}));
|
|
@@ -9916,7 +9922,7 @@ export class CSPFoundation {
|
|
|
9916
9922
|
}
|
|
9917
9923
|
/**
|
|
9918
9924
|
* @description Sets the Self Messaging flag for this client.
|
|
9919
|
-
* This allows a client to declare that it wishes to
|
|
9925
|
+
* This allows a client to declare that it wishes to receive every patch and object message it sends.
|
|
9920
9926
|
@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!
|
|
9921
9927
|
* @param allowSelfMessaging - True to allow and false to disallow.
|
|
9922
9928
|
* @param callback - A callback with failure state.
|
|
@@ -9943,6 +9949,12 @@ export class CSPFoundation {
|
|
|
9943
9949
|
let _result = Module.ccall("csp_multiplayer_MultiplayerConnection_GetAllowSelfMessagingFlagC_bool", "boolean", ["number"], [this.pointer]);
|
|
9944
9950
|
return _result;
|
|
9945
9951
|
}
|
|
9952
|
+
delete() {
|
|
9953
|
+
if (this.ownsPointer && !this.disposed) {
|
|
9954
|
+
Module.ccall("csp_multiplayer_MultiplayerConnection_Dtor", "void", ["number"], [this.pointer]);
|
|
9955
|
+
this.disposed = true;
|
|
9956
|
+
}
|
|
9957
|
+
}
|
|
9946
9958
|
}
|
|
9947
9959
|
Multiplayer.MultiplayerConnection = MultiplayerConnection;
|
|
9948
9960
|
})(Multiplayer || (Multiplayer = {}));
|
|
@@ -10469,8 +10481,8 @@ export class CSPFoundation {
|
|
|
10469
10481
|
Module.ccall("csp_multiplayer_SpaceEntity_SetScale_void_Vector3RC", "void", ["number", "number"], [this.pointer, value.pointer]);
|
|
10470
10482
|
}
|
|
10471
10483
|
/**
|
|
10472
|
-
* @description Get whether the space is transient or
|
|
10473
|
-
* @return Returns true if the space is transient and false if it is marked as
|
|
10484
|
+
* @description Get whether the space is transient or persistent.
|
|
10485
|
+
* @return Returns true if the space is transient and false if it is marked as persistent.
|
|
10474
10486
|
*/
|
|
10475
10487
|
getIsTransient() {
|
|
10476
10488
|
let _result = Module.ccall("csp_multiplayer_SpaceEntity_GetIsTransientC_bool", "boolean", ["number"], [this.pointer]);
|
|
@@ -10622,7 +10634,7 @@ export class CSPFoundation {
|
|
|
10622
10634
|
* @description Set a callback to be executed when a patch message is received for this Entity. Only one callback can be set.
|
|
10623
10635
|
* @param callback - Contains the SpaceEntity that updated, a set of flags to tell which parts updated
|
|
10624
10636
|
* and an array of information to tell which components updated.
|
|
10625
|
-
* When this callback is
|
|
10637
|
+
* When this callback is received, the flags and arrays should be used to determine which properties have updated data.
|
|
10626
10638
|
*/
|
|
10627
10639
|
setUpdateCallback(callback) {
|
|
10628
10640
|
var _callback = (_stateObject__, arg1, arg2, arg3) => {
|
|
@@ -10706,39 +10718,6 @@ export class CSPFoundation {
|
|
|
10706
10718
|
assert(key <= Limits.UINT16_MAX);
|
|
10707
10719
|
Module.ccall("csp_multiplayer_SpaceEntity_RemoveComponent_void_uint16_t", "void", ["number", "number"], [this.pointer, key]);
|
|
10708
10720
|
}
|
|
10709
|
-
/**
|
|
10710
|
-
* @description Serialise local changes into patch message format into the given serialiser. Does not send a patch.
|
|
10711
|
-
* @param serialiser - The serialiser to use.
|
|
10712
|
-
*/
|
|
10713
|
-
serialisePatch(serialiser) {
|
|
10714
|
-
Module.ccall("csp_multiplayer_SpaceEntity_SerialisePatchC_void_IEntitySerialiserR", "void", ["number", "number"], [this.pointer, serialiser.pointer]);
|
|
10715
|
-
}
|
|
10716
|
-
/**
|
|
10717
|
-
* @description Serialise the entire SpaceEntity into object message format into the given serialiser. Does not send a message.
|
|
10718
|
-
* @param serialiser - The serialiser to use.
|
|
10719
|
-
*/
|
|
10720
|
-
serialise(serialiser) {
|
|
10721
|
-
Module.ccall("csp_multiplayer_SpaceEntity_SerialiseC_void_IEntitySerialiserR", "void", ["number", "number"], [this.pointer, serialiser.pointer]);
|
|
10722
|
-
}
|
|
10723
|
-
/**
|
|
10724
|
-
* @description Serialises a given component into a consistent format for the given serialiser.
|
|
10725
|
-
* @param serialiser - The serialiser to use.
|
|
10726
|
-
* @param component - The component to be serialised.
|
|
10727
|
-
*/
|
|
10728
|
-
serialiseComponent(serialiser, component) {
|
|
10729
|
-
Module.ccall("csp_multiplayer_SpaceEntity_SerialiseComponentC_void_IEntitySerialiserR_ComponentBaseP", "void", ["number", "number", "number"], [
|
|
10730
|
-
this.pointer,
|
|
10731
|
-
serialiser.pointer,
|
|
10732
|
-
component.pointer,
|
|
10733
|
-
]);
|
|
10734
|
-
}
|
|
10735
|
-
/**
|
|
10736
|
-
* @description Using the given deserialiser, populate the SpaceEntity with the data in the deserialiser.
|
|
10737
|
-
* @param deserialiser - The deserialiser to use.
|
|
10738
|
-
*/
|
|
10739
|
-
deserialise(deserialiser) {
|
|
10740
|
-
Module.ccall("csp_multiplayer_SpaceEntity_Deserialise_void_IEntityDeserialiserR", "void", ["number", "number"], [this.pointer, deserialiser.pointer]);
|
|
10741
|
-
}
|
|
10742
10721
|
/**
|
|
10743
10722
|
* @description Gets the script associated with the space entity.
|
|
10744
10723
|
* @return The EntityScript instance set on the entity.
|
|
@@ -11243,14 +11222,14 @@ export class CSPFoundation {
|
|
|
11243
11222
|
* \rst
|
|
11244
11223
|
* .. note::
|
|
11245
11224
|
* If disabling this feature, more requests will be made to Magnopus Connected Services,
|
|
11246
|
-
* and
|
|
11225
|
+
* and consequently more patch merges may occur on the server as a result.
|
|
11247
11226
|
* \endrst
|
|
11248
11227
|
*/
|
|
11249
11228
|
setEntityPatchRateLimitEnabled(enabled) {
|
|
11250
11229
|
Module.ccall("csp_multiplayer_SpaceEntitySystem_SetEntityPatchRateLimitEnabled_void_bool", "void", ["number", "boolean"], [this.pointer, enabled]);
|
|
11251
11230
|
}
|
|
11252
11231
|
/**
|
|
11253
|
-
* @description Retrieves all
|
|
11232
|
+
* @description Retrieves all entities that exist at the root level (do not have a parent entity).
|
|
11254
11233
|
* @return A list of root entities.
|
|
11255
11234
|
*/
|
|
11256
11235
|
getRootHierarchyEntities() {
|
|
@@ -11260,6 +11239,12 @@ export class CSPFoundation {
|
|
|
11260
11239
|
Module._free(_ret);
|
|
11261
11240
|
return _nPtr;
|
|
11262
11241
|
}
|
|
11242
|
+
delete() {
|
|
11243
|
+
if (this.ownsPointer && !this.disposed) {
|
|
11244
|
+
Module.ccall("csp_multiplayer_SpaceEntitySystem_Dtor", "void", ["number"], [this.pointer]);
|
|
11245
|
+
this.disposed = true;
|
|
11246
|
+
}
|
|
11247
|
+
}
|
|
11263
11248
|
}
|
|
11264
11249
|
Multiplayer.SpaceEntitySystem = SpaceEntitySystem;
|
|
11265
11250
|
})(Multiplayer || (Multiplayer = {}));
|
|
@@ -11486,9 +11471,6 @@ export class CSPFoundation {
|
|
|
11486
11471
|
}
|
|
11487
11472
|
get verticalFov() {
|
|
11488
11473
|
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
11474
|
return _result;
|
|
11493
11475
|
}
|
|
11494
11476
|
set verticalFov(value) {
|
|
@@ -11533,7 +11515,7 @@ export class CSPFoundation {
|
|
|
11533
11515
|
}
|
|
11534
11516
|
static create_annotationId_annotationThumbnailId_verticalFov_authorCameraPosition_authorCameraRotation(annotationId, annotationThumbnailId, verticalFov, authorCameraPosition, authorCameraRotation) {
|
|
11535
11517
|
var _ptr = Module._malloc(8);
|
|
11536
|
-
Module.ccall("
|
|
11518
|
+
Module.ccall("csp_multiplayer_AnnotationData_Ctor_StringRC_StringRC_double_Vector3RC_Vector4RC", "void", ["number", "string", "string", "number", "number", "number"], [
|
|
11537
11519
|
_ptr,
|
|
11538
11520
|
annotationId,
|
|
11539
11521
|
annotationThumbnailId,
|
|
@@ -11550,104 +11532,50 @@ export class CSPFoundation {
|
|
|
11550
11532
|
var _nPtr = getNativePointer(_ptr);
|
|
11551
11533
|
return new AnnotationData(_nPtr);
|
|
11552
11534
|
}
|
|
11553
|
-
|
|
11554
|
-
|
|
11555
|
-
|
|
11556
|
-
|
|
11557
|
-
|
|
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;
|
|
11535
|
+
delete() {
|
|
11536
|
+
if (this.ownsPointer && !this.disposed) {
|
|
11537
|
+
Module.ccall("csp_multiplayer_AnnotationData_Dtor", "void", ["number"], [this.pointer]);
|
|
11538
|
+
this.disposed = true;
|
|
11539
|
+
}
|
|
11563
11540
|
}
|
|
11564
|
-
|
|
11565
|
-
|
|
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;
|
|
11541
|
+
get annotationId() {
|
|
11542
|
+
let _result = Module.ccall("csp_multiplayer_AnnotationData__Get_AnnotationId", "string", ["number"], [this.pointer]);
|
|
11573
11543
|
return _result;
|
|
11574
11544
|
}
|
|
11575
|
-
|
|
11576
|
-
|
|
11577
|
-
|
|
11578
|
-
|
|
11579
|
-
|
|
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;
|
|
11545
|
+
set annotationId(value) {
|
|
11546
|
+
Module.ccall("csp_multiplayer_AnnotationData__Set_AnnotationId", "void", ["number", "string"], [this.pointer, value]);
|
|
11547
|
+
}
|
|
11548
|
+
get annotationThumbnailId() {
|
|
11549
|
+
let _result = Module.ccall("csp_multiplayer_AnnotationData__Get_AnnotationThumbnailId", "string", ["number"], [this.pointer]);
|
|
11584
11550
|
return _result;
|
|
11585
11551
|
}
|
|
11586
|
-
|
|
11587
|
-
|
|
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;
|
|
11552
|
+
set annotationThumbnailId(value) {
|
|
11553
|
+
Module.ccall("csp_multiplayer_AnnotationData__Set_AnnotationThumbnailId", "void", ["number", "string"], [this.pointer, value]);
|
|
11596
11554
|
}
|
|
11597
|
-
|
|
11598
|
-
|
|
11599
|
-
|
|
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;
|
|
11607
|
-
}
|
|
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]);
|
|
11555
|
+
get verticalFov() {
|
|
11556
|
+
let _result = Module.ccall("csp_multiplayer_AnnotationData__Get_VerticalFov", "number", ["number"], [this.pointer]);
|
|
11557
|
+
return _result;
|
|
11614
11558
|
}
|
|
11615
|
-
|
|
11616
|
-
|
|
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]);
|
|
11559
|
+
set verticalFov(value) {
|
|
11560
|
+
Module.ccall("csp_multiplayer_AnnotationData__Set_VerticalFov", "void", ["number", "number"], [this.pointer, value]);
|
|
11621
11561
|
}
|
|
11622
|
-
|
|
11623
|
-
|
|
11624
|
-
|
|
11625
|
-
|
|
11626
|
-
|
|
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]);
|
|
11562
|
+
get authorCameraPosition() {
|
|
11563
|
+
const _ptr = Module._malloc(8);
|
|
11564
|
+
Module.ccall("csp_multiplayer_AnnotationData__Get_AuthorCameraPosition", "void", ["number", "number"], [_ptr, this.pointer]);
|
|
11565
|
+
const _nPtr = getNativePointer(_ptr);
|
|
11566
|
+
return new Common.Vector3(_nPtr);
|
|
11631
11567
|
}
|
|
11632
|
-
|
|
11633
|
-
|
|
11634
|
-
* @param inAuthorCameraPositio - InAuthorCameraPosition
|
|
11635
|
-
*/
|
|
11636
|
-
setAuthorCameraPosition(authorCameraPosition) {
|
|
11637
|
-
Module.ccall("csp_multiplayer_AnnotationData_SetAuthorCameraPosition_void_Vector3RC", "void", ["number", "number"], [this.pointer, authorCameraPosition.pointer]);
|
|
11568
|
+
set authorCameraPosition(value) {
|
|
11569
|
+
Module.ccall("csp_multiplayer_AnnotationData__Set_AuthorCameraPosition", "void", ["number", "number"], [this.pointer, value.pointer]);
|
|
11638
11570
|
}
|
|
11639
|
-
|
|
11640
|
-
|
|
11641
|
-
|
|
11642
|
-
|
|
11643
|
-
|
|
11644
|
-
Module.ccall("csp_multiplayer_AnnotationData_SetAuthorCameraRotation_void_Vector4RC", "void", ["number", "number"], [this.pointer, authorCameraRotation.pointer]);
|
|
11571
|
+
get authorCameraRotation() {
|
|
11572
|
+
const _ptr = Module._malloc(8);
|
|
11573
|
+
Module.ccall("csp_multiplayer_AnnotationData__Get_AuthorCameraRotation", "void", ["number", "number"], [_ptr, this.pointer]);
|
|
11574
|
+
const _nPtr = getNativePointer(_ptr);
|
|
11575
|
+
return new Common.Vector4(_nPtr);
|
|
11645
11576
|
}
|
|
11646
|
-
|
|
11647
|
-
|
|
11648
|
-
Module.ccall("csp_multiplayer_AnnotationData_Dtor", "void", ["number"], [this.pointer]);
|
|
11649
|
-
this.disposed = true;
|
|
11650
|
-
}
|
|
11577
|
+
set authorCameraRotation(value) {
|
|
11578
|
+
Module.ccall("csp_multiplayer_AnnotationData__Set_AuthorCameraRotation", "void", ["number", "number"], [this.pointer, value.pointer]);
|
|
11651
11579
|
}
|
|
11652
11580
|
}
|
|
11653
11581
|
Multiplayer.AnnotationData = AnnotationData;
|
|
@@ -11702,6 +11630,14 @@ export class CSPFoundation {
|
|
|
11702
11630
|
let _result = Module.ccall("csp_multiplayer_EntityScript_HasError_bool", "boolean", ["number"], [this.pointer]);
|
|
11703
11631
|
return _result;
|
|
11704
11632
|
}
|
|
11633
|
+
/**
|
|
11634
|
+
* @description Checks if the entity has a script component.
|
|
11635
|
+
* @return True if component exist, false otherwise.
|
|
11636
|
+
*/
|
|
11637
|
+
hasEntityScriptComponent() {
|
|
11638
|
+
let _result = Module.ccall("csp_multiplayer_EntityScript_HasEntityScriptComponent_bool", "boolean", ["number"], [this.pointer]);
|
|
11639
|
+
return _result;
|
|
11640
|
+
}
|
|
11705
11641
|
/**
|
|
11706
11642
|
* @description Gets the text of the last error if it is known or otherwise returns a default unknown error string.
|
|
11707
11643
|
* @return Text of the last error.
|
|
@@ -17582,13 +17518,24 @@ export class CSPFoundation {
|
|
|
17582
17518
|
@pre This component must contain a valid conversation id (component must have a conversation id that isn't an empty string).
|
|
17583
17519
|
* A CSP error will be sent to the LogSystem if this condition is not met, with a EResultCode::Failed response.
|
|
17584
17520
|
*/
|
|
17585
|
-
getAnnotationThumbnailsForConversation(
|
|
17521
|
+
async getAnnotationThumbnailsForConversation() {
|
|
17522
|
+
var _resolve;
|
|
17523
|
+
var _promise = new Promise((_r) => {
|
|
17524
|
+
_resolve = _r;
|
|
17525
|
+
});
|
|
17526
|
+
var _callbackPtr;
|
|
17586
17527
|
var _callback = (_stateObject__, result) => {
|
|
17587
|
-
var
|
|
17588
|
-
|
|
17528
|
+
var _resultPtr = getNativePointer(result);
|
|
17529
|
+
var _resultInstance = new Multiplayer.AnnotationThumbnailCollectionResult(_resultPtr);
|
|
17530
|
+
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
17531
|
+
return;
|
|
17532
|
+
}
|
|
17533
|
+
_resolve(_resultInstance);
|
|
17534
|
+
Module.removeFunction(_callbackPtr);
|
|
17589
17535
|
};
|
|
17590
|
-
|
|
17591
|
-
Module.ccall("csp_multiplayer_ConversationSpaceComponent_GetAnnotationThumbnailsForConversation_void_AnnotationThumbnailCollectionResultCallback", "void", ["number", "number"], [this.pointer,
|
|
17536
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
17537
|
+
Module.ccall("csp_multiplayer_ConversationSpaceComponent_GetAnnotationThumbnailsForConversation_void_AnnotationThumbnailCollectionResultCallback", "void", ["number", "number", "number"], [this.pointer, _callbackPtr, 0]);
|
|
17538
|
+
return _promise;
|
|
17592
17539
|
}
|
|
17593
17540
|
/**
|
|
17594
17541
|
* @description Sets a callback for when the conversation is updated by another client.
|
|
@@ -21610,6 +21557,12 @@ export class CSPFoundation {
|
|
|
21610
21557
|
Module._free(_ret);
|
|
21611
21558
|
return _nPtr;
|
|
21612
21559
|
}
|
|
21560
|
+
static create() {
|
|
21561
|
+
var _ptr = Module._malloc(8);
|
|
21562
|
+
Module.ccall("csp_systems_AssetCollectionResult_Ctor", "void", ["number"], [_ptr]);
|
|
21563
|
+
var _nPtr = getNativePointer(_ptr);
|
|
21564
|
+
return new AssetCollectionResult(_nPtr);
|
|
21565
|
+
}
|
|
21613
21566
|
delete() {
|
|
21614
21567
|
if (this.ownsPointer && !this.disposed) {
|
|
21615
21568
|
Module.ccall("csp_systems_AssetCollectionResult_Dtor", "void", ["number"], [this.pointer]);
|
|
@@ -25900,6 +25853,12 @@ export class CSPFoundation {
|
|
|
25900
25853
|
_result = _resultString;
|
|
25901
25854
|
return _result;
|
|
25902
25855
|
}
|
|
25856
|
+
static create() {
|
|
25857
|
+
var _ptr = Module._malloc(8);
|
|
25858
|
+
Module.ccall("csp_systems_SpaceResult_Ctor", "void", ["number"], [_ptr]);
|
|
25859
|
+
var _nPtr = getNativePointer(_ptr);
|
|
25860
|
+
return new SpaceResult(_nPtr);
|
|
25861
|
+
}
|
|
25903
25862
|
delete() {
|
|
25904
25863
|
if (this.ownsPointer && !this.disposed) {
|
|
25905
25864
|
Module.ccall("csp_systems_SpaceResult_Dtor", "void", ["number"], [this.pointer]);
|
|
@@ -26444,7 +26403,7 @@ export class CSPFoundation {
|
|
|
26444
26403
|
return _promise;
|
|
26445
26404
|
}
|
|
26446
26405
|
/**
|
|
26447
|
-
* @description Deletes a given space and the
|
|
26406
|
+
* @description Deletes a given space and the associated objects that belong to it. Including UserService group, Metadata, and Thumbnail.
|
|
26448
26407
|
* @param space - Space to delete
|
|
26449
26408
|
* @param callback - Callback when asynchronous task finishes
|
|
26450
26409
|
*/
|