connected-spaces-platform.web 5.3.1 → 5.5.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 +33 -83
- package/Debug/ConnectedSpacesPlatform_WASM.wasm +0 -0
- package/Debug/ConnectedSpacesPlatform_WASM.wasm.debug.wasm +0 -0
- package/README.md +1 -1
- package/Release/ConnectedSpacesPlatform_WASM.js +1 -1
- package/Release/ConnectedSpacesPlatform_WASM.wasm +0 -0
- package/connectedspacesplatform.d.ts +36 -111
- package/connectedspacesplatform.js +82 -404
- package/connectedspacesplatform.js.map +1 -1
- package/connectedspacesplatform.ts +171 -742
- package/package.json +1 -1
|
@@ -1038,14 +1038,6 @@ function csp_multiplayer_SequenceChangedParamsFactory(
|
|
|
1038
1038
|
ProxyClassFactories["csp_multiplayer_SequenceChangedParams"] =
|
|
1039
1039
|
csp_multiplayer_SequenceChangedParamsFactory;
|
|
1040
1040
|
|
|
1041
|
-
function csp_multiplayer_SequenceHierarchyChangedParamsFactory(
|
|
1042
|
-
nativePointer: NativePointer,
|
|
1043
|
-
): NativeClassWrapper {
|
|
1044
|
-
return new Multiplayer.SequenceHierarchyChangedParams(nativePointer);
|
|
1045
|
-
}
|
|
1046
|
-
ProxyClassFactories["csp_multiplayer_SequenceHierarchyChangedParams"] =
|
|
1047
|
-
csp_multiplayer_SequenceHierarchyChangedParamsFactory;
|
|
1048
|
-
|
|
1049
1041
|
function csp_multiplayer_SequenceHotspotChangedParamsFactory(
|
|
1050
1042
|
nativePointer: NativePointer,
|
|
1051
1043
|
): NativeClassWrapper {
|
|
@@ -1070,14 +1062,6 @@ function csp_multiplayer_ReplicatedValueFactory(
|
|
|
1070
1062
|
ProxyClassFactories["csp_multiplayer_ReplicatedValue"] =
|
|
1071
1063
|
csp_multiplayer_ReplicatedValueFactory;
|
|
1072
1064
|
|
|
1073
|
-
function csp_multiplayer_SequenceHierarchyFactory(
|
|
1074
|
-
nativePointer: NativePointer,
|
|
1075
|
-
): NativeClassWrapper {
|
|
1076
|
-
return new Multiplayer.SequenceHierarchy(nativePointer);
|
|
1077
|
-
}
|
|
1078
|
-
ProxyClassFactories["csp_multiplayer_SequenceHierarchy"] =
|
|
1079
|
-
csp_multiplayer_SequenceHierarchyFactory;
|
|
1080
|
-
|
|
1081
1065
|
function csp_multiplayer_ComponentUpdateInfoFactory(
|
|
1082
1066
|
nativePointer: NativePointer,
|
|
1083
1067
|
): NativeClassWrapper {
|
|
@@ -1556,22 +1540,6 @@ function csp_systems_VoipSystemFactory(
|
|
|
1556
1540
|
}
|
|
1557
1541
|
ProxyClassFactories["csp_systems_VoipSystem"] = csp_systems_VoipSystemFactory;
|
|
1558
1542
|
|
|
1559
|
-
function csp_multiplayer_SequenceHierarchyResultFactory(
|
|
1560
|
-
nativePointer: NativePointer,
|
|
1561
|
-
): NativeClassWrapper {
|
|
1562
|
-
return new Multiplayer.SequenceHierarchyResult(nativePointer);
|
|
1563
|
-
}
|
|
1564
|
-
ProxyClassFactories["csp_multiplayer_SequenceHierarchyResult"] =
|
|
1565
|
-
csp_multiplayer_SequenceHierarchyResultFactory;
|
|
1566
|
-
|
|
1567
|
-
function csp_multiplayer_SequenceHierarchyCollectionResultFactory(
|
|
1568
|
-
nativePointer: NativePointer,
|
|
1569
|
-
): NativeClassWrapper {
|
|
1570
|
-
return new Multiplayer.SequenceHierarchyCollectionResult(nativePointer);
|
|
1571
|
-
}
|
|
1572
|
-
ProxyClassFactories["csp_multiplayer_SequenceHierarchyCollectionResult"] =
|
|
1573
|
-
csp_multiplayer_SequenceHierarchyCollectionResultFactory;
|
|
1574
|
-
|
|
1575
1543
|
function csp_multiplayer_AnimatedModelSpaceComponentFactory(
|
|
1576
1544
|
nativePointer: NativePointer,
|
|
1577
1545
|
): NativeClassWrapper {
|
|
@@ -2444,26 +2412,6 @@ function csp_common_Array_csp_systems_SpaceUserRoleFactory(
|
|
|
2444
2412
|
ProxyClassFactories["csp_common_Array_csp_systems_SpaceUserRole"] =
|
|
2445
2413
|
csp_common_Array_csp_systems_SpaceUserRoleFactory;
|
|
2446
2414
|
|
|
2447
|
-
function csp_common_Array_uint64_tFactory(
|
|
2448
|
-
nativePointer: NativePointer,
|
|
2449
|
-
): NativeClassWrapper {
|
|
2450
|
-
return new Common.Array<bigint>(nativePointer, NumberFactory, "uint64_t");
|
|
2451
|
-
}
|
|
2452
|
-
ProxyClassFactories["csp_common_Array_uint64_t"] =
|
|
2453
|
-
csp_common_Array_uint64_tFactory;
|
|
2454
|
-
|
|
2455
|
-
function csp_common_Array_csp_multiplayer_SequenceHierarchyFactory(
|
|
2456
|
-
nativePointer: NativePointer,
|
|
2457
|
-
): NativeClassWrapper {
|
|
2458
|
-
return new Common.Array<Multiplayer.SequenceHierarchy>(
|
|
2459
|
-
nativePointer,
|
|
2460
|
-
csp_multiplayer_SequenceHierarchyFactory,
|
|
2461
|
-
"csp_multiplayer_SequenceHierarchy",
|
|
2462
|
-
);
|
|
2463
|
-
}
|
|
2464
|
-
ProxyClassFactories["csp_common_Array_csp_multiplayer_SequenceHierarchy"] =
|
|
2465
|
-
csp_common_Array_csp_multiplayer_SequenceHierarchyFactory;
|
|
2466
|
-
|
|
2467
2415
|
function csp_common_Array_csp_multiplayer_MessageInfoFactory(
|
|
2468
2416
|
nativePointer: NativePointer,
|
|
2469
2417
|
): NativeClassWrapper {
|
|
@@ -2963,6 +2911,25 @@ function csp_common_Map_UInt32_csp_multiplayer_ReplicatedValueFactory(
|
|
|
2963
2911
|
ProxyClassFactories["csp_common_Map_UInt32_csp_multiplayer_ReplicatedValue"] =
|
|
2964
2912
|
csp_common_Map_UInt32_csp_multiplayer_ReplicatedValueFactory;
|
|
2965
2913
|
|
|
2914
|
+
function csp_common_Map_csp_multiplayer_ReplicatedValue_csp_multiplayer_ReplicatedValueFactory(
|
|
2915
|
+
nativePointer: NativePointer,
|
|
2916
|
+
): NativeClassWrapper {
|
|
2917
|
+
return new Common.Map<
|
|
2918
|
+
Multiplayer.ReplicatedValue,
|
|
2919
|
+
Multiplayer.ReplicatedValue
|
|
2920
|
+
>(
|
|
2921
|
+
nativePointer,
|
|
2922
|
+
csp_multiplayer_ReplicatedValueFactory,
|
|
2923
|
+
"csp_multiplayer_ReplicatedValue",
|
|
2924
|
+
csp_multiplayer_ReplicatedValueFactory,
|
|
2925
|
+
"csp_multiplayer_ReplicatedValue",
|
|
2926
|
+
);
|
|
2927
|
+
}
|
|
2928
|
+
ProxyClassFactories[
|
|
2929
|
+
"csp_common_Map_csp_multiplayer_ReplicatedValue_csp_multiplayer_ReplicatedValue"
|
|
2930
|
+
] =
|
|
2931
|
+
csp_common_Map_csp_multiplayer_ReplicatedValue_csp_multiplayer_ReplicatedValueFactory;
|
|
2932
|
+
|
|
2966
2933
|
function csp_common_Map_UInt16_csp_multiplayer_ComponentBaseFactory(
|
|
2967
2934
|
nativePointer: NativePointer,
|
|
2968
2935
|
): NativeClassWrapper {
|
|
@@ -3144,6 +3111,7 @@ export namespace Multiplayer {
|
|
|
3144
3111
|
Vector2,
|
|
3145
3112
|
Vector3,
|
|
3146
3113
|
Vector4,
|
|
3114
|
+
Map,
|
|
3147
3115
|
}
|
|
3148
3116
|
}
|
|
3149
3117
|
|
|
@@ -22252,110 +22220,6 @@ export namespace Multiplayer {
|
|
|
22252
22220
|
}
|
|
22253
22221
|
}
|
|
22254
22222
|
|
|
22255
|
-
export namespace Multiplayer {
|
|
22256
|
-
export class SequenceHierarchyChangedParams
|
|
22257
|
-
extends NativeClassWrapper
|
|
22258
|
-
implements INativeResource
|
|
22259
|
-
{
|
|
22260
|
-
/** @internal */
|
|
22261
|
-
constructor(pointer: NativePointer) {
|
|
22262
|
-
super(pointer);
|
|
22263
|
-
}
|
|
22264
|
-
|
|
22265
|
-
static create(): SequenceHierarchyChangedParams {
|
|
22266
|
-
var _ptr = Module._malloc(8);
|
|
22267
|
-
Module.ccall(
|
|
22268
|
-
"csp_multiplayer_SequenceHierarchyChangedParams_Ctor",
|
|
22269
|
-
"void",
|
|
22270
|
-
["number"],
|
|
22271
|
-
[_ptr],
|
|
22272
|
-
);
|
|
22273
|
-
var _nPtr = getNativePointer(_ptr);
|
|
22274
|
-
|
|
22275
|
-
return new SequenceHierarchyChangedParams(_nPtr);
|
|
22276
|
-
}
|
|
22277
|
-
|
|
22278
|
-
delete(): void {
|
|
22279
|
-
if (this.ownsPointer && !this.disposed) {
|
|
22280
|
-
Module.ccall(
|
|
22281
|
-
"csp_multiplayer_SequenceHierarchyChangedParams_Dtor",
|
|
22282
|
-
"void",
|
|
22283
|
-
["number"],
|
|
22284
|
-
[this.pointer],
|
|
22285
|
-
);
|
|
22286
|
-
|
|
22287
|
-
this.disposed = true;
|
|
22288
|
-
}
|
|
22289
|
-
}
|
|
22290
|
-
|
|
22291
|
-
get updateType(): Multiplayer.ESequenceUpdateType {
|
|
22292
|
-
let _result = Module.ccall(
|
|
22293
|
-
"csp_multiplayer_SequenceHierarchyChangedParams__Get_UpdateType",
|
|
22294
|
-
"number",
|
|
22295
|
-
["number"],
|
|
22296
|
-
[this.pointer],
|
|
22297
|
-
);
|
|
22298
|
-
|
|
22299
|
-
return _result;
|
|
22300
|
-
}
|
|
22301
|
-
|
|
22302
|
-
set updateType(value: Multiplayer.ESequenceUpdateType) {
|
|
22303
|
-
Module.ccall(
|
|
22304
|
-
"csp_multiplayer_SequenceHierarchyChangedParams__Set_UpdateType",
|
|
22305
|
-
"void",
|
|
22306
|
-
["number", "number"],
|
|
22307
|
-
[this.pointer, value],
|
|
22308
|
-
);
|
|
22309
|
-
}
|
|
22310
|
-
|
|
22311
|
-
get parentId(): bigint {
|
|
22312
|
-
let _result = Module.ccall(
|
|
22313
|
-
"csp_multiplayer_SequenceHierarchyChangedParams__Get_ParentId",
|
|
22314
|
-
"bigint",
|
|
22315
|
-
["number"],
|
|
22316
|
-
[this.pointer],
|
|
22317
|
-
);
|
|
22318
|
-
|
|
22319
|
-
const _unfixedValue = _result;
|
|
22320
|
-
let _fixedValue =
|
|
22321
|
-
_unfixedValue < 0 ? _unfixedValue + 2n ** 64n : _unfixedValue;
|
|
22322
|
-
|
|
22323
|
-
_result = _fixedValue;
|
|
22324
|
-
|
|
22325
|
-
return _result;
|
|
22326
|
-
}
|
|
22327
|
-
|
|
22328
|
-
set parentId(value: bigint) {
|
|
22329
|
-
Module.ccall(
|
|
22330
|
-
"csp_multiplayer_SequenceHierarchyChangedParams__Set_ParentId",
|
|
22331
|
-
"void",
|
|
22332
|
-
["number", "bigint"],
|
|
22333
|
-
[this.pointer, value],
|
|
22334
|
-
);
|
|
22335
|
-
}
|
|
22336
|
-
|
|
22337
|
-
get isRoot(): boolean {
|
|
22338
|
-
let _result = Module.ccall(
|
|
22339
|
-
"csp_multiplayer_SequenceHierarchyChangedParams__Get_IsRoot",
|
|
22340
|
-
"boolean",
|
|
22341
|
-
["number"],
|
|
22342
|
-
[this.pointer],
|
|
22343
|
-
);
|
|
22344
|
-
|
|
22345
|
-
return _result;
|
|
22346
|
-
}
|
|
22347
|
-
|
|
22348
|
-
set isRoot(value: boolean) {
|
|
22349
|
-
Module.ccall(
|
|
22350
|
-
"csp_multiplayer_SequenceHierarchyChangedParams__Set_IsRoot",
|
|
22351
|
-
"void",
|
|
22352
|
-
["number", "boolean"],
|
|
22353
|
-
[this.pointer, value],
|
|
22354
|
-
);
|
|
22355
|
-
}
|
|
22356
|
-
}
|
|
22357
|
-
}
|
|
22358
|
-
|
|
22359
22223
|
export namespace Multiplayer {
|
|
22360
22224
|
export class SequenceHotspotChangedParams
|
|
22361
22225
|
extends NativeClassWrapper
|
|
@@ -23078,6 +22942,28 @@ export namespace Multiplayer {
|
|
|
23078
22942
|
return new ReplicatedValue(_nPtr);
|
|
23079
22943
|
}
|
|
23080
22944
|
|
|
22945
|
+
/**
|
|
22946
|
+
* @description Construct a ReplicatedValue based on an csp::common::Map type.
|
|
22947
|
+
* @param inMapValue - Initial value.
|
|
22948
|
+
*/
|
|
22949
|
+
static create_mapValue(
|
|
22950
|
+
mapValue: Common.Map<
|
|
22951
|
+
Multiplayer.ReplicatedValue,
|
|
22952
|
+
Multiplayer.ReplicatedValue
|
|
22953
|
+
>,
|
|
22954
|
+
): ReplicatedValue {
|
|
22955
|
+
var _ptr = Module._malloc(8);
|
|
22956
|
+
Module.ccall(
|
|
22957
|
+
"csp_multiplayer_ReplicatedValue_Ctor_MapRC",
|
|
22958
|
+
"void",
|
|
22959
|
+
["number", "number"],
|
|
22960
|
+
[_ptr, mapValue.pointer],
|
|
22961
|
+
);
|
|
22962
|
+
var _nPtr = getNativePointer(_ptr);
|
|
22963
|
+
|
|
22964
|
+
return new ReplicatedValue(_nPtr);
|
|
22965
|
+
}
|
|
22966
|
+
|
|
23081
22967
|
/**
|
|
23082
22968
|
* @description Copy constructor
|
|
23083
22969
|
* @param other - The value to copy.
|
|
@@ -23129,6 +23015,18 @@ export namespace Multiplayer {
|
|
|
23129
23015
|
*/
|
|
23130
23016
|
// operator!=
|
|
23131
23017
|
|
|
23018
|
+
/**
|
|
23019
|
+
* @description Less than operator overload.
|
|
23020
|
+
* @param replicatedValue - Other value to compare to.
|
|
23021
|
+
*/
|
|
23022
|
+
// operator<
|
|
23023
|
+
|
|
23024
|
+
/**
|
|
23025
|
+
* @description Greater than operator overload.
|
|
23026
|
+
* @param replicatedValue - Other value to compare to.
|
|
23027
|
+
*/
|
|
23028
|
+
// operator>
|
|
23029
|
+
|
|
23132
23030
|
/**
|
|
23133
23031
|
* @description Gets the type of replicated value.
|
|
23134
23032
|
* @return Enum representing all supported replication base types.
|
|
@@ -23376,108 +23274,57 @@ export namespace Multiplayer {
|
|
|
23376
23274
|
|
|
23377
23275
|
return _nPtr;
|
|
23378
23276
|
}
|
|
23379
|
-
}
|
|
23380
|
-
}
|
|
23381
|
-
|
|
23382
|
-
export namespace Multiplayer {
|
|
23383
|
-
/**
|
|
23384
|
-
@ingroup Space Entity System
|
|
23385
|
-
* @description Class which exposes data that is relevent to entity hierarchies, which comes from the underlying Sequence System.
|
|
23386
|
-
* This allows users to manage the ordering of child entites within their parent.
|
|
23387
|
-
*/
|
|
23388
|
-
export class SequenceHierarchy
|
|
23389
|
-
extends NativeClassWrapper
|
|
23390
|
-
implements INativeResource
|
|
23391
|
-
{
|
|
23392
|
-
/** @internal */
|
|
23393
|
-
constructor(pointer: NativePointer) {
|
|
23394
|
-
super(pointer);
|
|
23395
|
-
}
|
|
23396
|
-
|
|
23397
|
-
hasParent(): boolean {
|
|
23398
|
-
let _result = Module.ccall(
|
|
23399
|
-
"csp_multiplayer_SequenceHierarchy_HasParentC_bool",
|
|
23400
|
-
"boolean",
|
|
23401
|
-
["number"],
|
|
23402
|
-
[this.pointer],
|
|
23403
|
-
);
|
|
23404
|
-
|
|
23405
|
-
return _result;
|
|
23406
|
-
}
|
|
23407
23277
|
|
|
23408
|
-
|
|
23409
|
-
|
|
23410
|
-
|
|
23411
|
-
|
|
23412
|
-
|
|
23413
|
-
["number"],
|
|
23414
|
-
[_ptr],
|
|
23415
|
-
);
|
|
23416
|
-
var _nPtr = getNativePointer(_ptr);
|
|
23417
|
-
|
|
23418
|
-
return new SequenceHierarchy(_nPtr);
|
|
23419
|
-
}
|
|
23420
|
-
|
|
23421
|
-
delete(): void {
|
|
23422
|
-
if (this.ownsPointer && !this.disposed) {
|
|
23423
|
-
Module.ccall(
|
|
23424
|
-
"csp_multiplayer_SequenceHierarchy_Dtor",
|
|
23425
|
-
"void",
|
|
23426
|
-
["number"],
|
|
23427
|
-
[this.pointer],
|
|
23428
|
-
);
|
|
23278
|
+
/**
|
|
23279
|
+
* @description Get a csp::common::Map value from this replicated value, will assert if not a csp::common::Map type.
|
|
23280
|
+
* /// Use ReplicatedValue::GetReplicatedValueType to ensure type before accessing.
|
|
23281
|
+
* /// @return csp::common::Map
|
|
23282
|
+
*/
|
|
23429
23283
|
|
|
23430
|
-
|
|
23431
|
-
|
|
23432
|
-
|
|
23284
|
+
getMap(): Common.Map<
|
|
23285
|
+
Multiplayer.ReplicatedValue,
|
|
23286
|
+
Multiplayer.ReplicatedValue
|
|
23287
|
+
> {
|
|
23288
|
+
var _ret = Module._malloc(8);
|
|
23433
23289
|
|
|
23434
|
-
get ids(): Common.Array<bigint> {
|
|
23435
|
-
const _ptr = Module._malloc(8);
|
|
23436
23290
|
Module.ccall(
|
|
23437
|
-
"
|
|
23291
|
+
"csp_multiplayer_ReplicatedValue_GetMapC_MapRC",
|
|
23438
23292
|
"void",
|
|
23439
23293
|
["number", "number"],
|
|
23440
|
-
[
|
|
23294
|
+
[_ret, this.pointer],
|
|
23295
|
+
);
|
|
23296
|
+
var _nPtr = new Common.Map<
|
|
23297
|
+
Multiplayer.ReplicatedValue,
|
|
23298
|
+
Multiplayer.ReplicatedValue
|
|
23299
|
+
>(
|
|
23300
|
+
getNativePointer(_ret),
|
|
23301
|
+
csp_multiplayer_ReplicatedValueFactory,
|
|
23302
|
+
"csp_multiplayer_ReplicatedValue",
|
|
23303
|
+
csp_multiplayer_ReplicatedValueFactory,
|
|
23304
|
+
"csp_multiplayer_ReplicatedValue",
|
|
23441
23305
|
);
|
|
23306
|
+
Module._free(_ret);
|
|
23442
23307
|
|
|
23443
|
-
|
|
23444
|
-
return new Common.Array<bigint>(_nPtr, NumberFactory, "uint64_t");
|
|
23308
|
+
return _nPtr;
|
|
23445
23309
|
}
|
|
23446
23310
|
|
|
23447
|
-
|
|
23311
|
+
/**
|
|
23312
|
+
* @description Set a Map value for this replicated value from a csp::common::Map, will overwrite and previous value.
|
|
23313
|
+
*/
|
|
23314
|
+
|
|
23315
|
+
setMap(
|
|
23316
|
+
value: Common.Map<
|
|
23317
|
+
Multiplayer.ReplicatedValue,
|
|
23318
|
+
Multiplayer.ReplicatedValue
|
|
23319
|
+
>,
|
|
23320
|
+
): void {
|
|
23448
23321
|
Module.ccall(
|
|
23449
|
-
"
|
|
23322
|
+
"csp_multiplayer_ReplicatedValue_SetMap_void_MapRC",
|
|
23450
23323
|
"void",
|
|
23451
23324
|
["number", "number"],
|
|
23452
23325
|
[this.pointer, value.pointer],
|
|
23453
23326
|
);
|
|
23454
23327
|
}
|
|
23455
|
-
|
|
23456
|
-
get parentId(): bigint {
|
|
23457
|
-
let _result = Module.ccall(
|
|
23458
|
-
"csp_multiplayer_SequenceHierarchy__Get_ParentId",
|
|
23459
|
-
"bigint",
|
|
23460
|
-
["number"],
|
|
23461
|
-
[this.pointer],
|
|
23462
|
-
);
|
|
23463
|
-
|
|
23464
|
-
const _unfixedValue = _result;
|
|
23465
|
-
let _fixedValue =
|
|
23466
|
-
_unfixedValue < 0 ? _unfixedValue + 2n ** 64n : _unfixedValue;
|
|
23467
|
-
|
|
23468
|
-
_result = _fixedValue;
|
|
23469
|
-
|
|
23470
|
-
return _result;
|
|
23471
|
-
}
|
|
23472
|
-
|
|
23473
|
-
set parentId(value: bigint) {
|
|
23474
|
-
Module.ccall(
|
|
23475
|
-
"csp_multiplayer_SequenceHierarchy__Set_ParentId",
|
|
23476
|
-
"void",
|
|
23477
|
-
["number", "bigint"],
|
|
23478
|
-
[this.pointer, value],
|
|
23479
|
-
);
|
|
23480
|
-
}
|
|
23481
23328
|
}
|
|
23482
23329
|
}
|
|
23483
23330
|
|
|
@@ -25322,300 +25169,6 @@ export namespace Multiplayer {
|
|
|
25322
25169
|
|
|
25323
25170
|
return _nPtr;
|
|
25324
25171
|
}
|
|
25325
|
-
|
|
25326
|
-
/**
|
|
25327
|
-
* @description Creates an entity hierarchy for a given parent entity id. Pass null to create a hiererchy for the root.
|
|
25328
|
-
* @param parentId - An optional parent. Pass null to create a hiererchy for the root.
|
|
25329
|
-
* @param hierarchyItemIds - An array of entity ids.
|
|
25330
|
-
* @param callback - A callback when the asynchronous task finishes.
|
|
25331
|
-
*/
|
|
25332
|
-
|
|
25333
|
-
async createSequenceHierarchy(
|
|
25334
|
-
parentId: bigint | null,
|
|
25335
|
-
hierarchyItemIds: Common.Array<bigint>,
|
|
25336
|
-
): Promise<Multiplayer.SequenceHierarchyResult> {
|
|
25337
|
-
var _resolve;
|
|
25338
|
-
|
|
25339
|
-
var _promise = new Promise<Multiplayer.SequenceHierarchyResult>((_r) => {
|
|
25340
|
-
_resolve = _r;
|
|
25341
|
-
});
|
|
25342
|
-
|
|
25343
|
-
var _callbackPtr: number;
|
|
25344
|
-
var _callback = (_stateObject__: number, result) => {
|
|
25345
|
-
var _resultPtr = getNativePointer(result);
|
|
25346
|
-
var _resultInstance = new Multiplayer.SequenceHierarchyResult(
|
|
25347
|
-
_resultPtr,
|
|
25348
|
-
);
|
|
25349
|
-
|
|
25350
|
-
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
25351
|
-
return;
|
|
25352
|
-
}
|
|
25353
|
-
|
|
25354
|
-
_resolve(_resultInstance);
|
|
25355
|
-
|
|
25356
|
-
Module.removeFunction(_callbackPtr);
|
|
25357
|
-
};
|
|
25358
|
-
|
|
25359
|
-
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
25360
|
-
|
|
25361
|
-
var parentIdPointer = 0;
|
|
25362
|
-
if (parentId != null) {
|
|
25363
|
-
parentIdPointer = Module._malloc(4);
|
|
25364
|
-
Module.setValue(parentIdPointer, parentId, "i32");
|
|
25365
|
-
}
|
|
25366
|
-
|
|
25367
|
-
Module.ccall(
|
|
25368
|
-
"csp_multiplayer_SpaceEntitySystem_CreateSequenceHierarchy_void_uint64_tRC_ArrayRC_SequenceHierarchyResultCallback",
|
|
25369
|
-
"void",
|
|
25370
|
-
["number", "bigint", "number", "number", "number"],
|
|
25371
|
-
[
|
|
25372
|
-
this.pointer,
|
|
25373
|
-
parentIdPointer,
|
|
25374
|
-
hierarchyItemIds.pointer,
|
|
25375
|
-
_callbackPtr,
|
|
25376
|
-
0,
|
|
25377
|
-
],
|
|
25378
|
-
);
|
|
25379
|
-
|
|
25380
|
-
if (parentIdPointer) {
|
|
25381
|
-
Module._free(parentIdPointer);
|
|
25382
|
-
}
|
|
25383
|
-
|
|
25384
|
-
return _promise;
|
|
25385
|
-
}
|
|
25386
|
-
|
|
25387
|
-
/**
|
|
25388
|
-
* @description Updates an entity hierarchy for a given parent entity id. Pass null to update the root.
|
|
25389
|
-
* This will create a hierarchy if it doesnt exist.
|
|
25390
|
-
* @param parentId - An optional parent. Pass null to create a hiererchy for the root.
|
|
25391
|
-
* @param hierarchyItemIds - An array of entity ids.
|
|
25392
|
-
* @param callback - A callback when the asynchronous task finishes.
|
|
25393
|
-
*/
|
|
25394
|
-
|
|
25395
|
-
async updateSequenceHierarchy(
|
|
25396
|
-
parentId: bigint | null,
|
|
25397
|
-
hierarchyItemIds: Common.Array<bigint>,
|
|
25398
|
-
): Promise<Multiplayer.SequenceHierarchyResult> {
|
|
25399
|
-
var _resolve;
|
|
25400
|
-
|
|
25401
|
-
var _promise = new Promise<Multiplayer.SequenceHierarchyResult>((_r) => {
|
|
25402
|
-
_resolve = _r;
|
|
25403
|
-
});
|
|
25404
|
-
|
|
25405
|
-
var _callbackPtr: number;
|
|
25406
|
-
var _callback = (_stateObject__: number, result) => {
|
|
25407
|
-
var _resultPtr = getNativePointer(result);
|
|
25408
|
-
var _resultInstance = new Multiplayer.SequenceHierarchyResult(
|
|
25409
|
-
_resultPtr,
|
|
25410
|
-
);
|
|
25411
|
-
|
|
25412
|
-
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
25413
|
-
return;
|
|
25414
|
-
}
|
|
25415
|
-
|
|
25416
|
-
_resolve(_resultInstance);
|
|
25417
|
-
|
|
25418
|
-
Module.removeFunction(_callbackPtr);
|
|
25419
|
-
};
|
|
25420
|
-
|
|
25421
|
-
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
25422
|
-
|
|
25423
|
-
var parentIdPointer = 0;
|
|
25424
|
-
if (parentId != null) {
|
|
25425
|
-
parentIdPointer = Module._malloc(4);
|
|
25426
|
-
Module.setValue(parentIdPointer, parentId, "i32");
|
|
25427
|
-
}
|
|
25428
|
-
|
|
25429
|
-
Module.ccall(
|
|
25430
|
-
"csp_multiplayer_SpaceEntitySystem_UpdateSequenceHierarchy_void_uint64_tRC_ArrayRC_SequenceHierarchyResultCallback",
|
|
25431
|
-
"void",
|
|
25432
|
-
["number", "bigint", "number", "number", "number"],
|
|
25433
|
-
[
|
|
25434
|
-
this.pointer,
|
|
25435
|
-
parentIdPointer,
|
|
25436
|
-
hierarchyItemIds.pointer,
|
|
25437
|
-
_callbackPtr,
|
|
25438
|
-
0,
|
|
25439
|
-
],
|
|
25440
|
-
);
|
|
25441
|
-
|
|
25442
|
-
if (parentIdPointer) {
|
|
25443
|
-
Module._free(parentIdPointer);
|
|
25444
|
-
}
|
|
25445
|
-
|
|
25446
|
-
return _promise;
|
|
25447
|
-
}
|
|
25448
|
-
|
|
25449
|
-
/**
|
|
25450
|
-
* @description Gets an entity hierarchy for a given parent entity id. Pass null to get the root hierarchy.
|
|
25451
|
-
* @param parentId - An optional parent. Pass null to get the root hierarchy.
|
|
25452
|
-
* @param callback - A callback when the asynchronous task finishes.
|
|
25453
|
-
*/
|
|
25454
|
-
|
|
25455
|
-
async getSequenceHierarchy(
|
|
25456
|
-
parentId: bigint | null,
|
|
25457
|
-
): Promise<Multiplayer.SequenceHierarchyResult> {
|
|
25458
|
-
var _resolve;
|
|
25459
|
-
|
|
25460
|
-
var _promise = new Promise<Multiplayer.SequenceHierarchyResult>((_r) => {
|
|
25461
|
-
_resolve = _r;
|
|
25462
|
-
});
|
|
25463
|
-
|
|
25464
|
-
var _callbackPtr: number;
|
|
25465
|
-
var _callback = (_stateObject__: number, result) => {
|
|
25466
|
-
var _resultPtr = getNativePointer(result);
|
|
25467
|
-
var _resultInstance = new Multiplayer.SequenceHierarchyResult(
|
|
25468
|
-
_resultPtr,
|
|
25469
|
-
);
|
|
25470
|
-
|
|
25471
|
-
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
25472
|
-
return;
|
|
25473
|
-
}
|
|
25474
|
-
|
|
25475
|
-
_resolve(_resultInstance);
|
|
25476
|
-
|
|
25477
|
-
Module.removeFunction(_callbackPtr);
|
|
25478
|
-
};
|
|
25479
|
-
|
|
25480
|
-
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
25481
|
-
|
|
25482
|
-
var parentIdPointer = 0;
|
|
25483
|
-
if (parentId != null) {
|
|
25484
|
-
parentIdPointer = Module._malloc(4);
|
|
25485
|
-
Module.setValue(parentIdPointer, parentId, "i32");
|
|
25486
|
-
}
|
|
25487
|
-
|
|
25488
|
-
Module.ccall(
|
|
25489
|
-
"csp_multiplayer_SpaceEntitySystem_GetSequenceHierarchy_void_uint64_tRC_SequenceHierarchyResultCallback",
|
|
25490
|
-
"void",
|
|
25491
|
-
["number", "bigint", "number", "number"],
|
|
25492
|
-
[this.pointer, parentIdPointer, _callbackPtr, 0],
|
|
25493
|
-
);
|
|
25494
|
-
|
|
25495
|
-
if (parentIdPointer) {
|
|
25496
|
-
Module._free(parentIdPointer);
|
|
25497
|
-
}
|
|
25498
|
-
|
|
25499
|
-
return _promise;
|
|
25500
|
-
}
|
|
25501
|
-
|
|
25502
|
-
/**
|
|
25503
|
-
* @description Gets all hierarchies for a space
|
|
25504
|
-
* @param callback - A callback when the asynchronous task finishes.
|
|
25505
|
-
*/
|
|
25506
|
-
|
|
25507
|
-
async getAllSequenceHierarchies(): Promise<Multiplayer.SequenceHierarchyCollectionResult> {
|
|
25508
|
-
var _resolve;
|
|
25509
|
-
|
|
25510
|
-
var _promise = new Promise<Multiplayer.SequenceHierarchyCollectionResult>(
|
|
25511
|
-
(_r) => {
|
|
25512
|
-
_resolve = _r;
|
|
25513
|
-
},
|
|
25514
|
-
);
|
|
25515
|
-
|
|
25516
|
-
var _callbackPtr: number;
|
|
25517
|
-
var _callback = (_stateObject__: number, result) => {
|
|
25518
|
-
var _resultPtr = getNativePointer(result);
|
|
25519
|
-
var _resultInstance = new Multiplayer.SequenceHierarchyCollectionResult(
|
|
25520
|
-
_resultPtr,
|
|
25521
|
-
);
|
|
25522
|
-
|
|
25523
|
-
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
25524
|
-
return;
|
|
25525
|
-
}
|
|
25526
|
-
|
|
25527
|
-
_resolve(_resultInstance);
|
|
25528
|
-
|
|
25529
|
-
Module.removeFunction(_callbackPtr);
|
|
25530
|
-
};
|
|
25531
|
-
|
|
25532
|
-
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
25533
|
-
|
|
25534
|
-
Module.ccall(
|
|
25535
|
-
"csp_multiplayer_SpaceEntitySystem_GetAllSequenceHierarchies_void_SequenceHierarchyCollectionResultCallback",
|
|
25536
|
-
"void",
|
|
25537
|
-
["number", "number", "number"],
|
|
25538
|
-
[this.pointer, _callbackPtr, 0],
|
|
25539
|
-
);
|
|
25540
|
-
|
|
25541
|
-
return _promise;
|
|
25542
|
-
}
|
|
25543
|
-
|
|
25544
|
-
/**
|
|
25545
|
-
* @description Deletes an entity hierarchy for a given parent entity id. Pass null to delete the root hierarchy.
|
|
25546
|
-
* @param parentId - An optional parent. Pass null to get the root hierarchy.
|
|
25547
|
-
* @param callback - A callback when the asynchronous task finishes.
|
|
25548
|
-
*/
|
|
25549
|
-
|
|
25550
|
-
async deleteSequenceHierarchy(
|
|
25551
|
-
parentId: bigint | null,
|
|
25552
|
-
): Promise<Systems.NullResult> {
|
|
25553
|
-
var _resolve;
|
|
25554
|
-
|
|
25555
|
-
var _promise = new Promise<Systems.NullResult>((_r) => {
|
|
25556
|
-
_resolve = _r;
|
|
25557
|
-
});
|
|
25558
|
-
|
|
25559
|
-
var _callbackPtr: number;
|
|
25560
|
-
var _callback = (_stateObject__: number, result) => {
|
|
25561
|
-
var _resultPtr = getNativePointer(result);
|
|
25562
|
-
var _resultInstance = new Systems.NullResult(_resultPtr);
|
|
25563
|
-
|
|
25564
|
-
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
25565
|
-
return;
|
|
25566
|
-
}
|
|
25567
|
-
|
|
25568
|
-
_resolve(_resultInstance);
|
|
25569
|
-
|
|
25570
|
-
Module.removeFunction(_callbackPtr);
|
|
25571
|
-
};
|
|
25572
|
-
|
|
25573
|
-
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
25574
|
-
|
|
25575
|
-
var parentIdPointer = 0;
|
|
25576
|
-
if (parentId != null) {
|
|
25577
|
-
parentIdPointer = Module._malloc(4);
|
|
25578
|
-
Module.setValue(parentIdPointer, parentId, "i32");
|
|
25579
|
-
}
|
|
25580
|
-
|
|
25581
|
-
Module.ccall(
|
|
25582
|
-
"csp_multiplayer_SpaceEntitySystem_DeleteSequenceHierarchy_void_uint64_tRC_NullResultCallback",
|
|
25583
|
-
"void",
|
|
25584
|
-
["number", "bigint", "number", "number"],
|
|
25585
|
-
[this.pointer, parentIdPointer, _callbackPtr, 0],
|
|
25586
|
-
);
|
|
25587
|
-
|
|
25588
|
-
if (parentIdPointer) {
|
|
25589
|
-
Module._free(parentIdPointer);
|
|
25590
|
-
}
|
|
25591
|
-
|
|
25592
|
-
return _promise;
|
|
25593
|
-
}
|
|
25594
|
-
|
|
25595
|
-
/**
|
|
25596
|
-
* @description Sets a callback for a sequence hierarchy changed event.
|
|
25597
|
-
* @param callback - Callback to receive data for the sequence hierarchy that has been changed.
|
|
25598
|
-
*/
|
|
25599
|
-
setSequenceHierarchyChangedCallback(
|
|
25600
|
-
callback: (arg1: Multiplayer.SequenceHierarchyChangedParams) => void,
|
|
25601
|
-
) {
|
|
25602
|
-
var _callback = (_stateObject__: number, arg1) => {
|
|
25603
|
-
var _arg1 = new Multiplayer.SequenceHierarchyChangedParams(
|
|
25604
|
-
getNativePointer(arg1),
|
|
25605
|
-
);
|
|
25606
|
-
|
|
25607
|
-
callback(_arg1);
|
|
25608
|
-
};
|
|
25609
|
-
|
|
25610
|
-
var _callbackPtr = Module.addFunction(_callback, "vii");
|
|
25611
|
-
|
|
25612
|
-
Module.ccall(
|
|
25613
|
-
"csp_multiplayer_SpaceEntitySystem_SetSequenceHierarchyChangedCallback_void_SequenceHierarchyChangedCallbackHandler",
|
|
25614
|
-
"void",
|
|
25615
|
-
["number", "number", "number"],
|
|
25616
|
-
[this.pointer, _callbackPtr, 0],
|
|
25617
|
-
);
|
|
25618
|
-
}
|
|
25619
25172
|
}
|
|
25620
25173
|
}
|
|
25621
25174
|
|
|
@@ -34496,130 +34049,6 @@ export namespace Systems {
|
|
|
34496
34049
|
}
|
|
34497
34050
|
}
|
|
34498
34051
|
|
|
34499
|
-
export namespace Multiplayer {
|
|
34500
|
-
/**
|
|
34501
|
-
@ingroup Space Entity System
|
|
34502
|
-
* @description Data class used to contain information when attempting to get a sequence hierarchy
|
|
34503
|
-
*/
|
|
34504
|
-
export class SequenceHierarchyResult
|
|
34505
|
-
extends Systems.ResultBase
|
|
34506
|
-
implements INativeResource
|
|
34507
|
-
{
|
|
34508
|
-
/** @internal */
|
|
34509
|
-
constructor(pointer: NativePointer) {
|
|
34510
|
-
super(pointer);
|
|
34511
|
-
}
|
|
34512
|
-
|
|
34513
|
-
static fromResultBase(
|
|
34514
|
-
baseInstance: Systems.ResultBase,
|
|
34515
|
-
): Multiplayer.SequenceHierarchyResult {
|
|
34516
|
-
const nativeClassWrapper = baseInstance as unknown as NativeClassWrapper;
|
|
34517
|
-
return new Multiplayer.SequenceHierarchyResult(
|
|
34518
|
-
new NativePointer(
|
|
34519
|
-
nativeClassWrapper.pointer,
|
|
34520
|
-
nativeClassWrapper.ownsPointer,
|
|
34521
|
-
),
|
|
34522
|
-
);
|
|
34523
|
-
}
|
|
34524
|
-
|
|
34525
|
-
/**
|
|
34526
|
-
* @description Retreives the SequenceHierarchy from the result.
|
|
34527
|
-
*/
|
|
34528
|
-
|
|
34529
|
-
getSequenceHierarchy(): Multiplayer.SequenceHierarchy {
|
|
34530
|
-
var _ret = Module._malloc(8);
|
|
34531
|
-
|
|
34532
|
-
Module.ccall(
|
|
34533
|
-
"csp_multiplayer_SequenceHierarchyResult_GetSequenceHierarchyC_SequenceHierarchyRC",
|
|
34534
|
-
"void",
|
|
34535
|
-
["number", "number"],
|
|
34536
|
-
[_ret, this.pointer],
|
|
34537
|
-
);
|
|
34538
|
-
var _nPtr = new Multiplayer.SequenceHierarchy(getNativePointer(_ret));
|
|
34539
|
-
Module._free(_ret);
|
|
34540
|
-
|
|
34541
|
-
return _nPtr;
|
|
34542
|
-
}
|
|
34543
|
-
|
|
34544
|
-
delete(): void {
|
|
34545
|
-
if (this.ownsPointer && !this.disposed) {
|
|
34546
|
-
Module.ccall(
|
|
34547
|
-
"csp_multiplayer_SequenceHierarchyResult_Dtor",
|
|
34548
|
-
"void",
|
|
34549
|
-
["number"],
|
|
34550
|
-
[this.pointer],
|
|
34551
|
-
);
|
|
34552
|
-
|
|
34553
|
-
this.disposed = true;
|
|
34554
|
-
}
|
|
34555
|
-
}
|
|
34556
|
-
}
|
|
34557
|
-
}
|
|
34558
|
-
|
|
34559
|
-
export namespace Multiplayer {
|
|
34560
|
-
/**
|
|
34561
|
-
@ingroup Space Entity System
|
|
34562
|
-
* @description Data class used to contain information when attempting to get an array of sequence hierachies
|
|
34563
|
-
*/
|
|
34564
|
-
export class SequenceHierarchyCollectionResult
|
|
34565
|
-
extends Systems.ResultBase
|
|
34566
|
-
implements INativeResource
|
|
34567
|
-
{
|
|
34568
|
-
/** @internal */
|
|
34569
|
-
constructor(pointer: NativePointer) {
|
|
34570
|
-
super(pointer);
|
|
34571
|
-
}
|
|
34572
|
-
|
|
34573
|
-
static fromResultBase(
|
|
34574
|
-
baseInstance: Systems.ResultBase,
|
|
34575
|
-
): Multiplayer.SequenceHierarchyCollectionResult {
|
|
34576
|
-
const nativeClassWrapper = baseInstance as unknown as NativeClassWrapper;
|
|
34577
|
-
return new Multiplayer.SequenceHierarchyCollectionResult(
|
|
34578
|
-
new NativePointer(
|
|
34579
|
-
nativeClassWrapper.pointer,
|
|
34580
|
-
nativeClassWrapper.ownsPointer,
|
|
34581
|
-
),
|
|
34582
|
-
);
|
|
34583
|
-
}
|
|
34584
|
-
|
|
34585
|
-
/**
|
|
34586
|
-
* @description Retreives the SequenceHierarchies from the result.
|
|
34587
|
-
*/
|
|
34588
|
-
|
|
34589
|
-
getSequenceHierarchyCollection(): Common.Array<Multiplayer.SequenceHierarchy> {
|
|
34590
|
-
var _ret = Module._malloc(8);
|
|
34591
|
-
|
|
34592
|
-
Module.ccall(
|
|
34593
|
-
"csp_multiplayer_SequenceHierarchyCollectionResult_GetSequenceHierarchyCollectionC_ArrayRC",
|
|
34594
|
-
"void",
|
|
34595
|
-
["number", "number"],
|
|
34596
|
-
[_ret, this.pointer],
|
|
34597
|
-
);
|
|
34598
|
-
var _nPtr = new Common.Array<Multiplayer.SequenceHierarchy>(
|
|
34599
|
-
getNativePointer(_ret),
|
|
34600
|
-
csp_multiplayer_SequenceHierarchyFactory,
|
|
34601
|
-
"csp_multiplayer_SequenceHierarchy",
|
|
34602
|
-
);
|
|
34603
|
-
Module._free(_ret);
|
|
34604
|
-
|
|
34605
|
-
return _nPtr;
|
|
34606
|
-
}
|
|
34607
|
-
|
|
34608
|
-
delete(): void {
|
|
34609
|
-
if (this.ownsPointer && !this.disposed) {
|
|
34610
|
-
Module.ccall(
|
|
34611
|
-
"csp_multiplayer_SequenceHierarchyCollectionResult_Dtor",
|
|
34612
|
-
"void",
|
|
34613
|
-
["number"],
|
|
34614
|
-
[this.pointer],
|
|
34615
|
-
);
|
|
34616
|
-
|
|
34617
|
-
this.disposed = true;
|
|
34618
|
-
}
|
|
34619
|
-
}
|
|
34620
|
-
}
|
|
34621
|
-
}
|
|
34622
|
-
|
|
34623
34052
|
export namespace Multiplayer {
|
|
34624
34053
|
/**
|
|
34625
34054
|
@ingroup AnimatedModelSpaceComponent
|
|
@@ -36593,7 +36022,7 @@ export namespace Multiplayer {
|
|
|
36593
36022
|
|
|
36594
36023
|
/**
|
|
36595
36024
|
* @description Gived the sensor size and focal length, return the horizonal fov
|
|
36596
|
-
* @return FOV in
|
|
36025
|
+
* @return FOV in radians
|
|
36597
36026
|
*/
|
|
36598
36027
|
|
|
36599
36028
|
getFov(): number {
|
|
@@ -45668,12 +45097,14 @@ export namespace Systems {
|
|
|
45668
45097
|
* @description Updates the Metadata field of an Asset Collection
|
|
45669
45098
|
* @param assetCollection - Asset collection to be updated
|
|
45670
45099
|
* @param newMetadata - The new metadata information that will replace the previous
|
|
45100
|
+
* @param tags - Optional array of strings to replace the tags
|
|
45671
45101
|
* @param callback - Callback when asynchronous task finishes
|
|
45672
45102
|
*/
|
|
45673
45103
|
|
|
45674
45104
|
async updateAssetCollectionMetadata(
|
|
45675
45105
|
assetCollection: Systems.AssetCollection,
|
|
45676
45106
|
newMetadata: Common.Map<string, string>,
|
|
45107
|
+
tags: Common.Array<string> | null,
|
|
45677
45108
|
): Promise<Systems.AssetCollectionResult> {
|
|
45678
45109
|
var _resolve;
|
|
45679
45110
|
|
|
@@ -45698,13 +45129,14 @@ export namespace Systems {
|
|
|
45698
45129
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
45699
45130
|
|
|
45700
45131
|
Module.ccall(
|
|
45701
|
-
"
|
|
45132
|
+
"csp_systems_AssetSystem_UpdateAssetCollectionMetadata_void_AssetCollectionRC_MapRC_ArrayRC_AssetCollectionResultCallback",
|
|
45702
45133
|
"void",
|
|
45703
|
-
["number", "number", "number", "number", "number"],
|
|
45134
|
+
["number", "number", "number", "number", "number", "number"],
|
|
45704
45135
|
[
|
|
45705
45136
|
this.pointer,
|
|
45706
45137
|
assetCollection.pointer,
|
|
45707
45138
|
newMetadata.pointer,
|
|
45139
|
+
tags != null ? tags.pointer : 0,
|
|
45708
45140
|
_callbackPtr,
|
|
45709
45141
|
0,
|
|
45710
45142
|
],
|
|
@@ -52545,6 +51977,7 @@ export namespace Systems {
|
|
|
52545
51977
|
* their emails and roles
|
|
52546
51978
|
* @param metadata - Metadata information for the new space
|
|
52547
51979
|
* @param fileThumbnail - Optional thumbnail image for the new space
|
|
51980
|
+
* @param tags - Optional array of strings to set the metadata tags for the new space
|
|
52548
51981
|
* @param callback - Callback when asynchronous task finishes
|
|
52549
51982
|
*/
|
|
52550
51983
|
|
|
@@ -52555,6 +51988,7 @@ export namespace Systems {
|
|
|
52555
51988
|
inviteUsers: Systems.InviteUserRoleInfoCollection | null,
|
|
52556
51989
|
metadata: Common.Map<string, string>,
|
|
52557
51990
|
fileThumbnail: Systems.FileAssetDataSource | null,
|
|
51991
|
+
tags: Common.Array<string> | null,
|
|
52558
51992
|
): Promise<Systems.SpaceResult> {
|
|
52559
51993
|
var _resolve;
|
|
52560
51994
|
|
|
@@ -52579,7 +52013,7 @@ export namespace Systems {
|
|
|
52579
52013
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
52580
52014
|
|
|
52581
52015
|
Module.ccall(
|
|
52582
|
-
"
|
|
52016
|
+
"csp_systems_SpaceSystem_CreateSpace_void_StringRC_StringRC_SpaceAttributes_InviteUserRoleInfoCollectionRC_MapRC_FileAssetDataSourceRC_ArrayRC_SpaceResultCallback",
|
|
52583
52017
|
"void",
|
|
52584
52018
|
[
|
|
52585
52019
|
"number",
|
|
@@ -52591,6 +52025,7 @@ export namespace Systems {
|
|
|
52591
52025
|
"number",
|
|
52592
52026
|
"number",
|
|
52593
52027
|
"number",
|
|
52028
|
+
"number",
|
|
52594
52029
|
],
|
|
52595
52030
|
[
|
|
52596
52031
|
this.pointer,
|
|
@@ -52600,6 +52035,7 @@ export namespace Systems {
|
|
|
52600
52035
|
inviteUsers != null ? inviteUsers.pointer : 0,
|
|
52601
52036
|
metadata.pointer,
|
|
52602
52037
|
fileThumbnail != null ? fileThumbnail.pointer : 0,
|
|
52038
|
+
tags != null ? tags.pointer : 0,
|
|
52603
52039
|
_callbackPtr,
|
|
52604
52040
|
0,
|
|
52605
52041
|
],
|
|
@@ -52617,6 +52053,7 @@ export namespace Systems {
|
|
|
52617
52053
|
* their emails and roles
|
|
52618
52054
|
* @param metadata - Metadata information for the new space
|
|
52619
52055
|
* @param thumbnail - Thumbnail image buffer for the new space
|
|
52056
|
+
* @param tags - Optional array of strings to set the metadata tags for the new space
|
|
52620
52057
|
* @param callback - Callback when asynchronous task finishes
|
|
52621
52058
|
*/
|
|
52622
52059
|
|
|
@@ -52627,6 +52064,7 @@ export namespace Systems {
|
|
|
52627
52064
|
inviteUsers: Systems.InviteUserRoleInfoCollection | null,
|
|
52628
52065
|
metadata: Common.Map<string, string>,
|
|
52629
52066
|
thumbnail: Systems.BufferAssetDataSource,
|
|
52067
|
+
tags: Common.Array<string> | null,
|
|
52630
52068
|
): Promise<Systems.SpaceResult> {
|
|
52631
52069
|
var _resolve;
|
|
52632
52070
|
|
|
@@ -52651,7 +52089,7 @@ export namespace Systems {
|
|
|
52651
52089
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
52652
52090
|
|
|
52653
52091
|
Module.ccall(
|
|
52654
|
-
"
|
|
52092
|
+
"csp_systems_SpaceSystem_CreateSpaceWithBuffer_void_StringRC_StringRC_SpaceAttributes_InviteUserRoleInfoCollectionRC_MapRC_BufferAssetDataSourceRC_ArrayRC_SpaceResultCallback",
|
|
52655
52093
|
"void",
|
|
52656
52094
|
[
|
|
52657
52095
|
"number",
|
|
@@ -52663,6 +52101,7 @@ export namespace Systems {
|
|
|
52663
52101
|
"number",
|
|
52664
52102
|
"number",
|
|
52665
52103
|
"number",
|
|
52104
|
+
"number",
|
|
52666
52105
|
],
|
|
52667
52106
|
[
|
|
52668
52107
|
this.pointer,
|
|
@@ -52672,6 +52111,7 @@ export namespace Systems {
|
|
|
52672
52111
|
inviteUsers != null ? inviteUsers.pointer : 0,
|
|
52673
52112
|
metadata.pointer,
|
|
52674
52113
|
thumbnail.pointer,
|
|
52114
|
+
tags != null ? tags.pointer : 0,
|
|
52675
52115
|
_callbackPtr,
|
|
52676
52116
|
0,
|
|
52677
52117
|
],
|
|
@@ -53522,12 +52962,14 @@ export namespace Systems {
|
|
|
53522
52962
|
* @description Updates the Space metadata information with the new one provided
|
|
53523
52963
|
* @param spaceId - ID of Space for which the metadata will be updated
|
|
53524
52964
|
* @param newMetadata - New metadata information that will replace the previous one
|
|
52965
|
+
* @param tags - Optional array of strings to replace the tags in the metadata
|
|
53525
52966
|
* @param callback - Callback when asynchronous task finishes
|
|
53526
52967
|
*/
|
|
53527
52968
|
|
|
53528
52969
|
async updateSpaceMetadata(
|
|
53529
52970
|
spaceId: string,
|
|
53530
52971
|
newMetadata: Common.Map<string, string>,
|
|
52972
|
+
tags: Common.Array<string> | null,
|
|
53531
52973
|
): Promise<Systems.NullResult> {
|
|
53532
52974
|
var _resolve;
|
|
53533
52975
|
|
|
@@ -53552,10 +52994,17 @@ export namespace Systems {
|
|
|
53552
52994
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
53553
52995
|
|
|
53554
52996
|
Module.ccall(
|
|
53555
|
-
"
|
|
52997
|
+
"csp_systems_SpaceSystem_UpdateSpaceMetadata_void_StringRC_MapRC_ArrayRC_NullResultCallback",
|
|
53556
52998
|
"void",
|
|
53557
|
-
["number", "string", "number", "number", "number"],
|
|
53558
|
-
[
|
|
52999
|
+
["number", "string", "number", "number", "number", "number"],
|
|
53000
|
+
[
|
|
53001
|
+
this.pointer,
|
|
53002
|
+
spaceId,
|
|
53003
|
+
newMetadata.pointer,
|
|
53004
|
+
tags != null ? tags.pointer : 0,
|
|
53005
|
+
_callbackPtr,
|
|
53006
|
+
0,
|
|
53007
|
+
],
|
|
53559
53008
|
);
|
|
53560
53009
|
|
|
53561
53010
|
return _promise;
|
|
@@ -56918,42 +56367,6 @@ export namespace Common {
|
|
|
56918
56367
|
return _inst;
|
|
56919
56368
|
}
|
|
56920
56369
|
|
|
56921
|
-
static ofuint64_t(): Array<bigint> {
|
|
56922
|
-
var _ret = Module._malloc(8);
|
|
56923
|
-
Module.ccall(
|
|
56924
|
-
"csp_common_Array_Ctor_uint64_t",
|
|
56925
|
-
"void",
|
|
56926
|
-
["number"],
|
|
56927
|
-
[_ret],
|
|
56928
|
-
);
|
|
56929
|
-
var _inst = new Array<bigint>(
|
|
56930
|
-
getNativePointer(_ret),
|
|
56931
|
-
NumberFactory,
|
|
56932
|
-
"uint64_t",
|
|
56933
|
-
);
|
|
56934
|
-
Module._free(_ret);
|
|
56935
|
-
|
|
56936
|
-
return _inst;
|
|
56937
|
-
}
|
|
56938
|
-
|
|
56939
|
-
static ofcsp_multiplayer_SequenceHierarchy(): Array<Multiplayer.SequenceHierarchy> {
|
|
56940
|
-
var _ret = Module._malloc(8);
|
|
56941
|
-
Module.ccall(
|
|
56942
|
-
"csp_common_Array_Ctor_csp_multiplayer_SequenceHierarchy",
|
|
56943
|
-
"void",
|
|
56944
|
-
["number"],
|
|
56945
|
-
[_ret],
|
|
56946
|
-
);
|
|
56947
|
-
var _inst = new Array<Multiplayer.SequenceHierarchy>(
|
|
56948
|
-
getNativePointer(_ret),
|
|
56949
|
-
csp_multiplayer_SequenceHierarchyFactory,
|
|
56950
|
-
"csp_multiplayer_SequenceHierarchy",
|
|
56951
|
-
);
|
|
56952
|
-
Module._free(_ret);
|
|
56953
|
-
|
|
56954
|
-
return _inst;
|
|
56955
|
-
}
|
|
56956
|
-
|
|
56957
56370
|
static ofcsp_multiplayer_MessageInfo(): Array<Multiplayer.MessageInfo> {
|
|
56958
56371
|
var _ret = Module._malloc(8);
|
|
56959
56372
|
Module.ccall(
|
|
@@ -57701,44 +57114,6 @@ export namespace Common {
|
|
|
57701
57114
|
return _inst;
|
|
57702
57115
|
}
|
|
57703
57116
|
|
|
57704
|
-
static ofuint64_t_number(size: number): Array<bigint> {
|
|
57705
|
-
var _ret = Module._malloc(8);
|
|
57706
|
-
Module.ccall(
|
|
57707
|
-
"csp_common_Array_Conv_size_tC_uint64_t",
|
|
57708
|
-
"void",
|
|
57709
|
-
["number", "number"],
|
|
57710
|
-
[_ret, size],
|
|
57711
|
-
);
|
|
57712
|
-
var _inst = new Array<bigint>(
|
|
57713
|
-
getNativePointer(_ret),
|
|
57714
|
-
NumberFactory,
|
|
57715
|
-
"uint64_t",
|
|
57716
|
-
);
|
|
57717
|
-
Module._free(_ret);
|
|
57718
|
-
|
|
57719
|
-
return _inst;
|
|
57720
|
-
}
|
|
57721
|
-
|
|
57722
|
-
static ofcsp_multiplayer_SequenceHierarchy_number(
|
|
57723
|
-
size: number,
|
|
57724
|
-
): Array<Multiplayer.SequenceHierarchy> {
|
|
57725
|
-
var _ret = Module._malloc(8);
|
|
57726
|
-
Module.ccall(
|
|
57727
|
-
"csp_common_Array_Conv_size_tC_csp_multiplayer_SequenceHierarchy",
|
|
57728
|
-
"void",
|
|
57729
|
-
["number", "number"],
|
|
57730
|
-
[_ret, size],
|
|
57731
|
-
);
|
|
57732
|
-
var _inst = new Array<Multiplayer.SequenceHierarchy>(
|
|
57733
|
-
getNativePointer(_ret),
|
|
57734
|
-
csp_multiplayer_SequenceHierarchyFactory,
|
|
57735
|
-
"csp_multiplayer_SequenceHierarchy",
|
|
57736
|
-
);
|
|
57737
|
-
Module._free(_ret);
|
|
57738
|
-
|
|
57739
|
-
return _inst;
|
|
57740
|
-
}
|
|
57741
|
-
|
|
57742
57117
|
static ofcsp_multiplayer_MessageInfo_number(
|
|
57743
57118
|
size: number,
|
|
57744
57119
|
): Array<Multiplayer.MessageInfo> {
|
|
@@ -58925,6 +58300,32 @@ export namespace Common {
|
|
|
58925
58300
|
return _inst;
|
|
58926
58301
|
}
|
|
58927
58302
|
|
|
58303
|
+
static ofcsp_multiplayer_ReplicatedValueAndcsp_multiplayer_ReplicatedValue(): Map<
|
|
58304
|
+
Multiplayer.ReplicatedValue,
|
|
58305
|
+
Multiplayer.ReplicatedValue
|
|
58306
|
+
> {
|
|
58307
|
+
var _ret = Module._malloc(8);
|
|
58308
|
+
Module.ccall(
|
|
58309
|
+
"csp_common_Map_Ctor_csp_multiplayer_ReplicatedValue_csp_multiplayer_ReplicatedValue",
|
|
58310
|
+
"void",
|
|
58311
|
+
["number"],
|
|
58312
|
+
[_ret],
|
|
58313
|
+
);
|
|
58314
|
+
var _inst = new Map<
|
|
58315
|
+
Multiplayer.ReplicatedValue,
|
|
58316
|
+
Multiplayer.ReplicatedValue
|
|
58317
|
+
>(
|
|
58318
|
+
getNativePointer(_ret),
|
|
58319
|
+
csp_multiplayer_ReplicatedValueFactory,
|
|
58320
|
+
"csp_multiplayer_ReplicatedValue",
|
|
58321
|
+
csp_multiplayer_ReplicatedValueFactory,
|
|
58322
|
+
"csp_multiplayer_ReplicatedValue",
|
|
58323
|
+
);
|
|
58324
|
+
Module._free(_ret);
|
|
58325
|
+
|
|
58326
|
+
return _inst;
|
|
58327
|
+
}
|
|
58328
|
+
|
|
58928
58329
|
static ofUInt16Andcsp_multiplayer_ComponentBase(): Map<
|
|
58929
58330
|
number,
|
|
58930
58331
|
Multiplayer.ComponentBase
|
|
@@ -59013,6 +58414,34 @@ export namespace Common {
|
|
|
59013
58414
|
return _inst;
|
|
59014
58415
|
}
|
|
59015
58416
|
|
|
58417
|
+
static ofcsp_multiplayer_ReplicatedValueAndcsp_multiplayer_ReplicatedValue_Map(
|
|
58418
|
+
other: Common.Map<
|
|
58419
|
+
Multiplayer.ReplicatedValue,
|
|
58420
|
+
Multiplayer.ReplicatedValue
|
|
58421
|
+
>,
|
|
58422
|
+
): Map<Multiplayer.ReplicatedValue, Multiplayer.ReplicatedValue> {
|
|
58423
|
+
var _ret = Module._malloc(8);
|
|
58424
|
+
Module.ccall(
|
|
58425
|
+
"csp_common_Map_Ctor_MapRC_csp_multiplayer_ReplicatedValue_csp_multiplayer_ReplicatedValue",
|
|
58426
|
+
"void",
|
|
58427
|
+
["number", "number"],
|
|
58428
|
+
[_ret, other.pointer],
|
|
58429
|
+
);
|
|
58430
|
+
var _inst = new Map<
|
|
58431
|
+
Multiplayer.ReplicatedValue,
|
|
58432
|
+
Multiplayer.ReplicatedValue
|
|
58433
|
+
>(
|
|
58434
|
+
getNativePointer(_ret),
|
|
58435
|
+
csp_multiplayer_ReplicatedValueFactory,
|
|
58436
|
+
"csp_multiplayer_ReplicatedValue",
|
|
58437
|
+
csp_multiplayer_ReplicatedValueFactory,
|
|
58438
|
+
"csp_multiplayer_ReplicatedValue",
|
|
58439
|
+
);
|
|
58440
|
+
Module._free(_ret);
|
|
58441
|
+
|
|
58442
|
+
return _inst;
|
|
58443
|
+
}
|
|
58444
|
+
|
|
59016
58445
|
static ofUInt16Andcsp_multiplayer_ComponentBase_Map(
|
|
59017
58446
|
other: Common.Map<number, Multiplayer.ComponentBase>,
|
|
59018
58447
|
): Map<number, Multiplayer.ComponentBase> {
|