connected-spaces-platform.web 5.14.1 → 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.
- package/Debug/ConnectedSpacesPlatform_WASM.js +39 -31
- 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 +24 -52
- package/connectedspacesplatform.js +95 -112
- package/connectedspacesplatform.js.map +1 -1
- package/connectedspacesplatform.ts +154 -164
- package/package.json +1 -1
|
Binary file
|
|
@@ -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(
|
|
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
|
}
|
|
@@ -10179,6 +10140,16 @@ export declare namespace Systems {
|
|
|
10179
10140
|
* @return The emissive factor.
|
|
10180
10141
|
*/
|
|
10181
10142
|
getEmissiveFactor(): Common.Vector3;
|
|
10143
|
+
/**
|
|
10144
|
+
* @description Set the emissive strength.
|
|
10145
|
+
* @param strength - The emissive strength.
|
|
10146
|
+
*/
|
|
10147
|
+
setEmissiveStrength(strength: number): void;
|
|
10148
|
+
/**
|
|
10149
|
+
* @description Get the emissive strength.
|
|
10150
|
+
* @return The emissive strength.
|
|
10151
|
+
*/
|
|
10152
|
+
getEmissiveStrength(): number;
|
|
10182
10153
|
/**
|
|
10183
10154
|
* @description Sets the base color texture.
|
|
10184
10155
|
@details The first three components (RGB) MUST be encoded with the sRGB transfer function. They specify the base color of the material.
|
|
@@ -11318,6 +11289,7 @@ export declare namespace Systems {
|
|
|
11318
11289
|
* @return The space code
|
|
11319
11290
|
*/
|
|
11320
11291
|
getSpaceCode(): string;
|
|
11292
|
+
static create(): SpaceResult;
|
|
11321
11293
|
delete(): void;
|
|
11322
11294
|
}
|
|
11323
11295
|
}
|
|
@@ -11531,7 +11503,7 @@ export declare namespace Systems {
|
|
|
11531
11503
|
*/
|
|
11532
11504
|
updateSpace(spaceId: string, name: string | null, description: string | null, type: Systems.SpaceAttributes | null, tags: Common.Array<string> | null): Promise<Systems.BasicSpaceResult>;
|
|
11533
11505
|
/**
|
|
11534
|
-
* @description Deletes a given space and the
|
|
11506
|
+
* @description Deletes a given space and the associated objects that belong to it. Including UserService group, Metadata, and Thumbnail.
|
|
11535
11507
|
* @param space - Space to delete
|
|
11536
11508
|
* @param callback - Callback when asynchronous task finishes
|
|
11537
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("
|
|
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;
|
|
@@ -10499,7 +10499,7 @@ export class CSPFoundation {
|
|
|
10499
10499
|
* @return A string representing third party platform type set for this entity.
|
|
10500
10500
|
*/
|
|
10501
10501
|
getThirdPartyPlatformType() {
|
|
10502
|
-
let _result = Module.ccall("
|
|
10502
|
+
let _result = Module.ccall("csp_multiplayer_SpaceEntity_GetThirdPartyPlatformTypeC_EThirdPartyPlatform", "number", ["number"], [this.pointer]);
|
|
10503
10503
|
return _result;
|
|
10504
10504
|
}
|
|
10505
10505
|
/**
|
|
@@ -11233,7 +11233,7 @@ export class CSPFoundation {
|
|
|
11233
11233
|
* @return True if enabled, false otherwise.
|
|
11234
11234
|
*/
|
|
11235
11235
|
getEntityPatchRateLimitEnabled() {
|
|
11236
|
-
let _result = Module.ccall("
|
|
11236
|
+
let _result = Module.ccall("csp_multiplayer_SpaceEntitySystem_GetEntityPatchRateLimitEnabledC_bool", "boolean", ["number"], [this.pointer]);
|
|
11237
11237
|
return _result;
|
|
11238
11238
|
}
|
|
11239
11239
|
/**
|
|
@@ -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("
|
|
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
|
-
|
|
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;
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
11588
|
-
|
|
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
|
-
|
|
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
|
-
|
|
11610
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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]);
|
|
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
|
-
|
|
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
|
-
|
|
11641
|
-
|
|
11642
|
-
|
|
11643
|
-
|
|
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
|
-
|
|
11647
|
-
|
|
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;
|
|
@@ -12103,7 +12046,7 @@ export class CSPFoundation {
|
|
|
12103
12046
|
* @return EResultCode
|
|
12104
12047
|
*/
|
|
12105
12048
|
getResultCode() {
|
|
12106
|
-
let _result = Module.ccall("
|
|
12049
|
+
let _result = Module.ccall("csp_systems_ResultBase_GetResultCodeC_EResultCode", "number", ["number"], [this.pointer]);
|
|
12107
12050
|
return _result;
|
|
12108
12051
|
}
|
|
12109
12052
|
/**
|
|
@@ -12111,7 +12054,7 @@ export class CSPFoundation {
|
|
|
12111
12054
|
* @return Uint16_t
|
|
12112
12055
|
*/
|
|
12113
12056
|
getHttpResultCode() {
|
|
12114
|
-
let _result = Module.ccall("
|
|
12057
|
+
let _result = Module.ccall("csp_systems_ResultBase_GetHttpResultCodeC_uint16_t", "number", ["number"], [this.pointer]);
|
|
12115
12058
|
const _unfixedValue = _result;
|
|
12116
12059
|
let _fixedValue = _unfixedValue < 0 ? _unfixedValue + 2 ** 16 : _unfixedValue;
|
|
12117
12060
|
_result = _fixedValue;
|
|
@@ -12219,7 +12162,7 @@ export class CSPFoundation {
|
|
|
12219
12162
|
Module.ccall("csp_systems_AnalyticsEvent_AddBool_void_String_bool", "void", ["number", "string", "boolean"], [this.pointer, key, value]);
|
|
12220
12163
|
}
|
|
12221
12164
|
getInt(key) {
|
|
12222
|
-
let _result = Module.ccall("
|
|
12165
|
+
let _result = Module.ccall("csp_systems_AnalyticsEvent_GetIntC_int64_t_String", "bigint", ["number", "string"], [this.pointer, key]);
|
|
12223
12166
|
return _result;
|
|
12224
12167
|
}
|
|
12225
12168
|
getString(key) {
|
|
@@ -12230,7 +12173,7 @@ export class CSPFoundation {
|
|
|
12230
12173
|
return _result;
|
|
12231
12174
|
}
|
|
12232
12175
|
getFloat(key) {
|
|
12233
|
-
let _result = Module.ccall("
|
|
12176
|
+
let _result = Module.ccall("csp_systems_AnalyticsEvent_GetFloatC_float_String", "number", ["number", "string"], [this.pointer, key]);
|
|
12234
12177
|
return _result;
|
|
12235
12178
|
}
|
|
12236
12179
|
getBool(key) {
|
|
@@ -12782,7 +12725,7 @@ export class CSPFoundation {
|
|
|
12782
12725
|
* @return Returns the shader type.
|
|
12783
12726
|
*/
|
|
12784
12727
|
getShaderType() {
|
|
12785
|
-
let _result = Module.ccall("
|
|
12728
|
+
let _result = Module.ccall("csp_systems_Material_GetShaderTypeC_EShaderType", "number", ["number"], [this.pointer]);
|
|
12786
12729
|
return _result;
|
|
12787
12730
|
}
|
|
12788
12731
|
/**
|
|
@@ -12790,7 +12733,7 @@ export class CSPFoundation {
|
|
|
12790
12733
|
* @return Returns the version of the material.
|
|
12791
12734
|
*/
|
|
12792
12735
|
getVersion() {
|
|
12793
|
-
let _result = Module.ccall("
|
|
12736
|
+
let _result = Module.ccall("csp_systems_Material_GetVersionC_int", "number", ["number"], [this.pointer]);
|
|
12794
12737
|
return _result;
|
|
12795
12738
|
}
|
|
12796
12739
|
/**
|
|
@@ -16089,7 +16032,7 @@ export class CSPFoundation {
|
|
|
16089
16032
|
* @return The ID of the mesh of the avatar of this component.
|
|
16090
16033
|
*/
|
|
16091
16034
|
getAvatarMeshIndex() {
|
|
16092
|
-
let _result = Module.ccall("
|
|
16035
|
+
let _result = Module.ccall("csp_multiplayer_AvatarSpaceComponent_GetAvatarMeshIndexC_int64_t", "bigint", ["number"], [this.pointer]);
|
|
16093
16036
|
return _result;
|
|
16094
16037
|
}
|
|
16095
16038
|
/**
|
|
@@ -16150,7 +16093,7 @@ export class CSPFoundation {
|
|
|
16150
16093
|
* @return True if the avatar uses IK, false otherwise.
|
|
16151
16094
|
*/
|
|
16152
16095
|
getIsHandIKEnabled() {
|
|
16153
|
-
let _result = Module.ccall("
|
|
16096
|
+
let _result = Module.ccall("csp_multiplayer_AvatarSpaceComponent_GetIsHandIKEnabledC_bool", "boolean", ["number"], [this.pointer]);
|
|
16154
16097
|
return _result;
|
|
16155
16098
|
}
|
|
16156
16099
|
/**
|
|
@@ -16256,7 +16199,7 @@ export class CSPFoundation {
|
|
|
16256
16199
|
* @return The percentage of the blending between walk and run states.
|
|
16257
16200
|
*/
|
|
16258
16201
|
getWalkRunBlendPercentage() {
|
|
16259
|
-
let _result = Module.ccall("
|
|
16202
|
+
let _result = Module.ccall("csp_multiplayer_AvatarSpaceComponent_GetWalkRunBlendPercentageC_float", "number", ["number"], [this.pointer]);
|
|
16260
16203
|
return _result;
|
|
16261
16204
|
}
|
|
16262
16205
|
/**
|
|
@@ -16279,7 +16222,7 @@ export class CSPFoundation {
|
|
|
16279
16222
|
* @return The angle to use to twist the avatar's torso.
|
|
16280
16223
|
*/
|
|
16281
16224
|
getTorsoTwistAlpha() {
|
|
16282
|
-
let _result = Module.ccall("
|
|
16225
|
+
let _result = Module.ccall("csp_multiplayer_AvatarSpaceComponent_GetTorsoTwistAlphaC_float", "number", ["number"], [this.pointer]);
|
|
16283
16226
|
return _result;
|
|
16284
16227
|
}
|
|
16285
16228
|
/**
|
|
@@ -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(
|
|
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
|
|
17588
|
-
|
|
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
|
-
|
|
17591
|
-
Module.ccall("csp_multiplayer_ConversationSpaceComponent_GetAnnotationThumbnailsForConversation_void_AnnotationThumbnailCollectionResultCallback", "void", ["number", "number"], [this.pointer,
|
|
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]);
|
|
@@ -22802,6 +22762,23 @@ export class CSPFoundation {
|
|
|
22802
22762
|
Module._free(_ret);
|
|
22803
22763
|
return _nPtr;
|
|
22804
22764
|
}
|
|
22765
|
+
/**
|
|
22766
|
+
* @description Set the emissive strength.
|
|
22767
|
+
* @param strength - The emissive strength.
|
|
22768
|
+
*/
|
|
22769
|
+
setEmissiveStrength(strength) {
|
|
22770
|
+
assert(strength >= Limits.FLOAT_MIN);
|
|
22771
|
+
assert(strength <= Limits.FLOAT_MAX);
|
|
22772
|
+
Module.ccall("csp_systems_GLTFMaterial_SetEmissiveStrength_void_float", "void", ["number", "number"], [this.pointer, strength]);
|
|
22773
|
+
}
|
|
22774
|
+
/**
|
|
22775
|
+
* @description Get the emissive strength.
|
|
22776
|
+
* @return The emissive strength.
|
|
22777
|
+
*/
|
|
22778
|
+
getEmissiveStrength() {
|
|
22779
|
+
let _result = Module.ccall("csp_systems_GLTFMaterial_GetEmissiveStrengthC_float", "number", ["number"], [this.pointer]);
|
|
22780
|
+
return _result;
|
|
22781
|
+
}
|
|
22805
22782
|
/**
|
|
22806
22783
|
* @description Sets the base color texture.
|
|
22807
22784
|
@details The first three components (RGB) MUST be encoded with the sRGB transfer function. They specify the base color of the material.
|
|
@@ -25883,6 +25860,12 @@ export class CSPFoundation {
|
|
|
25883
25860
|
_result = _resultString;
|
|
25884
25861
|
return _result;
|
|
25885
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
|
+
}
|
|
25886
25869
|
delete() {
|
|
25887
25870
|
if (this.ownsPointer && !this.disposed) {
|
|
25888
25871
|
Module.ccall("csp_systems_SpaceResult_Dtor", "void", ["number"], [this.pointer]);
|
|
@@ -26158,7 +26141,7 @@ export class CSPFoundation {
|
|
|
26158
26141
|
* @return True if getspacegeolocation will return a valid geo location for the space, false otherwise
|
|
26159
26142
|
*/
|
|
26160
26143
|
hasSpaceGeoLocation() {
|
|
26161
|
-
let _result = Module.ccall("
|
|
26144
|
+
let _result = Module.ccall("csp_systems_SpaceGeoLocationResult_HasSpaceGeoLocationC_bool", "boolean", ["number"], [this.pointer]);
|
|
26162
26145
|
return _result;
|
|
26163
26146
|
}
|
|
26164
26147
|
/**
|
|
@@ -26427,7 +26410,7 @@ export class CSPFoundation {
|
|
|
26427
26410
|
return _promise;
|
|
26428
26411
|
}
|
|
26429
26412
|
/**
|
|
26430
|
-
* @description Deletes a given space and the
|
|
26413
|
+
* @description Deletes a given space and the associated objects that belong to it. Including UserService group, Metadata, and Thumbnail.
|
|
26431
26414
|
* @param space - Space to delete
|
|
26432
26415
|
* @param callback - Callback when asynchronous task finishes
|
|
26433
26416
|
*/
|