connected-spaces-platform.web 5.13.1 → 5.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.
- package/Debug/ConnectedSpacesPlatform_WASM.js +273 -87
- package/Debug/ConnectedSpacesPlatform_WASM.wasm +0 -0
- package/Debug/ConnectedSpacesPlatform_WASM.wasm.debug.wasm +0 -0
- package/Debug/ConnectedSpacesPlatform_WASM.worker.js +40 -0
- package/README.md +1 -1
- package/Release/ConnectedSpacesPlatform_WASM.js +2 -2
- package/Release/ConnectedSpacesPlatform_WASM.wasm +0 -0
- package/Release/ConnectedSpacesPlatform_WASM.worker.js +1 -1
- package/connectedspacesplatform.d.ts +12438 -12237
- package/connectedspacesplatform.js +29918 -29533
- package/connectedspacesplatform.js.map +1 -1
- package/connectedspacesplatform.ts +1892 -1213
- package/package.json +1 -1
- package/ConnectedSpacesPlatform_WASM.d.ts +0 -2
|
@@ -168,7 +168,10 @@ export class Limits {
|
|
|
168
168
|
}
|
|
169
169
|
|
|
170
170
|
class NativePointer {
|
|
171
|
-
constructor(
|
|
171
|
+
constructor(
|
|
172
|
+
public pointer: number,
|
|
173
|
+
public ownsOwnData: boolean,
|
|
174
|
+
) {}
|
|
172
175
|
}
|
|
173
176
|
|
|
174
177
|
function getNativePointer(pointer: number): NativePointer {
|
|
@@ -422,6 +425,14 @@ function csp_multiplayer_SpaceEntityUpdateFlagsFactory(
|
|
|
422
425
|
ProxyClassFactories["csp_multiplayer_SpaceEntityUpdateFlags"] =
|
|
423
426
|
csp_multiplayer_SpaceEntityUpdateFlagsFactory;
|
|
424
427
|
|
|
428
|
+
function csp_multiplayer_LockTypeFactory(
|
|
429
|
+
nativePointer: NativePointer,
|
|
430
|
+
): Multiplayer.LockType {
|
|
431
|
+
return nativePointer.pointer as Multiplayer.LockType;
|
|
432
|
+
}
|
|
433
|
+
ProxyClassFactories["csp_multiplayer_LockType"] =
|
|
434
|
+
csp_multiplayer_LockTypeFactory;
|
|
435
|
+
|
|
425
436
|
function csp_multiplayer_AnimatedModelActionsFactory(
|
|
426
437
|
nativePointer: NativePointer,
|
|
427
438
|
): Multiplayer.AnimatedModelActions {
|
|
@@ -765,13 +776,13 @@ function csp_multiplayer_VideoPlayerPropertyKeysFactory(
|
|
|
765
776
|
ProxyClassFactories["csp_multiplayer_VideoPlayerPropertyKeys"] =
|
|
766
777
|
csp_multiplayer_VideoPlayerPropertyKeysFactory;
|
|
767
778
|
|
|
768
|
-
function
|
|
779
|
+
function csp_multiplayer_ConversationEventTypeFactory(
|
|
769
780
|
nativePointer: NativePointer,
|
|
770
|
-
): Multiplayer.
|
|
771
|
-
return nativePointer.pointer as Multiplayer.
|
|
781
|
+
): Multiplayer.ConversationEventType {
|
|
782
|
+
return nativePointer.pointer as Multiplayer.ConversationEventType;
|
|
772
783
|
}
|
|
773
|
-
ProxyClassFactories["
|
|
774
|
-
|
|
784
|
+
ProxyClassFactories["csp_multiplayer_ConversationEventType"] =
|
|
785
|
+
csp_multiplayer_ConversationEventTypeFactory;
|
|
775
786
|
|
|
776
787
|
function csp_systems_EResultCodeFactory(
|
|
777
788
|
nativePointer: NativePointer,
|
|
@@ -1051,13 +1062,13 @@ function csp_multiplayer_AssetDetailBlobParamsFactory(
|
|
|
1051
1062
|
ProxyClassFactories["csp_multiplayer_AssetDetailBlobParams"] =
|
|
1052
1063
|
csp_multiplayer_AssetDetailBlobParamsFactory;
|
|
1053
1064
|
|
|
1054
|
-
function
|
|
1065
|
+
function csp_multiplayer_ConversationEventParamsFactory(
|
|
1055
1066
|
nativePointer: NativePointer,
|
|
1056
1067
|
): NativeClassWrapper {
|
|
1057
|
-
return new Multiplayer.
|
|
1068
|
+
return new Multiplayer.ConversationEventParams(nativePointer);
|
|
1058
1069
|
}
|
|
1059
|
-
ProxyClassFactories["
|
|
1060
|
-
|
|
1070
|
+
ProxyClassFactories["csp_multiplayer_ConversationEventParams"] =
|
|
1071
|
+
csp_multiplayer_ConversationEventParamsFactory;
|
|
1061
1072
|
|
|
1062
1073
|
function csp_multiplayer_UserPermissionsParamsFactory(
|
|
1063
1074
|
nativePointer: NativePointer,
|
|
@@ -1139,13 +1150,37 @@ function csp_multiplayer_SpaceTransformFactory(
|
|
|
1139
1150
|
ProxyClassFactories["csp_multiplayer_SpaceTransform"] =
|
|
1140
1151
|
csp_multiplayer_SpaceTransformFactory;
|
|
1141
1152
|
|
|
1142
|
-
function
|
|
1153
|
+
function csp_multiplayer_MessageInfoFactory(
|
|
1154
|
+
nativePointer: NativePointer,
|
|
1155
|
+
): NativeClassWrapper {
|
|
1156
|
+
return new Multiplayer.MessageInfo(nativePointer);
|
|
1157
|
+
}
|
|
1158
|
+
ProxyClassFactories["csp_multiplayer_MessageInfo"] =
|
|
1159
|
+
csp_multiplayer_MessageInfoFactory;
|
|
1160
|
+
|
|
1161
|
+
function csp_multiplayer_MessageUpdateParamsFactory(
|
|
1162
|
+
nativePointer: NativePointer,
|
|
1163
|
+
): NativeClassWrapper {
|
|
1164
|
+
return new Multiplayer.MessageUpdateParams(nativePointer);
|
|
1165
|
+
}
|
|
1166
|
+
ProxyClassFactories["csp_multiplayer_MessageUpdateParams"] =
|
|
1167
|
+
csp_multiplayer_MessageUpdateParamsFactory;
|
|
1168
|
+
|
|
1169
|
+
function csp_multiplayer_AnnotationUpdateParamsFactory(
|
|
1170
|
+
nativePointer: NativePointer,
|
|
1171
|
+
): NativeClassWrapper {
|
|
1172
|
+
return new Multiplayer.AnnotationUpdateParams(nativePointer);
|
|
1173
|
+
}
|
|
1174
|
+
ProxyClassFactories["csp_multiplayer_AnnotationUpdateParams"] =
|
|
1175
|
+
csp_multiplayer_AnnotationUpdateParamsFactory;
|
|
1176
|
+
|
|
1177
|
+
function csp_multiplayer_AnnotationDataFactory(
|
|
1143
1178
|
nativePointer: NativePointer,
|
|
1144
1179
|
): NativeClassWrapper {
|
|
1145
|
-
return new Multiplayer.
|
|
1180
|
+
return new Multiplayer.AnnotationData(nativePointer);
|
|
1146
1181
|
}
|
|
1147
|
-
ProxyClassFactories["
|
|
1148
|
-
|
|
1182
|
+
ProxyClassFactories["csp_multiplayer_AnnotationData"] =
|
|
1183
|
+
csp_multiplayer_AnnotationDataFactory;
|
|
1149
1184
|
|
|
1150
1185
|
function csp_multiplayer_EntityScriptFactory(
|
|
1151
1186
|
nativePointer: NativePointer,
|
|
@@ -1751,22 +1786,6 @@ function csp_multiplayer_VideoPlayerSpaceComponentFactory(
|
|
|
1751
1786
|
ProxyClassFactories["csp_multiplayer_VideoPlayerSpaceComponent"] =
|
|
1752
1787
|
csp_multiplayer_VideoPlayerSpaceComponentFactory;
|
|
1753
1788
|
|
|
1754
|
-
function csp_multiplayer_MessageInfoFactory(
|
|
1755
|
-
nativePointer: NativePointer,
|
|
1756
|
-
): NativeClassWrapper {
|
|
1757
|
-
return new Multiplayer.MessageInfo(nativePointer);
|
|
1758
|
-
}
|
|
1759
|
-
ProxyClassFactories["csp_multiplayer_MessageInfo"] =
|
|
1760
|
-
csp_multiplayer_MessageInfoFactory;
|
|
1761
|
-
|
|
1762
|
-
function csp_multiplayer_ConversationInfoFactory(
|
|
1763
|
-
nativePointer: NativePointer,
|
|
1764
|
-
): NativeClassWrapper {
|
|
1765
|
-
return new Multiplayer.ConversationInfo(nativePointer);
|
|
1766
|
-
}
|
|
1767
|
-
ProxyClassFactories["csp_multiplayer_ConversationInfo"] =
|
|
1768
|
-
csp_multiplayer_ConversationInfoFactory;
|
|
1769
|
-
|
|
1770
1789
|
function csp_multiplayer_MessageResultFactory(
|
|
1771
1790
|
nativePointer: NativePointer,
|
|
1772
1791
|
): NativeClassWrapper {
|
|
@@ -1791,13 +1810,29 @@ function csp_multiplayer_ConversationResultFactory(
|
|
|
1791
1810
|
ProxyClassFactories["csp_multiplayer_ConversationResult"] =
|
|
1792
1811
|
csp_multiplayer_ConversationResultFactory;
|
|
1793
1812
|
|
|
1794
|
-
function
|
|
1813
|
+
function csp_multiplayer_NumberOfRepliesResultFactory(
|
|
1795
1814
|
nativePointer: NativePointer,
|
|
1796
1815
|
): NativeClassWrapper {
|
|
1797
|
-
return new Multiplayer.
|
|
1816
|
+
return new Multiplayer.NumberOfRepliesResult(nativePointer);
|
|
1798
1817
|
}
|
|
1799
|
-
ProxyClassFactories["
|
|
1800
|
-
|
|
1818
|
+
ProxyClassFactories["csp_multiplayer_NumberOfRepliesResult"] =
|
|
1819
|
+
csp_multiplayer_NumberOfRepliesResultFactory;
|
|
1820
|
+
|
|
1821
|
+
function csp_multiplayer_AnnotationResultFactory(
|
|
1822
|
+
nativePointer: NativePointer,
|
|
1823
|
+
): NativeClassWrapper {
|
|
1824
|
+
return new Multiplayer.AnnotationResult(nativePointer);
|
|
1825
|
+
}
|
|
1826
|
+
ProxyClassFactories["csp_multiplayer_AnnotationResult"] =
|
|
1827
|
+
csp_multiplayer_AnnotationResultFactory;
|
|
1828
|
+
|
|
1829
|
+
function csp_multiplayer_AnnotationThumbnailCollectionResultFactory(
|
|
1830
|
+
nativePointer: NativePointer,
|
|
1831
|
+
): NativeClassWrapper {
|
|
1832
|
+
return new Multiplayer.AnnotationThumbnailCollectionResult(nativePointer);
|
|
1833
|
+
}
|
|
1834
|
+
ProxyClassFactories["csp_multiplayer_AnnotationThumbnailCollectionResult"] =
|
|
1835
|
+
csp_multiplayer_AnnotationThumbnailCollectionResultFactory;
|
|
1801
1836
|
|
|
1802
1837
|
function csp_systems_NullResultFactory(
|
|
1803
1838
|
nativePointer: NativePointer,
|
|
@@ -1900,6 +1935,14 @@ function csp_systems_AssetCollectionsResultFactory(
|
|
|
1900
1935
|
ProxyClassFactories["csp_systems_AssetCollectionsResult"] =
|
|
1901
1936
|
csp_systems_AssetCollectionsResultFactory;
|
|
1902
1937
|
|
|
1938
|
+
function csp_systems_AssetCollectionCountResultFactory(
|
|
1939
|
+
nativePointer: NativePointer,
|
|
1940
|
+
): NativeClassWrapper {
|
|
1941
|
+
return new Systems.AssetCollectionCountResult(nativePointer);
|
|
1942
|
+
}
|
|
1943
|
+
ProxyClassFactories["csp_systems_AssetCollectionCountResult"] =
|
|
1944
|
+
csp_systems_AssetCollectionCountResultFactory;
|
|
1945
|
+
|
|
1903
1946
|
function csp_systems_AssetSystemFactory(
|
|
1904
1947
|
nativePointer: NativePointer,
|
|
1905
1948
|
): NativeClassWrapper {
|
|
@@ -2992,6 +3035,20 @@ function csp_common_Map_String_StringFactory(
|
|
|
2992
3035
|
ProxyClassFactories["csp_common_Map_String_String"] =
|
|
2993
3036
|
csp_common_Map_String_StringFactory;
|
|
2994
3037
|
|
|
3038
|
+
function csp_common_Map_String_csp_systems_AssetFactory(
|
|
3039
|
+
nativePointer: NativePointer,
|
|
3040
|
+
): NativeClassWrapper {
|
|
3041
|
+
return new Common.Map<string, Systems.Asset>(
|
|
3042
|
+
nativePointer,
|
|
3043
|
+
StringFactory,
|
|
3044
|
+
"String",
|
|
3045
|
+
csp_systems_AssetFactory,
|
|
3046
|
+
"csp_systems_Asset",
|
|
3047
|
+
);
|
|
3048
|
+
}
|
|
3049
|
+
ProxyClassFactories["csp_common_Map_String_csp_systems_Asset"] =
|
|
3050
|
+
csp_common_Map_String_csp_systems_AssetFactory;
|
|
3051
|
+
|
|
2995
3052
|
function csp_common_Map_String_csp_common_Map_String_StringFactory(
|
|
2996
3053
|
nativePointer: NativePointer,
|
|
2997
3054
|
): NativeClassWrapper {
|
|
@@ -3214,6 +3271,18 @@ export namespace Multiplayer {
|
|
|
3214
3271
|
UPDATE_FLAGS_THIRD_PARTY_REF = 64,
|
|
3215
3272
|
UPDATE_FLAGS_THIRD_PARTY_PLATFORM = 128,
|
|
3216
3273
|
UPDATE_FLAGS_PARENT = 256,
|
|
3274
|
+
UPDATE_FLAGS_LOCK_TYPE = 512,
|
|
3275
|
+
}
|
|
3276
|
+
}
|
|
3277
|
+
|
|
3278
|
+
export namespace Multiplayer {
|
|
3279
|
+
/**
|
|
3280
|
+
* @description Enum used to specify a lock type that has been added to an entity.
|
|
3281
|
+
* Upon creation, entities have the 'None' lock type.
|
|
3282
|
+
*/
|
|
3283
|
+
export enum LockType {
|
|
3284
|
+
None,
|
|
3285
|
+
UserAgnostic,
|
|
3217
3286
|
}
|
|
3218
3287
|
}
|
|
3219
3288
|
|
|
@@ -3459,8 +3528,11 @@ export namespace Multiplayer {
|
|
|
3459
3528
|
Position,
|
|
3460
3529
|
Rotation,
|
|
3461
3530
|
Title,
|
|
3462
|
-
|
|
3463
|
-
|
|
3531
|
+
Date_DEPRECATED,
|
|
3532
|
+
NumberOfReplies_DEPRECATED,
|
|
3533
|
+
Resolved,
|
|
3534
|
+
ConversationCameraPosition,
|
|
3535
|
+
ConversationCameraRotation,
|
|
3464
3536
|
Num,
|
|
3465
3537
|
}
|
|
3466
3538
|
}
|
|
@@ -3878,12 +3950,17 @@ export namespace Multiplayer {
|
|
|
3878
3950
|
/**
|
|
3879
3951
|
* @description Enum used to specify the type of a conversation system network event.
|
|
3880
3952
|
*/
|
|
3881
|
-
export enum
|
|
3953
|
+
export enum ConversationEventType {
|
|
3954
|
+
NewConversation,
|
|
3882
3955
|
NewMessage,
|
|
3883
3956
|
DeleteMessage,
|
|
3884
3957
|
DeleteConversation,
|
|
3885
3958
|
ConversationInformation,
|
|
3886
3959
|
MessageInformation,
|
|
3960
|
+
SetAnnotation,
|
|
3961
|
+
DeleteAnnotation,
|
|
3962
|
+
SetConversationAnnotation,
|
|
3963
|
+
DeleteConversationAnnotation,
|
|
3887
3964
|
}
|
|
3888
3965
|
}
|
|
3889
3966
|
|
|
@@ -3958,6 +4035,8 @@ export namespace Systems {
|
|
|
3958
4035
|
AUDIO,
|
|
3959
4036
|
GAUSSIAN_SPLAT,
|
|
3960
4037
|
MATERIAL,
|
|
4038
|
+
ANNOTATION,
|
|
4039
|
+
ANNOTATION_THUMBNAIL,
|
|
3961
4040
|
}
|
|
3962
4041
|
}
|
|
3963
4042
|
|
|
@@ -22183,7 +22262,7 @@ export namespace Multiplayer {
|
|
|
22183
22262
|
/**
|
|
22184
22263
|
* @description Class used to provide details of a conversation message that has been received whilst the client application is connected to a space.
|
|
22185
22264
|
*/
|
|
22186
|
-
export class
|
|
22265
|
+
export class ConversationEventParams
|
|
22187
22266
|
extends NativeClassWrapper
|
|
22188
22267
|
implements INativeResource
|
|
22189
22268
|
{
|
|
@@ -22192,23 +22271,23 @@ export namespace Multiplayer {
|
|
|
22192
22271
|
super(pointer);
|
|
22193
22272
|
}
|
|
22194
22273
|
|
|
22195
|
-
static create():
|
|
22274
|
+
static create(): ConversationEventParams {
|
|
22196
22275
|
var _ptr = Module._malloc(8);
|
|
22197
22276
|
Module.ccall(
|
|
22198
|
-
"
|
|
22277
|
+
"csp_multiplayer_ConversationEventParams_Ctor",
|
|
22199
22278
|
"void",
|
|
22200
22279
|
["number"],
|
|
22201
22280
|
[_ptr],
|
|
22202
22281
|
);
|
|
22203
22282
|
var _nPtr = getNativePointer(_ptr);
|
|
22204
22283
|
|
|
22205
|
-
return new
|
|
22284
|
+
return new ConversationEventParams(_nPtr);
|
|
22206
22285
|
}
|
|
22207
22286
|
|
|
22208
22287
|
delete(): void {
|
|
22209
22288
|
if (this.ownsPointer && !this.disposed) {
|
|
22210
22289
|
Module.ccall(
|
|
22211
|
-
"
|
|
22290
|
+
"csp_multiplayer_ConversationEventParams_Dtor",
|
|
22212
22291
|
"void",
|
|
22213
22292
|
["number"],
|
|
22214
22293
|
[this.pointer],
|
|
@@ -22218,9 +22297,9 @@ export namespace Multiplayer {
|
|
|
22218
22297
|
}
|
|
22219
22298
|
}
|
|
22220
22299
|
|
|
22221
|
-
get messageType(): Multiplayer.
|
|
22300
|
+
get messageType(): Multiplayer.ConversationEventType {
|
|
22222
22301
|
let _result = Module.ccall(
|
|
22223
|
-
"
|
|
22302
|
+
"csp_multiplayer_ConversationEventParams__Get_MessageType",
|
|
22224
22303
|
"number",
|
|
22225
22304
|
["number"],
|
|
22226
22305
|
[this.pointer],
|
|
@@ -22229,32 +22308,34 @@ export namespace Multiplayer {
|
|
|
22229
22308
|
return _result;
|
|
22230
22309
|
}
|
|
22231
22310
|
|
|
22232
|
-
set messageType(value: Multiplayer.
|
|
22311
|
+
set messageType(value: Multiplayer.ConversationEventType) {
|
|
22233
22312
|
Module.ccall(
|
|
22234
|
-
"
|
|
22313
|
+
"csp_multiplayer_ConversationEventParams__Set_MessageType",
|
|
22235
22314
|
"void",
|
|
22236
22315
|
["number", "number"],
|
|
22237
22316
|
[this.pointer, value],
|
|
22238
22317
|
);
|
|
22239
22318
|
}
|
|
22240
22319
|
|
|
22241
|
-
get
|
|
22242
|
-
|
|
22243
|
-
|
|
22244
|
-
"
|
|
22245
|
-
|
|
22246
|
-
[
|
|
22320
|
+
get messageInfo(): Multiplayer.MessageInfo {
|
|
22321
|
+
const _ptr = Module._malloc(8);
|
|
22322
|
+
Module.ccall(
|
|
22323
|
+
"csp_multiplayer_ConversationEventParams__Get_MessageInfo",
|
|
22324
|
+
"void",
|
|
22325
|
+
["number", "number"],
|
|
22326
|
+
[_ptr, this.pointer],
|
|
22247
22327
|
);
|
|
22248
22328
|
|
|
22249
|
-
|
|
22329
|
+
const _nPtr = getNativePointer(_ptr);
|
|
22330
|
+
return new Multiplayer.MessageInfo(_nPtr);
|
|
22250
22331
|
}
|
|
22251
22332
|
|
|
22252
|
-
set
|
|
22333
|
+
set messageInfo(value: Multiplayer.MessageInfo) {
|
|
22253
22334
|
Module.ccall(
|
|
22254
|
-
"
|
|
22335
|
+
"csp_multiplayer_ConversationEventParams__Set_MessageInfo",
|
|
22255
22336
|
"void",
|
|
22256
|
-
["number", "
|
|
22257
|
-
[this.pointer, value],
|
|
22337
|
+
["number", "number"],
|
|
22338
|
+
[this.pointer, value.pointer],
|
|
22258
22339
|
);
|
|
22259
22340
|
}
|
|
22260
22341
|
}
|
|
@@ -22812,26 +22893,6 @@ export namespace Multiplayer {
|
|
|
22812
22893
|
return _result;
|
|
22813
22894
|
}
|
|
22814
22895
|
|
|
22815
|
-
/**
|
|
22816
|
-
* @description Gets a pointer to the conversation system.
|
|
22817
|
-
* @return A pointer to the conversation system.
|
|
22818
|
-
*/
|
|
22819
|
-
|
|
22820
|
-
getConversationSystem(): Multiplayer.ConversationSystem {
|
|
22821
|
-
var _ret = Module._malloc(8);
|
|
22822
|
-
|
|
22823
|
-
Module.ccall(
|
|
22824
|
-
"csp_multiplayer_MultiplayerConnection_GetConversationSystemC_ConversationSystemP",
|
|
22825
|
-
"void",
|
|
22826
|
-
["number", "number"],
|
|
22827
|
-
[_ret, this.pointer],
|
|
22828
|
-
);
|
|
22829
|
-
var _nPtr = new Multiplayer.ConversationSystem(getNativePointer(_ret));
|
|
22830
|
-
Module._free(_ret);
|
|
22831
|
-
|
|
22832
|
-
return _nPtr;
|
|
22833
|
-
}
|
|
22834
|
-
|
|
22835
22896
|
/**
|
|
22836
22897
|
* @description Gets the current connection state.
|
|
22837
22898
|
* @return A ConnectionState enum value.
|
|
@@ -24320,7 +24381,7 @@ export namespace Multiplayer {
|
|
|
24320
24381
|
|
|
24321
24382
|
serialise(serialiser: Multiplayer.IEntitySerialiser): void {
|
|
24322
24383
|
Module.ccall(
|
|
24323
|
-
"
|
|
24384
|
+
"csp_multiplayer_SpaceEntity_SerialiseC_void_IEntitySerialiserR",
|
|
24324
24385
|
"void",
|
|
24325
24386
|
["number", "number"],
|
|
24326
24387
|
[this.pointer, (serialiser as unknown as NativeClassWrapper).pointer],
|
|
@@ -24372,7 +24433,7 @@ export namespace Multiplayer {
|
|
|
24372
24433
|
var _ret = Module._malloc(8);
|
|
24373
24434
|
|
|
24374
24435
|
Module.ccall(
|
|
24375
|
-
"
|
|
24436
|
+
"csp_multiplayer_SpaceEntity_GetScript_EntityScriptR",
|
|
24376
24437
|
"void",
|
|
24377
24438
|
["number", "number"],
|
|
24378
24439
|
[_ret, this.pointer],
|
|
@@ -24463,7 +24524,57 @@ export namespace Multiplayer {
|
|
|
24463
24524
|
|
|
24464
24525
|
isModifiable(): boolean {
|
|
24465
24526
|
let _result = Module.ccall(
|
|
24466
|
-
"
|
|
24527
|
+
"csp_multiplayer_SpaceEntity_IsModifiableC_bool",
|
|
24528
|
+
"boolean",
|
|
24529
|
+
["number"],
|
|
24530
|
+
[this.pointer],
|
|
24531
|
+
);
|
|
24532
|
+
|
|
24533
|
+
return _result;
|
|
24534
|
+
}
|
|
24535
|
+
|
|
24536
|
+
/**
|
|
24537
|
+
* @description Locks the entity if it hasn't been locked already.
|
|
24538
|
+
@pre The entity must not already be locked.
|
|
24539
|
+
* A CSP error will be sent to the LogSystem if this condition is not met.
|
|
24540
|
+
@post This internally sets the lock type as a dirty property.
|
|
24541
|
+
* This entity should now be replicated, to process the change.
|
|
24542
|
+
*/
|
|
24543
|
+
|
|
24544
|
+
lock(): void {
|
|
24545
|
+
Module.ccall(
|
|
24546
|
+
"csp_multiplayer_SpaceEntity_Lock_void",
|
|
24547
|
+
"void",
|
|
24548
|
+
["number"],
|
|
24549
|
+
[this.pointer],
|
|
24550
|
+
);
|
|
24551
|
+
}
|
|
24552
|
+
|
|
24553
|
+
/**
|
|
24554
|
+
* @description Unlocks the entity if the entity is locked
|
|
24555
|
+
@pre The entity must be locked.
|
|
24556
|
+
* A CSP error will be sent to the LogSystem if this condition is not met.
|
|
24557
|
+
@post This internally sets the lock type as a dirty property.
|
|
24558
|
+
* This entity should now be replicated, to process the change.
|
|
24559
|
+
*/
|
|
24560
|
+
|
|
24561
|
+
unlock(): void {
|
|
24562
|
+
Module.ccall(
|
|
24563
|
+
"csp_multiplayer_SpaceEntity_Unlock_void",
|
|
24564
|
+
"void",
|
|
24565
|
+
["number"],
|
|
24566
|
+
[this.pointer],
|
|
24567
|
+
);
|
|
24568
|
+
}
|
|
24569
|
+
|
|
24570
|
+
/**
|
|
24571
|
+
* @description Checks if the entity has a lock type other than LockType::None, set by calling SpaceEntity::Lock.
|
|
24572
|
+
* @return Bool
|
|
24573
|
+
*/
|
|
24574
|
+
|
|
24575
|
+
isLocked(): boolean {
|
|
24576
|
+
let _result = Module.ccall(
|
|
24577
|
+
"csp_multiplayer_SpaceEntity_IsLockedC_bool",
|
|
24467
24578
|
"boolean",
|
|
24468
24579
|
["number"],
|
|
24469
24580
|
[this.pointer],
|
|
@@ -25397,10 +25508,10 @@ export namespace Multiplayer {
|
|
|
25397
25508
|
|
|
25398
25509
|
export namespace Multiplayer {
|
|
25399
25510
|
/**
|
|
25400
|
-
@ingroup Conversation
|
|
25401
|
-
* @description
|
|
25511
|
+
@ingroup Conversation
|
|
25512
|
+
* @description Contains information about a conversation message.
|
|
25402
25513
|
*/
|
|
25403
|
-
export class
|
|
25514
|
+
export class MessageInfo
|
|
25404
25515
|
extends NativeClassWrapper
|
|
25405
25516
|
implements INativeResource
|
|
25406
25517
|
{
|
|
@@ -25409,23 +25520,73 @@ export namespace Multiplayer {
|
|
|
25409
25520
|
super(pointer);
|
|
25410
25521
|
}
|
|
25411
25522
|
|
|
25412
|
-
static create():
|
|
25523
|
+
static create(): MessageInfo {
|
|
25413
25524
|
var _ptr = Module._malloc(8);
|
|
25414
25525
|
Module.ccall(
|
|
25415
|
-
"
|
|
25526
|
+
"csp_multiplayer_MessageInfo_Ctor",
|
|
25416
25527
|
"void",
|
|
25417
25528
|
["number"],
|
|
25418
25529
|
[_ptr],
|
|
25419
25530
|
);
|
|
25420
25531
|
var _nPtr = getNativePointer(_ptr);
|
|
25421
25532
|
|
|
25422
|
-
return new
|
|
25533
|
+
return new MessageInfo(_nPtr);
|
|
25534
|
+
}
|
|
25535
|
+
|
|
25536
|
+
static create_conversationId_isConversation_message(
|
|
25537
|
+
conversationId: string,
|
|
25538
|
+
isConversation: boolean,
|
|
25539
|
+
message: string,
|
|
25540
|
+
): MessageInfo {
|
|
25541
|
+
var _ptr = Module._malloc(8);
|
|
25542
|
+
Module.ccall(
|
|
25543
|
+
"csp_multiplayer_MessageInfo_Ctor_StringRC_bool_StringRC",
|
|
25544
|
+
"void",
|
|
25545
|
+
["number", "string", "boolean", "string"],
|
|
25546
|
+
[_ptr, conversationId, isConversation, message],
|
|
25547
|
+
);
|
|
25548
|
+
var _nPtr = getNativePointer(_ptr);
|
|
25549
|
+
|
|
25550
|
+
return new MessageInfo(_nPtr);
|
|
25551
|
+
}
|
|
25552
|
+
|
|
25553
|
+
static create_conversationId_isConversation_message_messageId(
|
|
25554
|
+
conversationId: string,
|
|
25555
|
+
isConversation: boolean,
|
|
25556
|
+
message: string,
|
|
25557
|
+
messageId: string,
|
|
25558
|
+
): MessageInfo {
|
|
25559
|
+
var _ptr = Module._malloc(8);
|
|
25560
|
+
Module.ccall(
|
|
25561
|
+
"csp_multiplayer_MessageInfo_Ctor_StringRC_bool_StringRC_StringRC",
|
|
25562
|
+
"void",
|
|
25563
|
+
["number", "string", "boolean", "string", "string"],
|
|
25564
|
+
[_ptr, conversationId, isConversation, message, messageId],
|
|
25565
|
+
);
|
|
25566
|
+
var _nPtr = getNativePointer(_ptr);
|
|
25567
|
+
|
|
25568
|
+
return new MessageInfo(_nPtr);
|
|
25569
|
+
}
|
|
25570
|
+
|
|
25571
|
+
static create_messageData(
|
|
25572
|
+
messageData: Multiplayer.MessageInfo,
|
|
25573
|
+
): MessageInfo {
|
|
25574
|
+
var _ptr = Module._malloc(8);
|
|
25575
|
+
Module.ccall(
|
|
25576
|
+
"csp_multiplayer_MessageInfo_Ctor_MessageInfoRC",
|
|
25577
|
+
"void",
|
|
25578
|
+
["number", "number"],
|
|
25579
|
+
[_ptr, messageData.pointer],
|
|
25580
|
+
);
|
|
25581
|
+
var _nPtr = getNativePointer(_ptr);
|
|
25582
|
+
|
|
25583
|
+
return new MessageInfo(_nPtr);
|
|
25423
25584
|
}
|
|
25424
25585
|
|
|
25425
25586
|
delete(): void {
|
|
25426
25587
|
if (this.ownsPointer && !this.disposed) {
|
|
25427
25588
|
Module.ccall(
|
|
25428
|
-
"
|
|
25589
|
+
"csp_multiplayer_MessageInfo_Dtor",
|
|
25429
25590
|
"void",
|
|
25430
25591
|
["number"],
|
|
25431
25592
|
[this.pointer],
|
|
@@ -25437,7 +25598,7 @@ export namespace Multiplayer {
|
|
|
25437
25598
|
|
|
25438
25599
|
get conversationId(): string {
|
|
25439
25600
|
let _result = Module.ccall(
|
|
25440
|
-
"
|
|
25601
|
+
"csp_multiplayer_MessageInfo__Get_ConversationId",
|
|
25441
25602
|
"string",
|
|
25442
25603
|
["number"],
|
|
25443
25604
|
[this.pointer],
|
|
@@ -25448,16 +25609,16 @@ export namespace Multiplayer {
|
|
|
25448
25609
|
|
|
25449
25610
|
set conversationId(value: string) {
|
|
25450
25611
|
Module.ccall(
|
|
25451
|
-
"
|
|
25612
|
+
"csp_multiplayer_MessageInfo__Set_ConversationId",
|
|
25452
25613
|
"void",
|
|
25453
25614
|
["number", "string"],
|
|
25454
25615
|
[this.pointer, value],
|
|
25455
25616
|
);
|
|
25456
25617
|
}
|
|
25457
25618
|
|
|
25458
|
-
get
|
|
25619
|
+
get createdTimestamp(): string {
|
|
25459
25620
|
let _result = Module.ccall(
|
|
25460
|
-
"
|
|
25621
|
+
"csp_multiplayer_MessageInfo__Get_CreatedTimestamp",
|
|
25461
25622
|
"string",
|
|
25462
25623
|
["number"],
|
|
25463
25624
|
[this.pointer],
|
|
@@ -25466,18 +25627,18 @@ export namespace Multiplayer {
|
|
|
25466
25627
|
return _result;
|
|
25467
25628
|
}
|
|
25468
25629
|
|
|
25469
|
-
set
|
|
25630
|
+
set createdTimestamp(value: string) {
|
|
25470
25631
|
Module.ccall(
|
|
25471
|
-
"
|
|
25632
|
+
"csp_multiplayer_MessageInfo__Set_CreatedTimestamp",
|
|
25472
25633
|
"void",
|
|
25473
25634
|
["number", "string"],
|
|
25474
25635
|
[this.pointer, value],
|
|
25475
25636
|
);
|
|
25476
25637
|
}
|
|
25477
25638
|
|
|
25478
|
-
get
|
|
25639
|
+
get editedTimestamp(): string {
|
|
25479
25640
|
let _result = Module.ccall(
|
|
25480
|
-
"
|
|
25641
|
+
"csp_multiplayer_MessageInfo__Get_EditedTimestamp",
|
|
25481
25642
|
"string",
|
|
25482
25643
|
["number"],
|
|
25483
25644
|
[this.pointer],
|
|
@@ -25486,18 +25647,18 @@ export namespace Multiplayer {
|
|
|
25486
25647
|
return _result;
|
|
25487
25648
|
}
|
|
25488
25649
|
|
|
25489
|
-
set
|
|
25650
|
+
set editedTimestamp(value: string) {
|
|
25490
25651
|
Module.ccall(
|
|
25491
|
-
"
|
|
25652
|
+
"csp_multiplayer_MessageInfo__Set_EditedTimestamp",
|
|
25492
25653
|
"void",
|
|
25493
25654
|
["number", "string"],
|
|
25494
25655
|
[this.pointer, value],
|
|
25495
25656
|
);
|
|
25496
25657
|
}
|
|
25497
25658
|
|
|
25498
|
-
get
|
|
25659
|
+
get userId(): string {
|
|
25499
25660
|
let _result = Module.ccall(
|
|
25500
|
-
"
|
|
25661
|
+
"csp_multiplayer_MessageInfo__Get_UserId",
|
|
25501
25662
|
"string",
|
|
25502
25663
|
["number"],
|
|
25503
25664
|
[this.pointer],
|
|
@@ -25506,9 +25667,9 @@ export namespace Multiplayer {
|
|
|
25506
25667
|
return _result;
|
|
25507
25668
|
}
|
|
25508
25669
|
|
|
25509
|
-
set
|
|
25670
|
+
set userId(value: string) {
|
|
25510
25671
|
Module.ccall(
|
|
25511
|
-
"
|
|
25672
|
+
"csp_multiplayer_MessageInfo__Set_UserId",
|
|
25512
25673
|
"void",
|
|
25513
25674
|
["number", "string"],
|
|
25514
25675
|
[this.pointer, value],
|
|
@@ -25517,7 +25678,7 @@ export namespace Multiplayer {
|
|
|
25517
25678
|
|
|
25518
25679
|
get message(): string {
|
|
25519
25680
|
let _result = Module.ccall(
|
|
25520
|
-
"
|
|
25681
|
+
"csp_multiplayer_MessageInfo__Get_Message",
|
|
25521
25682
|
"string",
|
|
25522
25683
|
["number"],
|
|
25523
25684
|
[this.pointer],
|
|
@@ -25528,17 +25689,17 @@ export namespace Multiplayer {
|
|
|
25528
25689
|
|
|
25529
25690
|
set message(value: string) {
|
|
25530
25691
|
Module.ccall(
|
|
25531
|
-
"
|
|
25692
|
+
"csp_multiplayer_MessageInfo__Set_Message",
|
|
25532
25693
|
"void",
|
|
25533
25694
|
["number", "string"],
|
|
25534
25695
|
[this.pointer, value],
|
|
25535
25696
|
);
|
|
25536
25697
|
}
|
|
25537
25698
|
|
|
25538
|
-
get
|
|
25699
|
+
get messageId(): string {
|
|
25539
25700
|
let _result = Module.ccall(
|
|
25540
|
-
"
|
|
25541
|
-
"
|
|
25701
|
+
"csp_multiplayer_MessageInfo__Get_MessageId",
|
|
25702
|
+
"string",
|
|
25542
25703
|
["number"],
|
|
25543
25704
|
[this.pointer],
|
|
25544
25705
|
);
|
|
@@ -25546,17 +25707,449 @@ export namespace Multiplayer {
|
|
|
25546
25707
|
return _result;
|
|
25547
25708
|
}
|
|
25548
25709
|
|
|
25549
|
-
set
|
|
25710
|
+
set messageId(value: string) {
|
|
25550
25711
|
Module.ccall(
|
|
25551
|
-
"
|
|
25712
|
+
"csp_multiplayer_MessageInfo__Set_MessageId",
|
|
25552
25713
|
"void",
|
|
25553
|
-
["number", "
|
|
25714
|
+
["number", "string"],
|
|
25554
25715
|
[this.pointer, value],
|
|
25555
25716
|
);
|
|
25556
25717
|
}
|
|
25557
25718
|
}
|
|
25558
25719
|
}
|
|
25559
25720
|
|
|
25721
|
+
export namespace Multiplayer {
|
|
25722
|
+
/**
|
|
25723
|
+
@ingroup Conversation
|
|
25724
|
+
* @description Information used to update a message
|
|
25725
|
+
*/
|
|
25726
|
+
export class MessageUpdateParams
|
|
25727
|
+
extends NativeClassWrapper
|
|
25728
|
+
implements INativeResource
|
|
25729
|
+
{
|
|
25730
|
+
/** @internal */
|
|
25731
|
+
constructor(pointer: NativePointer) {
|
|
25732
|
+
super(pointer);
|
|
25733
|
+
}
|
|
25734
|
+
|
|
25735
|
+
static create(): MessageUpdateParams {
|
|
25736
|
+
var _ptr = Module._malloc(8);
|
|
25737
|
+
Module.ccall(
|
|
25738
|
+
"csp_multiplayer_MessageUpdateParams_Ctor",
|
|
25739
|
+
"void",
|
|
25740
|
+
["number"],
|
|
25741
|
+
[_ptr],
|
|
25742
|
+
);
|
|
25743
|
+
var _nPtr = getNativePointer(_ptr);
|
|
25744
|
+
|
|
25745
|
+
return new MessageUpdateParams(_nPtr);
|
|
25746
|
+
}
|
|
25747
|
+
|
|
25748
|
+
delete(): void {
|
|
25749
|
+
if (this.ownsPointer && !this.disposed) {
|
|
25750
|
+
Module.ccall(
|
|
25751
|
+
"csp_multiplayer_MessageUpdateParams_Dtor",
|
|
25752
|
+
"void",
|
|
25753
|
+
["number"],
|
|
25754
|
+
[this.pointer],
|
|
25755
|
+
);
|
|
25756
|
+
|
|
25757
|
+
this.disposed = true;
|
|
25758
|
+
}
|
|
25759
|
+
}
|
|
25760
|
+
|
|
25761
|
+
get newMessage(): string {
|
|
25762
|
+
let _result = Module.ccall(
|
|
25763
|
+
"csp_multiplayer_MessageUpdateParams__Get_NewMessage",
|
|
25764
|
+
"string",
|
|
25765
|
+
["number"],
|
|
25766
|
+
[this.pointer],
|
|
25767
|
+
);
|
|
25768
|
+
|
|
25769
|
+
return _result;
|
|
25770
|
+
}
|
|
25771
|
+
|
|
25772
|
+
set newMessage(value: string) {
|
|
25773
|
+
Module.ccall(
|
|
25774
|
+
"csp_multiplayer_MessageUpdateParams__Set_NewMessage",
|
|
25775
|
+
"void",
|
|
25776
|
+
["number", "string"],
|
|
25777
|
+
[this.pointer, value],
|
|
25778
|
+
);
|
|
25779
|
+
}
|
|
25780
|
+
}
|
|
25781
|
+
}
|
|
25782
|
+
|
|
25783
|
+
export namespace Multiplayer {
|
|
25784
|
+
/**
|
|
25785
|
+
@ingroup Conversation
|
|
25786
|
+
* @description Information used to update an annotation
|
|
25787
|
+
*/
|
|
25788
|
+
export class AnnotationUpdateParams
|
|
25789
|
+
extends NativeClassWrapper
|
|
25790
|
+
implements INativeResource
|
|
25791
|
+
{
|
|
25792
|
+
/** @internal */
|
|
25793
|
+
constructor(pointer: NativePointer) {
|
|
25794
|
+
super(pointer);
|
|
25795
|
+
}
|
|
25796
|
+
|
|
25797
|
+
static create(): AnnotationUpdateParams {
|
|
25798
|
+
var _ptr = Module._malloc(8);
|
|
25799
|
+
Module.ccall(
|
|
25800
|
+
"csp_multiplayer_AnnotationUpdateParams_Ctor",
|
|
25801
|
+
"void",
|
|
25802
|
+
["number"],
|
|
25803
|
+
[_ptr],
|
|
25804
|
+
);
|
|
25805
|
+
var _nPtr = getNativePointer(_ptr);
|
|
25806
|
+
|
|
25807
|
+
return new AnnotationUpdateParams(_nPtr);
|
|
25808
|
+
}
|
|
25809
|
+
|
|
25810
|
+
delete(): void {
|
|
25811
|
+
if (this.ownsPointer && !this.disposed) {
|
|
25812
|
+
Module.ccall(
|
|
25813
|
+
"csp_multiplayer_AnnotationUpdateParams_Dtor",
|
|
25814
|
+
"void",
|
|
25815
|
+
["number"],
|
|
25816
|
+
[this.pointer],
|
|
25817
|
+
);
|
|
25818
|
+
|
|
25819
|
+
this.disposed = true;
|
|
25820
|
+
}
|
|
25821
|
+
}
|
|
25822
|
+
|
|
25823
|
+
get verticalFov(): number {
|
|
25824
|
+
let _result = Module.ccall(
|
|
25825
|
+
"csp_multiplayer_AnnotationUpdateParams__Get_VerticalFov",
|
|
25826
|
+
"number",
|
|
25827
|
+
["number"],
|
|
25828
|
+
[this.pointer],
|
|
25829
|
+
);
|
|
25830
|
+
|
|
25831
|
+
const _unfixedValue = _result;
|
|
25832
|
+
let _fixedValue =
|
|
25833
|
+
_unfixedValue < 0 ? _unfixedValue + 2 ** 16 : _unfixedValue;
|
|
25834
|
+
|
|
25835
|
+
_result = _fixedValue;
|
|
25836
|
+
|
|
25837
|
+
return _result;
|
|
25838
|
+
}
|
|
25839
|
+
|
|
25840
|
+
set verticalFov(value: number) {
|
|
25841
|
+
Module.ccall(
|
|
25842
|
+
"csp_multiplayer_AnnotationUpdateParams__Set_VerticalFov",
|
|
25843
|
+
"void",
|
|
25844
|
+
["number", "number"],
|
|
25845
|
+
[this.pointer, value],
|
|
25846
|
+
);
|
|
25847
|
+
}
|
|
25848
|
+
|
|
25849
|
+
get authorCameraPosition(): Common.Vector3 {
|
|
25850
|
+
const _ptr = Module._malloc(8);
|
|
25851
|
+
Module.ccall(
|
|
25852
|
+
"csp_multiplayer_AnnotationUpdateParams__Get_AuthorCameraPosition",
|
|
25853
|
+
"void",
|
|
25854
|
+
["number", "number"],
|
|
25855
|
+
[_ptr, this.pointer],
|
|
25856
|
+
);
|
|
25857
|
+
|
|
25858
|
+
const _nPtr = getNativePointer(_ptr);
|
|
25859
|
+
return new Common.Vector3(_nPtr);
|
|
25860
|
+
}
|
|
25861
|
+
|
|
25862
|
+
set authorCameraPosition(value: Common.Vector3) {
|
|
25863
|
+
Module.ccall(
|
|
25864
|
+
"csp_multiplayer_AnnotationUpdateParams__Set_AuthorCameraPosition",
|
|
25865
|
+
"void",
|
|
25866
|
+
["number", "number"],
|
|
25867
|
+
[this.pointer, value.pointer],
|
|
25868
|
+
);
|
|
25869
|
+
}
|
|
25870
|
+
|
|
25871
|
+
get authorCameraRotation(): Common.Vector4 {
|
|
25872
|
+
const _ptr = Module._malloc(8);
|
|
25873
|
+
Module.ccall(
|
|
25874
|
+
"csp_multiplayer_AnnotationUpdateParams__Get_AuthorCameraRotation",
|
|
25875
|
+
"void",
|
|
25876
|
+
["number", "number"],
|
|
25877
|
+
[_ptr, this.pointer],
|
|
25878
|
+
);
|
|
25879
|
+
|
|
25880
|
+
const _nPtr = getNativePointer(_ptr);
|
|
25881
|
+
return new Common.Vector4(_nPtr);
|
|
25882
|
+
}
|
|
25883
|
+
|
|
25884
|
+
set authorCameraRotation(value: Common.Vector4) {
|
|
25885
|
+
Module.ccall(
|
|
25886
|
+
"csp_multiplayer_AnnotationUpdateParams__Set_AuthorCameraRotation",
|
|
25887
|
+
"void",
|
|
25888
|
+
["number", "number"],
|
|
25889
|
+
[this.pointer, value.pointer],
|
|
25890
|
+
);
|
|
25891
|
+
}
|
|
25892
|
+
}
|
|
25893
|
+
}
|
|
25894
|
+
|
|
25895
|
+
export namespace Multiplayer {
|
|
25896
|
+
/**
|
|
25897
|
+
@ingroup Conversation
|
|
25898
|
+
* @description Data for an Annotation, used to help display the annotation in a consistent way to all end users.
|
|
25899
|
+
*/
|
|
25900
|
+
export class AnnotationData
|
|
25901
|
+
extends NativeClassWrapper
|
|
25902
|
+
implements INativeResource
|
|
25903
|
+
{
|
|
25904
|
+
/** @internal */
|
|
25905
|
+
constructor(pointer: NativePointer) {
|
|
25906
|
+
super(pointer);
|
|
25907
|
+
}
|
|
25908
|
+
|
|
25909
|
+
static create(): AnnotationData {
|
|
25910
|
+
var _ptr = Module._malloc(8);
|
|
25911
|
+
Module.ccall(
|
|
25912
|
+
"csp_multiplayer_AnnotationData_Ctor",
|
|
25913
|
+
"void",
|
|
25914
|
+
["number"],
|
|
25915
|
+
[_ptr],
|
|
25916
|
+
);
|
|
25917
|
+
var _nPtr = getNativePointer(_ptr);
|
|
25918
|
+
|
|
25919
|
+
return new AnnotationData(_nPtr);
|
|
25920
|
+
}
|
|
25921
|
+
|
|
25922
|
+
static create_annotationId_annotationThumbnailId_verticalFov_authorCameraPosition_authorCameraRotation(
|
|
25923
|
+
annotationId: string,
|
|
25924
|
+
annotationThumbnailId: string,
|
|
25925
|
+
verticalFov: number,
|
|
25926
|
+
authorCameraPosition: Common.Vector3,
|
|
25927
|
+
authorCameraRotation: Common.Vector4,
|
|
25928
|
+
): AnnotationData {
|
|
25929
|
+
var _ptr = Module._malloc(8);
|
|
25930
|
+
Module.ccall(
|
|
25931
|
+
"csp_multiplayer_AnnotationData_Ctor_StringRC_StringRC_uint16_tC_Vector3RC_Vector4RC",
|
|
25932
|
+
"void",
|
|
25933
|
+
["number", "string", "string", "number", "number", "number"],
|
|
25934
|
+
[
|
|
25935
|
+
_ptr,
|
|
25936
|
+
annotationId,
|
|
25937
|
+
annotationThumbnailId,
|
|
25938
|
+
verticalFov,
|
|
25939
|
+
authorCameraPosition.pointer,
|
|
25940
|
+
authorCameraRotation.pointer,
|
|
25941
|
+
],
|
|
25942
|
+
);
|
|
25943
|
+
var _nPtr = getNativePointer(_ptr);
|
|
25944
|
+
|
|
25945
|
+
return new AnnotationData(_nPtr);
|
|
25946
|
+
}
|
|
25947
|
+
|
|
25948
|
+
static create_annotationData(
|
|
25949
|
+
annotationData: Multiplayer.AnnotationData,
|
|
25950
|
+
): AnnotationData {
|
|
25951
|
+
var _ptr = Module._malloc(8);
|
|
25952
|
+
Module.ccall(
|
|
25953
|
+
"csp_multiplayer_AnnotationData_Ctor_AnnotationDataRC",
|
|
25954
|
+
"void",
|
|
25955
|
+
["number", "number"],
|
|
25956
|
+
[_ptr, annotationData.pointer],
|
|
25957
|
+
);
|
|
25958
|
+
var _nPtr = getNativePointer(_ptr);
|
|
25959
|
+
|
|
25960
|
+
return new AnnotationData(_nPtr);
|
|
25961
|
+
}
|
|
25962
|
+
|
|
25963
|
+
/**
|
|
25964
|
+
* @description Get the annotation id
|
|
25965
|
+
* @return Csp::common::string
|
|
25966
|
+
*/
|
|
25967
|
+
|
|
25968
|
+
getAnnotationId(): string {
|
|
25969
|
+
let _result = Module.ccall(
|
|
25970
|
+
"csp_multiplayer_AnnotationData_GetAnnotationIdC_String",
|
|
25971
|
+
"number",
|
|
25972
|
+
["number"],
|
|
25973
|
+
[this.pointer],
|
|
25974
|
+
);
|
|
25975
|
+
|
|
25976
|
+
const _resultString = Module.UTF8ToString(_result);
|
|
25977
|
+
free(_result);
|
|
25978
|
+
|
|
25979
|
+
_result = _resultString;
|
|
25980
|
+
|
|
25981
|
+
return _result;
|
|
25982
|
+
}
|
|
25983
|
+
|
|
25984
|
+
/**
|
|
25985
|
+
* @description Get the annotation collection id
|
|
25986
|
+
* @return Csp::common::string
|
|
25987
|
+
*/
|
|
25988
|
+
|
|
25989
|
+
getAnnotationThumbnailId(): string {
|
|
25990
|
+
let _result = Module.ccall(
|
|
25991
|
+
"csp_multiplayer_AnnotationData_GetAnnotationThumbnailIdC_String",
|
|
25992
|
+
"number",
|
|
25993
|
+
["number"],
|
|
25994
|
+
[this.pointer],
|
|
25995
|
+
);
|
|
25996
|
+
|
|
25997
|
+
const _resultString = Module.UTF8ToString(_result);
|
|
25998
|
+
free(_result);
|
|
25999
|
+
|
|
26000
|
+
_result = _resultString;
|
|
26001
|
+
|
|
26002
|
+
return _result;
|
|
26003
|
+
}
|
|
26004
|
+
|
|
26005
|
+
/**
|
|
26006
|
+
* @description Get the vertical FOV
|
|
26007
|
+
* @return A uint16_t representing the vertical fov
|
|
26008
|
+
*/
|
|
26009
|
+
|
|
26010
|
+
getVerticalFov(): number {
|
|
26011
|
+
let _result = Module.ccall(
|
|
26012
|
+
"csp_multiplayer_AnnotationData_GetVerticalFovC_uint16_t",
|
|
26013
|
+
"number",
|
|
26014
|
+
["number"],
|
|
26015
|
+
[this.pointer],
|
|
26016
|
+
);
|
|
26017
|
+
|
|
26018
|
+
const _unfixedValue = _result;
|
|
26019
|
+
let _fixedValue =
|
|
26020
|
+
_unfixedValue < 0 ? _unfixedValue + 2 ** 16 : _unfixedValue;
|
|
26021
|
+
_result = _fixedValue;
|
|
26022
|
+
|
|
26023
|
+
return _result;
|
|
26024
|
+
}
|
|
26025
|
+
|
|
26026
|
+
/**
|
|
26027
|
+
* @description Get the AuthorCameraPosition
|
|
26028
|
+
* @return A vector3 representing the authorcameraposition
|
|
26029
|
+
*/
|
|
26030
|
+
|
|
26031
|
+
getAuthorCameraPosition(): Common.Vector3 {
|
|
26032
|
+
var _ret = Module._malloc(8);
|
|
26033
|
+
|
|
26034
|
+
Module.ccall(
|
|
26035
|
+
"csp_multiplayer_AnnotationData_GetAuthorCameraPositionC_Vector3",
|
|
26036
|
+
"void",
|
|
26037
|
+
["number", "number"],
|
|
26038
|
+
[_ret, this.pointer],
|
|
26039
|
+
);
|
|
26040
|
+
var _nPtr = new Common.Vector3(getNativePointer(_ret));
|
|
26041
|
+
Module._free(_ret);
|
|
26042
|
+
return _nPtr;
|
|
26043
|
+
}
|
|
26044
|
+
|
|
26045
|
+
/**
|
|
26046
|
+
* @description Get the AuthorCameraRotation
|
|
26047
|
+
* @return A vector4 representing the authorcamerarotation
|
|
26048
|
+
*/
|
|
26049
|
+
|
|
26050
|
+
getAuthorCameraRotation(): Common.Vector4 {
|
|
26051
|
+
var _ret = Module._malloc(8);
|
|
26052
|
+
|
|
26053
|
+
Module.ccall(
|
|
26054
|
+
"csp_multiplayer_AnnotationData_GetAuthorCameraRotationC_Vector4",
|
|
26055
|
+
"void",
|
|
26056
|
+
["number", "number"],
|
|
26057
|
+
[_ret, this.pointer],
|
|
26058
|
+
);
|
|
26059
|
+
var _nPtr = new Common.Vector4(getNativePointer(_ret));
|
|
26060
|
+
Module._free(_ret);
|
|
26061
|
+
return _nPtr;
|
|
26062
|
+
}
|
|
26063
|
+
|
|
26064
|
+
/**
|
|
26065
|
+
* @description Set the annotation id
|
|
26066
|
+
* @param id - Const csp::common::string& id
|
|
26067
|
+
*/
|
|
26068
|
+
|
|
26069
|
+
setAnnotationId(id: string): void {
|
|
26070
|
+
Module.ccall(
|
|
26071
|
+
"csp_multiplayer_AnnotationData_SetAnnotationId_void_StringRC",
|
|
26072
|
+
"void",
|
|
26073
|
+
["number", "string"],
|
|
26074
|
+
[this.pointer, id],
|
|
26075
|
+
);
|
|
26076
|
+
}
|
|
26077
|
+
|
|
26078
|
+
/**
|
|
26079
|
+
* @description Set the annotation collection id
|
|
26080
|
+
* @param id - Const csp::common::string& id
|
|
26081
|
+
*/
|
|
26082
|
+
|
|
26083
|
+
setAnnotationThumbnailId(id: string): void {
|
|
26084
|
+
Module.ccall(
|
|
26085
|
+
"csp_multiplayer_AnnotationData_SetAnnotationThumbnailId_void_StringRC",
|
|
26086
|
+
"void",
|
|
26087
|
+
["number", "string"],
|
|
26088
|
+
[this.pointer, id],
|
|
26089
|
+
);
|
|
26090
|
+
}
|
|
26091
|
+
|
|
26092
|
+
/**
|
|
26093
|
+
* @description Set the VerticalFov
|
|
26094
|
+
* @param inVerticalFo - InVerticalFov
|
|
26095
|
+
*/
|
|
26096
|
+
|
|
26097
|
+
setVerticalFov(verticalFov: number): void {
|
|
26098
|
+
assert(Number.isInteger(verticalFov));
|
|
26099
|
+
assert(verticalFov >= Limits.UINT16_MIN);
|
|
26100
|
+
assert(verticalFov <= Limits.UINT16_MAX);
|
|
26101
|
+
|
|
26102
|
+
Module.ccall(
|
|
26103
|
+
"csp_multiplayer_AnnotationData_SetVerticalFov_void_uint16_tC",
|
|
26104
|
+
"void",
|
|
26105
|
+
["number", "number"],
|
|
26106
|
+
[this.pointer, verticalFov],
|
|
26107
|
+
);
|
|
26108
|
+
}
|
|
26109
|
+
|
|
26110
|
+
/**
|
|
26111
|
+
* @description Set the AuthorCameraPosition
|
|
26112
|
+
* @param inAuthorCameraPositio - InAuthorCameraPosition
|
|
26113
|
+
*/
|
|
26114
|
+
|
|
26115
|
+
setAuthorCameraPosition(authorCameraPosition: Common.Vector3): void {
|
|
26116
|
+
Module.ccall(
|
|
26117
|
+
"csp_multiplayer_AnnotationData_SetAuthorCameraPosition_void_Vector3RC",
|
|
26118
|
+
"void",
|
|
26119
|
+
["number", "number"],
|
|
26120
|
+
[this.pointer, authorCameraPosition.pointer],
|
|
26121
|
+
);
|
|
26122
|
+
}
|
|
26123
|
+
|
|
26124
|
+
/**
|
|
26125
|
+
* @description Set the AuthorCameraRotation
|
|
26126
|
+
* @param inAuthorCameraRotatio - InAuthorCameraRotation
|
|
26127
|
+
*/
|
|
26128
|
+
|
|
26129
|
+
setAuthorCameraRotation(authorCameraRotation: Common.Vector4): void {
|
|
26130
|
+
Module.ccall(
|
|
26131
|
+
"csp_multiplayer_AnnotationData_SetAuthorCameraRotation_void_Vector4RC",
|
|
26132
|
+
"void",
|
|
26133
|
+
["number", "number"],
|
|
26134
|
+
[this.pointer, authorCameraRotation.pointer],
|
|
26135
|
+
);
|
|
26136
|
+
}
|
|
26137
|
+
|
|
26138
|
+
delete(): void {
|
|
26139
|
+
if (this.ownsPointer && !this.disposed) {
|
|
26140
|
+
Module.ccall(
|
|
26141
|
+
"csp_multiplayer_AnnotationData_Dtor",
|
|
26142
|
+
"void",
|
|
26143
|
+
["number"],
|
|
26144
|
+
[this.pointer],
|
|
26145
|
+
);
|
|
26146
|
+
|
|
26147
|
+
this.disposed = true;
|
|
26148
|
+
}
|
|
26149
|
+
}
|
|
26150
|
+
}
|
|
26151
|
+
}
|
|
26152
|
+
|
|
25560
26153
|
export namespace Multiplayer {
|
|
25561
26154
|
/**
|
|
25562
26155
|
* @description Manages the script attached to an Entity.
|
|
@@ -36819,8 +37412,10 @@ export namespace Multiplayer {
|
|
|
36819
37412
|
}
|
|
36820
37413
|
|
|
36821
37414
|
/**
|
|
36822
|
-
* @description Constructs the conversation component, and associates it with the specified Parent space entity.
|
|
36823
|
-
*
|
|
37415
|
+
* @description Constructs the conversation component, and associates it with the specified Parent space entity.
|
|
37416
|
+
* This constructor should not be called directly. Instead, use the SpaceEntity::AddComponent function.
|
|
37417
|
+
* @param parent - The Space entity that owns this component. This will also register the component to the entity.
|
|
37418
|
+
@pre Parent must not be null.
|
|
36824
37419
|
*/
|
|
36825
37420
|
static create_parent(
|
|
36826
37421
|
parent: Multiplayer.SpaceEntity,
|
|
@@ -36838,9 +37433,13 @@ export namespace Multiplayer {
|
|
|
36838
37433
|
}
|
|
36839
37434
|
|
|
36840
37435
|
/**
|
|
36841
|
-
* @description
|
|
37436
|
+
* @description Creates a conversation represented by this component.
|
|
36842
37437
|
* @param message - The message to be stored.
|
|
36843
|
-
* @param callback - Callback when asynchronous task finishes
|
|
37438
|
+
* @param callback - Callback when asynchronous task finishes.
|
|
37439
|
+
@pre The conversation must not already exist (component must not have a conversation id that isn't an empty string).
|
|
37440
|
+
* A CSP error will be sent to the LogSystem if this condition is not met, with a EResultCode::Failed response.
|
|
37441
|
+
@post The ConversationId property is now internally set when the callback is fired.
|
|
37442
|
+
* This component should now be replicated, so other clients receive the update.
|
|
36844
37443
|
*/
|
|
36845
37444
|
|
|
36846
37445
|
async createConversation(message: string): Promise<Systems.StringResult> {
|
|
@@ -36877,8 +37476,10 @@ export namespace Multiplayer {
|
|
|
36877
37476
|
}
|
|
36878
37477
|
|
|
36879
37478
|
/**
|
|
36880
|
-
* @description Deletes all
|
|
37479
|
+
* @description Deletes this conversation, including all of its messages. This function is called internally when the component is deleted.
|
|
36881
37480
|
* @param callback - Callback when asynchronous task finishes
|
|
37481
|
+
@pre This component must contain a valid conversation id (component must have a conversation id that isn't an empty string).
|
|
37482
|
+
* A CSP error will be sent to the LogSystem if this condition is not met, with a EResultCode::Failed response.
|
|
36882
37483
|
*/
|
|
36883
37484
|
|
|
36884
37485
|
async deleteConversation(): Promise<Systems.NullResult> {
|
|
@@ -36915,10 +37516,11 @@ export namespace Multiplayer {
|
|
|
36915
37516
|
}
|
|
36916
37517
|
|
|
36917
37518
|
/**
|
|
36918
|
-
* @description Adds a message to conversation
|
|
36919
|
-
* Make sure that the user has entered a space through SpaceSystem::EnterSpace() before calling this.
|
|
37519
|
+
* @description Adds a message to the conversation.
|
|
36920
37520
|
* @param message - The message to be stored.
|
|
36921
|
-
* @param callback - Callback when asynchronous task finishes
|
|
37521
|
+
* @param callback - Callback when asynchronous task finishes.
|
|
37522
|
+
@pre This component must contain a valid conversation id (component must have a conversation id that isn't an empty string).
|
|
37523
|
+
* A CSP error will be sent to the LogSystem if this condition is not met, with a EResultCode::Failed response.
|
|
36922
37524
|
*/
|
|
36923
37525
|
|
|
36924
37526
|
async addMessage(message: string): Promise<Multiplayer.MessageResult> {
|
|
@@ -36955,9 +37557,15 @@ export namespace Multiplayer {
|
|
|
36955
37557
|
}
|
|
36956
37558
|
|
|
36957
37559
|
/**
|
|
36958
|
-
* @description Deletes a particular message
|
|
36959
|
-
* @param messageId -
|
|
36960
|
-
*
|
|
37560
|
+
* @description Deletes a particular message.
|
|
37561
|
+
* @param messageId - Id of the message to delete.
|
|
37562
|
+
* The id can be retreived from the result callback when the message was added.
|
|
37563
|
+
* @param callback - Callback when asynchronous task finishes.
|
|
37564
|
+
@pre This component must contain a valid conversation id (component must have a conversation id that isn't an empty string).
|
|
37565
|
+
* A CSP error will be sent to the LogSystem if this condition is not met, with a EResultCode::Failed response.
|
|
37566
|
+
@pre Client should be logged in with the same user account that created the message (ClientId of the message should match the current logged
|
|
37567
|
+
* in user).
|
|
37568
|
+
* A CSP error will be sent to the LogSystem if this condition is not met, with a EResultCode::Failed response.
|
|
36961
37569
|
*/
|
|
36962
37570
|
|
|
36963
37571
|
async deleteMessage(messageId: string): Promise<Systems.NullResult> {
|
|
@@ -36994,12 +37602,178 @@ export namespace Multiplayer {
|
|
|
36994
37602
|
}
|
|
36995
37603
|
|
|
36996
37604
|
/**
|
|
36997
|
-
* @description Retrieves
|
|
36998
|
-
*
|
|
36999
|
-
* @param
|
|
37605
|
+
* @description Retrieves message details that are represented by this component.
|
|
37606
|
+
* This doesn't include the original message that created the conversation.
|
|
37607
|
+
* @param resultsSkipNumber - Optional parameter representing the number of result entries that will be skipped
|
|
37608
|
+
* from the result. For no skip pass an empty optional.
|
|
37609
|
+
* @param resultsMaxNumber - Optional parameter representing the maximum number of result entries to be
|
|
37610
|
+
* retrieved. For all available result entries pass an empty optional.
|
|
37611
|
+
* @param callback - Callback when asynchronous task finishes.
|
|
37612
|
+
@pre This component must contain a valid conversation id (component must have a conversation id that isn't an empty string).
|
|
37613
|
+
* A CSP error will be sent to the LogSystem if this condition is not met, with a EResultCode::Failed response.
|
|
37614
|
+
*/
|
|
37615
|
+
|
|
37616
|
+
async getMessagesFromConversation(
|
|
37617
|
+
resultsSkipNumber: number | null,
|
|
37618
|
+
resultsMaxNumber: number | null,
|
|
37619
|
+
): Promise<Multiplayer.MessageCollectionResult> {
|
|
37620
|
+
var _resolve;
|
|
37621
|
+
|
|
37622
|
+
var _promise = new Promise<Multiplayer.MessageCollectionResult>((_r) => {
|
|
37623
|
+
_resolve = _r;
|
|
37624
|
+
});
|
|
37625
|
+
|
|
37626
|
+
var _callbackPtr: number;
|
|
37627
|
+
var _callback = (_stateObject__: number, result) => {
|
|
37628
|
+
var _resultPtr = getNativePointer(result);
|
|
37629
|
+
var _resultInstance = new Multiplayer.MessageCollectionResult(
|
|
37630
|
+
_resultPtr,
|
|
37631
|
+
);
|
|
37632
|
+
|
|
37633
|
+
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
37634
|
+
return;
|
|
37635
|
+
}
|
|
37636
|
+
|
|
37637
|
+
_resolve(_resultInstance);
|
|
37638
|
+
|
|
37639
|
+
Module.removeFunction(_callbackPtr);
|
|
37640
|
+
};
|
|
37641
|
+
|
|
37642
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
37643
|
+
|
|
37644
|
+
var resultsSkipNumberPointer = 0;
|
|
37645
|
+
if (resultsSkipNumber != null) {
|
|
37646
|
+
resultsSkipNumberPointer = Module._malloc(4);
|
|
37647
|
+
Module.setValue(resultsSkipNumberPointer, resultsSkipNumber, "i32");
|
|
37648
|
+
}
|
|
37649
|
+
|
|
37650
|
+
var resultsMaxNumberPointer = 0;
|
|
37651
|
+
if (resultsMaxNumber != null) {
|
|
37652
|
+
resultsMaxNumberPointer = Module._malloc(4);
|
|
37653
|
+
Module.setValue(resultsMaxNumberPointer, resultsMaxNumber, "i32");
|
|
37654
|
+
}
|
|
37655
|
+
|
|
37656
|
+
Module.ccall(
|
|
37657
|
+
"csp_multiplayer_ConversationSpaceComponent_GetMessagesFromConversation_void_intRC_intRC_MessageCollectionResultCallback",
|
|
37658
|
+
"void",
|
|
37659
|
+
["number", "number", "number", "number", "number"],
|
|
37660
|
+
[
|
|
37661
|
+
this.pointer,
|
|
37662
|
+
resultsSkipNumberPointer,
|
|
37663
|
+
resultsMaxNumberPointer,
|
|
37664
|
+
_callbackPtr,
|
|
37665
|
+
0,
|
|
37666
|
+
],
|
|
37667
|
+
);
|
|
37668
|
+
|
|
37669
|
+
if (resultsSkipNumberPointer) {
|
|
37670
|
+
Module._free(resultsSkipNumberPointer);
|
|
37671
|
+
}
|
|
37672
|
+
if (resultsMaxNumberPointer) {
|
|
37673
|
+
Module._free(resultsMaxNumberPointer);
|
|
37674
|
+
}
|
|
37675
|
+
|
|
37676
|
+
return _promise;
|
|
37677
|
+
}
|
|
37678
|
+
|
|
37679
|
+
/**
|
|
37680
|
+
* @description Retrieves message details for the root message in the conversation.
|
|
37681
|
+
* @param callback - Callback when asynchronous task finishes.
|
|
37682
|
+
@pre This component must contain a valid conversation id (component must have a conversation id that isn't an empty string).
|
|
37683
|
+
* A CSP error will be sent to the LogSystem if this condition is not met, with a EResultCode::Failed response.
|
|
37684
|
+
*/
|
|
37685
|
+
|
|
37686
|
+
async getConversationInfo(): Promise<Multiplayer.ConversationResult> {
|
|
37687
|
+
var _resolve;
|
|
37688
|
+
|
|
37689
|
+
var _promise = new Promise<Multiplayer.ConversationResult>((_r) => {
|
|
37690
|
+
_resolve = _r;
|
|
37691
|
+
});
|
|
37692
|
+
|
|
37693
|
+
var _callbackPtr: number;
|
|
37694
|
+
var _callback = (_stateObject__: number, result) => {
|
|
37695
|
+
var _resultPtr = getNativePointer(result);
|
|
37696
|
+
var _resultInstance = new Multiplayer.ConversationResult(_resultPtr);
|
|
37697
|
+
|
|
37698
|
+
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
37699
|
+
return;
|
|
37700
|
+
}
|
|
37701
|
+
|
|
37702
|
+
_resolve(_resultInstance);
|
|
37703
|
+
|
|
37704
|
+
Module.removeFunction(_callbackPtr);
|
|
37705
|
+
};
|
|
37706
|
+
|
|
37707
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
37708
|
+
|
|
37709
|
+
Module.ccall(
|
|
37710
|
+
"csp_multiplayer_ConversationSpaceComponent_GetConversationInfo_void_ConversationResultCallback",
|
|
37711
|
+
"void",
|
|
37712
|
+
["number", "number", "number"],
|
|
37713
|
+
[this.pointer, _callbackPtr, 0],
|
|
37714
|
+
);
|
|
37715
|
+
|
|
37716
|
+
return _promise;
|
|
37717
|
+
}
|
|
37718
|
+
|
|
37719
|
+
/**
|
|
37720
|
+
* @description Updates information for the root message in the conversation.
|
|
37721
|
+
* @param newData - The information to update the root message with.
|
|
37722
|
+
* @param callback - Callback when asynchronous task finishes.
|
|
37723
|
+
@pre This component must contain a valid conversation id (component must have a conversation id that isn't an empty string).
|
|
37724
|
+
* A CSP error will be sent to the LogSystem if this condition is not met, with a EResultCode::Failed response.
|
|
37725
|
+
@pre Client should be logged in with the same user account that created the message (ClientId of the message should match the current logged
|
|
37726
|
+
* in user).
|
|
37727
|
+
* A CSP error will be sent to the LogSystem if this condition is not met, with a EResultCode::Failed response.
|
|
37000
37728
|
*/
|
|
37001
37729
|
|
|
37002
|
-
async
|
|
37730
|
+
async updateConversation(
|
|
37731
|
+
newData: Multiplayer.MessageUpdateParams,
|
|
37732
|
+
): Promise<Multiplayer.ConversationResult> {
|
|
37733
|
+
var _resolve;
|
|
37734
|
+
|
|
37735
|
+
var _promise = new Promise<Multiplayer.ConversationResult>((_r) => {
|
|
37736
|
+
_resolve = _r;
|
|
37737
|
+
});
|
|
37738
|
+
|
|
37739
|
+
var _callbackPtr: number;
|
|
37740
|
+
var _callback = (_stateObject__: number, result) => {
|
|
37741
|
+
var _resultPtr = getNativePointer(result);
|
|
37742
|
+
var _resultInstance = new Multiplayer.ConversationResult(_resultPtr);
|
|
37743
|
+
|
|
37744
|
+
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
37745
|
+
return;
|
|
37746
|
+
}
|
|
37747
|
+
|
|
37748
|
+
_resolve(_resultInstance);
|
|
37749
|
+
|
|
37750
|
+
Module.removeFunction(_callbackPtr);
|
|
37751
|
+
};
|
|
37752
|
+
|
|
37753
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
37754
|
+
|
|
37755
|
+
Module.ccall(
|
|
37756
|
+
"csp_multiplayer_ConversationSpaceComponent_UpdateConversation_void_MessageUpdateParamsRC_ConversationResultCallback",
|
|
37757
|
+
"void",
|
|
37758
|
+
["number", "number", "number", "number"],
|
|
37759
|
+
[this.pointer, newData.pointer, _callbackPtr, 0],
|
|
37760
|
+
);
|
|
37761
|
+
|
|
37762
|
+
return _promise;
|
|
37763
|
+
}
|
|
37764
|
+
|
|
37765
|
+
/**
|
|
37766
|
+
* @description Retrieves message details for a specified message in this conversation.
|
|
37767
|
+
* @param messageId - The message id to retrieve information for.
|
|
37768
|
+
* The id can be retreived from the result callback when the message was added.
|
|
37769
|
+
* @param callback - Callback when asynchronous task finishes.
|
|
37770
|
+
@pre This component must contain a valid conversation id (component must have a conversation id that isn't an empty string).
|
|
37771
|
+
* A CSP error will be sent to the LogSystem if this condition is not met, with a EResultCode::Failed response.
|
|
37772
|
+
*/
|
|
37773
|
+
|
|
37774
|
+
async getMessageInfo(
|
|
37775
|
+
messageId: string,
|
|
37776
|
+
): Promise<Multiplayer.MessageResult> {
|
|
37003
37777
|
var _resolve;
|
|
37004
37778
|
|
|
37005
37779
|
var _promise = new Promise<Multiplayer.MessageResult>((_r) => {
|
|
@@ -37023,7 +37797,7 @@ export namespace Multiplayer {
|
|
|
37023
37797
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
37024
37798
|
|
|
37025
37799
|
Module.ccall(
|
|
37026
|
-
"
|
|
37800
|
+
"csp_multiplayer_ConversationSpaceComponent_GetMessageInfo_void_StringRC_MessageResultCallback",
|
|
37027
37801
|
"void",
|
|
37028
37802
|
["number", "string", "number", "number"],
|
|
37029
37803
|
[this.pointer, messageId, _callbackPtr, 0],
|
|
@@ -37033,23 +37807,72 @@ export namespace Multiplayer {
|
|
|
37033
37807
|
}
|
|
37034
37808
|
|
|
37035
37809
|
/**
|
|
37036
|
-
* @description
|
|
37037
|
-
* @param
|
|
37810
|
+
* @description Updates information for a specified message in the conversation.
|
|
37811
|
+
* @param messageId - The message id to update information for.
|
|
37812
|
+
* The id can be retreived from the result callback when the message was added.
|
|
37813
|
+
* @param newData - The information to update the specified message with.
|
|
37814
|
+
* @param callback - Callback when asynchronous task finishes.
|
|
37815
|
+
@pre This component must contain a valid conversation id (component must have a conversation id that isn't an empty string).
|
|
37816
|
+
* A CSP error will be sent to the LogSystem if this condition is not met, with a EResultCode::Failed response.
|
|
37817
|
+
@pre Client should be logged in with the same user account that created the message (ClientId of the message should match the current logged
|
|
37818
|
+
* in user).
|
|
37819
|
+
* A CSP error will be sent to the LogSystem if this condition is not met, with a EResultCode::Failed response.
|
|
37038
37820
|
*/
|
|
37039
37821
|
|
|
37040
|
-
async
|
|
37822
|
+
async updateMessage(
|
|
37823
|
+
messageId: string,
|
|
37824
|
+
newData: Multiplayer.MessageUpdateParams,
|
|
37825
|
+
): Promise<Multiplayer.MessageResult> {
|
|
37041
37826
|
var _resolve;
|
|
37042
37827
|
|
|
37043
|
-
var _promise = new Promise<Multiplayer.
|
|
37828
|
+
var _promise = new Promise<Multiplayer.MessageResult>((_r) => {
|
|
37044
37829
|
_resolve = _r;
|
|
37045
37830
|
});
|
|
37046
37831
|
|
|
37047
37832
|
var _callbackPtr: number;
|
|
37048
37833
|
var _callback = (_stateObject__: number, result) => {
|
|
37049
37834
|
var _resultPtr = getNativePointer(result);
|
|
37050
|
-
var _resultInstance = new Multiplayer.
|
|
37051
|
-
|
|
37052
|
-
)
|
|
37835
|
+
var _resultInstance = new Multiplayer.MessageResult(_resultPtr);
|
|
37836
|
+
|
|
37837
|
+
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
37838
|
+
return;
|
|
37839
|
+
}
|
|
37840
|
+
|
|
37841
|
+
_resolve(_resultInstance);
|
|
37842
|
+
|
|
37843
|
+
Module.removeFunction(_callbackPtr);
|
|
37844
|
+
};
|
|
37845
|
+
|
|
37846
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
37847
|
+
|
|
37848
|
+
Module.ccall(
|
|
37849
|
+
"csp_multiplayer_ConversationSpaceComponent_UpdateMessage_void_StringRC_MessageUpdateParamsRC_MessageResultCallback",
|
|
37850
|
+
"void",
|
|
37851
|
+
["number", "string", "number", "number", "number"],
|
|
37852
|
+
[this.pointer, messageId, newData.pointer, _callbackPtr, 0],
|
|
37853
|
+
);
|
|
37854
|
+
|
|
37855
|
+
return _promise;
|
|
37856
|
+
}
|
|
37857
|
+
|
|
37858
|
+
/**
|
|
37859
|
+
* @description Gets the Number Of Replies in the conversation.
|
|
37860
|
+
* @param callback - Callback when asynchronous task finishes.
|
|
37861
|
+
@pre This component must contain a valid conversation id (component must have a conversation id that isn't an empty string).
|
|
37862
|
+
* A CSP error will be sent to the LogSystem if this condition is not met, with a EResultCode::Failed response.
|
|
37863
|
+
*/
|
|
37864
|
+
|
|
37865
|
+
async getNumberOfReplies(): Promise<Multiplayer.NumberOfRepliesResult> {
|
|
37866
|
+
var _resolve;
|
|
37867
|
+
|
|
37868
|
+
var _promise = new Promise<Multiplayer.NumberOfRepliesResult>((_r) => {
|
|
37869
|
+
_resolve = _r;
|
|
37870
|
+
});
|
|
37871
|
+
|
|
37872
|
+
var _callbackPtr: number;
|
|
37873
|
+
var _callback = (_stateObject__: number, result) => {
|
|
37874
|
+
var _resultPtr = getNativePointer(result);
|
|
37875
|
+
var _resultInstance = new Multiplayer.NumberOfRepliesResult(_resultPtr);
|
|
37053
37876
|
|
|
37054
37877
|
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
37055
37878
|
return;
|
|
@@ -37063,7 +37886,7 @@ export namespace Multiplayer {
|
|
|
37063
37886
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
37064
37887
|
|
|
37065
37888
|
Module.ccall(
|
|
37066
|
-
"
|
|
37889
|
+
"csp_multiplayer_ConversationSpaceComponent_GetNumberOfReplies_void_NumberOfRepliesResultCallback",
|
|
37067
37890
|
"void",
|
|
37068
37891
|
["number", "number", "number"],
|
|
37069
37892
|
[this.pointer, _callbackPtr, 0],
|
|
@@ -37073,21 +37896,25 @@ export namespace Multiplayer {
|
|
|
37073
37896
|
}
|
|
37074
37897
|
|
|
37075
37898
|
/**
|
|
37076
|
-
* @description
|
|
37077
|
-
* @param callback - Callback when asynchronous task finishes
|
|
37899
|
+
* @description Gets the annotation for the root message in the conversation.
|
|
37900
|
+
* @param callback - Callback when asynchronous task finishes.
|
|
37901
|
+
@pre This component must contain a valid conversation id (component must have a conversation id that isn't an empty string).
|
|
37902
|
+
* A CSP error will be sent to the LogSystem if this condition is not met, with a EResultCode::Failed response.
|
|
37903
|
+
@pre The conversation must have an annotation previously attached using SetConversationAnnotation.
|
|
37904
|
+
* A CSP error will be sent to the LogSystem if this condition is not met, with a EResultCode::Failed response.
|
|
37078
37905
|
*/
|
|
37079
37906
|
|
|
37080
|
-
async
|
|
37907
|
+
async getConversationAnnotation(): Promise<Multiplayer.AnnotationResult> {
|
|
37081
37908
|
var _resolve;
|
|
37082
37909
|
|
|
37083
|
-
var _promise = new Promise<Multiplayer.
|
|
37910
|
+
var _promise = new Promise<Multiplayer.AnnotationResult>((_r) => {
|
|
37084
37911
|
_resolve = _r;
|
|
37085
37912
|
});
|
|
37086
37913
|
|
|
37087
37914
|
var _callbackPtr: number;
|
|
37088
37915
|
var _callback = (_stateObject__: number, result) => {
|
|
37089
37916
|
var _resultPtr = getNativePointer(result);
|
|
37090
|
-
var _resultInstance = new Multiplayer.
|
|
37917
|
+
var _resultInstance = new Multiplayer.AnnotationResult(_resultPtr);
|
|
37091
37918
|
|
|
37092
37919
|
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
37093
37920
|
return;
|
|
@@ -37101,7 +37928,7 @@ export namespace Multiplayer {
|
|
|
37101
37928
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
37102
37929
|
|
|
37103
37930
|
Module.ccall(
|
|
37104
|
-
"
|
|
37931
|
+
"csp_multiplayer_ConversationSpaceComponent_GetConversationAnnotation_void_AnnotationResultCallback",
|
|
37105
37932
|
"void",
|
|
37106
37933
|
["number", "number", "number"],
|
|
37107
37934
|
[this.pointer, _callbackPtr, 0],
|
|
@@ -37111,24 +37938,31 @@ export namespace Multiplayer {
|
|
|
37111
37938
|
}
|
|
37112
37939
|
|
|
37113
37940
|
/**
|
|
37114
|
-
* @description
|
|
37115
|
-
*
|
|
37116
|
-
* @param
|
|
37941
|
+
* @description Associates an annotation with the root message in the conversation.
|
|
37942
|
+
* If an annotation already exists on the conversation, it will be overwritten.
|
|
37943
|
+
* @param updateParams - The annotation data for this annotation.
|
|
37944
|
+
* @param annotation - The annotation image data for this annotation.
|
|
37945
|
+
* @param annotationThumbnail - The annotation thumbnail image data for this annotation.
|
|
37946
|
+
* @param callback - Callback when asynchronous task finishes.
|
|
37947
|
+
@pre This component must contain a valid conversation id (component must have a conversation id that isn't an empty string).
|
|
37948
|
+
* A CSP error will be sent to the LogSystem if this condition is not met, with a EResultCode::Failed response.
|
|
37117
37949
|
*/
|
|
37118
37950
|
|
|
37119
|
-
async
|
|
37120
|
-
|
|
37121
|
-
|
|
37951
|
+
async setConversationAnnotation(
|
|
37952
|
+
annotationParams: Multiplayer.AnnotationUpdateParams,
|
|
37953
|
+
annotation: Systems.BufferAssetDataSource,
|
|
37954
|
+
annotationThumbnail: Systems.BufferAssetDataSource,
|
|
37955
|
+
): Promise<Multiplayer.AnnotationResult> {
|
|
37122
37956
|
var _resolve;
|
|
37123
37957
|
|
|
37124
|
-
var _promise = new Promise<Multiplayer.
|
|
37958
|
+
var _promise = new Promise<Multiplayer.AnnotationResult>((_r) => {
|
|
37125
37959
|
_resolve = _r;
|
|
37126
37960
|
});
|
|
37127
37961
|
|
|
37128
37962
|
var _callbackPtr: number;
|
|
37129
37963
|
var _callback = (_stateObject__: number, result) => {
|
|
37130
37964
|
var _resultPtr = getNativePointer(result);
|
|
37131
|
-
var _resultInstance = new Multiplayer.
|
|
37965
|
+
var _resultInstance = new Multiplayer.AnnotationResult(_resultPtr);
|
|
37132
37966
|
|
|
37133
37967
|
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
37134
37968
|
return;
|
|
@@ -37142,34 +37976,86 @@ export namespace Multiplayer {
|
|
|
37142
37976
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
37143
37977
|
|
|
37144
37978
|
Module.ccall(
|
|
37145
|
-
"
|
|
37979
|
+
"csp_multiplayer_ConversationSpaceComponent_SetConversationAnnotation_void_AnnotationUpdateParamsRC_BufferAssetDataSourceRC_BufferAssetDataSourceRC_AnnotationResultCallback",
|
|
37146
37980
|
"void",
|
|
37147
|
-
["number", "number", "number", "number"],
|
|
37148
|
-
[
|
|
37981
|
+
["number", "number", "number", "number", "number", "number"],
|
|
37982
|
+
[
|
|
37983
|
+
this.pointer,
|
|
37984
|
+
annotationParams.pointer,
|
|
37985
|
+
annotation.pointer,
|
|
37986
|
+
annotationThumbnail.pointer,
|
|
37987
|
+
_callbackPtr,
|
|
37988
|
+
0,
|
|
37989
|
+
],
|
|
37149
37990
|
);
|
|
37150
37991
|
|
|
37151
37992
|
return _promise;
|
|
37152
37993
|
}
|
|
37153
37994
|
|
|
37154
37995
|
/**
|
|
37155
|
-
* @description
|
|
37156
|
-
* @param
|
|
37157
|
-
|
|
37996
|
+
* @description Deletes an annotation associated with the root message in the conversation.
|
|
37997
|
+
* @param callback - Callback when asynchronous task finishes.
|
|
37998
|
+
@pre This component must contain a valid conversation id (component must have a conversation id that isn't an empty string).
|
|
37999
|
+
* A CSP error will be sent to the LogSystem if this condition is not met, with a EResultCode::Failed response. if this condition is not met,
|
|
38000
|
+
* with a EResultCode::Failed response.
|
|
37158
38001
|
*/
|
|
37159
38002
|
|
|
37160
|
-
async
|
|
38003
|
+
async deleteConversationAnnotation(): Promise<Systems.NullResult> {
|
|
38004
|
+
var _resolve;
|
|
38005
|
+
|
|
38006
|
+
var _promise = new Promise<Systems.NullResult>((_r) => {
|
|
38007
|
+
_resolve = _r;
|
|
38008
|
+
});
|
|
38009
|
+
|
|
38010
|
+
var _callbackPtr: number;
|
|
38011
|
+
var _callback = (_stateObject__: number, result) => {
|
|
38012
|
+
var _resultPtr = getNativePointer(result);
|
|
38013
|
+
var _resultInstance = new Systems.NullResult(_resultPtr);
|
|
38014
|
+
|
|
38015
|
+
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
38016
|
+
return;
|
|
38017
|
+
}
|
|
38018
|
+
|
|
38019
|
+
_resolve(_resultInstance);
|
|
38020
|
+
|
|
38021
|
+
Module.removeFunction(_callbackPtr);
|
|
38022
|
+
};
|
|
38023
|
+
|
|
38024
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
38025
|
+
|
|
38026
|
+
Module.ccall(
|
|
38027
|
+
"csp_multiplayer_ConversationSpaceComponent_DeleteConversationAnnotation_void_NullResultCallback",
|
|
38028
|
+
"void",
|
|
38029
|
+
["number", "number", "number"],
|
|
38030
|
+
[this.pointer, _callbackPtr, 0],
|
|
38031
|
+
);
|
|
38032
|
+
|
|
38033
|
+
return _promise;
|
|
38034
|
+
}
|
|
38035
|
+
|
|
38036
|
+
/**
|
|
38037
|
+
* @description Gets an annotation associated with a message.
|
|
38038
|
+
* @param messageId - The message id the annotation is associated with.
|
|
38039
|
+
* @param callback - Callback when asynchronous task finishes.
|
|
38040
|
+
@pre This component must contain a valid conversation id (component must have a conversation id that isn't an empty string).
|
|
38041
|
+
* A CSP error will be sent to the LogSystem if this condition is not met, with a EResultCode::Failed response.
|
|
38042
|
+
@pre The message must have an annotation previously attached using SetAnnotation.
|
|
38043
|
+
* A CSP error will be sent to the LogSystem if this condition is not met, with a EResultCode::Failed response.
|
|
38044
|
+
*/
|
|
38045
|
+
|
|
38046
|
+
async getAnnotation(
|
|
37161
38047
|
messageId: string,
|
|
37162
|
-
): Promise<Multiplayer.
|
|
38048
|
+
): Promise<Multiplayer.AnnotationResult> {
|
|
37163
38049
|
var _resolve;
|
|
37164
38050
|
|
|
37165
|
-
var _promise = new Promise<Multiplayer.
|
|
38051
|
+
var _promise = new Promise<Multiplayer.AnnotationResult>((_r) => {
|
|
37166
38052
|
_resolve = _r;
|
|
37167
38053
|
});
|
|
37168
38054
|
|
|
37169
38055
|
var _callbackPtr: number;
|
|
37170
38056
|
var _callback = (_stateObject__: number, result) => {
|
|
37171
38057
|
var _resultPtr = getNativePointer(result);
|
|
37172
|
-
var _resultInstance = new Multiplayer.
|
|
38058
|
+
var _resultInstance = new Multiplayer.AnnotationResult(_resultPtr);
|
|
37173
38059
|
|
|
37174
38060
|
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
37175
38061
|
return;
|
|
@@ -37183,7 +38069,7 @@ export namespace Multiplayer {
|
|
|
37183
38069
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
37184
38070
|
|
|
37185
38071
|
Module.ccall(
|
|
37186
|
-
"
|
|
38072
|
+
"csp_multiplayer_ConversationSpaceComponent_GetAnnotation_void_StringRC_AnnotationResultCallback",
|
|
37187
38073
|
"void",
|
|
37188
38074
|
["number", "string", "number", "number"],
|
|
37189
38075
|
[this.pointer, messageId, _callbackPtr, 0],
|
|
@@ -37193,26 +38079,33 @@ export namespace Multiplayer {
|
|
|
37193
38079
|
}
|
|
37194
38080
|
|
|
37195
38081
|
/**
|
|
37196
|
-
* @description
|
|
37197
|
-
*
|
|
37198
|
-
* @param
|
|
37199
|
-
* @param
|
|
38082
|
+
* @description Associates an annotation with a message.
|
|
38083
|
+
* If an annotation already exists on the message, it will be overwritten.
|
|
38084
|
+
* @param messageId - The message id to attach an annotation to.
|
|
38085
|
+
* @param updateParams - The annotation data for this annotation.
|
|
38086
|
+
* @param annotation - The annotation image data for this annotation.
|
|
38087
|
+
* @param annotationThumbnail - The annotation thumbnail image data for this annotation.
|
|
38088
|
+
* @param callback - Callback when asynchronous task finishes.
|
|
38089
|
+
@pre This component must contain a valid conversation id (component must have a conversation id that isn't an empty string).
|
|
38090
|
+
* A CSP error will be sent to the LogSystem if this condition is not met, with a EResultCode::Failed response.
|
|
37200
38091
|
*/
|
|
37201
38092
|
|
|
37202
|
-
async
|
|
38093
|
+
async setAnnotation(
|
|
37203
38094
|
messageId: string,
|
|
37204
|
-
|
|
37205
|
-
|
|
38095
|
+
updateParams: Multiplayer.AnnotationUpdateParams,
|
|
38096
|
+
annotation: Systems.BufferAssetDataSource,
|
|
38097
|
+
annotationThumbnail: Systems.BufferAssetDataSource,
|
|
38098
|
+
): Promise<Multiplayer.AnnotationResult> {
|
|
37206
38099
|
var _resolve;
|
|
37207
38100
|
|
|
37208
|
-
var _promise = new Promise<Multiplayer.
|
|
38101
|
+
var _promise = new Promise<Multiplayer.AnnotationResult>((_r) => {
|
|
37209
38102
|
_resolve = _r;
|
|
37210
38103
|
});
|
|
37211
38104
|
|
|
37212
38105
|
var _callbackPtr: number;
|
|
37213
38106
|
var _callback = (_stateObject__: number, result) => {
|
|
37214
38107
|
var _resultPtr = getNativePointer(result);
|
|
37215
|
-
var _resultInstance = new Multiplayer.
|
|
38108
|
+
var _resultInstance = new Multiplayer.AnnotationResult(_resultPtr);
|
|
37216
38109
|
|
|
37217
38110
|
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
37218
38111
|
return;
|
|
@@ -37226,15 +38119,118 @@ export namespace Multiplayer {
|
|
|
37226
38119
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
37227
38120
|
|
|
37228
38121
|
Module.ccall(
|
|
37229
|
-
"
|
|
38122
|
+
"csp_multiplayer_ConversationSpaceComponent_SetAnnotation_void_StringRC_AnnotationUpdateParamsRC_BufferAssetDataSourceRC_BufferAssetDataSourceRC_AnnotationResultCallback",
|
|
37230
38123
|
"void",
|
|
37231
|
-
["number", "string", "number", "number", "number"],
|
|
37232
|
-
[
|
|
38124
|
+
["number", "string", "number", "number", "number", "number", "number"],
|
|
38125
|
+
[
|
|
38126
|
+
this.pointer,
|
|
38127
|
+
messageId,
|
|
38128
|
+
updateParams.pointer,
|
|
38129
|
+
annotation.pointer,
|
|
38130
|
+
annotationThumbnail.pointer,
|
|
38131
|
+
_callbackPtr,
|
|
38132
|
+
0,
|
|
38133
|
+
],
|
|
38134
|
+
);
|
|
38135
|
+
|
|
38136
|
+
return _promise;
|
|
38137
|
+
}
|
|
38138
|
+
|
|
38139
|
+
/**
|
|
38140
|
+
* @description Deletes an annotation associated with a message.
|
|
38141
|
+
* @param messageId - The message id whose annotation to delete.
|
|
38142
|
+
* @param callback - Callback when asynchronous task finishes.
|
|
38143
|
+
@pre This component must contain a valid conversation id (component must have a conversation id that isn't an empty string).
|
|
38144
|
+
* A CSP error will be sent to the LogSystem if this condition is not met, with a EResultCode::Failed response.
|
|
38145
|
+
*/
|
|
38146
|
+
|
|
38147
|
+
async deleteAnnotation(messageId: string): Promise<Systems.NullResult> {
|
|
38148
|
+
var _resolve;
|
|
38149
|
+
|
|
38150
|
+
var _promise = new Promise<Systems.NullResult>((_r) => {
|
|
38151
|
+
_resolve = _r;
|
|
38152
|
+
});
|
|
38153
|
+
|
|
38154
|
+
var _callbackPtr: number;
|
|
38155
|
+
var _callback = (_stateObject__: number, result) => {
|
|
38156
|
+
var _resultPtr = getNativePointer(result);
|
|
38157
|
+
var _resultInstance = new Systems.NullResult(_resultPtr);
|
|
38158
|
+
|
|
38159
|
+
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
38160
|
+
return;
|
|
38161
|
+
}
|
|
38162
|
+
|
|
38163
|
+
_resolve(_resultInstance);
|
|
38164
|
+
|
|
38165
|
+
Module.removeFunction(_callbackPtr);
|
|
38166
|
+
};
|
|
38167
|
+
|
|
38168
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
38169
|
+
|
|
38170
|
+
Module.ccall(
|
|
38171
|
+
"csp_multiplayer_ConversationSpaceComponent_DeleteAnnotation_void_StringRC_NullResultCallback",
|
|
38172
|
+
"void",
|
|
38173
|
+
["number", "string", "number", "number"],
|
|
38174
|
+
[this.pointer, messageId, _callbackPtr, 0],
|
|
37233
38175
|
);
|
|
37234
38176
|
|
|
37235
38177
|
return _promise;
|
|
37236
38178
|
}
|
|
37237
38179
|
|
|
38180
|
+
/**
|
|
38181
|
+
* @description Gets all thumbnails in the conversation.
|
|
38182
|
+
* @param callback - Callback when asynchronous task finishes.
|
|
38183
|
+
@pre This component must contain a valid conversation id (component must have a conversation id that isn't an empty string).
|
|
38184
|
+
* A CSP error will be sent to the LogSystem if this condition is not met, with a EResultCode::Failed response.
|
|
38185
|
+
*/
|
|
38186
|
+
|
|
38187
|
+
getAnnotationThumbnailsForConversation(
|
|
38188
|
+
callback: (
|
|
38189
|
+
result: Multiplayer.AnnotationThumbnailCollectionResult,
|
|
38190
|
+
) => void,
|
|
38191
|
+
): void {
|
|
38192
|
+
var _callback = (_stateObject__: number, result) => {
|
|
38193
|
+
var _result = new Multiplayer.AnnotationThumbnailCollectionResult(
|
|
38194
|
+
getNativePointer(result),
|
|
38195
|
+
);
|
|
38196
|
+
callback(_result);
|
|
38197
|
+
};
|
|
38198
|
+
|
|
38199
|
+
var callbackPtr = Module.addFunction(_callback, "vii");
|
|
38200
|
+
|
|
38201
|
+
Module.ccall(
|
|
38202
|
+
"csp_multiplayer_ConversationSpaceComponent_GetAnnotationThumbnailsForConversation_void_AnnotationThumbnailCollectionResultCallback",
|
|
38203
|
+
"void",
|
|
38204
|
+
["number", "number"],
|
|
38205
|
+
[this.pointer, callbackPtr],
|
|
38206
|
+
);
|
|
38207
|
+
}
|
|
38208
|
+
|
|
38209
|
+
/**
|
|
38210
|
+
* @description Sets a callback for when the conversation is updated by another client.
|
|
38211
|
+
* @param callback - Callback to receive data for the conversation that has been changed.
|
|
38212
|
+
*/
|
|
38213
|
+
setConversationUpdateCallback(
|
|
38214
|
+
callback: (arg1: Multiplayer.ConversationEventParams) => void,
|
|
38215
|
+
) {
|
|
38216
|
+
var _callback = (_stateObject__: number, arg1) => {
|
|
38217
|
+
var _arg1 = new Multiplayer.ConversationEventParams(
|
|
38218
|
+
getNativePointer(arg1),
|
|
38219
|
+
);
|
|
38220
|
+
|
|
38221
|
+
callback(_arg1);
|
|
38222
|
+
};
|
|
38223
|
+
|
|
38224
|
+
var _callbackPtr = Module.addFunction(_callback, "vii");
|
|
38225
|
+
|
|
38226
|
+
Module.ccall(
|
|
38227
|
+
"csp_multiplayer_ConversationSpaceComponent_SetConversationUpdateCallback_void_ConversationUpdateCallbackHandler",
|
|
38228
|
+
"void",
|
|
38229
|
+
["number", "number", "number"],
|
|
38230
|
+
[this.pointer, _callbackPtr, 0],
|
|
38231
|
+
);
|
|
38232
|
+
}
|
|
38233
|
+
|
|
37238
38234
|
/**
|
|
37239
38235
|
* \addtogroup IPositionComponent
|
|
37240
38236
|
@{
|
|
@@ -37348,25 +38344,6 @@ export namespace Multiplayer {
|
|
|
37348
38344
|
);
|
|
37349
38345
|
}
|
|
37350
38346
|
|
|
37351
|
-
/**
|
|
37352
|
-
* @description Moves the conversation associated with the other component to this one and remmove the association with the other component
|
|
37353
|
-
* @param otherConversationComponent - - The component to move the conversation from.
|
|
37354
|
-
* @return True if successful, false if there is already a conversation associated with this component
|
|
37355
|
-
*/
|
|
37356
|
-
|
|
37357
|
-
moveConversationFromComponent(
|
|
37358
|
-
otherConversationComponent: Multiplayer.ConversationSpaceComponent,
|
|
37359
|
-
): boolean {
|
|
37360
|
-
let _result = Module.ccall(
|
|
37361
|
-
"csp_multiplayer_ConversationSpaceComponent_MoveConversationFromComponent_bool_ConversationSpaceComponentR",
|
|
37362
|
-
"boolean",
|
|
37363
|
-
["number", "number"],
|
|
37364
|
-
[this.pointer, otherConversationComponent.pointer],
|
|
37365
|
-
);
|
|
37366
|
-
|
|
37367
|
-
return _result;
|
|
37368
|
-
}
|
|
37369
|
-
|
|
37370
38347
|
/**
|
|
37371
38348
|
* @description Sets the Title of the conversation.
|
|
37372
38349
|
* @param value - - The new title.
|
|
@@ -37402,69 +38379,100 @@ export namespace Multiplayer {
|
|
|
37402
38379
|
}
|
|
37403
38380
|
|
|
37404
38381
|
/**
|
|
37405
|
-
* @description Sets the
|
|
37406
|
-
* @param value - - The
|
|
38382
|
+
* @description Sets the resolved value for indicating that a conversation is resolved.
|
|
38383
|
+
* @param value - - The resolved state.
|
|
37407
38384
|
*/
|
|
37408
38385
|
|
|
37409
|
-
|
|
38386
|
+
setResolved(value: boolean): void {
|
|
37410
38387
|
Module.ccall(
|
|
37411
|
-
"
|
|
38388
|
+
"csp_multiplayer_ConversationSpaceComponent_SetResolved_void_bool",
|
|
37412
38389
|
"void",
|
|
37413
|
-
["number", "
|
|
38390
|
+
["number", "boolean"],
|
|
37414
38391
|
[this.pointer, value],
|
|
37415
38392
|
);
|
|
37416
38393
|
}
|
|
37417
38394
|
|
|
37418
38395
|
/**
|
|
37419
|
-
* @description Gets the
|
|
38396
|
+
* @description Gets the resolved value of the conversation.
|
|
37420
38397
|
*/
|
|
37421
38398
|
|
|
37422
|
-
|
|
38399
|
+
getResolved(): boolean {
|
|
37423
38400
|
let _result = Module.ccall(
|
|
37424
|
-
"
|
|
37425
|
-
"
|
|
38401
|
+
"csp_multiplayer_ConversationSpaceComponent_GetResolvedC_bool",
|
|
38402
|
+
"boolean",
|
|
37426
38403
|
["number"],
|
|
37427
38404
|
[this.pointer],
|
|
37428
38405
|
);
|
|
37429
38406
|
|
|
37430
|
-
|
|
37431
|
-
|
|
38407
|
+
return _result;
|
|
38408
|
+
}
|
|
37432
38409
|
|
|
37433
|
-
|
|
38410
|
+
/**
|
|
38411
|
+
* @description Sets the value for the camera position used to view the conversation.
|
|
38412
|
+
* @param inValue - The position for the camera.
|
|
38413
|
+
*/
|
|
37434
38414
|
|
|
37435
|
-
|
|
38415
|
+
setConversationCameraPosition(value: Common.Vector3): void {
|
|
38416
|
+
Module.ccall(
|
|
38417
|
+
"csp_multiplayer_ConversationSpaceComponent_SetConversationCameraPosition_void_Vector3RC",
|
|
38418
|
+
"void",
|
|
38419
|
+
["number", "number"],
|
|
38420
|
+
[this.pointer, value.pointer],
|
|
38421
|
+
);
|
|
37436
38422
|
}
|
|
37437
38423
|
|
|
37438
38424
|
/**
|
|
37439
|
-
* @description
|
|
37440
|
-
* @
|
|
38425
|
+
* @description Gets the value for the camera position of the conversation.
|
|
38426
|
+
* @return The camera view position.
|
|
37441
38427
|
*/
|
|
37442
38428
|
|
|
37443
|
-
|
|
37444
|
-
|
|
37445
|
-
assert(value <= Limits.INT64_MAX);
|
|
38429
|
+
getConversationCameraPosition(): Common.Vector3 {
|
|
38430
|
+
var _ret = Module._malloc(8);
|
|
37446
38431
|
|
|
37447
38432
|
Module.ccall(
|
|
37448
|
-
"
|
|
38433
|
+
"csp_multiplayer_ConversationSpaceComponent_GetConversationCameraPositionC_Vector3RC",
|
|
37449
38434
|
"void",
|
|
37450
|
-
["number", "
|
|
37451
|
-
[this.pointer
|
|
38435
|
+
["number", "number"],
|
|
38436
|
+
[_ret, this.pointer],
|
|
38437
|
+
);
|
|
38438
|
+
var _nPtr = new Common.Vector3(getNativePointer(_ret));
|
|
38439
|
+
Module._free(_ret);
|
|
38440
|
+
|
|
38441
|
+
return _nPtr;
|
|
38442
|
+
}
|
|
38443
|
+
|
|
38444
|
+
/**
|
|
38445
|
+
* @description Sets the value for the camera rotation used to view the conversation.
|
|
38446
|
+
* @param inValue - The rotation for the camera.
|
|
38447
|
+
*/
|
|
38448
|
+
|
|
38449
|
+
setConversationCameraRotation(value: Common.Vector4): void {
|
|
38450
|
+
Module.ccall(
|
|
38451
|
+
"csp_multiplayer_ConversationSpaceComponent_SetConversationCameraRotation_void_Vector4RC",
|
|
38452
|
+
"void",
|
|
38453
|
+
["number", "number"],
|
|
38454
|
+
[this.pointer, value.pointer],
|
|
37452
38455
|
);
|
|
37453
38456
|
}
|
|
37454
38457
|
|
|
37455
38458
|
/**
|
|
37456
|
-
* @description Gets the
|
|
38459
|
+
* @description Gets the value for the camera rotation of the conversation.
|
|
38460
|
+
* @return The camera view rotation.
|
|
37457
38461
|
*/
|
|
37458
38462
|
|
|
37459
|
-
|
|
37460
|
-
|
|
37461
|
-
|
|
37462
|
-
|
|
37463
|
-
|
|
37464
|
-
|
|
38463
|
+
getConversationCameraRotation(): Common.Vector4 {
|
|
38464
|
+
var _ret = Module._malloc(8);
|
|
38465
|
+
|
|
38466
|
+
Module.ccall(
|
|
38467
|
+
"csp_multiplayer_ConversationSpaceComponent_GetConversationCameraRotationC_Vector4RC",
|
|
38468
|
+
"void",
|
|
38469
|
+
["number", "number"],
|
|
38470
|
+
[_ret, this.pointer],
|
|
37465
38471
|
);
|
|
38472
|
+
var _nPtr = new Common.Vector4(getNativePointer(_ret));
|
|
38473
|
+
Module._free(_ret);
|
|
37466
38474
|
|
|
37467
|
-
return
|
|
38475
|
+
return _nPtr;
|
|
37468
38476
|
}
|
|
37469
38477
|
|
|
37470
38478
|
delete(): void {
|
|
@@ -43348,232 +44356,7 @@ export namespace Multiplayer {
|
|
|
43348
44356
|
|
|
43349
44357
|
export namespace Multiplayer {
|
|
43350
44358
|
/**
|
|
43351
|
-
@ingroup Conversation
|
|
43352
|
-
* @description Data representation of a message.
|
|
43353
|
-
*/
|
|
43354
|
-
export class MessageInfo
|
|
43355
|
-
extends Multiplayer.BaseMessageInfo
|
|
43356
|
-
implements INativeResource
|
|
43357
|
-
{
|
|
43358
|
-
/** @internal */
|
|
43359
|
-
constructor(pointer: NativePointer) {
|
|
43360
|
-
super(pointer);
|
|
43361
|
-
}
|
|
43362
|
-
|
|
43363
|
-
static fromBaseMessageInfo(
|
|
43364
|
-
baseInstance: Multiplayer.BaseMessageInfo,
|
|
43365
|
-
): Multiplayer.MessageInfo {
|
|
43366
|
-
const nativeClassWrapper = baseInstance as unknown as NativeClassWrapper;
|
|
43367
|
-
return new Multiplayer.MessageInfo(
|
|
43368
|
-
new NativePointer(
|
|
43369
|
-
nativeClassWrapper.pointer,
|
|
43370
|
-
nativeClassWrapper.ownsPointer,
|
|
43371
|
-
),
|
|
43372
|
-
);
|
|
43373
|
-
}
|
|
43374
|
-
|
|
43375
|
-
static create_arg1(arg1: number): MessageInfo {
|
|
43376
|
-
var _ptr = Module._malloc(8);
|
|
43377
|
-
Module.ccall(
|
|
43378
|
-
"csp_multiplayer_MessageInfo_Conv_voidP",
|
|
43379
|
-
"void",
|
|
43380
|
-
["number", "void"],
|
|
43381
|
-
[_ptr, arg1],
|
|
43382
|
-
);
|
|
43383
|
-
var _nPtr = getNativePointer(_ptr);
|
|
43384
|
-
|
|
43385
|
-
return new MessageInfo(_nPtr);
|
|
43386
|
-
}
|
|
43387
|
-
|
|
43388
|
-
static create(): MessageInfo {
|
|
43389
|
-
var _ptr = Module._malloc(8);
|
|
43390
|
-
Module.ccall(
|
|
43391
|
-
"csp_multiplayer_MessageInfo_Ctor",
|
|
43392
|
-
"void",
|
|
43393
|
-
["number"],
|
|
43394
|
-
[_ptr],
|
|
43395
|
-
);
|
|
43396
|
-
var _nPtr = getNativePointer(_ptr);
|
|
43397
|
-
|
|
43398
|
-
return new MessageInfo(_nPtr);
|
|
43399
|
-
}
|
|
43400
|
-
|
|
43401
|
-
static create_messageData(
|
|
43402
|
-
messageData: Multiplayer.MessageInfo,
|
|
43403
|
-
): MessageInfo {
|
|
43404
|
-
var _ptr = Module._malloc(8);
|
|
43405
|
-
Module.ccall(
|
|
43406
|
-
"csp_multiplayer_MessageInfo_Ctor_MessageInfoRC",
|
|
43407
|
-
"void",
|
|
43408
|
-
["number", "number"],
|
|
43409
|
-
[_ptr, messageData.pointer],
|
|
43410
|
-
);
|
|
43411
|
-
var _nPtr = getNativePointer(_ptr);
|
|
43412
|
-
|
|
43413
|
-
return new MessageInfo(_nPtr);
|
|
43414
|
-
}
|
|
43415
|
-
|
|
43416
|
-
delete(): void {
|
|
43417
|
-
if (this.ownsPointer && !this.disposed) {
|
|
43418
|
-
Module.ccall(
|
|
43419
|
-
"csp_multiplayer_MessageInfo_Dtor",
|
|
43420
|
-
"void",
|
|
43421
|
-
["number"],
|
|
43422
|
-
[this.pointer],
|
|
43423
|
-
);
|
|
43424
|
-
|
|
43425
|
-
this.disposed = true;
|
|
43426
|
-
}
|
|
43427
|
-
}
|
|
43428
|
-
|
|
43429
|
-
get id(): string {
|
|
43430
|
-
let _result = Module.ccall(
|
|
43431
|
-
"csp_multiplayer_MessageInfo__Get_Id",
|
|
43432
|
-
"string",
|
|
43433
|
-
["number"],
|
|
43434
|
-
[this.pointer],
|
|
43435
|
-
);
|
|
43436
|
-
|
|
43437
|
-
return _result;
|
|
43438
|
-
}
|
|
43439
|
-
|
|
43440
|
-
set id(value: string) {
|
|
43441
|
-
Module.ccall(
|
|
43442
|
-
"csp_multiplayer_MessageInfo__Set_Id",
|
|
43443
|
-
"void",
|
|
43444
|
-
["number", "string"],
|
|
43445
|
-
[this.pointer, value],
|
|
43446
|
-
);
|
|
43447
|
-
}
|
|
43448
|
-
}
|
|
43449
|
-
}
|
|
43450
|
-
|
|
43451
|
-
export namespace Multiplayer {
|
|
43452
|
-
/**
|
|
43453
|
-
* @description Data representation of a conversation.
|
|
43454
|
-
*/
|
|
43455
|
-
export class ConversationInfo
|
|
43456
|
-
extends Multiplayer.BaseMessageInfo
|
|
43457
|
-
implements INativeResource
|
|
43458
|
-
{
|
|
43459
|
-
/** @internal */
|
|
43460
|
-
constructor(pointer: NativePointer) {
|
|
43461
|
-
super(pointer);
|
|
43462
|
-
}
|
|
43463
|
-
|
|
43464
|
-
static fromBaseMessageInfo(
|
|
43465
|
-
baseInstance: Multiplayer.BaseMessageInfo,
|
|
43466
|
-
): Multiplayer.ConversationInfo {
|
|
43467
|
-
const nativeClassWrapper = baseInstance as unknown as NativeClassWrapper;
|
|
43468
|
-
return new Multiplayer.ConversationInfo(
|
|
43469
|
-
new NativePointer(
|
|
43470
|
-
nativeClassWrapper.pointer,
|
|
43471
|
-
nativeClassWrapper.ownsPointer,
|
|
43472
|
-
),
|
|
43473
|
-
);
|
|
43474
|
-
}
|
|
43475
|
-
|
|
43476
|
-
static create_arg1(arg1: number): ConversationInfo {
|
|
43477
|
-
var _ptr = Module._malloc(8);
|
|
43478
|
-
Module.ccall(
|
|
43479
|
-
"csp_multiplayer_ConversationInfo_Conv_voidP",
|
|
43480
|
-
"void",
|
|
43481
|
-
["number", "void"],
|
|
43482
|
-
[_ptr, arg1],
|
|
43483
|
-
);
|
|
43484
|
-
var _nPtr = getNativePointer(_ptr);
|
|
43485
|
-
|
|
43486
|
-
return new ConversationInfo(_nPtr);
|
|
43487
|
-
}
|
|
43488
|
-
|
|
43489
|
-
static create(): ConversationInfo {
|
|
43490
|
-
var _ptr = Module._malloc(8);
|
|
43491
|
-
Module.ccall(
|
|
43492
|
-
"csp_multiplayer_ConversationInfo_Ctor",
|
|
43493
|
-
"void",
|
|
43494
|
-
["number"],
|
|
43495
|
-
[_ptr],
|
|
43496
|
-
);
|
|
43497
|
-
var _nPtr = getNativePointer(_ptr);
|
|
43498
|
-
|
|
43499
|
-
return new ConversationInfo(_nPtr);
|
|
43500
|
-
}
|
|
43501
|
-
|
|
43502
|
-
static create_conversationData(
|
|
43503
|
-
conversationData: Multiplayer.ConversationInfo,
|
|
43504
|
-
): ConversationInfo {
|
|
43505
|
-
var _ptr = Module._malloc(8);
|
|
43506
|
-
Module.ccall(
|
|
43507
|
-
"csp_multiplayer_ConversationInfo_Ctor_ConversationInfoRC",
|
|
43508
|
-
"void",
|
|
43509
|
-
["number", "number"],
|
|
43510
|
-
[_ptr, conversationData.pointer],
|
|
43511
|
-
);
|
|
43512
|
-
var _nPtr = getNativePointer(_ptr);
|
|
43513
|
-
|
|
43514
|
-
return new ConversationInfo(_nPtr);
|
|
43515
|
-
}
|
|
43516
|
-
|
|
43517
|
-
delete(): void {
|
|
43518
|
-
if (this.ownsPointer && !this.disposed) {
|
|
43519
|
-
Module.ccall(
|
|
43520
|
-
"csp_multiplayer_ConversationInfo_Dtor",
|
|
43521
|
-
"void",
|
|
43522
|
-
["number"],
|
|
43523
|
-
[this.pointer],
|
|
43524
|
-
);
|
|
43525
|
-
|
|
43526
|
-
this.disposed = true;
|
|
43527
|
-
}
|
|
43528
|
-
}
|
|
43529
|
-
|
|
43530
|
-
get resolved(): boolean {
|
|
43531
|
-
let _result = Module.ccall(
|
|
43532
|
-
"csp_multiplayer_ConversationInfo__Get_Resolved",
|
|
43533
|
-
"boolean",
|
|
43534
|
-
["number"],
|
|
43535
|
-
[this.pointer],
|
|
43536
|
-
);
|
|
43537
|
-
|
|
43538
|
-
return _result;
|
|
43539
|
-
}
|
|
43540
|
-
|
|
43541
|
-
set resolved(value: boolean) {
|
|
43542
|
-
Module.ccall(
|
|
43543
|
-
"csp_multiplayer_ConversationInfo__Set_Resolved",
|
|
43544
|
-
"void",
|
|
43545
|
-
["number", "boolean"],
|
|
43546
|
-
[this.pointer, value],
|
|
43547
|
-
);
|
|
43548
|
-
}
|
|
43549
|
-
|
|
43550
|
-
get cameraPosition(): Multiplayer.SpaceTransform {
|
|
43551
|
-
const _ptr = Module._malloc(8);
|
|
43552
|
-
Module.ccall(
|
|
43553
|
-
"csp_multiplayer_ConversationInfo__Get_CameraPosition",
|
|
43554
|
-
"void",
|
|
43555
|
-
["number", "number"],
|
|
43556
|
-
[_ptr, this.pointer],
|
|
43557
|
-
);
|
|
43558
|
-
|
|
43559
|
-
const _nPtr = getNativePointer(_ptr);
|
|
43560
|
-
return new Multiplayer.SpaceTransform(_nPtr);
|
|
43561
|
-
}
|
|
43562
|
-
|
|
43563
|
-
set cameraPosition(value: Multiplayer.SpaceTransform) {
|
|
43564
|
-
Module.ccall(
|
|
43565
|
-
"csp_multiplayer_ConversationInfo__Set_CameraPosition",
|
|
43566
|
-
"void",
|
|
43567
|
-
["number", "number"],
|
|
43568
|
-
[this.pointer, value.pointer],
|
|
43569
|
-
);
|
|
43570
|
-
}
|
|
43571
|
-
}
|
|
43572
|
-
}
|
|
43573
|
-
|
|
43574
|
-
export namespace Multiplayer {
|
|
43575
|
-
/**
|
|
43576
|
-
@ingroup Conversation System
|
|
44359
|
+
@ingroup Conversation
|
|
43577
44360
|
* @description Data class used to contain information when a message is being retrieved
|
|
43578
44361
|
*/
|
|
43579
44362
|
export class MessageResult
|
|
@@ -43598,8 +44381,8 @@ export namespace Multiplayer {
|
|
|
43598
44381
|
}
|
|
43599
44382
|
|
|
43600
44383
|
/**
|
|
43601
|
-
* @description Gets the message info object from this result.
|
|
43602
|
-
|
|
44384
|
+
* @description Gets the message info object from this result.
|
|
44385
|
+
* @return The message info.
|
|
43603
44386
|
*/
|
|
43604
44387
|
|
|
43605
44388
|
getMessageInfo(): Multiplayer.MessageInfo {
|
|
@@ -43634,7 +44417,7 @@ export namespace Multiplayer {
|
|
|
43634
44417
|
|
|
43635
44418
|
export namespace Multiplayer {
|
|
43636
44419
|
/**
|
|
43637
|
-
@ingroup Conversation
|
|
44420
|
+
@ingroup Conversation
|
|
43638
44421
|
* @description Data class used to contain information when retrieving a collection of messages
|
|
43639
44422
|
*/
|
|
43640
44423
|
export class MessageCollectionResult
|
|
@@ -43659,8 +44442,8 @@ export namespace Multiplayer {
|
|
|
43659
44442
|
}
|
|
43660
44443
|
|
|
43661
44444
|
/**
|
|
43662
|
-
* @description Gets the list of messages, as message info objects, from this result.
|
|
43663
|
-
|
|
44445
|
+
* @description Gets the list of messages, as message info objects, from this result.
|
|
44446
|
+
* @return Array of message info objects.
|
|
43664
44447
|
*/
|
|
43665
44448
|
|
|
43666
44449
|
getMessages(): Common.Array<Multiplayer.MessageInfo> {
|
|
@@ -43722,7 +44505,7 @@ export namespace Multiplayer {
|
|
|
43722
44505
|
|
|
43723
44506
|
export namespace Multiplayer {
|
|
43724
44507
|
/**
|
|
43725
|
-
@ingroup Conversation
|
|
44508
|
+
@ingroup Conversation
|
|
43726
44509
|
* @description Data class used to contain information when retrieving a conversation.
|
|
43727
44510
|
*/
|
|
43728
44511
|
export class ConversationResult
|
|
@@ -43747,20 +44530,20 @@ export namespace Multiplayer {
|
|
|
43747
44530
|
}
|
|
43748
44531
|
|
|
43749
44532
|
/**
|
|
43750
|
-
* @description Gets the
|
|
43751
|
-
|
|
44533
|
+
* @description Gets the message info object from this result.
|
|
44534
|
+
* @return The MessageInfo object representing conversation info.
|
|
43752
44535
|
*/
|
|
43753
44536
|
|
|
43754
|
-
getConversationInfo(): Multiplayer.
|
|
44537
|
+
getConversationInfo(): Multiplayer.MessageInfo {
|
|
43755
44538
|
var _ret = Module._malloc(8);
|
|
43756
44539
|
|
|
43757
44540
|
Module.ccall(
|
|
43758
|
-
"
|
|
44541
|
+
"csp_multiplayer_ConversationResult_GetConversationInfo_MessageInfoR",
|
|
43759
44542
|
"void",
|
|
43760
44543
|
["number", "number"],
|
|
43761
44544
|
[_ret, this.pointer],
|
|
43762
44545
|
);
|
|
43763
|
-
var _nPtr = new Multiplayer.
|
|
44546
|
+
var _nPtr = new Multiplayer.MessageInfo(getNativePointer(_ret));
|
|
43764
44547
|
Module._free(_ret);
|
|
43765
44548
|
|
|
43766
44549
|
return _nPtr;
|
|
@@ -43783,20 +44566,23 @@ export namespace Multiplayer {
|
|
|
43783
44566
|
|
|
43784
44567
|
export namespace Multiplayer {
|
|
43785
44568
|
/**
|
|
43786
|
-
@ingroup Conversation
|
|
43787
|
-
* @description
|
|
44569
|
+
@ingroup Conversation
|
|
44570
|
+
* @description Data class used to contain information for GetNumberOfReplies.
|
|
43788
44571
|
*/
|
|
43789
|
-
export class
|
|
44572
|
+
export class NumberOfRepliesResult
|
|
44573
|
+
extends Systems.ResultBase
|
|
44574
|
+
implements INativeResource
|
|
44575
|
+
{
|
|
43790
44576
|
/** @internal */
|
|
43791
44577
|
constructor(pointer: NativePointer) {
|
|
43792
44578
|
super(pointer);
|
|
43793
44579
|
}
|
|
43794
44580
|
|
|
43795
|
-
static
|
|
43796
|
-
baseInstance: Systems.
|
|
43797
|
-
): Multiplayer.
|
|
44581
|
+
static fromResultBase(
|
|
44582
|
+
baseInstance: Systems.ResultBase,
|
|
44583
|
+
): Multiplayer.NumberOfRepliesResult {
|
|
43798
44584
|
const nativeClassWrapper = baseInstance as unknown as NativeClassWrapper;
|
|
43799
|
-
return new Multiplayer.
|
|
44585
|
+
return new Multiplayer.NumberOfRepliesResult(
|
|
43800
44586
|
new NativePointer(
|
|
43801
44587
|
nativeClassWrapper.pointer,
|
|
43802
44588
|
nativeClassWrapper.ownsPointer,
|
|
@@ -43805,542 +44591,218 @@ export namespace Multiplayer {
|
|
|
43805
44591
|
}
|
|
43806
44592
|
|
|
43807
44593
|
/**
|
|
43808
|
-
* @description
|
|
43809
|
-
* @
|
|
44594
|
+
* @description Gets the number of replies from the result
|
|
44595
|
+
* @return The number of replies
|
|
43810
44596
|
*/
|
|
43811
|
-
static create_multiPlayerConnection(
|
|
43812
|
-
multiPlayerConnection: Multiplayer.MultiplayerConnection,
|
|
43813
|
-
): ConversationSystem {
|
|
43814
|
-
var _ptr = Module._malloc(8);
|
|
43815
|
-
Module.ccall(
|
|
43816
|
-
"csp_multiplayer_ConversationSystem_Ctor_MultiplayerConnectionP",
|
|
43817
|
-
"void",
|
|
43818
|
-
["number", "number"],
|
|
43819
|
-
[_ptr, multiPlayerConnection.pointer],
|
|
43820
|
-
);
|
|
43821
|
-
var _nPtr = getNativePointer(_ptr);
|
|
43822
|
-
|
|
43823
|
-
return new ConversationSystem(_nPtr);
|
|
43824
|
-
}
|
|
43825
|
-
|
|
43826
|
-
/**
|
|
43827
|
-
* @description Creates a new conversation with the initial message and provides the conversation ID to the given callback.
|
|
43828
|
-
* @param message - The message to be stored.
|
|
43829
|
-
* @param callback - Callback when asynchronous task finishes
|
|
43830
|
-
*/
|
|
43831
|
-
|
|
43832
|
-
async createConversation(message: string): Promise<Systems.StringResult> {
|
|
43833
|
-
var _resolve;
|
|
43834
|
-
|
|
43835
|
-
var _promise = new Promise<Systems.StringResult>((_r) => {
|
|
43836
|
-
_resolve = _r;
|
|
43837
|
-
});
|
|
43838
|
-
|
|
43839
|
-
var _callbackPtr: number;
|
|
43840
|
-
var _callback = (_stateObject__: number, result) => {
|
|
43841
|
-
var _resultPtr = getNativePointer(result);
|
|
43842
|
-
var _resultInstance = new Systems.StringResult(_resultPtr);
|
|
43843
|
-
|
|
43844
|
-
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
43845
|
-
return;
|
|
43846
|
-
}
|
|
43847
|
-
|
|
43848
|
-
_resolve(_resultInstance);
|
|
43849
|
-
|
|
43850
|
-
Module.removeFunction(_callbackPtr);
|
|
43851
|
-
};
|
|
43852
|
-
|
|
43853
|
-
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
43854
44597
|
|
|
43855
|
-
|
|
43856
|
-
|
|
43857
|
-
"
|
|
43858
|
-
|
|
43859
|
-
[
|
|
44598
|
+
getCount(): bigint {
|
|
44599
|
+
let _result = Module.ccall(
|
|
44600
|
+
"csp_multiplayer_NumberOfRepliesResult_GetCountC_uint64_t",
|
|
44601
|
+
"bigint",
|
|
44602
|
+
["number"],
|
|
44603
|
+
[this.pointer],
|
|
43860
44604
|
);
|
|
43861
44605
|
|
|
43862
|
-
|
|
43863
|
-
|
|
43864
|
-
|
|
43865
|
-
|
|
43866
|
-
* @description Adds a message to a brand new conversation or to an already existing one
|
|
43867
|
-
* /// Make sure that the user has entered a space through SpaceSystem::EnterSpace() before calling this.
|
|
43868
|
-
* Sends a network event acknowledgement that can be listened for called "ConversationSystem" containing:
|
|
43869
|
-
* {ConversationSystemParams of type ReplicatedType : ConversationMessageType::NewMessage, ConversationId of type ReplicatedType : String}.
|
|
43870
|
-
* /// @param ConversationId csp::common::String : A new message will be linked to the provided conversation id.
|
|
43871
|
-
* @param senderDisplayName - The display name of the message sender.
|
|
43872
|
-
* @param message - The message to be stored.
|
|
43873
|
-
* @param callback - Callback when asynchronous task finishes.
|
|
43874
|
-
*/
|
|
43875
|
-
|
|
43876
|
-
async addMessageToConversation(
|
|
43877
|
-
conversationId: string,
|
|
43878
|
-
senderDisplayName: string,
|
|
43879
|
-
message: string,
|
|
43880
|
-
): Promise<Multiplayer.MessageResult> {
|
|
43881
|
-
var _resolve;
|
|
43882
|
-
|
|
43883
|
-
var _promise = new Promise<Multiplayer.MessageResult>((_r) => {
|
|
43884
|
-
_resolve = _r;
|
|
43885
|
-
});
|
|
43886
|
-
|
|
43887
|
-
var _callbackPtr: number;
|
|
43888
|
-
var _callback = (_stateObject__: number, result) => {
|
|
43889
|
-
var _resultPtr = getNativePointer(result);
|
|
43890
|
-
var _resultInstance = new Multiplayer.MessageResult(_resultPtr);
|
|
43891
|
-
|
|
43892
|
-
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
43893
|
-
return;
|
|
43894
|
-
}
|
|
43895
|
-
|
|
43896
|
-
_resolve(_resultInstance);
|
|
43897
|
-
|
|
43898
|
-
Module.removeFunction(_callbackPtr);
|
|
43899
|
-
};
|
|
43900
|
-
|
|
43901
|
-
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
43902
|
-
|
|
43903
|
-
Module.ccall(
|
|
43904
|
-
"csp_multiplayer_ConversationSystem_AddMessageToConversation_void_StringRC_StringRC_StringRC_MessageResultCallback",
|
|
43905
|
-
"void",
|
|
43906
|
-
["number", "string", "string", "string", "number", "number"],
|
|
43907
|
-
[
|
|
43908
|
-
this.pointer,
|
|
43909
|
-
conversationId,
|
|
43910
|
-
senderDisplayName,
|
|
43911
|
-
message,
|
|
43912
|
-
_callbackPtr,
|
|
43913
|
-
0,
|
|
43914
|
-
],
|
|
43915
|
-
);
|
|
44606
|
+
const _unfixedValue = _result;
|
|
44607
|
+
let _fixedValue =
|
|
44608
|
+
_unfixedValue < 0 ? _unfixedValue + 2n ** 64n : _unfixedValue;
|
|
44609
|
+
_result = _fixedValue;
|
|
43916
44610
|
|
|
43917
|
-
return
|
|
44611
|
+
return _result;
|
|
43918
44612
|
}
|
|
43919
44613
|
|
|
43920
|
-
|
|
43921
|
-
|
|
43922
|
-
|
|
43923
|
-
|
|
43924
|
-
|
|
43925
|
-
|
|
43926
|
-
|
|
43927
|
-
* @param callback - Callback when asynchronous task finishes.
|
|
43928
|
-
*/
|
|
43929
|
-
|
|
43930
|
-
async getMessagesFromConversation(
|
|
43931
|
-
conversationId: string,
|
|
43932
|
-
resultsSkipNumber: number | null,
|
|
43933
|
-
resultsMaxNumber: number | null,
|
|
43934
|
-
): Promise<Multiplayer.MessageCollectionResult> {
|
|
43935
|
-
var _resolve;
|
|
43936
|
-
|
|
43937
|
-
var _promise = new Promise<Multiplayer.MessageCollectionResult>((_r) => {
|
|
43938
|
-
_resolve = _r;
|
|
43939
|
-
});
|
|
43940
|
-
|
|
43941
|
-
var _callbackPtr: number;
|
|
43942
|
-
var _callback = (_stateObject__: number, result) => {
|
|
43943
|
-
var _resultPtr = getNativePointer(result);
|
|
43944
|
-
var _resultInstance = new Multiplayer.MessageCollectionResult(
|
|
43945
|
-
_resultPtr,
|
|
44614
|
+
delete(): void {
|
|
44615
|
+
if (this.ownsPointer && !this.disposed) {
|
|
44616
|
+
Module.ccall(
|
|
44617
|
+
"csp_multiplayer_NumberOfRepliesResult_Dtor",
|
|
44618
|
+
"void",
|
|
44619
|
+
["number"],
|
|
44620
|
+
[this.pointer],
|
|
43946
44621
|
);
|
|
43947
44622
|
|
|
43948
|
-
|
|
43949
|
-
return;
|
|
43950
|
-
}
|
|
43951
|
-
|
|
43952
|
-
_resolve(_resultInstance);
|
|
43953
|
-
|
|
43954
|
-
Module.removeFunction(_callbackPtr);
|
|
43955
|
-
};
|
|
43956
|
-
|
|
43957
|
-
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
43958
|
-
|
|
43959
|
-
var resultsSkipNumberPointer = 0;
|
|
43960
|
-
if (resultsSkipNumber != null) {
|
|
43961
|
-
resultsSkipNumberPointer = Module._malloc(4);
|
|
43962
|
-
Module.setValue(resultsSkipNumberPointer, resultsSkipNumber, "i32");
|
|
43963
|
-
}
|
|
43964
|
-
|
|
43965
|
-
var resultsMaxNumberPointer = 0;
|
|
43966
|
-
if (resultsMaxNumber != null) {
|
|
43967
|
-
resultsMaxNumberPointer = Module._malloc(4);
|
|
43968
|
-
Module.setValue(resultsMaxNumberPointer, resultsMaxNumber, "i32");
|
|
43969
|
-
}
|
|
43970
|
-
|
|
43971
|
-
Module.ccall(
|
|
43972
|
-
"csp_multiplayer_ConversationSystem_GetMessagesFromConversation_void_StringRC_intRC_intRC_MessageCollectionResultCallback",
|
|
43973
|
-
"void",
|
|
43974
|
-
["number", "string", "number", "number", "number", "number"],
|
|
43975
|
-
[
|
|
43976
|
-
this.pointer,
|
|
43977
|
-
conversationId,
|
|
43978
|
-
resultsSkipNumberPointer,
|
|
43979
|
-
resultsMaxNumberPointer,
|
|
43980
|
-
_callbackPtr,
|
|
43981
|
-
0,
|
|
43982
|
-
],
|
|
43983
|
-
);
|
|
43984
|
-
|
|
43985
|
-
if (resultsSkipNumberPointer) {
|
|
43986
|
-
Module._free(resultsSkipNumberPointer);
|
|
43987
|
-
}
|
|
43988
|
-
if (resultsMaxNumberPointer) {
|
|
43989
|
-
Module._free(resultsMaxNumberPointer);
|
|
44623
|
+
this.disposed = true;
|
|
43990
44624
|
}
|
|
43991
|
-
|
|
43992
|
-
return _promise;
|
|
43993
44625
|
}
|
|
44626
|
+
}
|
|
44627
|
+
}
|
|
43994
44628
|
|
|
43995
|
-
|
|
43996
|
-
|
|
43997
|
-
|
|
43998
|
-
|
|
43999
|
-
|
|
44000
|
-
|
|
44001
|
-
|
|
44002
|
-
|
|
44003
|
-
): Promise<Multiplayer.ConversationResult> {
|
|
44004
|
-
var _resolve;
|
|
44005
|
-
|
|
44006
|
-
var _promise = new Promise<Multiplayer.ConversationResult>((_r) => {
|
|
44007
|
-
_resolve = _r;
|
|
44008
|
-
});
|
|
44009
|
-
|
|
44010
|
-
var _callbackPtr: number;
|
|
44011
|
-
var _callback = (_stateObject__: number, result) => {
|
|
44012
|
-
var _resultPtr = getNativePointer(result);
|
|
44013
|
-
var _resultInstance = new Multiplayer.ConversationResult(_resultPtr);
|
|
44014
|
-
|
|
44015
|
-
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
44016
|
-
return;
|
|
44017
|
-
}
|
|
44018
|
-
|
|
44019
|
-
_resolve(_resultInstance);
|
|
44020
|
-
|
|
44021
|
-
Module.removeFunction(_callbackPtr);
|
|
44022
|
-
};
|
|
44023
|
-
|
|
44024
|
-
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
44025
|
-
|
|
44026
|
-
Module.ccall(
|
|
44027
|
-
"csp_multiplayer_ConversationSystem_GetConversationInformation_void_StringRC_ConversationResultCallback",
|
|
44028
|
-
"void",
|
|
44029
|
-
["number", "string", "number", "number"],
|
|
44030
|
-
[this.pointer, conversationId, _callbackPtr, 0],
|
|
44031
|
-
);
|
|
44032
|
-
|
|
44033
|
-
return _promise;
|
|
44629
|
+
export namespace Multiplayer {
|
|
44630
|
+
export class AnnotationResult
|
|
44631
|
+
extends Systems.ResultBase
|
|
44632
|
+
implements INativeResource
|
|
44633
|
+
{
|
|
44634
|
+
/** @internal */
|
|
44635
|
+
constructor(pointer: NativePointer) {
|
|
44636
|
+
super(pointer);
|
|
44034
44637
|
}
|
|
44035
44638
|
|
|
44036
|
-
|
|
44037
|
-
|
|
44038
|
-
|
|
44039
|
-
|
|
44040
|
-
|
|
44041
|
-
|
|
44042
|
-
|
|
44043
|
-
|
|
44044
|
-
|
|
44045
|
-
conversationData: Multiplayer.ConversationInfo,
|
|
44046
|
-
): Promise<Multiplayer.ConversationResult> {
|
|
44047
|
-
var _resolve;
|
|
44048
|
-
|
|
44049
|
-
var _promise = new Promise<Multiplayer.ConversationResult>((_r) => {
|
|
44050
|
-
_resolve = _r;
|
|
44051
|
-
});
|
|
44052
|
-
|
|
44053
|
-
var _callbackPtr: number;
|
|
44054
|
-
var _callback = (_stateObject__: number, result) => {
|
|
44055
|
-
var _resultPtr = getNativePointer(result);
|
|
44056
|
-
var _resultInstance = new Multiplayer.ConversationResult(_resultPtr);
|
|
44057
|
-
|
|
44058
|
-
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
44059
|
-
return;
|
|
44060
|
-
}
|
|
44061
|
-
|
|
44062
|
-
_resolve(_resultInstance);
|
|
44063
|
-
|
|
44064
|
-
Module.removeFunction(_callbackPtr);
|
|
44065
|
-
};
|
|
44066
|
-
|
|
44067
|
-
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
44068
|
-
|
|
44069
|
-
Module.ccall(
|
|
44070
|
-
"csp_multiplayer_ConversationSystem_SetConversationInformation_void_StringRC_ConversationInfoRC_ConversationResultCallback",
|
|
44071
|
-
"void",
|
|
44072
|
-
["number", "string", "number", "number", "number"],
|
|
44073
|
-
[
|
|
44074
|
-
this.pointer,
|
|
44075
|
-
conversationId,
|
|
44076
|
-
conversationData.pointer,
|
|
44077
|
-
_callbackPtr,
|
|
44078
|
-
0,
|
|
44079
|
-
],
|
|
44639
|
+
static fromResultBase(
|
|
44640
|
+
baseInstance: Systems.ResultBase,
|
|
44641
|
+
): Multiplayer.AnnotationResult {
|
|
44642
|
+
const nativeClassWrapper = baseInstance as unknown as NativeClassWrapper;
|
|
44643
|
+
return new Multiplayer.AnnotationResult(
|
|
44644
|
+
new NativePointer(
|
|
44645
|
+
nativeClassWrapper.pointer,
|
|
44646
|
+
nativeClassWrapper.ownsPointer,
|
|
44647
|
+
),
|
|
44080
44648
|
);
|
|
44081
|
-
|
|
44082
|
-
return _promise;
|
|
44083
44649
|
}
|
|
44084
44650
|
|
|
44085
44651
|
/**
|
|
44086
|
-
* @description
|
|
44087
|
-
* @
|
|
44088
|
-
* @param callback - Callback when asynchronous task finishes.
|
|
44652
|
+
* @description Gets the information about the annotation.
|
|
44653
|
+
* @return Const annotationdata&
|
|
44089
44654
|
*/
|
|
44090
44655
|
|
|
44091
|
-
|
|
44092
|
-
var
|
|
44093
|
-
|
|
44094
|
-
var _promise = new Promise<Multiplayer.MessageResult>((_r) => {
|
|
44095
|
-
_resolve = _r;
|
|
44096
|
-
});
|
|
44097
|
-
|
|
44098
|
-
var _callbackPtr: number;
|
|
44099
|
-
var _callback = (_stateObject__: number, result) => {
|
|
44100
|
-
var _resultPtr = getNativePointer(result);
|
|
44101
|
-
var _resultInstance = new Multiplayer.MessageResult(_resultPtr);
|
|
44102
|
-
|
|
44103
|
-
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
44104
|
-
return;
|
|
44105
|
-
}
|
|
44106
|
-
|
|
44107
|
-
_resolve(_resultInstance);
|
|
44108
|
-
|
|
44109
|
-
Module.removeFunction(_callbackPtr);
|
|
44110
|
-
};
|
|
44111
|
-
|
|
44112
|
-
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
44656
|
+
getAnnotationData(): Multiplayer.AnnotationData {
|
|
44657
|
+
var _ret = Module._malloc(8);
|
|
44113
44658
|
|
|
44114
44659
|
Module.ccall(
|
|
44115
|
-
"
|
|
44660
|
+
"csp_multiplayer_AnnotationResult_GetAnnotationDataC_AnnotationDataRC",
|
|
44116
44661
|
"void",
|
|
44117
|
-
["number", "
|
|
44118
|
-
[this.pointer
|
|
44662
|
+
["number", "number"],
|
|
44663
|
+
[_ret, this.pointer],
|
|
44119
44664
|
);
|
|
44665
|
+
var _nPtr = new Multiplayer.AnnotationData(getNativePointer(_ret));
|
|
44666
|
+
Module._free(_ret);
|
|
44120
44667
|
|
|
44121
|
-
return
|
|
44668
|
+
return _nPtr;
|
|
44122
44669
|
}
|
|
44123
44670
|
|
|
44124
44671
|
/**
|
|
44125
|
-
* @description
|
|
44126
|
-
* @
|
|
44127
|
-
* @param messageData - Message Data.
|
|
44128
|
-
* @param callback - Callback when asynchronous task finishes.
|
|
44672
|
+
* @description Gets the asset containing the annotation data.
|
|
44673
|
+
* @return Const csp::systems::asset&
|
|
44129
44674
|
*/
|
|
44130
44675
|
|
|
44131
|
-
|
|
44132
|
-
|
|
44133
|
-
messageData: Multiplayer.MessageInfo,
|
|
44134
|
-
): Promise<Multiplayer.MessageResult> {
|
|
44135
|
-
var _resolve;
|
|
44136
|
-
|
|
44137
|
-
var _promise = new Promise<Multiplayer.MessageResult>((_r) => {
|
|
44138
|
-
_resolve = _r;
|
|
44139
|
-
});
|
|
44140
|
-
|
|
44141
|
-
var _callbackPtr: number;
|
|
44142
|
-
var _callback = (_stateObject__: number, result) => {
|
|
44143
|
-
var _resultPtr = getNativePointer(result);
|
|
44144
|
-
var _resultInstance = new Multiplayer.MessageResult(_resultPtr);
|
|
44145
|
-
|
|
44146
|
-
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
44147
|
-
return;
|
|
44148
|
-
}
|
|
44149
|
-
|
|
44150
|
-
_resolve(_resultInstance);
|
|
44151
|
-
|
|
44152
|
-
Module.removeFunction(_callbackPtr);
|
|
44153
|
-
};
|
|
44154
|
-
|
|
44155
|
-
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
44676
|
+
getAnnotationAsset(): Systems.Asset {
|
|
44677
|
+
var _ret = Module._malloc(8);
|
|
44156
44678
|
|
|
44157
44679
|
Module.ccall(
|
|
44158
|
-
"
|
|
44680
|
+
"csp_multiplayer_AnnotationResult_GetAnnotationAssetC_AssetRC",
|
|
44159
44681
|
"void",
|
|
44160
|
-
["number", "
|
|
44161
|
-
[
|
|
44682
|
+
["number", "number"],
|
|
44683
|
+
[_ret, this.pointer],
|
|
44162
44684
|
);
|
|
44685
|
+
var _nPtr = new Systems.Asset(getNativePointer(_ret));
|
|
44686
|
+
Module._free(_ret);
|
|
44163
44687
|
|
|
44164
|
-
return
|
|
44688
|
+
return _nPtr;
|
|
44165
44689
|
}
|
|
44166
44690
|
|
|
44167
44691
|
/**
|
|
44168
|
-
* @description
|
|
44169
|
-
* @
|
|
44170
|
-
* @param callback - Callback when asynchronous task finishes.
|
|
44692
|
+
* @description Gets the asset containing the annotation thumbnail data.
|
|
44693
|
+
* @return Const csp::systems::asset&
|
|
44171
44694
|
*/
|
|
44172
44695
|
|
|
44173
|
-
|
|
44174
|
-
|
|
44175
|
-
): Promise<Multiplayer.MessageResult> {
|
|
44176
|
-
var _resolve;
|
|
44177
|
-
|
|
44178
|
-
var _promise = new Promise<Multiplayer.MessageResult>((_r) => {
|
|
44179
|
-
_resolve = _r;
|
|
44180
|
-
});
|
|
44181
|
-
|
|
44182
|
-
var _callbackPtr: number;
|
|
44183
|
-
var _callback = (_stateObject__: number, result) => {
|
|
44184
|
-
var _resultPtr = getNativePointer(result);
|
|
44185
|
-
var _resultInstance = new Multiplayer.MessageResult(_resultPtr);
|
|
44186
|
-
|
|
44187
|
-
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
44188
|
-
return;
|
|
44189
|
-
}
|
|
44190
|
-
|
|
44191
|
-
_resolve(_resultInstance);
|
|
44192
|
-
|
|
44193
|
-
Module.removeFunction(_callbackPtr);
|
|
44194
|
-
};
|
|
44195
|
-
|
|
44196
|
-
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
44696
|
+
getAnnotationThumbnailAsset(): Systems.Asset {
|
|
44697
|
+
var _ret = Module._malloc(8);
|
|
44197
44698
|
|
|
44198
44699
|
Module.ccall(
|
|
44199
|
-
"
|
|
44700
|
+
"csp_multiplayer_AnnotationResult_GetAnnotationThumbnailAssetC_AssetRC",
|
|
44200
44701
|
"void",
|
|
44201
|
-
["number", "
|
|
44202
|
-
[this.pointer
|
|
44702
|
+
["number", "number"],
|
|
44703
|
+
[_ret, this.pointer],
|
|
44203
44704
|
);
|
|
44705
|
+
var _nPtr = new Systems.Asset(getNativePointer(_ret));
|
|
44706
|
+
Module._free(_ret);
|
|
44204
44707
|
|
|
44205
|
-
return
|
|
44708
|
+
return _nPtr;
|
|
44206
44709
|
}
|
|
44207
44710
|
|
|
44208
|
-
|
|
44209
|
-
|
|
44210
|
-
|
|
44211
|
-
|
|
44212
|
-
|
|
44213
|
-
|
|
44214
|
-
|
|
44215
|
-
|
|
44216
|
-
*/
|
|
44217
|
-
|
|
44218
|
-
async deleteConversation(
|
|
44219
|
-
conversationId: string,
|
|
44220
|
-
): Promise<Systems.NullResult> {
|
|
44221
|
-
var _resolve;
|
|
44222
|
-
|
|
44223
|
-
var _promise = new Promise<Systems.NullResult>((_r) => {
|
|
44224
|
-
_resolve = _r;
|
|
44225
|
-
});
|
|
44226
|
-
|
|
44227
|
-
var _callbackPtr: number;
|
|
44228
|
-
var _callback = (_stateObject__: number, result) => {
|
|
44229
|
-
var _resultPtr = getNativePointer(result);
|
|
44230
|
-
var _resultInstance = new Systems.NullResult(_resultPtr);
|
|
44231
|
-
|
|
44232
|
-
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
44233
|
-
return;
|
|
44234
|
-
}
|
|
44235
|
-
|
|
44236
|
-
_resolve(_resultInstance);
|
|
44237
|
-
|
|
44238
|
-
Module.removeFunction(_callbackPtr);
|
|
44239
|
-
};
|
|
44240
|
-
|
|
44241
|
-
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
44242
|
-
|
|
44243
|
-
Module.ccall(
|
|
44244
|
-
"csp_multiplayer_ConversationSystem_DeleteConversation_void_StringRC_NullResultCallback",
|
|
44245
|
-
"void",
|
|
44246
|
-
["number", "string", "number", "number"],
|
|
44247
|
-
[this.pointer, conversationId, _callbackPtr, 0],
|
|
44248
|
-
);
|
|
44711
|
+
delete(): void {
|
|
44712
|
+
if (this.ownsPointer && !this.disposed) {
|
|
44713
|
+
Module.ccall(
|
|
44714
|
+
"csp_multiplayer_AnnotationResult_Dtor",
|
|
44715
|
+
"void",
|
|
44716
|
+
["number"],
|
|
44717
|
+
[this.pointer],
|
|
44718
|
+
);
|
|
44249
44719
|
|
|
44250
|
-
|
|
44720
|
+
this.disposed = true;
|
|
44721
|
+
}
|
|
44251
44722
|
}
|
|
44723
|
+
}
|
|
44724
|
+
}
|
|
44252
44725
|
|
|
44253
|
-
|
|
44254
|
-
|
|
44255
|
-
|
|
44256
|
-
|
|
44257
|
-
|
|
44258
|
-
|
|
44259
|
-
|
|
44260
|
-
|
|
44261
|
-
|
|
44262
|
-
var _resolve;
|
|
44263
|
-
|
|
44264
|
-
var _promise = new Promise<Systems.NullResult>((_r) => {
|
|
44265
|
-
_resolve = _r;
|
|
44266
|
-
});
|
|
44267
|
-
|
|
44268
|
-
var _callbackPtr: number;
|
|
44269
|
-
var _callback = (_stateObject__: number, result) => {
|
|
44270
|
-
var _resultPtr = getNativePointer(result);
|
|
44271
|
-
var _resultInstance = new Systems.NullResult(_resultPtr);
|
|
44272
|
-
|
|
44273
|
-
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
44274
|
-
return;
|
|
44275
|
-
}
|
|
44276
|
-
|
|
44277
|
-
_resolve(_resultInstance);
|
|
44278
|
-
|
|
44279
|
-
Module.removeFunction(_callbackPtr);
|
|
44280
|
-
};
|
|
44281
|
-
|
|
44282
|
-
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
44726
|
+
export namespace Multiplayer {
|
|
44727
|
+
export class AnnotationThumbnailCollectionResult
|
|
44728
|
+
extends Systems.ResultBase
|
|
44729
|
+
implements INativeResource
|
|
44730
|
+
{
|
|
44731
|
+
/** @internal */
|
|
44732
|
+
constructor(pointer: NativePointer) {
|
|
44733
|
+
super(pointer);
|
|
44734
|
+
}
|
|
44283
44735
|
|
|
44284
|
-
|
|
44285
|
-
|
|
44286
|
-
|
|
44287
|
-
|
|
44288
|
-
|
|
44736
|
+
static fromResultBase(
|
|
44737
|
+
baseInstance: Systems.ResultBase,
|
|
44738
|
+
): Multiplayer.AnnotationThumbnailCollectionResult {
|
|
44739
|
+
const nativeClassWrapper = baseInstance as unknown as NativeClassWrapper;
|
|
44740
|
+
return new Multiplayer.AnnotationThumbnailCollectionResult(
|
|
44741
|
+
new NativePointer(
|
|
44742
|
+
nativeClassWrapper.pointer,
|
|
44743
|
+
nativeClassWrapper.ownsPointer,
|
|
44744
|
+
),
|
|
44289
44745
|
);
|
|
44290
|
-
|
|
44291
|
-
return _promise;
|
|
44292
44746
|
}
|
|
44293
44747
|
|
|
44294
44748
|
/**
|
|
44295
|
-
* @description
|
|
44296
|
-
* @
|
|
44297
|
-
* Callback will have to reset the callback passed to the system to avoid "dangling objects" after use.
|
|
44749
|
+
* @description gets the annotation thumbnails that exist within the conversation.
|
|
44750
|
+
* @return Const csp::common::map<csp::common::string, csp::systems::asset>&
|
|
44298
44751
|
*/
|
|
44299
|
-
setConversationSystemCallback(
|
|
44300
|
-
callback: (arg1: Multiplayer.ConversationSystemParams) => void,
|
|
44301
|
-
) {
|
|
44302
|
-
var _callback = (_stateObject__: number, arg1) => {
|
|
44303
|
-
var _arg1 = new Multiplayer.ConversationSystemParams(
|
|
44304
|
-
getNativePointer(arg1),
|
|
44305
|
-
);
|
|
44306
|
-
|
|
44307
|
-
callback(_arg1);
|
|
44308
|
-
};
|
|
44309
44752
|
|
|
44310
|
-
|
|
44753
|
+
getAnnotationThumbnailAssetsMap(): Common.Map<string, Systems.Asset> {
|
|
44754
|
+
var _ret = Module._malloc(8);
|
|
44311
44755
|
|
|
44312
44756
|
Module.ccall(
|
|
44313
|
-
"
|
|
44757
|
+
"csp_multiplayer_AnnotationThumbnailCollectionResult_GetAnnotationThumbnailAssetsMapC_MapRC",
|
|
44314
44758
|
"void",
|
|
44315
|
-
["number", "number"
|
|
44316
|
-
[this.pointer
|
|
44759
|
+
["number", "number"],
|
|
44760
|
+
[_ret, this.pointer],
|
|
44317
44761
|
);
|
|
44762
|
+
var _nPtr = new Common.Map<string, Systems.Asset>(
|
|
44763
|
+
getNativePointer(_ret),
|
|
44764
|
+
StringFactory,
|
|
44765
|
+
"String",
|
|
44766
|
+
csp_systems_AssetFactory,
|
|
44767
|
+
"csp_systems_Asset",
|
|
44768
|
+
);
|
|
44769
|
+
Module._free(_ret);
|
|
44770
|
+
|
|
44771
|
+
return _nPtr;
|
|
44318
44772
|
}
|
|
44319
44773
|
|
|
44320
44774
|
/**
|
|
44321
|
-
* @description
|
|
44775
|
+
* @description Gets the number of asset thumbnails returned from GetAnnotationThumbnailAssetsMap.
|
|
44776
|
+
* @return Uint64_t
|
|
44322
44777
|
*/
|
|
44323
44778
|
|
|
44324
|
-
|
|
44325
|
-
Module.ccall(
|
|
44326
|
-
"
|
|
44327
|
-
"
|
|
44779
|
+
getTotalCount(): bigint {
|
|
44780
|
+
let _result = Module.ccall(
|
|
44781
|
+
"csp_multiplayer_AnnotationThumbnailCollectionResult_GetTotalCountC_uint64_t",
|
|
44782
|
+
"bigint",
|
|
44328
44783
|
["number"],
|
|
44329
44784
|
[this.pointer],
|
|
44330
44785
|
);
|
|
44786
|
+
|
|
44787
|
+
const _unfixedValue = _result;
|
|
44788
|
+
let _fixedValue =
|
|
44789
|
+
_unfixedValue < 0 ? _unfixedValue + 2n ** 64n : _unfixedValue;
|
|
44790
|
+
_result = _fixedValue;
|
|
44791
|
+
|
|
44792
|
+
return _result;
|
|
44331
44793
|
}
|
|
44332
44794
|
|
|
44333
|
-
|
|
44334
|
-
|
|
44335
|
-
|
|
44795
|
+
delete(): void {
|
|
44796
|
+
if (this.ownsPointer && !this.disposed) {
|
|
44797
|
+
Module.ccall(
|
|
44798
|
+
"csp_multiplayer_AnnotationThumbnailCollectionResult_Dtor",
|
|
44799
|
+
"void",
|
|
44800
|
+
["number"],
|
|
44801
|
+
[this.pointer],
|
|
44802
|
+
);
|
|
44336
44803
|
|
|
44337
|
-
|
|
44338
|
-
|
|
44339
|
-
"csp_multiplayer_ConversationSystem_DeregisterSystemCallback_void",
|
|
44340
|
-
"void",
|
|
44341
|
-
["number"],
|
|
44342
|
-
[this.pointer],
|
|
44343
|
-
);
|
|
44804
|
+
this.disposed = true;
|
|
44805
|
+
}
|
|
44344
44806
|
}
|
|
44345
44807
|
}
|
|
44346
44808
|
}
|
|
@@ -45529,6 +45991,67 @@ export namespace Systems {
|
|
|
45529
45991
|
}
|
|
45530
45992
|
}
|
|
45531
45993
|
|
|
45994
|
+
export namespace Systems {
|
|
45995
|
+
/**
|
|
45996
|
+
@ingroup Asset System
|
|
45997
|
+
*/
|
|
45998
|
+
export class AssetCollectionCountResult
|
|
45999
|
+
extends Systems.ResultBase
|
|
46000
|
+
implements INativeResource
|
|
46001
|
+
{
|
|
46002
|
+
/** @internal */
|
|
46003
|
+
constructor(pointer: NativePointer) {
|
|
46004
|
+
super(pointer);
|
|
46005
|
+
}
|
|
46006
|
+
|
|
46007
|
+
static fromResultBase(
|
|
46008
|
+
baseInstance: Systems.ResultBase,
|
|
46009
|
+
): Systems.AssetCollectionCountResult {
|
|
46010
|
+
const nativeClassWrapper = baseInstance as unknown as NativeClassWrapper;
|
|
46011
|
+
return new Systems.AssetCollectionCountResult(
|
|
46012
|
+
new NativePointer(
|
|
46013
|
+
nativeClassWrapper.pointer,
|
|
46014
|
+
nativeClassWrapper.ownsPointer,
|
|
46015
|
+
),
|
|
46016
|
+
);
|
|
46017
|
+
}
|
|
46018
|
+
|
|
46019
|
+
/**
|
|
46020
|
+
* @description Represents the count of asset collections that meet he criteria provided from AssetSystem::GetAssetCollectionCount
|
|
46021
|
+
* @return The number of asset collections found
|
|
46022
|
+
*/
|
|
46023
|
+
|
|
46024
|
+
getCount(): bigint {
|
|
46025
|
+
let _result = Module.ccall(
|
|
46026
|
+
"csp_systems_AssetCollectionCountResult_GetCountC_uint64_t",
|
|
46027
|
+
"bigint",
|
|
46028
|
+
["number"],
|
|
46029
|
+
[this.pointer],
|
|
46030
|
+
);
|
|
46031
|
+
|
|
46032
|
+
const _unfixedValue = _result;
|
|
46033
|
+
let _fixedValue =
|
|
46034
|
+
_unfixedValue < 0 ? _unfixedValue + 2n ** 64n : _unfixedValue;
|
|
46035
|
+
_result = _fixedValue;
|
|
46036
|
+
|
|
46037
|
+
return _result;
|
|
46038
|
+
}
|
|
46039
|
+
|
|
46040
|
+
delete(): void {
|
|
46041
|
+
if (this.ownsPointer && !this.disposed) {
|
|
46042
|
+
Module.ccall(
|
|
46043
|
+
"csp_systems_AssetCollectionCountResult_Dtor",
|
|
46044
|
+
"void",
|
|
46045
|
+
["number"],
|
|
46046
|
+
[this.pointer],
|
|
46047
|
+
);
|
|
46048
|
+
|
|
46049
|
+
this.disposed = true;
|
|
46050
|
+
}
|
|
46051
|
+
}
|
|
46052
|
+
}
|
|
46053
|
+
}
|
|
46054
|
+
|
|
45532
46055
|
export namespace Systems {
|
|
45533
46056
|
/**
|
|
45534
46057
|
@ingroup Asset System
|
|
@@ -45594,26 +46117,397 @@ export namespace Systems {
|
|
|
45594
46117
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
45595
46118
|
|
|
45596
46119
|
Module.ccall(
|
|
45597
|
-
"csp_systems_AssetSystem_CreateAssetCollection_void_StringRC_StringRC_StringRC_MapRC_EAssetCollectionTypeC_ArrayRC_AssetCollectionResultCallback",
|
|
46120
|
+
"csp_systems_AssetSystem_CreateAssetCollection_void_StringRC_StringRC_StringRC_MapRC_EAssetCollectionTypeC_ArrayRC_AssetCollectionResultCallback",
|
|
46121
|
+
"void",
|
|
46122
|
+
[
|
|
46123
|
+
"number",
|
|
46124
|
+
"string",
|
|
46125
|
+
"string",
|
|
46126
|
+
"string",
|
|
46127
|
+
"number",
|
|
46128
|
+
"number",
|
|
46129
|
+
"number",
|
|
46130
|
+
"number",
|
|
46131
|
+
"number",
|
|
46132
|
+
],
|
|
46133
|
+
[
|
|
46134
|
+
this.pointer,
|
|
46135
|
+
spaceId,
|
|
46136
|
+
parentAssetCollectionId,
|
|
46137
|
+
assetCollectionName,
|
|
46138
|
+
metadata != null ? metadata.pointer : 0,
|
|
46139
|
+
type,
|
|
46140
|
+
tags != null ? tags.pointer : 0,
|
|
46141
|
+
_callbackPtr,
|
|
46142
|
+
0,
|
|
46143
|
+
],
|
|
46144
|
+
);
|
|
46145
|
+
|
|
46146
|
+
return _promise;
|
|
46147
|
+
}
|
|
46148
|
+
|
|
46149
|
+
/**
|
|
46150
|
+
* @description Deletes a given asset collection.
|
|
46151
|
+
* @param assetCollection - Asset collection to delete
|
|
46152
|
+
* @param callback - Callback when asynchronous task finishes
|
|
46153
|
+
*/
|
|
46154
|
+
|
|
46155
|
+
async deleteAssetCollection(
|
|
46156
|
+
assetCollection: Systems.AssetCollection,
|
|
46157
|
+
): Promise<Systems.NullResult> {
|
|
46158
|
+
var _resolve;
|
|
46159
|
+
|
|
46160
|
+
var _promise = new Promise<Systems.NullResult>((_r) => {
|
|
46161
|
+
_resolve = _r;
|
|
46162
|
+
});
|
|
46163
|
+
|
|
46164
|
+
var _callbackPtr: number;
|
|
46165
|
+
var _callback = (_stateObject__: number, result) => {
|
|
46166
|
+
var _resultPtr = getNativePointer(result);
|
|
46167
|
+
var _resultInstance = new Systems.NullResult(_resultPtr);
|
|
46168
|
+
|
|
46169
|
+
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
46170
|
+
return;
|
|
46171
|
+
}
|
|
46172
|
+
|
|
46173
|
+
_resolve(_resultInstance);
|
|
46174
|
+
|
|
46175
|
+
Module.removeFunction(_callbackPtr);
|
|
46176
|
+
};
|
|
46177
|
+
|
|
46178
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
46179
|
+
|
|
46180
|
+
Module.ccall(
|
|
46181
|
+
"csp_systems_AssetSystem_DeleteAssetCollection_void_AssetCollectionRC_NullResultCallback",
|
|
46182
|
+
"void",
|
|
46183
|
+
["number", "number", "number", "number"],
|
|
46184
|
+
[this.pointer, assetCollection.pointer, _callbackPtr, 0],
|
|
46185
|
+
);
|
|
46186
|
+
|
|
46187
|
+
return _promise;
|
|
46188
|
+
}
|
|
46189
|
+
|
|
46190
|
+
/**
|
|
46191
|
+
* @description Deletes a given array of asset collections.
|
|
46192
|
+
* @param assetCollections - The array of asset collections to delete
|
|
46193
|
+
* @param callback - Callback when asynchronous task finishes
|
|
46194
|
+
*/
|
|
46195
|
+
|
|
46196
|
+
async deleteMultipleAssetCollections(
|
|
46197
|
+
assetCollections: Common.Array<Systems.AssetCollection>,
|
|
46198
|
+
): Promise<Systems.NullResult> {
|
|
46199
|
+
var _resolve;
|
|
46200
|
+
|
|
46201
|
+
var _promise = new Promise<Systems.NullResult>((_r) => {
|
|
46202
|
+
_resolve = _r;
|
|
46203
|
+
});
|
|
46204
|
+
|
|
46205
|
+
var _callbackPtr: number;
|
|
46206
|
+
var _callback = (_stateObject__: number, result) => {
|
|
46207
|
+
var _resultPtr = getNativePointer(result);
|
|
46208
|
+
var _resultInstance = new Systems.NullResult(_resultPtr);
|
|
46209
|
+
|
|
46210
|
+
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
46211
|
+
return;
|
|
46212
|
+
}
|
|
46213
|
+
|
|
46214
|
+
_resolve(_resultInstance);
|
|
46215
|
+
|
|
46216
|
+
Module.removeFunction(_callbackPtr);
|
|
46217
|
+
};
|
|
46218
|
+
|
|
46219
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
46220
|
+
|
|
46221
|
+
Module.ccall(
|
|
46222
|
+
"csp_systems_AssetSystem_DeleteMultipleAssetCollections_void_ArrayR_NullResultCallback",
|
|
46223
|
+
"void",
|
|
46224
|
+
["number", "number", "number", "number"],
|
|
46225
|
+
[this.pointer, assetCollections.pointer, _callbackPtr, 0],
|
|
46226
|
+
);
|
|
46227
|
+
|
|
46228
|
+
return _promise;
|
|
46229
|
+
}
|
|
46230
|
+
|
|
46231
|
+
/**
|
|
46232
|
+
* @description Copies an array of asset collections to another space. Note that all source asset collections must belong to the same space.
|
|
46233
|
+
* @param sourceAssetCollections - The array of asset collections to copy. They must all belong to the same
|
|
46234
|
+
* space.
|
|
46235
|
+
* @param destSpaceId - The unique identifier of the space to copy these asset collections to.
|
|
46236
|
+
* @param copyAsync - Whether to instruct the services to perform the copy of the asset collections
|
|
46237
|
+
* asynchronously.
|
|
46238
|
+
* @param callback - Callback when asynchronous task finishes
|
|
46239
|
+
*/
|
|
46240
|
+
|
|
46241
|
+
async copyAssetCollectionsToSpace(
|
|
46242
|
+
sourceAssetCollections: Common.Array<Systems.AssetCollection>,
|
|
46243
|
+
destSpaceId: string,
|
|
46244
|
+
copyAsync: boolean,
|
|
46245
|
+
): Promise<Systems.AssetCollectionsResult> {
|
|
46246
|
+
var _resolve;
|
|
46247
|
+
|
|
46248
|
+
var _promise = new Promise<Systems.AssetCollectionsResult>((_r) => {
|
|
46249
|
+
_resolve = _r;
|
|
46250
|
+
});
|
|
46251
|
+
|
|
46252
|
+
var _callbackPtr: number;
|
|
46253
|
+
var _callback = (_stateObject__: number, result) => {
|
|
46254
|
+
var _resultPtr = getNativePointer(result);
|
|
46255
|
+
var _resultInstance = new Systems.AssetCollectionsResult(_resultPtr);
|
|
46256
|
+
|
|
46257
|
+
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
46258
|
+
return;
|
|
46259
|
+
}
|
|
46260
|
+
|
|
46261
|
+
_resolve(_resultInstance);
|
|
46262
|
+
|
|
46263
|
+
Module.removeFunction(_callbackPtr);
|
|
46264
|
+
};
|
|
46265
|
+
|
|
46266
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
46267
|
+
|
|
46268
|
+
Module.ccall(
|
|
46269
|
+
"csp_systems_AssetSystem_CopyAssetCollectionsToSpace_void_ArrayR_StringRC_bool_AssetCollectionsResultCallback",
|
|
46270
|
+
"void",
|
|
46271
|
+
["number", "number", "string", "boolean", "number", "number"],
|
|
46272
|
+
[
|
|
46273
|
+
this.pointer,
|
|
46274
|
+
sourceAssetCollections.pointer,
|
|
46275
|
+
destSpaceId,
|
|
46276
|
+
copyAsync,
|
|
46277
|
+
_callbackPtr,
|
|
46278
|
+
0,
|
|
46279
|
+
],
|
|
46280
|
+
);
|
|
46281
|
+
|
|
46282
|
+
return _promise;
|
|
46283
|
+
}
|
|
46284
|
+
|
|
46285
|
+
/**
|
|
46286
|
+
* @description Finds an asset collection by its Id.
|
|
46287
|
+
* @param assetCollectionId - Asset collection to delete
|
|
46288
|
+
* @param callback - Callback when asynchronous task finishes
|
|
46289
|
+
*/
|
|
46290
|
+
|
|
46291
|
+
async getAssetCollectionById(
|
|
46292
|
+
assetCollectionId: string,
|
|
46293
|
+
): Promise<Systems.AssetCollectionResult> {
|
|
46294
|
+
var _resolve;
|
|
46295
|
+
|
|
46296
|
+
var _promise = new Promise<Systems.AssetCollectionResult>((_r) => {
|
|
46297
|
+
_resolve = _r;
|
|
46298
|
+
});
|
|
46299
|
+
|
|
46300
|
+
var _callbackPtr: number;
|
|
46301
|
+
var _callback = (_stateObject__: number, result) => {
|
|
46302
|
+
var _resultPtr = getNativePointer(result);
|
|
46303
|
+
var _resultInstance = new Systems.AssetCollectionResult(_resultPtr);
|
|
46304
|
+
|
|
46305
|
+
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
46306
|
+
return;
|
|
46307
|
+
}
|
|
46308
|
+
|
|
46309
|
+
_resolve(_resultInstance);
|
|
46310
|
+
|
|
46311
|
+
Module.removeFunction(_callbackPtr);
|
|
46312
|
+
};
|
|
46313
|
+
|
|
46314
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
46315
|
+
|
|
46316
|
+
Module.ccall(
|
|
46317
|
+
"csp_systems_AssetSystem_GetAssetCollectionById_void_StringRC_AssetCollectionResultCallback",
|
|
46318
|
+
"void",
|
|
46319
|
+
["number", "string", "number", "number"],
|
|
46320
|
+
[this.pointer, assetCollectionId, _callbackPtr, 0],
|
|
46321
|
+
);
|
|
46322
|
+
|
|
46323
|
+
return _promise;
|
|
46324
|
+
}
|
|
46325
|
+
|
|
46326
|
+
/**
|
|
46327
|
+
* @description Finds an asset collection by its Name.
|
|
46328
|
+
* @param assetCollectionName - Name of the asset collection to be retrieved
|
|
46329
|
+
* @param callback - Callback when asynchronous task finishes
|
|
46330
|
+
*/
|
|
46331
|
+
|
|
46332
|
+
async getAssetCollectionByName(
|
|
46333
|
+
assetCollectionName: string,
|
|
46334
|
+
): Promise<Systems.AssetCollectionResult> {
|
|
46335
|
+
var _resolve;
|
|
46336
|
+
|
|
46337
|
+
var _promise = new Promise<Systems.AssetCollectionResult>((_r) => {
|
|
46338
|
+
_resolve = _r;
|
|
46339
|
+
});
|
|
46340
|
+
|
|
46341
|
+
var _callbackPtr: number;
|
|
46342
|
+
var _callback = (_stateObject__: number, result) => {
|
|
46343
|
+
var _resultPtr = getNativePointer(result);
|
|
46344
|
+
var _resultInstance = new Systems.AssetCollectionResult(_resultPtr);
|
|
46345
|
+
|
|
46346
|
+
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
46347
|
+
return;
|
|
46348
|
+
}
|
|
46349
|
+
|
|
46350
|
+
_resolve(_resultInstance);
|
|
46351
|
+
|
|
46352
|
+
Module.removeFunction(_callbackPtr);
|
|
46353
|
+
};
|
|
46354
|
+
|
|
46355
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
46356
|
+
|
|
46357
|
+
Module.ccall(
|
|
46358
|
+
"csp_systems_AssetSystem_GetAssetCollectionByName_void_StringRC_AssetCollectionResultCallback",
|
|
46359
|
+
"void",
|
|
46360
|
+
["number", "string", "number", "number"],
|
|
46361
|
+
[this.pointer, assetCollectionName, _callbackPtr, 0],
|
|
46362
|
+
);
|
|
46363
|
+
|
|
46364
|
+
return _promise;
|
|
46365
|
+
}
|
|
46366
|
+
|
|
46367
|
+
/**
|
|
46368
|
+
* @description Retrieves asset collections based on the specified search criteria.
|
|
46369
|
+
* Results pagination is supported through the use of ResultsSkipNumber and ResultsMaxNumber.
|
|
46370
|
+
* @param space - Optional space to get asset collections associated with it
|
|
46371
|
+
* @param assetCollectionParentId - Optional asset collection parent id to get asset collections associated with it
|
|
46372
|
+
* @param assetCollectionType - Type of the asset collection
|
|
46373
|
+
* @param assetCollectionTags - Optional array of strings representing asset collection tags
|
|
46374
|
+
* @param assetCollectionNames - Optional array of strings representing asset
|
|
46375
|
+
* collection names
|
|
46376
|
+
* @param resultsSkipNumber - Optional param representing the number of result entries that will be skipped from the result. for no skip pass
|
|
46377
|
+
* nullptr.
|
|
46378
|
+
* @param resultsMaxNumber - Optional param representing the maximum number of result entries to be retrieved. for all available result
|
|
46379
|
+
* entries pass nullptr.
|
|
46380
|
+
* @param callback - Callback when asynchronous task finishes
|
|
46381
|
+
*/
|
|
46382
|
+
|
|
46383
|
+
async findAssetCollections(
|
|
46384
|
+
ids: Common.Array<string> | null,
|
|
46385
|
+
parentId: string | null,
|
|
46386
|
+
names: Common.Array<string> | null,
|
|
46387
|
+
types: Common.Array<Systems.EAssetCollectionType> | null,
|
|
46388
|
+
tags: Common.Array<string> | null,
|
|
46389
|
+
spaceIds: Common.Array<string> | null,
|
|
46390
|
+
resultsSkipNumber: number | null,
|
|
46391
|
+
resultsMaxNumber: number | null,
|
|
46392
|
+
): Promise<Systems.AssetCollectionsResult> {
|
|
46393
|
+
var _resolve;
|
|
46394
|
+
|
|
46395
|
+
var _promise = new Promise<Systems.AssetCollectionsResult>((_r) => {
|
|
46396
|
+
_resolve = _r;
|
|
46397
|
+
});
|
|
46398
|
+
|
|
46399
|
+
var _callbackPtr: number;
|
|
46400
|
+
var _callback = (_stateObject__: number, result) => {
|
|
46401
|
+
var _resultPtr = getNativePointer(result);
|
|
46402
|
+
var _resultInstance = new Systems.AssetCollectionsResult(_resultPtr);
|
|
46403
|
+
|
|
46404
|
+
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
46405
|
+
return;
|
|
46406
|
+
}
|
|
46407
|
+
|
|
46408
|
+
_resolve(_resultInstance);
|
|
46409
|
+
|
|
46410
|
+
Module.removeFunction(_callbackPtr);
|
|
46411
|
+
};
|
|
46412
|
+
|
|
46413
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
46414
|
+
|
|
46415
|
+
var resultsSkipNumberPointer = 0;
|
|
46416
|
+
if (resultsSkipNumber != null) {
|
|
46417
|
+
resultsSkipNumberPointer = Module._malloc(4);
|
|
46418
|
+
Module.setValue(resultsSkipNumberPointer, resultsSkipNumber, "i32");
|
|
46419
|
+
}
|
|
46420
|
+
|
|
46421
|
+
var resultsMaxNumberPointer = 0;
|
|
46422
|
+
if (resultsMaxNumber != null) {
|
|
46423
|
+
resultsMaxNumberPointer = Module._malloc(4);
|
|
46424
|
+
Module.setValue(resultsMaxNumberPointer, resultsMaxNumber, "i32");
|
|
46425
|
+
}
|
|
46426
|
+
|
|
46427
|
+
Module.ccall(
|
|
46428
|
+
"csp_systems_AssetSystem_FindAssetCollections_void_ArrayRC_StringRC_ArrayRC_ArrayRC_ArrayRC_ArrayRC_intRC_intRC_AssetCollectionsResultCallback",
|
|
46429
|
+
"void",
|
|
46430
|
+
[
|
|
46431
|
+
"number",
|
|
46432
|
+
"number",
|
|
46433
|
+
"string",
|
|
46434
|
+
"number",
|
|
46435
|
+
"number",
|
|
46436
|
+
"number",
|
|
46437
|
+
"number",
|
|
46438
|
+
"number",
|
|
46439
|
+
"number",
|
|
46440
|
+
"number",
|
|
46441
|
+
"number",
|
|
46442
|
+
],
|
|
46443
|
+
[
|
|
46444
|
+
this.pointer,
|
|
46445
|
+
ids != null ? ids.pointer : 0,
|
|
46446
|
+
parentId,
|
|
46447
|
+
names != null ? names.pointer : 0,
|
|
46448
|
+
types != null ? types.pointer : 0,
|
|
46449
|
+
tags != null ? tags.pointer : 0,
|
|
46450
|
+
spaceIds != null ? spaceIds.pointer : 0,
|
|
46451
|
+
resultsSkipNumberPointer,
|
|
46452
|
+
resultsMaxNumberPointer,
|
|
46453
|
+
_callbackPtr,
|
|
46454
|
+
0,
|
|
46455
|
+
],
|
|
46456
|
+
);
|
|
46457
|
+
|
|
46458
|
+
if (resultsSkipNumberPointer) {
|
|
46459
|
+
Module._free(resultsSkipNumberPointer);
|
|
46460
|
+
}
|
|
46461
|
+
if (resultsMaxNumberPointer) {
|
|
46462
|
+
Module._free(resultsMaxNumberPointer);
|
|
46463
|
+
}
|
|
46464
|
+
|
|
46465
|
+
return _promise;
|
|
46466
|
+
}
|
|
46467
|
+
|
|
46468
|
+
/**
|
|
46469
|
+
* @description Updates the Metadata field of an Asset Collection
|
|
46470
|
+
* @param assetCollection - Asset collection to be updated
|
|
46471
|
+
* @param newMetadata - The new metadata information that will replace the previous
|
|
46472
|
+
* @param tags - Optional array of strings to replace the tags
|
|
46473
|
+
* @param callback - Callback when asynchronous task finishes
|
|
46474
|
+
*/
|
|
46475
|
+
|
|
46476
|
+
async updateAssetCollectionMetadata(
|
|
46477
|
+
assetCollection: Systems.AssetCollection,
|
|
46478
|
+
newMetadata: Common.Map<string, string>,
|
|
46479
|
+
tags: Common.Array<string> | null,
|
|
46480
|
+
): Promise<Systems.AssetCollectionResult> {
|
|
46481
|
+
var _resolve;
|
|
46482
|
+
|
|
46483
|
+
var _promise = new Promise<Systems.AssetCollectionResult>((_r) => {
|
|
46484
|
+
_resolve = _r;
|
|
46485
|
+
});
|
|
46486
|
+
|
|
46487
|
+
var _callbackPtr: number;
|
|
46488
|
+
var _callback = (_stateObject__: number, result) => {
|
|
46489
|
+
var _resultPtr = getNativePointer(result);
|
|
46490
|
+
var _resultInstance = new Systems.AssetCollectionResult(_resultPtr);
|
|
46491
|
+
|
|
46492
|
+
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
46493
|
+
return;
|
|
46494
|
+
}
|
|
46495
|
+
|
|
46496
|
+
_resolve(_resultInstance);
|
|
46497
|
+
|
|
46498
|
+
Module.removeFunction(_callbackPtr);
|
|
46499
|
+
};
|
|
46500
|
+
|
|
46501
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
46502
|
+
|
|
46503
|
+
Module.ccall(
|
|
46504
|
+
"csp_systems_AssetSystem_UpdateAssetCollectionMetadata_void_AssetCollectionRC_MapRC_ArrayRC_AssetCollectionResultCallback",
|
|
45598
46505
|
"void",
|
|
45599
|
-
[
|
|
45600
|
-
"number",
|
|
45601
|
-
"string",
|
|
45602
|
-
"string",
|
|
45603
|
-
"string",
|
|
45604
|
-
"number",
|
|
45605
|
-
"number",
|
|
45606
|
-
"number",
|
|
45607
|
-
"number",
|
|
45608
|
-
"number",
|
|
45609
|
-
],
|
|
46506
|
+
["number", "number", "number", "number", "number", "number"],
|
|
45610
46507
|
[
|
|
45611
46508
|
this.pointer,
|
|
45612
|
-
|
|
45613
|
-
|
|
45614
|
-
assetCollectionName,
|
|
45615
|
-
metadata != null ? metadata.pointer : 0,
|
|
45616
|
-
type,
|
|
46509
|
+
assetCollection.pointer,
|
|
46510
|
+
newMetadata.pointer,
|
|
45617
46511
|
tags != null ? tags.pointer : 0,
|
|
45618
46512
|
_callbackPtr,
|
|
45619
46513
|
0,
|
|
@@ -45624,218 +46518,36 @@ export namespace Systems {
|
|
|
45624
46518
|
}
|
|
45625
46519
|
|
|
45626
46520
|
/**
|
|
45627
|
-
* @description
|
|
45628
|
-
* @param
|
|
45629
|
-
* @param
|
|
45630
|
-
|
|
45631
|
-
|
|
45632
|
-
async deleteAssetCollection(
|
|
45633
|
-
assetCollection: Systems.AssetCollection,
|
|
45634
|
-
): Promise<Systems.NullResult> {
|
|
45635
|
-
var _resolve;
|
|
45636
|
-
|
|
45637
|
-
var _promise = new Promise<Systems.NullResult>((_r) => {
|
|
45638
|
-
_resolve = _r;
|
|
45639
|
-
});
|
|
45640
|
-
|
|
45641
|
-
var _callbackPtr: number;
|
|
45642
|
-
var _callback = (_stateObject__: number, result) => {
|
|
45643
|
-
var _resultPtr = getNativePointer(result);
|
|
45644
|
-
var _resultInstance = new Systems.NullResult(_resultPtr);
|
|
45645
|
-
|
|
45646
|
-
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
45647
|
-
return;
|
|
45648
|
-
}
|
|
45649
|
-
|
|
45650
|
-
_resolve(_resultInstance);
|
|
45651
|
-
|
|
45652
|
-
Module.removeFunction(_callbackPtr);
|
|
45653
|
-
};
|
|
45654
|
-
|
|
45655
|
-
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
45656
|
-
|
|
45657
|
-
Module.ccall(
|
|
45658
|
-
"csp_systems_AssetSystem_DeleteAssetCollection_void_AssetCollectionRC_NullResultCallback",
|
|
45659
|
-
"void",
|
|
45660
|
-
["number", "number", "number", "number"],
|
|
45661
|
-
[this.pointer, assetCollection.pointer, _callbackPtr, 0],
|
|
45662
|
-
);
|
|
45663
|
-
|
|
45664
|
-
return _promise;
|
|
45665
|
-
}
|
|
45666
|
-
|
|
45667
|
-
/**
|
|
45668
|
-
* @description Copies an array of asset collections to another space. Note that all source asset collections must belong to the same space.
|
|
45669
|
-
* @param sourceAssetCollections - The array of asset collections to copy. They must all belong to the same
|
|
45670
|
-
* space.
|
|
45671
|
-
* @param destSpaceId - The unique identifier of the space to copy these asset collections to.
|
|
45672
|
-
* @param copyAsync - Whether to instruct the services to perform the copy of the asset collections
|
|
45673
|
-
* asynchronously.
|
|
45674
|
-
* @param callback - Callback when asynchronous task finishes
|
|
45675
|
-
*/
|
|
45676
|
-
|
|
45677
|
-
async copyAssetCollectionsToSpace(
|
|
45678
|
-
sourceAssetCollections: Common.Array<Systems.AssetCollection>,
|
|
45679
|
-
destSpaceId: string,
|
|
45680
|
-
copyAsync: boolean,
|
|
45681
|
-
): Promise<Systems.AssetCollectionsResult> {
|
|
45682
|
-
var _resolve;
|
|
45683
|
-
|
|
45684
|
-
var _promise = new Promise<Systems.AssetCollectionsResult>((_r) => {
|
|
45685
|
-
_resolve = _r;
|
|
45686
|
-
});
|
|
45687
|
-
|
|
45688
|
-
var _callbackPtr: number;
|
|
45689
|
-
var _callback = (_stateObject__: number, result) => {
|
|
45690
|
-
var _resultPtr = getNativePointer(result);
|
|
45691
|
-
var _resultInstance = new Systems.AssetCollectionsResult(_resultPtr);
|
|
45692
|
-
|
|
45693
|
-
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
45694
|
-
return;
|
|
45695
|
-
}
|
|
45696
|
-
|
|
45697
|
-
_resolve(_resultInstance);
|
|
45698
|
-
|
|
45699
|
-
Module.removeFunction(_callbackPtr);
|
|
45700
|
-
};
|
|
45701
|
-
|
|
45702
|
-
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
45703
|
-
|
|
45704
|
-
Module.ccall(
|
|
45705
|
-
"csp_systems_AssetSystem_CopyAssetCollectionsToSpace_void_ArrayR_StringRC_bool_AssetCollectionsResultCallback",
|
|
45706
|
-
"void",
|
|
45707
|
-
["number", "number", "string", "boolean", "number", "number"],
|
|
45708
|
-
[
|
|
45709
|
-
this.pointer,
|
|
45710
|
-
sourceAssetCollections.pointer,
|
|
45711
|
-
destSpaceId,
|
|
45712
|
-
copyAsync,
|
|
45713
|
-
_callbackPtr,
|
|
45714
|
-
0,
|
|
45715
|
-
],
|
|
45716
|
-
);
|
|
45717
|
-
|
|
45718
|
-
return _promise;
|
|
45719
|
-
}
|
|
45720
|
-
|
|
45721
|
-
/**
|
|
45722
|
-
* @description Finds an asset collection by its Id.
|
|
45723
|
-
* @param assetCollectionId - Asset collection to delete
|
|
45724
|
-
* @param callback - Callback when asynchronous task finishes
|
|
45725
|
-
*/
|
|
45726
|
-
|
|
45727
|
-
async getAssetCollectionById(
|
|
45728
|
-
assetCollectionId: string,
|
|
45729
|
-
): Promise<Systems.AssetCollectionResult> {
|
|
45730
|
-
var _resolve;
|
|
45731
|
-
|
|
45732
|
-
var _promise = new Promise<Systems.AssetCollectionResult>((_r) => {
|
|
45733
|
-
_resolve = _r;
|
|
45734
|
-
});
|
|
45735
|
-
|
|
45736
|
-
var _callbackPtr: number;
|
|
45737
|
-
var _callback = (_stateObject__: number, result) => {
|
|
45738
|
-
var _resultPtr = getNativePointer(result);
|
|
45739
|
-
var _resultInstance = new Systems.AssetCollectionResult(_resultPtr);
|
|
45740
|
-
|
|
45741
|
-
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
45742
|
-
return;
|
|
45743
|
-
}
|
|
45744
|
-
|
|
45745
|
-
_resolve(_resultInstance);
|
|
45746
|
-
|
|
45747
|
-
Module.removeFunction(_callbackPtr);
|
|
45748
|
-
};
|
|
45749
|
-
|
|
45750
|
-
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
45751
|
-
|
|
45752
|
-
Module.ccall(
|
|
45753
|
-
"csp_systems_AssetSystem_GetAssetCollectionById_void_StringRC_AssetCollectionResultCallback",
|
|
45754
|
-
"void",
|
|
45755
|
-
["number", "string", "number", "number"],
|
|
45756
|
-
[this.pointer, assetCollectionId, _callbackPtr, 0],
|
|
45757
|
-
);
|
|
45758
|
-
|
|
45759
|
-
return _promise;
|
|
45760
|
-
}
|
|
45761
|
-
|
|
45762
|
-
/**
|
|
45763
|
-
* @description Finds an asset collection by its Name.
|
|
45764
|
-
* @param assetCollectionName - Name of the asset collection to be retrieved
|
|
45765
|
-
* @param callback - Callback when asynchronous task finishes
|
|
45766
|
-
*/
|
|
45767
|
-
|
|
45768
|
-
async getAssetCollectionByName(
|
|
45769
|
-
assetCollectionName: string,
|
|
45770
|
-
): Promise<Systems.AssetCollectionResult> {
|
|
45771
|
-
var _resolve;
|
|
45772
|
-
|
|
45773
|
-
var _promise = new Promise<Systems.AssetCollectionResult>((_r) => {
|
|
45774
|
-
_resolve = _r;
|
|
45775
|
-
});
|
|
45776
|
-
|
|
45777
|
-
var _callbackPtr: number;
|
|
45778
|
-
var _callback = (_stateObject__: number, result) => {
|
|
45779
|
-
var _resultPtr = getNativePointer(result);
|
|
45780
|
-
var _resultInstance = new Systems.AssetCollectionResult(_resultPtr);
|
|
45781
|
-
|
|
45782
|
-
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
45783
|
-
return;
|
|
45784
|
-
}
|
|
45785
|
-
|
|
45786
|
-
_resolve(_resultInstance);
|
|
45787
|
-
|
|
45788
|
-
Module.removeFunction(_callbackPtr);
|
|
45789
|
-
};
|
|
45790
|
-
|
|
45791
|
-
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
45792
|
-
|
|
45793
|
-
Module.ccall(
|
|
45794
|
-
"csp_systems_AssetSystem_GetAssetCollectionByName_void_StringRC_AssetCollectionResultCallback",
|
|
45795
|
-
"void",
|
|
45796
|
-
["number", "string", "number", "number"],
|
|
45797
|
-
[this.pointer, assetCollectionName, _callbackPtr, 0],
|
|
45798
|
-
);
|
|
45799
|
-
|
|
45800
|
-
return _promise;
|
|
45801
|
-
}
|
|
45802
|
-
|
|
45803
|
-
/**
|
|
45804
|
-
* @description Retrieves asset collections based on the specified search criteria.
|
|
45805
|
-
* Results pagination is supported through the use of ResultsSkipNumber and ResultsMaxNumber.
|
|
45806
|
-
* @param space - Optional space to get asset collections associated with it
|
|
45807
|
-
* @param assetCollectionParentId - Optional asset collection parent id to get asset collections associated with it
|
|
45808
|
-
* @param assetCollectionType - Type of the asset collection
|
|
45809
|
-
* @param assetCollectionTags - Optional array of strings representing asset collection tags
|
|
45810
|
-
* @param assetCollectionNames - Optional array of strings representing asset
|
|
46521
|
+
* @description Retrieves the number asset collections based on the specified search criteria.
|
|
46522
|
+
* @param parentId - Optional asset collection parent id to get asset collections associated with it
|
|
46523
|
+
* @param names - Optional array of asset collection names
|
|
46524
|
+
* @param types - Type of the asset collection
|
|
46525
|
+
* @param tags - Optional array of asset collection tags
|
|
45811
46526
|
* collection names
|
|
45812
|
-
* @param
|
|
45813
|
-
* nullptr.
|
|
45814
|
-
* @param resultsMaxNumber - Optional param representing the maximum number of result entries to be retrieved. for all available result
|
|
45815
|
-
* entries pass nullptr.
|
|
46527
|
+
* @param spaceIds - Optional space ids to get asset collections associated with them
|
|
45816
46528
|
* @param callback - Callback when asynchronous task finishes
|
|
45817
46529
|
*/
|
|
45818
46530
|
|
|
45819
|
-
async
|
|
46531
|
+
async getAssetCollectionCount(
|
|
45820
46532
|
ids: Common.Array<string> | null,
|
|
45821
46533
|
parentId: string | null,
|
|
45822
46534
|
names: Common.Array<string> | null,
|
|
45823
46535
|
types: Common.Array<Systems.EAssetCollectionType> | null,
|
|
45824
46536
|
tags: Common.Array<string> | null,
|
|
45825
46537
|
spaceIds: Common.Array<string> | null,
|
|
45826
|
-
|
|
45827
|
-
resultsMaxNumber: number | null,
|
|
45828
|
-
): Promise<Systems.AssetCollectionsResult> {
|
|
46538
|
+
): Promise<Systems.AssetCollectionCountResult> {
|
|
45829
46539
|
var _resolve;
|
|
45830
46540
|
|
|
45831
|
-
var _promise = new Promise<Systems.
|
|
46541
|
+
var _promise = new Promise<Systems.AssetCollectionCountResult>((_r) => {
|
|
45832
46542
|
_resolve = _r;
|
|
45833
46543
|
});
|
|
45834
46544
|
|
|
45835
46545
|
var _callbackPtr: number;
|
|
45836
46546
|
var _callback = (_stateObject__: number, result) => {
|
|
45837
46547
|
var _resultPtr = getNativePointer(result);
|
|
45838
|
-
var _resultInstance = new Systems.
|
|
46548
|
+
var _resultInstance = new Systems.AssetCollectionCountResult(
|
|
46549
|
+
_resultPtr,
|
|
46550
|
+
);
|
|
45839
46551
|
|
|
45840
46552
|
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
45841
46553
|
return;
|
|
@@ -45848,20 +46560,8 @@ export namespace Systems {
|
|
|
45848
46560
|
|
|
45849
46561
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
45850
46562
|
|
|
45851
|
-
var resultsSkipNumberPointer = 0;
|
|
45852
|
-
if (resultsSkipNumber != null) {
|
|
45853
|
-
resultsSkipNumberPointer = Module._malloc(4);
|
|
45854
|
-
Module.setValue(resultsSkipNumberPointer, resultsSkipNumber, "i32");
|
|
45855
|
-
}
|
|
45856
|
-
|
|
45857
|
-
var resultsMaxNumberPointer = 0;
|
|
45858
|
-
if (resultsMaxNumber != null) {
|
|
45859
|
-
resultsMaxNumberPointer = Module._malloc(4);
|
|
45860
|
-
Module.setValue(resultsMaxNumberPointer, resultsMaxNumber, "i32");
|
|
45861
|
-
}
|
|
45862
|
-
|
|
45863
46563
|
Module.ccall(
|
|
45864
|
-
"
|
|
46564
|
+
"csp_systems_AssetSystem_GetAssetCollectionCount_void_ArrayRC_StringRC_ArrayRC_ArrayRC_ArrayRC_ArrayRC_AssetCollectionCountResultCallback",
|
|
45865
46565
|
"void",
|
|
45866
46566
|
[
|
|
45867
46567
|
"number",
|
|
@@ -45873,8 +46573,6 @@ export namespace Systems {
|
|
|
45873
46573
|
"number",
|
|
45874
46574
|
"number",
|
|
45875
46575
|
"number",
|
|
45876
|
-
"number",
|
|
45877
|
-
"number",
|
|
45878
46576
|
],
|
|
45879
46577
|
[
|
|
45880
46578
|
this.pointer,
|
|
@@ -45884,67 +46582,6 @@ export namespace Systems {
|
|
|
45884
46582
|
types != null ? types.pointer : 0,
|
|
45885
46583
|
tags != null ? tags.pointer : 0,
|
|
45886
46584
|
spaceIds != null ? spaceIds.pointer : 0,
|
|
45887
|
-
resultsSkipNumberPointer,
|
|
45888
|
-
resultsMaxNumberPointer,
|
|
45889
|
-
_callbackPtr,
|
|
45890
|
-
0,
|
|
45891
|
-
],
|
|
45892
|
-
);
|
|
45893
|
-
|
|
45894
|
-
if (resultsSkipNumberPointer) {
|
|
45895
|
-
Module._free(resultsSkipNumberPointer);
|
|
45896
|
-
}
|
|
45897
|
-
if (resultsMaxNumberPointer) {
|
|
45898
|
-
Module._free(resultsMaxNumberPointer);
|
|
45899
|
-
}
|
|
45900
|
-
|
|
45901
|
-
return _promise;
|
|
45902
|
-
}
|
|
45903
|
-
|
|
45904
|
-
/**
|
|
45905
|
-
* @description Updates the Metadata field of an Asset Collection
|
|
45906
|
-
* @param assetCollection - Asset collection to be updated
|
|
45907
|
-
* @param newMetadata - The new metadata information that will replace the previous
|
|
45908
|
-
* @param tags - Optional array of strings to replace the tags
|
|
45909
|
-
* @param callback - Callback when asynchronous task finishes
|
|
45910
|
-
*/
|
|
45911
|
-
|
|
45912
|
-
async updateAssetCollectionMetadata(
|
|
45913
|
-
assetCollection: Systems.AssetCollection,
|
|
45914
|
-
newMetadata: Common.Map<string, string>,
|
|
45915
|
-
tags: Common.Array<string> | null,
|
|
45916
|
-
): Promise<Systems.AssetCollectionResult> {
|
|
45917
|
-
var _resolve;
|
|
45918
|
-
|
|
45919
|
-
var _promise = new Promise<Systems.AssetCollectionResult>((_r) => {
|
|
45920
|
-
_resolve = _r;
|
|
45921
|
-
});
|
|
45922
|
-
|
|
45923
|
-
var _callbackPtr: number;
|
|
45924
|
-
var _callback = (_stateObject__: number, result) => {
|
|
45925
|
-
var _resultPtr = getNativePointer(result);
|
|
45926
|
-
var _resultInstance = new Systems.AssetCollectionResult(_resultPtr);
|
|
45927
|
-
|
|
45928
|
-
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
45929
|
-
return;
|
|
45930
|
-
}
|
|
45931
|
-
|
|
45932
|
-
_resolve(_resultInstance);
|
|
45933
|
-
|
|
45934
|
-
Module.removeFunction(_callbackPtr);
|
|
45935
|
-
};
|
|
45936
|
-
|
|
45937
|
-
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
45938
|
-
|
|
45939
|
-
Module.ccall(
|
|
45940
|
-
"csp_systems_AssetSystem_UpdateAssetCollectionMetadata_void_AssetCollectionRC_MapRC_ArrayRC_AssetCollectionResultCallback",
|
|
45941
|
-
"void",
|
|
45942
|
-
["number", "number", "number", "number", "number", "number"],
|
|
45943
|
-
[
|
|
45944
|
-
this.pointer,
|
|
45945
|
-
assetCollection.pointer,
|
|
45946
|
-
newMetadata.pointer,
|
|
45947
|
-
tags != null ? tags.pointer : 0,
|
|
45948
46585
|
_callbackPtr,
|
|
45949
46586
|
0,
|
|
45950
46587
|
],
|
|
@@ -59823,6 +60460,26 @@ export namespace Common {
|
|
|
59823
60460
|
return _inst;
|
|
59824
60461
|
}
|
|
59825
60462
|
|
|
60463
|
+
static ofStringAndcsp_systems_Asset(): Map<string, Systems.Asset> {
|
|
60464
|
+
var _ret = Module._malloc(8);
|
|
60465
|
+
Module.ccall(
|
|
60466
|
+
"csp_common_Map_Ctor_String_csp_systems_Asset",
|
|
60467
|
+
"void",
|
|
60468
|
+
["number"],
|
|
60469
|
+
[_ret],
|
|
60470
|
+
);
|
|
60471
|
+
var _inst = new Map<string, Systems.Asset>(
|
|
60472
|
+
getNativePointer(_ret),
|
|
60473
|
+
StringFactory,
|
|
60474
|
+
"String",
|
|
60475
|
+
csp_systems_AssetFactory,
|
|
60476
|
+
"csp_systems_Asset",
|
|
60477
|
+
);
|
|
60478
|
+
Module._free(_ret);
|
|
60479
|
+
|
|
60480
|
+
return _inst;
|
|
60481
|
+
}
|
|
60482
|
+
|
|
59826
60483
|
static ofStringAndcsp_common_Map_String_String(): Map<
|
|
59827
60484
|
string,
|
|
59828
60485
|
Common.Map<string, string>
|
|
@@ -59957,6 +60614,28 @@ export namespace Common {
|
|
|
59957
60614
|
return _inst;
|
|
59958
60615
|
}
|
|
59959
60616
|
|
|
60617
|
+
static ofStringAndcsp_systems_Asset_Map(
|
|
60618
|
+
other: Common.Map<string, Systems.Asset>,
|
|
60619
|
+
): Map<string, Systems.Asset> {
|
|
60620
|
+
var _ret = Module._malloc(8);
|
|
60621
|
+
Module.ccall(
|
|
60622
|
+
"csp_common_Map_Ctor_MapRC_String_csp_systems_Asset",
|
|
60623
|
+
"void",
|
|
60624
|
+
["number", "number"],
|
|
60625
|
+
[_ret, other.pointer],
|
|
60626
|
+
);
|
|
60627
|
+
var _inst = new Map<string, Systems.Asset>(
|
|
60628
|
+
getNativePointer(_ret),
|
|
60629
|
+
StringFactory,
|
|
60630
|
+
"String",
|
|
60631
|
+
csp_systems_AssetFactory,
|
|
60632
|
+
"csp_systems_Asset",
|
|
60633
|
+
);
|
|
60634
|
+
Module._free(_ret);
|
|
60635
|
+
|
|
60636
|
+
return _inst;
|
|
60637
|
+
}
|
|
60638
|
+
|
|
59960
60639
|
static ofStringAndcsp_common_Map_String_String_Map(
|
|
59961
60640
|
other: Common.Map<string, Common.Map<string, string>>,
|
|
59962
60641
|
): Map<string, Common.Map<string, string>> {
|