connected-spaces-platform.web 5.0.1 → 5.1.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 +129 -3
- package/Debug/ConnectedSpacesPlatform_WASM.wasm +0 -0
- package/Debug/ConnectedSpacesPlatform_WASM.wasm.debug.wasm +0 -0
- package/README.md +3 -1
- package/Release/ConnectedSpacesPlatform_WASM.js +1 -1
- package/Release/ConnectedSpacesPlatform_WASM.wasm +0 -0
- package/connectedspacesplatform.d.ts +241 -4
- package/connectedspacesplatform.js +660 -3
- package/connectedspacesplatform.js.map +1 -1
- package/connectedspacesplatform.ts +1195 -2
- package/package.json +1 -1
|
@@ -1023,6 +1023,14 @@ function csp_multiplayer_SequenceChangedParamsFactory(
|
|
|
1023
1023
|
ProxyClassFactories["csp_multiplayer_SequenceChangedParams"] =
|
|
1024
1024
|
csp_multiplayer_SequenceChangedParamsFactory;
|
|
1025
1025
|
|
|
1026
|
+
function csp_multiplayer_SequenceHierarchyChangedParamsFactory(
|
|
1027
|
+
nativePointer: NativePointer,
|
|
1028
|
+
): NativeClassWrapper {
|
|
1029
|
+
return new Multiplayer.SequenceHierarchyChangedParams(nativePointer);
|
|
1030
|
+
}
|
|
1031
|
+
ProxyClassFactories["csp_multiplayer_SequenceHierarchyChangedParams"] =
|
|
1032
|
+
csp_multiplayer_SequenceHierarchyChangedParamsFactory;
|
|
1033
|
+
|
|
1026
1034
|
function csp_multiplayer_MultiplayerConnectionFactory(
|
|
1027
1035
|
nativePointer: NativePointer,
|
|
1028
1036
|
): NativeClassWrapper {
|
|
@@ -1039,6 +1047,14 @@ function csp_multiplayer_ReplicatedValueFactory(
|
|
|
1039
1047
|
ProxyClassFactories["csp_multiplayer_ReplicatedValue"] =
|
|
1040
1048
|
csp_multiplayer_ReplicatedValueFactory;
|
|
1041
1049
|
|
|
1050
|
+
function csp_multiplayer_SequenceHierarchyFactory(
|
|
1051
|
+
nativePointer: NativePointer,
|
|
1052
|
+
): NativeClassWrapper {
|
|
1053
|
+
return new Multiplayer.SequenceHierarchy(nativePointer);
|
|
1054
|
+
}
|
|
1055
|
+
ProxyClassFactories["csp_multiplayer_SequenceHierarchy"] =
|
|
1056
|
+
csp_multiplayer_SequenceHierarchyFactory;
|
|
1057
|
+
|
|
1042
1058
|
function csp_multiplayer_ComponentUpdateInfoFactory(
|
|
1043
1059
|
nativePointer: NativePointer,
|
|
1044
1060
|
): NativeClassWrapper {
|
|
@@ -1517,6 +1533,22 @@ function csp_systems_VoipSystemFactory(
|
|
|
1517
1533
|
}
|
|
1518
1534
|
ProxyClassFactories["csp_systems_VoipSystem"] = csp_systems_VoipSystemFactory;
|
|
1519
1535
|
|
|
1536
|
+
function csp_multiplayer_SequenceHierarchyResultFactory(
|
|
1537
|
+
nativePointer: NativePointer,
|
|
1538
|
+
): NativeClassWrapper {
|
|
1539
|
+
return new Multiplayer.SequenceHierarchyResult(nativePointer);
|
|
1540
|
+
}
|
|
1541
|
+
ProxyClassFactories["csp_multiplayer_SequenceHierarchyResult"] =
|
|
1542
|
+
csp_multiplayer_SequenceHierarchyResultFactory;
|
|
1543
|
+
|
|
1544
|
+
function csp_multiplayer_SequenceHierarchyCollectionResultFactory(
|
|
1545
|
+
nativePointer: NativePointer,
|
|
1546
|
+
): NativeClassWrapper {
|
|
1547
|
+
return new Multiplayer.SequenceHierarchyCollectionResult(nativePointer);
|
|
1548
|
+
}
|
|
1549
|
+
ProxyClassFactories["csp_multiplayer_SequenceHierarchyCollectionResult"] =
|
|
1550
|
+
csp_multiplayer_SequenceHierarchyCollectionResultFactory;
|
|
1551
|
+
|
|
1520
1552
|
function csp_multiplayer_AnimatedModelSpaceComponentFactory(
|
|
1521
1553
|
nativePointer: NativePointer,
|
|
1522
1554
|
): NativeClassWrapper {
|
|
@@ -2381,6 +2413,26 @@ function csp_common_Array_csp_systems_SpaceUserRoleFactory(
|
|
|
2381
2413
|
ProxyClassFactories["csp_common_Array_csp_systems_SpaceUserRole"] =
|
|
2382
2414
|
csp_common_Array_csp_systems_SpaceUserRoleFactory;
|
|
2383
2415
|
|
|
2416
|
+
function csp_common_Array_uint64_tFactory(
|
|
2417
|
+
nativePointer: NativePointer,
|
|
2418
|
+
): NativeClassWrapper {
|
|
2419
|
+
return new Common.Array<bigint>(nativePointer, NumberFactory, "uint64_t");
|
|
2420
|
+
}
|
|
2421
|
+
ProxyClassFactories["csp_common_Array_uint64_t"] =
|
|
2422
|
+
csp_common_Array_uint64_tFactory;
|
|
2423
|
+
|
|
2424
|
+
function csp_common_Array_csp_multiplayer_SequenceHierarchyFactory(
|
|
2425
|
+
nativePointer: NativePointer,
|
|
2426
|
+
): NativeClassWrapper {
|
|
2427
|
+
return new Common.Array<Multiplayer.SequenceHierarchy>(
|
|
2428
|
+
nativePointer,
|
|
2429
|
+
csp_multiplayer_SequenceHierarchyFactory,
|
|
2430
|
+
"csp_multiplayer_SequenceHierarchy",
|
|
2431
|
+
);
|
|
2432
|
+
}
|
|
2433
|
+
ProxyClassFactories["csp_common_Array_csp_multiplayer_SequenceHierarchy"] =
|
|
2434
|
+
csp_common_Array_csp_multiplayer_SequenceHierarchyFactory;
|
|
2435
|
+
|
|
2384
2436
|
function csp_common_Array_csp_multiplayer_MessageInfoFactory(
|
|
2385
2437
|
nativePointer: NativePointer,
|
|
2386
2438
|
): NativeClassWrapper {
|
|
@@ -2835,6 +2887,18 @@ function csp_common_Array_csp_common_Map_String_StringFactory(
|
|
|
2835
2887
|
ProxyClassFactories["csp_common_Array_csp_common_Map_String_String"] =
|
|
2836
2888
|
csp_common_Array_csp_common_Map_String_StringFactory;
|
|
2837
2889
|
|
|
2890
|
+
function csp_common_List_csp_multiplayer_SpaceEntityFactory(
|
|
2891
|
+
nativePointer: NativePointer,
|
|
2892
|
+
): NativeClassWrapper {
|
|
2893
|
+
return new Common.List<Multiplayer.SpaceEntity>(
|
|
2894
|
+
nativePointer,
|
|
2895
|
+
csp_multiplayer_SpaceEntityFactory,
|
|
2896
|
+
"csp_multiplayer_SpaceEntity",
|
|
2897
|
+
);
|
|
2898
|
+
}
|
|
2899
|
+
ProxyClassFactories["csp_common_List_csp_multiplayer_SpaceEntity"] =
|
|
2900
|
+
csp_common_List_csp_multiplayer_SpaceEntityFactory;
|
|
2901
|
+
|
|
2838
2902
|
function csp_common_List_StringFactory(
|
|
2839
2903
|
nativePointer: NativePointer,
|
|
2840
2904
|
): NativeClassWrapper {
|
|
@@ -3004,6 +3068,7 @@ export namespace Multiplayer {
|
|
|
3004
3068
|
export enum ESequenceUpdateType {
|
|
3005
3069
|
Create,
|
|
3006
3070
|
Update,
|
|
3071
|
+
Rename,
|
|
3007
3072
|
Delete,
|
|
3008
3073
|
}
|
|
3009
3074
|
}
|
|
@@ -3092,6 +3157,7 @@ export namespace Multiplayer {
|
|
|
3092
3157
|
UPDATE_FLAGS_SELECTION_ID = 32,
|
|
3093
3158
|
UPDATE_FLAGS_THIRD_PARTY_REF = 64,
|
|
3094
3159
|
UPDATE_FLAGS_THIRD_PARTY_PLATFORM = 128,
|
|
3160
|
+
UPDATE_FLAGS_PARENT = 256,
|
|
3095
3161
|
}
|
|
3096
3162
|
}
|
|
3097
3163
|
|
|
@@ -3792,6 +3858,7 @@ export namespace Systems {
|
|
|
3792
3858
|
ShopifyInvalidStoreName,
|
|
3793
3859
|
UserShopifyLimitReached,
|
|
3794
3860
|
UserTokenRefreshFailed,
|
|
3861
|
+
InvalidSequenceKey,
|
|
3795
3862
|
}
|
|
3796
3863
|
}
|
|
3797
3864
|
|
|
@@ -4252,6 +4319,12 @@ export namespace Multiplayer {
|
|
|
4252
4319
|
*/
|
|
4253
4320
|
nextValueIsNull: () => boolean;
|
|
4254
4321
|
|
|
4322
|
+
/**
|
|
4323
|
+
* @description Checks if the next value is an array.
|
|
4324
|
+
* @return True if the next value is null, false otherwise.
|
|
4325
|
+
*/
|
|
4326
|
+
nextValueIsArray: () => boolean;
|
|
4327
|
+
|
|
4255
4328
|
/**
|
|
4256
4329
|
* @description Puts the deserialiser into array processing mode to begin reading from an array.
|
|
4257
4330
|
* @param outLength - A reference to variable to store the length of the array.
|
|
@@ -20956,6 +21029,36 @@ export namespace Common {
|
|
|
20956
21029
|
return new Vector3(_nPtr);
|
|
20957
21030
|
}
|
|
20958
21031
|
|
|
21032
|
+
/**
|
|
21033
|
+
* @description Member by member addition with another Vector3
|
|
21034
|
+
* @param vector3 - Other
|
|
21035
|
+
*/
|
|
21036
|
+
// operator+
|
|
21037
|
+
|
|
21038
|
+
/**
|
|
21039
|
+
* @description Subtracts another Vector3 from this one
|
|
21040
|
+
* @param vector3 - Other
|
|
21041
|
+
*/
|
|
21042
|
+
// operator-
|
|
21043
|
+
|
|
21044
|
+
/**
|
|
21045
|
+
* @description Divides the Vector3 by divisor
|
|
21046
|
+
* @param float - Divisor
|
|
21047
|
+
*/
|
|
21048
|
+
// operator/
|
|
21049
|
+
|
|
21050
|
+
/**
|
|
21051
|
+
* @description Member by member multiplication with another Vector3
|
|
21052
|
+
* @param vector3 - Other
|
|
21053
|
+
*/
|
|
21054
|
+
// operator*
|
|
21055
|
+
|
|
21056
|
+
/**
|
|
21057
|
+
* @description Multiplies the Vector3 by a scalar
|
|
21058
|
+
* @param float - Scalar
|
|
21059
|
+
*/
|
|
21060
|
+
// operator*
|
|
21061
|
+
|
|
20959
21062
|
delete(): void {
|
|
20960
21063
|
if (this.ownsPointer && !this.disposed) {
|
|
20961
21064
|
Module.ccall(
|
|
@@ -21132,6 +21235,36 @@ export namespace Common {
|
|
|
21132
21235
|
return new Vector4(_nPtr);
|
|
21133
21236
|
}
|
|
21134
21237
|
|
|
21238
|
+
/**
|
|
21239
|
+
* @description Member by member addition with another Vector4
|
|
21240
|
+
* @param vector4 - Other
|
|
21241
|
+
*/
|
|
21242
|
+
// operator+
|
|
21243
|
+
|
|
21244
|
+
/**
|
|
21245
|
+
* @description Subtracts another Vector4 from this one
|
|
21246
|
+
* @param vector4 - Other
|
|
21247
|
+
*/
|
|
21248
|
+
// operator-
|
|
21249
|
+
|
|
21250
|
+
/**
|
|
21251
|
+
* @description Divides the Vector4 by divisor
|
|
21252
|
+
* @param float - Divisor
|
|
21253
|
+
*/
|
|
21254
|
+
// operator/
|
|
21255
|
+
|
|
21256
|
+
/**
|
|
21257
|
+
* @description Member by member multiplication with another Vector4
|
|
21258
|
+
* @param vector4 - Other
|
|
21259
|
+
*/
|
|
21260
|
+
// operator*
|
|
21261
|
+
|
|
21262
|
+
/**
|
|
21263
|
+
* @description Multiplies the Vector4 by a scalar
|
|
21264
|
+
* @param float - Scalar
|
|
21265
|
+
*/
|
|
21266
|
+
// operator*
|
|
21267
|
+
|
|
21135
21268
|
delete(): void {
|
|
21136
21269
|
if (this.ownsPointer && !this.disposed) {
|
|
21137
21270
|
Module.ccall(
|
|
@@ -21887,6 +22020,110 @@ export namespace Multiplayer {
|
|
|
21887
22020
|
}
|
|
21888
22021
|
}
|
|
21889
22022
|
|
|
22023
|
+
export namespace Multiplayer {
|
|
22024
|
+
export class SequenceHierarchyChangedParams
|
|
22025
|
+
extends NativeClassWrapper
|
|
22026
|
+
implements INativeResource
|
|
22027
|
+
{
|
|
22028
|
+
/** @internal */
|
|
22029
|
+
constructor(pointer: NativePointer) {
|
|
22030
|
+
super(pointer);
|
|
22031
|
+
}
|
|
22032
|
+
|
|
22033
|
+
static create(): SequenceHierarchyChangedParams {
|
|
22034
|
+
var _ptr = Module._malloc(8);
|
|
22035
|
+
Module.ccall(
|
|
22036
|
+
"csp_multiplayer_SequenceHierarchyChangedParams_Ctor",
|
|
22037
|
+
"void",
|
|
22038
|
+
["number"],
|
|
22039
|
+
[_ptr],
|
|
22040
|
+
);
|
|
22041
|
+
var _nPtr = getNativePointer(_ptr);
|
|
22042
|
+
|
|
22043
|
+
return new SequenceHierarchyChangedParams(_nPtr);
|
|
22044
|
+
}
|
|
22045
|
+
|
|
22046
|
+
delete(): void {
|
|
22047
|
+
if (this.ownsPointer && !this.disposed) {
|
|
22048
|
+
Module.ccall(
|
|
22049
|
+
"csp_multiplayer_SequenceHierarchyChangedParams_Dtor",
|
|
22050
|
+
"void",
|
|
22051
|
+
["number"],
|
|
22052
|
+
[this.pointer],
|
|
22053
|
+
);
|
|
22054
|
+
|
|
22055
|
+
this.disposed = true;
|
|
22056
|
+
}
|
|
22057
|
+
}
|
|
22058
|
+
|
|
22059
|
+
get updateType(): Multiplayer.ESequenceUpdateType {
|
|
22060
|
+
let _result = Module.ccall(
|
|
22061
|
+
"csp_multiplayer_SequenceHierarchyChangedParams__Get_UpdateType",
|
|
22062
|
+
"number",
|
|
22063
|
+
["number"],
|
|
22064
|
+
[this.pointer],
|
|
22065
|
+
);
|
|
22066
|
+
|
|
22067
|
+
return _result;
|
|
22068
|
+
}
|
|
22069
|
+
|
|
22070
|
+
set updateType(value: Multiplayer.ESequenceUpdateType) {
|
|
22071
|
+
Module.ccall(
|
|
22072
|
+
"csp_multiplayer_SequenceHierarchyChangedParams__Set_UpdateType",
|
|
22073
|
+
"void",
|
|
22074
|
+
["number", "number"],
|
|
22075
|
+
[this.pointer, value],
|
|
22076
|
+
);
|
|
22077
|
+
}
|
|
22078
|
+
|
|
22079
|
+
get parentId(): bigint {
|
|
22080
|
+
let _result = Module.ccall(
|
|
22081
|
+
"csp_multiplayer_SequenceHierarchyChangedParams__Get_ParentId",
|
|
22082
|
+
"bigint",
|
|
22083
|
+
["number"],
|
|
22084
|
+
[this.pointer],
|
|
22085
|
+
);
|
|
22086
|
+
|
|
22087
|
+
const _unfixedValue = _result;
|
|
22088
|
+
let _fixedValue =
|
|
22089
|
+
_unfixedValue < 0 ? _unfixedValue + 2n ** 64n : _unfixedValue;
|
|
22090
|
+
|
|
22091
|
+
_result = _fixedValue;
|
|
22092
|
+
|
|
22093
|
+
return _result;
|
|
22094
|
+
}
|
|
22095
|
+
|
|
22096
|
+
set parentId(value: bigint) {
|
|
22097
|
+
Module.ccall(
|
|
22098
|
+
"csp_multiplayer_SequenceHierarchyChangedParams__Set_ParentId",
|
|
22099
|
+
"void",
|
|
22100
|
+
["number", "bigint"],
|
|
22101
|
+
[this.pointer, value],
|
|
22102
|
+
);
|
|
22103
|
+
}
|
|
22104
|
+
|
|
22105
|
+
get isRoot(): boolean {
|
|
22106
|
+
let _result = Module.ccall(
|
|
22107
|
+
"csp_multiplayer_SequenceHierarchyChangedParams__Get_IsRoot",
|
|
22108
|
+
"boolean",
|
|
22109
|
+
["number"],
|
|
22110
|
+
[this.pointer],
|
|
22111
|
+
);
|
|
22112
|
+
|
|
22113
|
+
return _result;
|
|
22114
|
+
}
|
|
22115
|
+
|
|
22116
|
+
set isRoot(value: boolean) {
|
|
22117
|
+
Module.ccall(
|
|
22118
|
+
"csp_multiplayer_SequenceHierarchyChangedParams__Set_IsRoot",
|
|
22119
|
+
"void",
|
|
22120
|
+
["number", "boolean"],
|
|
22121
|
+
[this.pointer, value],
|
|
22122
|
+
);
|
|
22123
|
+
}
|
|
22124
|
+
}
|
|
22125
|
+
}
|
|
22126
|
+
|
|
21890
22127
|
export namespace Multiplayer {
|
|
21891
22128
|
/**
|
|
21892
22129
|
@ingroup Multiplayer
|
|
@@ -22716,6 +22953,108 @@ export namespace Multiplayer {
|
|
|
22716
22953
|
}
|
|
22717
22954
|
}
|
|
22718
22955
|
|
|
22956
|
+
export namespace Multiplayer {
|
|
22957
|
+
/**
|
|
22958
|
+
@ingroup Space Entity System
|
|
22959
|
+
* @description Class which exposes data that is relevent to entity hierarchies, which comes from the underlying Sequence System.
|
|
22960
|
+
* This allows users to manage the ordering of child entites within their parent.
|
|
22961
|
+
*/
|
|
22962
|
+
export class SequenceHierarchy
|
|
22963
|
+
extends NativeClassWrapper
|
|
22964
|
+
implements INativeResource
|
|
22965
|
+
{
|
|
22966
|
+
/** @internal */
|
|
22967
|
+
constructor(pointer: NativePointer) {
|
|
22968
|
+
super(pointer);
|
|
22969
|
+
}
|
|
22970
|
+
|
|
22971
|
+
hasParent(): boolean {
|
|
22972
|
+
let _result = Module.ccall(
|
|
22973
|
+
"csp_multiplayer_SequenceHierarchy_HasParentC_bool",
|
|
22974
|
+
"boolean",
|
|
22975
|
+
["number"],
|
|
22976
|
+
[this.pointer],
|
|
22977
|
+
);
|
|
22978
|
+
|
|
22979
|
+
return _result;
|
|
22980
|
+
}
|
|
22981
|
+
|
|
22982
|
+
static create(): SequenceHierarchy {
|
|
22983
|
+
var _ptr = Module._malloc(8);
|
|
22984
|
+
Module.ccall(
|
|
22985
|
+
"csp_multiplayer_SequenceHierarchy_Ctor",
|
|
22986
|
+
"void",
|
|
22987
|
+
["number"],
|
|
22988
|
+
[_ptr],
|
|
22989
|
+
);
|
|
22990
|
+
var _nPtr = getNativePointer(_ptr);
|
|
22991
|
+
|
|
22992
|
+
return new SequenceHierarchy(_nPtr);
|
|
22993
|
+
}
|
|
22994
|
+
|
|
22995
|
+
delete(): void {
|
|
22996
|
+
if (this.ownsPointer && !this.disposed) {
|
|
22997
|
+
Module.ccall(
|
|
22998
|
+
"csp_multiplayer_SequenceHierarchy_Dtor",
|
|
22999
|
+
"void",
|
|
23000
|
+
["number"],
|
|
23001
|
+
[this.pointer],
|
|
23002
|
+
);
|
|
23003
|
+
|
|
23004
|
+
this.disposed = true;
|
|
23005
|
+
}
|
|
23006
|
+
}
|
|
23007
|
+
|
|
23008
|
+
get ids(): Common.Array<bigint> {
|
|
23009
|
+
const _ptr = Module._malloc(8);
|
|
23010
|
+
Module.ccall(
|
|
23011
|
+
"csp_multiplayer_SequenceHierarchy__Get_Ids",
|
|
23012
|
+
"void",
|
|
23013
|
+
["number", "number"],
|
|
23014
|
+
[_ptr, this.pointer],
|
|
23015
|
+
);
|
|
23016
|
+
|
|
23017
|
+
const _nPtr = getNativePointer(_ptr);
|
|
23018
|
+
return new Common.Array<bigint>(_nPtr, NumberFactory, "uint64_t");
|
|
23019
|
+
}
|
|
23020
|
+
|
|
23021
|
+
set ids(value: Common.Array<bigint>) {
|
|
23022
|
+
Module.ccall(
|
|
23023
|
+
"csp_multiplayer_SequenceHierarchy__Set_Ids",
|
|
23024
|
+
"void",
|
|
23025
|
+
["number", "number"],
|
|
23026
|
+
[this.pointer, value.pointer],
|
|
23027
|
+
);
|
|
23028
|
+
}
|
|
23029
|
+
|
|
23030
|
+
get parentId(): bigint {
|
|
23031
|
+
let _result = Module.ccall(
|
|
23032
|
+
"csp_multiplayer_SequenceHierarchy__Get_ParentId",
|
|
23033
|
+
"bigint",
|
|
23034
|
+
["number"],
|
|
23035
|
+
[this.pointer],
|
|
23036
|
+
);
|
|
23037
|
+
|
|
23038
|
+
const _unfixedValue = _result;
|
|
23039
|
+
let _fixedValue =
|
|
23040
|
+
_unfixedValue < 0 ? _unfixedValue + 2n ** 64n : _unfixedValue;
|
|
23041
|
+
|
|
23042
|
+
_result = _fixedValue;
|
|
23043
|
+
|
|
23044
|
+
return _result;
|
|
23045
|
+
}
|
|
23046
|
+
|
|
23047
|
+
set parentId(value: bigint) {
|
|
23048
|
+
Module.ccall(
|
|
23049
|
+
"csp_multiplayer_SequenceHierarchy__Set_ParentId",
|
|
23050
|
+
"void",
|
|
23051
|
+
["number", "bigint"],
|
|
23052
|
+
[this.pointer, value],
|
|
23053
|
+
);
|
|
23054
|
+
}
|
|
23055
|
+
}
|
|
23056
|
+
}
|
|
23057
|
+
|
|
22719
23058
|
export namespace Multiplayer {
|
|
22720
23059
|
/**
|
|
22721
23060
|
* @description Info class that specifies a type of update and the ID of a component the update is applied to.
|
|
@@ -22964,6 +23303,25 @@ export namespace Multiplayer {
|
|
|
22964
23303
|
return _nPtr;
|
|
22965
23304
|
}
|
|
22966
23305
|
|
|
23306
|
+
/**
|
|
23307
|
+
* @description Get the Global SpaceTransform of the SpaceEntity, derived from it's parent.
|
|
23308
|
+
* @return SpaceTransform.
|
|
23309
|
+
*/
|
|
23310
|
+
|
|
23311
|
+
getGlobalTransform(): Multiplayer.SpaceTransform {
|
|
23312
|
+
var _ret = Module._malloc(8);
|
|
23313
|
+
|
|
23314
|
+
Module.ccall(
|
|
23315
|
+
"csp_multiplayer_SpaceEntity_GetGlobalTransformC_SpaceTransform",
|
|
23316
|
+
"void",
|
|
23317
|
+
["number", "number"],
|
|
23318
|
+
[_ret, this.pointer],
|
|
23319
|
+
);
|
|
23320
|
+
var _nPtr = new Multiplayer.SpaceTransform(getNativePointer(_ret));
|
|
23321
|
+
Module._free(_ret);
|
|
23322
|
+
return _nPtr;
|
|
23323
|
+
}
|
|
23324
|
+
|
|
22967
23325
|
/**
|
|
22968
23326
|
* @description Get the position of the SpaceEntity, in world space.
|
|
22969
23327
|
* @return Position.
|
|
@@ -22984,6 +23342,25 @@ export namespace Multiplayer {
|
|
|
22984
23342
|
return _nPtr;
|
|
22985
23343
|
}
|
|
22986
23344
|
|
|
23345
|
+
/**
|
|
23346
|
+
* @description Get the Global position of the SpaceEntity, in world space, derived from it's parent.
|
|
23347
|
+
* @return Position.
|
|
23348
|
+
*/
|
|
23349
|
+
|
|
23350
|
+
getGlobalPosition(): Common.Vector3 {
|
|
23351
|
+
var _ret = Module._malloc(8);
|
|
23352
|
+
|
|
23353
|
+
Module.ccall(
|
|
23354
|
+
"csp_multiplayer_SpaceEntity_GetGlobalPositionC_Vector3",
|
|
23355
|
+
"void",
|
|
23356
|
+
["number", "number"],
|
|
23357
|
+
[_ret, this.pointer],
|
|
23358
|
+
);
|
|
23359
|
+
var _nPtr = new Common.Vector3(getNativePointer(_ret));
|
|
23360
|
+
Module._free(_ret);
|
|
23361
|
+
return _nPtr;
|
|
23362
|
+
}
|
|
23363
|
+
|
|
22987
23364
|
/**
|
|
22988
23365
|
* @description Set the position of the SpaceEntity, in world space.
|
|
22989
23366
|
* @param value - The position to set.
|
|
@@ -23018,6 +23395,25 @@ export namespace Multiplayer {
|
|
|
23018
23395
|
return _nPtr;
|
|
23019
23396
|
}
|
|
23020
23397
|
|
|
23398
|
+
/**
|
|
23399
|
+
* @description Get the Global rotation of the SpaceEntity, derived from it's parent.
|
|
23400
|
+
* @return Rotation.
|
|
23401
|
+
*/
|
|
23402
|
+
|
|
23403
|
+
getGlobalRotation(): Common.Vector4 {
|
|
23404
|
+
var _ret = Module._malloc(8);
|
|
23405
|
+
|
|
23406
|
+
Module.ccall(
|
|
23407
|
+
"csp_multiplayer_SpaceEntity_GetGlobalRotationC_Vector4",
|
|
23408
|
+
"void",
|
|
23409
|
+
["number", "number"],
|
|
23410
|
+
[_ret, this.pointer],
|
|
23411
|
+
);
|
|
23412
|
+
var _nPtr = new Common.Vector4(getNativePointer(_ret));
|
|
23413
|
+
Module._free(_ret);
|
|
23414
|
+
return _nPtr;
|
|
23415
|
+
}
|
|
23416
|
+
|
|
23021
23417
|
/**
|
|
23022
23418
|
* @description Set the rotation of the SpaceEntity.
|
|
23023
23419
|
* @param value - The rotation to set.
|
|
@@ -23052,6 +23448,25 @@ export namespace Multiplayer {
|
|
|
23052
23448
|
return _nPtr;
|
|
23053
23449
|
}
|
|
23054
23450
|
|
|
23451
|
+
/**
|
|
23452
|
+
* @description Get the Global scale of the SpaceEntity, derived from it's parent.
|
|
23453
|
+
* @return Scale.
|
|
23454
|
+
*/
|
|
23455
|
+
|
|
23456
|
+
getGlobalScale(): Common.Vector3 {
|
|
23457
|
+
var _ret = Module._malloc(8);
|
|
23458
|
+
|
|
23459
|
+
Module.ccall(
|
|
23460
|
+
"csp_multiplayer_SpaceEntity_GetGlobalScaleC_Vector3",
|
|
23461
|
+
"void",
|
|
23462
|
+
["number", "number"],
|
|
23463
|
+
[_ret, this.pointer],
|
|
23464
|
+
);
|
|
23465
|
+
var _nPtr = new Common.Vector3(getNativePointer(_ret));
|
|
23466
|
+
Module._free(_ret);
|
|
23467
|
+
return _nPtr;
|
|
23468
|
+
}
|
|
23469
|
+
|
|
23055
23470
|
/**
|
|
23056
23471
|
* @description Set the scale of the SpaceEntity.
|
|
23057
23472
|
* @param value - The scale to set.
|
|
@@ -23185,6 +23600,122 @@ export namespace Multiplayer {
|
|
|
23185
23600
|
return _nPtr;
|
|
23186
23601
|
}
|
|
23187
23602
|
|
|
23603
|
+
/**
|
|
23604
|
+
* @description Sets the parent for this entity
|
|
23605
|
+
* QueueUpdate() should be called afterwards to enable changes to the parent.
|
|
23606
|
+
* @param parentId - Uint64_t the new parent id of this entity.
|
|
23607
|
+
*/
|
|
23608
|
+
|
|
23609
|
+
setParentId(parentId: bigint): void {
|
|
23610
|
+
assert(parentId >= Limits.UINT64_MIN);
|
|
23611
|
+
assert(parentId <= Limits.UINT64_MAX);
|
|
23612
|
+
|
|
23613
|
+
Module.ccall(
|
|
23614
|
+
"csp_multiplayer_SpaceEntity_SetParentId_void_uint64_t",
|
|
23615
|
+
"void",
|
|
23616
|
+
["number", "bigint"],
|
|
23617
|
+
[this.pointer, parentId],
|
|
23618
|
+
);
|
|
23619
|
+
}
|
|
23620
|
+
|
|
23621
|
+
/**
|
|
23622
|
+
* @description Removes the parent entity
|
|
23623
|
+
* QueueUpdate() should be called afterwards to enable changes to the parent.
|
|
23624
|
+
*/
|
|
23625
|
+
|
|
23626
|
+
removeParentEntity(): void {
|
|
23627
|
+
Module.ccall(
|
|
23628
|
+
"csp_multiplayer_SpaceEntity_RemoveParentEntity_void",
|
|
23629
|
+
"void",
|
|
23630
|
+
["number"],
|
|
23631
|
+
[this.pointer],
|
|
23632
|
+
);
|
|
23633
|
+
}
|
|
23634
|
+
|
|
23635
|
+
/**
|
|
23636
|
+
* @description Gets the parent of this entity
|
|
23637
|
+
* @return SpaceEntity
|
|
23638
|
+
*/
|
|
23639
|
+
|
|
23640
|
+
getParentEntity(): Multiplayer.SpaceEntity {
|
|
23641
|
+
var _ret = Module._malloc(8);
|
|
23642
|
+
|
|
23643
|
+
Module.ccall(
|
|
23644
|
+
"csp_multiplayer_SpaceEntity_GetParentEntityC_SpaceEntityP",
|
|
23645
|
+
"void",
|
|
23646
|
+
["number", "number"],
|
|
23647
|
+
[_ret, this.pointer],
|
|
23648
|
+
);
|
|
23649
|
+
var _nPtr = new Multiplayer.SpaceEntity(getNativePointer(_ret));
|
|
23650
|
+
Module._free(_ret);
|
|
23651
|
+
|
|
23652
|
+
return _nPtr;
|
|
23653
|
+
}
|
|
23654
|
+
|
|
23655
|
+
/**
|
|
23656
|
+
* @description Create a new entity with this entity as it's parent
|
|
23657
|
+
* @param inName - The name to give the new SpaceEntity.
|
|
23658
|
+
* @param inSpaceTransform - The initial transform to set the SpaceEntity to.
|
|
23659
|
+
* @param callback - A callback that executes when the creation is complete,
|
|
23660
|
+
* which contains a pointer to the new SpaceEntity so that it can be used on the local client.
|
|
23661
|
+
*/
|
|
23662
|
+
|
|
23663
|
+
async createChildEntity(
|
|
23664
|
+
name: string,
|
|
23665
|
+
spaceTransform: Multiplayer.SpaceTransform,
|
|
23666
|
+
): Promise<Multiplayer.SpaceEntity> {
|
|
23667
|
+
var _resolve;
|
|
23668
|
+
|
|
23669
|
+
var _promise = new Promise<Multiplayer.SpaceEntity>((_r) => {
|
|
23670
|
+
_resolve = _r;
|
|
23671
|
+
});
|
|
23672
|
+
|
|
23673
|
+
var _callbackPtr: number;
|
|
23674
|
+
var _callback = (_stateObject__: number, arg1) => {
|
|
23675
|
+
var _arg1Ptr = getNativePointer(arg1);
|
|
23676
|
+
var _arg1Instance = new Multiplayer.SpaceEntity(_arg1Ptr);
|
|
23677
|
+
|
|
23678
|
+
_resolve(_arg1Instance);
|
|
23679
|
+
|
|
23680
|
+
Module.removeFunction(_callbackPtr);
|
|
23681
|
+
};
|
|
23682
|
+
|
|
23683
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
23684
|
+
|
|
23685
|
+
Module.ccall(
|
|
23686
|
+
"csp_multiplayer_SpaceEntity_CreateChildEntity_void_StringRC_SpaceTransformRC_EntityCreatedCallback",
|
|
23687
|
+
"void",
|
|
23688
|
+
["number", "string", "number", "number", "number"],
|
|
23689
|
+
[this.pointer, name, spaceTransform.pointer, _callbackPtr, 0],
|
|
23690
|
+
);
|
|
23691
|
+
|
|
23692
|
+
return _promise;
|
|
23693
|
+
}
|
|
23694
|
+
|
|
23695
|
+
/**
|
|
23696
|
+
* @description Gets the children of this entity
|
|
23697
|
+
* @return Csp::common::list<spaceentity>
|
|
23698
|
+
*/
|
|
23699
|
+
|
|
23700
|
+
getChildEntities(): Common.List<Multiplayer.SpaceEntity> {
|
|
23701
|
+
var _ret = Module._malloc(8);
|
|
23702
|
+
|
|
23703
|
+
Module.ccall(
|
|
23704
|
+
"csp_multiplayer_SpaceEntity_GetChildEntitiesC_ListPC",
|
|
23705
|
+
"void",
|
|
23706
|
+
["number", "number"],
|
|
23707
|
+
[_ret, this.pointer],
|
|
23708
|
+
);
|
|
23709
|
+
var _nPtr = new Common.List<Multiplayer.SpaceEntity>(
|
|
23710
|
+
getNativePointer(_ret),
|
|
23711
|
+
csp_multiplayer_SpaceEntityFactory,
|
|
23712
|
+
"csp_multiplayer_SpaceEntity",
|
|
23713
|
+
);
|
|
23714
|
+
Module._free(_ret);
|
|
23715
|
+
|
|
23716
|
+
return _nPtr;
|
|
23717
|
+
}
|
|
23718
|
+
|
|
23188
23719
|
/**
|
|
23189
23720
|
* @description Queues an update which will be executed on next Tick() or ProcessPendingEntityOperations(). Not a blocking or async function.
|
|
23190
23721
|
*/
|
|
@@ -24341,6 +24872,324 @@ export namespace Multiplayer {
|
|
|
24341
24872
|
[this.pointer, enabled],
|
|
24342
24873
|
);
|
|
24343
24874
|
}
|
|
24875
|
+
|
|
24876
|
+
/**
|
|
24877
|
+
* @description Retrieves all entites that exist at the root level (do not have a parent entity).
|
|
24878
|
+
* @return A list of root entities.
|
|
24879
|
+
*/
|
|
24880
|
+
|
|
24881
|
+
getRootHierarchyEntities(): Common.List<Multiplayer.SpaceEntity> {
|
|
24882
|
+
var _ret = Module._malloc(8);
|
|
24883
|
+
|
|
24884
|
+
Module.ccall(
|
|
24885
|
+
"csp_multiplayer_SpaceEntitySystem_GetRootHierarchyEntitiesC_ListPC",
|
|
24886
|
+
"void",
|
|
24887
|
+
["number", "number"],
|
|
24888
|
+
[_ret, this.pointer],
|
|
24889
|
+
);
|
|
24890
|
+
var _nPtr = new Common.List<Multiplayer.SpaceEntity>(
|
|
24891
|
+
getNativePointer(_ret),
|
|
24892
|
+
csp_multiplayer_SpaceEntityFactory,
|
|
24893
|
+
"csp_multiplayer_SpaceEntity",
|
|
24894
|
+
);
|
|
24895
|
+
Module._free(_ret);
|
|
24896
|
+
|
|
24897
|
+
return _nPtr;
|
|
24898
|
+
}
|
|
24899
|
+
|
|
24900
|
+
/**
|
|
24901
|
+
* @description Creates an entity hierarchy for a given parent entity id. Pass null to create a hiererchy for the root.
|
|
24902
|
+
* @param parentId - An optional parent. Pass null to create a hiererchy for the root.
|
|
24903
|
+
* @param hierarchyItemIds - An array of entity ids.
|
|
24904
|
+
* @param callback - A callback when the asynchronous task finishes.
|
|
24905
|
+
*/
|
|
24906
|
+
|
|
24907
|
+
async createSequenceHierarchy(
|
|
24908
|
+
parentId: bigint | null,
|
|
24909
|
+
hierarchyItemIds: Common.Array<bigint>,
|
|
24910
|
+
): Promise<Multiplayer.SequenceHierarchyResult> {
|
|
24911
|
+
var _resolve;
|
|
24912
|
+
|
|
24913
|
+
var _promise = new Promise<Multiplayer.SequenceHierarchyResult>((_r) => {
|
|
24914
|
+
_resolve = _r;
|
|
24915
|
+
});
|
|
24916
|
+
|
|
24917
|
+
var _callbackPtr: number;
|
|
24918
|
+
var _callback = (_stateObject__: number, result) => {
|
|
24919
|
+
var _resultPtr = getNativePointer(result);
|
|
24920
|
+
var _resultInstance = new Multiplayer.SequenceHierarchyResult(
|
|
24921
|
+
_resultPtr,
|
|
24922
|
+
);
|
|
24923
|
+
|
|
24924
|
+
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
24925
|
+
return;
|
|
24926
|
+
}
|
|
24927
|
+
|
|
24928
|
+
_resolve(_resultInstance);
|
|
24929
|
+
|
|
24930
|
+
Module.removeFunction(_callbackPtr);
|
|
24931
|
+
};
|
|
24932
|
+
|
|
24933
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
24934
|
+
|
|
24935
|
+
var parentIdPointer = 0;
|
|
24936
|
+
if (parentId != null) {
|
|
24937
|
+
parentIdPointer = Module._malloc(4);
|
|
24938
|
+
Module.setValue(parentIdPointer, parentId, "i32");
|
|
24939
|
+
}
|
|
24940
|
+
|
|
24941
|
+
Module.ccall(
|
|
24942
|
+
"csp_multiplayer_SpaceEntitySystem_CreateSequenceHierarchy_void_uint64_tRC_ArrayRC_SequenceHierarchyResultCallback",
|
|
24943
|
+
"void",
|
|
24944
|
+
["number", "bigint", "number", "number", "number"],
|
|
24945
|
+
[
|
|
24946
|
+
this.pointer,
|
|
24947
|
+
parentIdPointer,
|
|
24948
|
+
hierarchyItemIds.pointer,
|
|
24949
|
+
_callbackPtr,
|
|
24950
|
+
0,
|
|
24951
|
+
],
|
|
24952
|
+
);
|
|
24953
|
+
|
|
24954
|
+
if (parentIdPointer) {
|
|
24955
|
+
Module._free(parentIdPointer);
|
|
24956
|
+
}
|
|
24957
|
+
|
|
24958
|
+
return _promise;
|
|
24959
|
+
}
|
|
24960
|
+
|
|
24961
|
+
/**
|
|
24962
|
+
* @description Updates an entity hierarchy for a given parent entity id. Pass null to update the root.
|
|
24963
|
+
* This will create a hierarchy if it doesnt exist.
|
|
24964
|
+
* @param parentId - An optional parent. Pass null to create a hiererchy for the root.
|
|
24965
|
+
* @param hierarchyItemIds - An array of entity ids.
|
|
24966
|
+
* @param callback - A callback when the asynchronous task finishes.
|
|
24967
|
+
*/
|
|
24968
|
+
|
|
24969
|
+
async updateSequenceHierarchy(
|
|
24970
|
+
parentId: bigint | null,
|
|
24971
|
+
hierarchyItemIds: Common.Array<bigint>,
|
|
24972
|
+
): Promise<Multiplayer.SequenceHierarchyResult> {
|
|
24973
|
+
var _resolve;
|
|
24974
|
+
|
|
24975
|
+
var _promise = new Promise<Multiplayer.SequenceHierarchyResult>((_r) => {
|
|
24976
|
+
_resolve = _r;
|
|
24977
|
+
});
|
|
24978
|
+
|
|
24979
|
+
var _callbackPtr: number;
|
|
24980
|
+
var _callback = (_stateObject__: number, result) => {
|
|
24981
|
+
var _resultPtr = getNativePointer(result);
|
|
24982
|
+
var _resultInstance = new Multiplayer.SequenceHierarchyResult(
|
|
24983
|
+
_resultPtr,
|
|
24984
|
+
);
|
|
24985
|
+
|
|
24986
|
+
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
24987
|
+
return;
|
|
24988
|
+
}
|
|
24989
|
+
|
|
24990
|
+
_resolve(_resultInstance);
|
|
24991
|
+
|
|
24992
|
+
Module.removeFunction(_callbackPtr);
|
|
24993
|
+
};
|
|
24994
|
+
|
|
24995
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
24996
|
+
|
|
24997
|
+
var parentIdPointer = 0;
|
|
24998
|
+
if (parentId != null) {
|
|
24999
|
+
parentIdPointer = Module._malloc(4);
|
|
25000
|
+
Module.setValue(parentIdPointer, parentId, "i32");
|
|
25001
|
+
}
|
|
25002
|
+
|
|
25003
|
+
Module.ccall(
|
|
25004
|
+
"csp_multiplayer_SpaceEntitySystem_UpdateSequenceHierarchy_void_uint64_tRC_ArrayRC_SequenceHierarchyResultCallback",
|
|
25005
|
+
"void",
|
|
25006
|
+
["number", "bigint", "number", "number", "number"],
|
|
25007
|
+
[
|
|
25008
|
+
this.pointer,
|
|
25009
|
+
parentIdPointer,
|
|
25010
|
+
hierarchyItemIds.pointer,
|
|
25011
|
+
_callbackPtr,
|
|
25012
|
+
0,
|
|
25013
|
+
],
|
|
25014
|
+
);
|
|
25015
|
+
|
|
25016
|
+
if (parentIdPointer) {
|
|
25017
|
+
Module._free(parentIdPointer);
|
|
25018
|
+
}
|
|
25019
|
+
|
|
25020
|
+
return _promise;
|
|
25021
|
+
}
|
|
25022
|
+
|
|
25023
|
+
/**
|
|
25024
|
+
* @description Gets an entity hierarchy for a given parent entity id. Pass null to get the root hierarchy.
|
|
25025
|
+
* @param parentId - An optional parent. Pass null to get the root hierarchy.
|
|
25026
|
+
* @param callback - A callback when the asynchronous task finishes.
|
|
25027
|
+
*/
|
|
25028
|
+
|
|
25029
|
+
async getSequenceHierarchy(
|
|
25030
|
+
parentId: bigint | null,
|
|
25031
|
+
): Promise<Multiplayer.SequenceHierarchyResult> {
|
|
25032
|
+
var _resolve;
|
|
25033
|
+
|
|
25034
|
+
var _promise = new Promise<Multiplayer.SequenceHierarchyResult>((_r) => {
|
|
25035
|
+
_resolve = _r;
|
|
25036
|
+
});
|
|
25037
|
+
|
|
25038
|
+
var _callbackPtr: number;
|
|
25039
|
+
var _callback = (_stateObject__: number, result) => {
|
|
25040
|
+
var _resultPtr = getNativePointer(result);
|
|
25041
|
+
var _resultInstance = new Multiplayer.SequenceHierarchyResult(
|
|
25042
|
+
_resultPtr,
|
|
25043
|
+
);
|
|
25044
|
+
|
|
25045
|
+
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
25046
|
+
return;
|
|
25047
|
+
}
|
|
25048
|
+
|
|
25049
|
+
_resolve(_resultInstance);
|
|
25050
|
+
|
|
25051
|
+
Module.removeFunction(_callbackPtr);
|
|
25052
|
+
};
|
|
25053
|
+
|
|
25054
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
25055
|
+
|
|
25056
|
+
var parentIdPointer = 0;
|
|
25057
|
+
if (parentId != null) {
|
|
25058
|
+
parentIdPointer = Module._malloc(4);
|
|
25059
|
+
Module.setValue(parentIdPointer, parentId, "i32");
|
|
25060
|
+
}
|
|
25061
|
+
|
|
25062
|
+
Module.ccall(
|
|
25063
|
+
"csp_multiplayer_SpaceEntitySystem_GetSequenceHierarchy_void_uint64_tRC_SequenceHierarchyResultCallback",
|
|
25064
|
+
"void",
|
|
25065
|
+
["number", "bigint", "number", "number"],
|
|
25066
|
+
[this.pointer, parentIdPointer, _callbackPtr, 0],
|
|
25067
|
+
);
|
|
25068
|
+
|
|
25069
|
+
if (parentIdPointer) {
|
|
25070
|
+
Module._free(parentIdPointer);
|
|
25071
|
+
}
|
|
25072
|
+
|
|
25073
|
+
return _promise;
|
|
25074
|
+
}
|
|
25075
|
+
|
|
25076
|
+
/**
|
|
25077
|
+
* @description Gets all hierarchies for a space
|
|
25078
|
+
* @param callback - A callback when the asynchronous task finishes.
|
|
25079
|
+
*/
|
|
25080
|
+
|
|
25081
|
+
async getAllSequenceHierarchies(): Promise<Multiplayer.SequenceHierarchyCollectionResult> {
|
|
25082
|
+
var _resolve;
|
|
25083
|
+
|
|
25084
|
+
var _promise = new Promise<Multiplayer.SequenceHierarchyCollectionResult>(
|
|
25085
|
+
(_r) => {
|
|
25086
|
+
_resolve = _r;
|
|
25087
|
+
},
|
|
25088
|
+
);
|
|
25089
|
+
|
|
25090
|
+
var _callbackPtr: number;
|
|
25091
|
+
var _callback = (_stateObject__: number, result) => {
|
|
25092
|
+
var _resultPtr = getNativePointer(result);
|
|
25093
|
+
var _resultInstance = new Multiplayer.SequenceHierarchyCollectionResult(
|
|
25094
|
+
_resultPtr,
|
|
25095
|
+
);
|
|
25096
|
+
|
|
25097
|
+
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
25098
|
+
return;
|
|
25099
|
+
}
|
|
25100
|
+
|
|
25101
|
+
_resolve(_resultInstance);
|
|
25102
|
+
|
|
25103
|
+
Module.removeFunction(_callbackPtr);
|
|
25104
|
+
};
|
|
25105
|
+
|
|
25106
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
25107
|
+
|
|
25108
|
+
Module.ccall(
|
|
25109
|
+
"csp_multiplayer_SpaceEntitySystem_GetAllSequenceHierarchies_void_SequenceHierarchyCollectionResultCallback",
|
|
25110
|
+
"void",
|
|
25111
|
+
["number", "number", "number"],
|
|
25112
|
+
[this.pointer, _callbackPtr, 0],
|
|
25113
|
+
);
|
|
25114
|
+
|
|
25115
|
+
return _promise;
|
|
25116
|
+
}
|
|
25117
|
+
|
|
25118
|
+
/**
|
|
25119
|
+
* @description Deletes an entity hierarchy for a given parent entity id. Pass null to delete the root hierarchy.
|
|
25120
|
+
* @param parentId - An optional parent. Pass null to get the root hierarchy.
|
|
25121
|
+
* @param callback - A callback when the asynchronous task finishes.
|
|
25122
|
+
*/
|
|
25123
|
+
|
|
25124
|
+
async deleteSequenceHierarchy(
|
|
25125
|
+
parentId: bigint | null,
|
|
25126
|
+
): Promise<Systems.NullResult> {
|
|
25127
|
+
var _resolve;
|
|
25128
|
+
|
|
25129
|
+
var _promise = new Promise<Systems.NullResult>((_r) => {
|
|
25130
|
+
_resolve = _r;
|
|
25131
|
+
});
|
|
25132
|
+
|
|
25133
|
+
var _callbackPtr: number;
|
|
25134
|
+
var _callback = (_stateObject__: number, result) => {
|
|
25135
|
+
var _resultPtr = getNativePointer(result);
|
|
25136
|
+
var _resultInstance = new Systems.NullResult(_resultPtr);
|
|
25137
|
+
|
|
25138
|
+
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
25139
|
+
return;
|
|
25140
|
+
}
|
|
25141
|
+
|
|
25142
|
+
_resolve(_resultInstance);
|
|
25143
|
+
|
|
25144
|
+
Module.removeFunction(_callbackPtr);
|
|
25145
|
+
};
|
|
25146
|
+
|
|
25147
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
25148
|
+
|
|
25149
|
+
var parentIdPointer = 0;
|
|
25150
|
+
if (parentId != null) {
|
|
25151
|
+
parentIdPointer = Module._malloc(4);
|
|
25152
|
+
Module.setValue(parentIdPointer, parentId, "i32");
|
|
25153
|
+
}
|
|
25154
|
+
|
|
25155
|
+
Module.ccall(
|
|
25156
|
+
"csp_multiplayer_SpaceEntitySystem_DeleteSequenceHierarchy_void_uint64_tRC_NullResultCallback",
|
|
25157
|
+
"void",
|
|
25158
|
+
["number", "bigint", "number", "number"],
|
|
25159
|
+
[this.pointer, parentIdPointer, _callbackPtr, 0],
|
|
25160
|
+
);
|
|
25161
|
+
|
|
25162
|
+
if (parentIdPointer) {
|
|
25163
|
+
Module._free(parentIdPointer);
|
|
25164
|
+
}
|
|
25165
|
+
|
|
25166
|
+
return _promise;
|
|
25167
|
+
}
|
|
25168
|
+
|
|
25169
|
+
/**
|
|
25170
|
+
* @description Sets a callback for a sequence hierarchy changed event.
|
|
25171
|
+
* @param callback - Callback to receive data for the sequence hierarchy that has been changed.
|
|
25172
|
+
*/
|
|
25173
|
+
setSequenceHierarchyChangedCallback(
|
|
25174
|
+
callback: (arg1: Multiplayer.SequenceHierarchyChangedParams) => void,
|
|
25175
|
+
) {
|
|
25176
|
+
var _callback = (_stateObject__: number, arg1) => {
|
|
25177
|
+
var _arg1 = new Multiplayer.SequenceHierarchyChangedParams(
|
|
25178
|
+
getNativePointer(arg1),
|
|
25179
|
+
);
|
|
25180
|
+
|
|
25181
|
+
callback(_arg1);
|
|
25182
|
+
};
|
|
25183
|
+
|
|
25184
|
+
var _callbackPtr = Module.addFunction(_callback, "vii");
|
|
25185
|
+
|
|
25186
|
+
Module.ccall(
|
|
25187
|
+
"csp_multiplayer_SpaceEntitySystem_SetSequenceHierarchyChangedCallback_void_SequenceHierarchyChangedCallbackHandler",
|
|
25188
|
+
"void",
|
|
25189
|
+
["number", "number", "number"],
|
|
25190
|
+
[this.pointer, _callbackPtr, 0],
|
|
25191
|
+
);
|
|
25192
|
+
}
|
|
24344
25193
|
}
|
|
24345
25194
|
}
|
|
24346
25195
|
|
|
@@ -24396,6 +25245,19 @@ export namespace Multiplayer {
|
|
|
24396
25245
|
return new SpaceTransform(_nPtr);
|
|
24397
25246
|
}
|
|
24398
25247
|
|
|
25248
|
+
/**
|
|
25249
|
+
* @description Equality operator
|
|
25250
|
+
* @param spaceTransform - Transform
|
|
25251
|
+
*/
|
|
25252
|
+
// operator==
|
|
25253
|
+
|
|
25254
|
+
/**
|
|
25255
|
+
* @description Multiplication operator
|
|
25256
|
+
* @param spaceTransform - Transform
|
|
25257
|
+
* NOTE: This mimics the operations of a matrix transform multiplication, but converts the back into a recognisable form.
|
|
25258
|
+
*/
|
|
25259
|
+
// operator*
|
|
25260
|
+
|
|
24399
25261
|
delete(): void {
|
|
24400
25262
|
if (this.ownsPointer && !this.disposed) {
|
|
24401
25263
|
Module.ccall(
|
|
@@ -33188,6 +34050,130 @@ export namespace Systems {
|
|
|
33188
34050
|
}
|
|
33189
34051
|
}
|
|
33190
34052
|
|
|
34053
|
+
export namespace Multiplayer {
|
|
34054
|
+
/**
|
|
34055
|
+
@ingroup Space Entity System
|
|
34056
|
+
* @description Data class used to contain information when attempting to get a sequence hierarchy
|
|
34057
|
+
*/
|
|
34058
|
+
export class SequenceHierarchyResult
|
|
34059
|
+
extends Systems.ResultBase
|
|
34060
|
+
implements INativeResource
|
|
34061
|
+
{
|
|
34062
|
+
/** @internal */
|
|
34063
|
+
constructor(pointer: NativePointer) {
|
|
34064
|
+
super(pointer);
|
|
34065
|
+
}
|
|
34066
|
+
|
|
34067
|
+
static fromResultBase(
|
|
34068
|
+
baseInstance: Systems.ResultBase,
|
|
34069
|
+
): Multiplayer.SequenceHierarchyResult {
|
|
34070
|
+
const nativeClassWrapper = baseInstance as unknown as NativeClassWrapper;
|
|
34071
|
+
return new Multiplayer.SequenceHierarchyResult(
|
|
34072
|
+
new NativePointer(
|
|
34073
|
+
nativeClassWrapper.pointer,
|
|
34074
|
+
nativeClassWrapper.ownsPointer,
|
|
34075
|
+
),
|
|
34076
|
+
);
|
|
34077
|
+
}
|
|
34078
|
+
|
|
34079
|
+
/**
|
|
34080
|
+
* @description Retreives the SequenceHierarchy from the result.
|
|
34081
|
+
*/
|
|
34082
|
+
|
|
34083
|
+
getSequenceHierarchy(): Multiplayer.SequenceHierarchy {
|
|
34084
|
+
var _ret = Module._malloc(8);
|
|
34085
|
+
|
|
34086
|
+
Module.ccall(
|
|
34087
|
+
"csp_multiplayer_SequenceHierarchyResult_GetSequenceHierarchyC_SequenceHierarchyRC",
|
|
34088
|
+
"void",
|
|
34089
|
+
["number", "number"],
|
|
34090
|
+
[_ret, this.pointer],
|
|
34091
|
+
);
|
|
34092
|
+
var _nPtr = new Multiplayer.SequenceHierarchy(getNativePointer(_ret));
|
|
34093
|
+
Module._free(_ret);
|
|
34094
|
+
|
|
34095
|
+
return _nPtr;
|
|
34096
|
+
}
|
|
34097
|
+
|
|
34098
|
+
delete(): void {
|
|
34099
|
+
if (this.ownsPointer && !this.disposed) {
|
|
34100
|
+
Module.ccall(
|
|
34101
|
+
"csp_multiplayer_SequenceHierarchyResult_Dtor",
|
|
34102
|
+
"void",
|
|
34103
|
+
["number"],
|
|
34104
|
+
[this.pointer],
|
|
34105
|
+
);
|
|
34106
|
+
|
|
34107
|
+
this.disposed = true;
|
|
34108
|
+
}
|
|
34109
|
+
}
|
|
34110
|
+
}
|
|
34111
|
+
}
|
|
34112
|
+
|
|
34113
|
+
export namespace Multiplayer {
|
|
34114
|
+
/**
|
|
34115
|
+
@ingroup Space Entity System
|
|
34116
|
+
* @description Data class used to contain information when attempting to get an array of sequence hierachies
|
|
34117
|
+
*/
|
|
34118
|
+
export class SequenceHierarchyCollectionResult
|
|
34119
|
+
extends Systems.ResultBase
|
|
34120
|
+
implements INativeResource
|
|
34121
|
+
{
|
|
34122
|
+
/** @internal */
|
|
34123
|
+
constructor(pointer: NativePointer) {
|
|
34124
|
+
super(pointer);
|
|
34125
|
+
}
|
|
34126
|
+
|
|
34127
|
+
static fromResultBase(
|
|
34128
|
+
baseInstance: Systems.ResultBase,
|
|
34129
|
+
): Multiplayer.SequenceHierarchyCollectionResult {
|
|
34130
|
+
const nativeClassWrapper = baseInstance as unknown as NativeClassWrapper;
|
|
34131
|
+
return new Multiplayer.SequenceHierarchyCollectionResult(
|
|
34132
|
+
new NativePointer(
|
|
34133
|
+
nativeClassWrapper.pointer,
|
|
34134
|
+
nativeClassWrapper.ownsPointer,
|
|
34135
|
+
),
|
|
34136
|
+
);
|
|
34137
|
+
}
|
|
34138
|
+
|
|
34139
|
+
/**
|
|
34140
|
+
* @description Retreives the SequenceHierarchies from the result.
|
|
34141
|
+
*/
|
|
34142
|
+
|
|
34143
|
+
getSequenceHierarchyCollection(): Common.Array<Multiplayer.SequenceHierarchy> {
|
|
34144
|
+
var _ret = Module._malloc(8);
|
|
34145
|
+
|
|
34146
|
+
Module.ccall(
|
|
34147
|
+
"csp_multiplayer_SequenceHierarchyCollectionResult_GetSequenceHierarchyCollectionC_ArrayRC",
|
|
34148
|
+
"void",
|
|
34149
|
+
["number", "number"],
|
|
34150
|
+
[_ret, this.pointer],
|
|
34151
|
+
);
|
|
34152
|
+
var _nPtr = new Common.Array<Multiplayer.SequenceHierarchy>(
|
|
34153
|
+
getNativePointer(_ret),
|
|
34154
|
+
csp_multiplayer_SequenceHierarchyFactory,
|
|
34155
|
+
"csp_multiplayer_SequenceHierarchy",
|
|
34156
|
+
);
|
|
34157
|
+
Module._free(_ret);
|
|
34158
|
+
|
|
34159
|
+
return _nPtr;
|
|
34160
|
+
}
|
|
34161
|
+
|
|
34162
|
+
delete(): void {
|
|
34163
|
+
if (this.ownsPointer && !this.disposed) {
|
|
34164
|
+
Module.ccall(
|
|
34165
|
+
"csp_multiplayer_SequenceHierarchyCollectionResult_Dtor",
|
|
34166
|
+
"void",
|
|
34167
|
+
["number"],
|
|
34168
|
+
[this.pointer],
|
|
34169
|
+
);
|
|
34170
|
+
|
|
34171
|
+
this.disposed = true;
|
|
34172
|
+
}
|
|
34173
|
+
}
|
|
34174
|
+
}
|
|
34175
|
+
}
|
|
34176
|
+
|
|
33191
34177
|
export namespace Multiplayer {
|
|
33192
34178
|
/**
|
|
33193
34179
|
@ingroup AnimatedModelSpaceComponent
|
|
@@ -46500,7 +47486,7 @@ export namespace Systems {
|
|
|
46500
47486
|
*/
|
|
46501
47487
|
|
|
46502
47488
|
async createHotspotGroup(
|
|
46503
|
-
|
|
47489
|
+
groupName: string,
|
|
46504
47490
|
hotspotIds: Common.Array<string>,
|
|
46505
47491
|
): Promise<Systems.HotspotGroupResult> {
|
|
46506
47492
|
var _resolve;
|
|
@@ -46529,7 +47515,7 @@ export namespace Systems {
|
|
|
46529
47515
|
"csp_systems_HotspotSequenceSystem_CreateHotspotGroup_void_StringRC_ArrayRC_HotspotGroupResultCallback",
|
|
46530
47516
|
"void",
|
|
46531
47517
|
["number", "string", "number", "number", "number"],
|
|
46532
|
-
[this.pointer,
|
|
47518
|
+
[this.pointer, groupName, hotspotIds.pointer, _callbackPtr, 0],
|
|
46533
47519
|
);
|
|
46534
47520
|
|
|
46535
47521
|
return _promise;
|
|
@@ -48338,6 +49324,7 @@ export namespace Systems {
|
|
|
48338
49324
|
|
|
48339
49325
|
/**
|
|
48340
49326
|
* @description Creates a new sequence. If a sequence already exists with this key, it will overwrite the current one.
|
|
49327
|
+
* NOTE: This call will fail (Reason InvalidSequenceKey) if the SequenceKey parameter contains invalid keys, such as spaces, '/' or '%'
|
|
48341
49328
|
* This call will fail if the user isn't a creator of the space.
|
|
48342
49329
|
* @param sequenceKey - The unique grouping name. Our naming convention is: Type:[SpaceId]:[GroupName]
|
|
48343
49330
|
* @param referenceType - The type of reference (GroupId etc.)
|
|
@@ -48406,6 +49393,7 @@ export namespace Systems {
|
|
|
48406
49393
|
|
|
48407
49394
|
/**
|
|
48408
49395
|
* @description Updates an existing sequence. This call will fail if the user isn't a creator of the space.
|
|
49396
|
+
* NOTE: This call will fail if the SequenceKey parameter contains invalid keys, such as spaces, '/' or '%'
|
|
48409
49397
|
* @param sequenceKey - The unique grouping name. Our naming convention is: Type:[SpaceId]:[GroupName]
|
|
48410
49398
|
* @param referenceType - The type of reference (GroupId etc.)
|
|
48411
49399
|
* @param referenceId - The id of the reference
|
|
@@ -48473,6 +49461,8 @@ export namespace Systems {
|
|
|
48473
49461
|
|
|
48474
49462
|
/**
|
|
48475
49463
|
* @description Renames a given sequence. This call will fail if the user isn't a creator of the space.
|
|
49464
|
+
* NOTE: This call will fail (Reason InvalidSequenceKey) if the OldSequenceKey, or NewSequenceKey parameters contains invalid keys, such as
|
|
49465
|
+
* spaces, '/' or '%'
|
|
48476
49466
|
* @param oldSequenceKey - The current sequence key name
|
|
48477
49467
|
* @param newSequenceKey - The new sequence key name
|
|
48478
49468
|
* @param callback - Callback to call when a response is received
|
|
@@ -48516,6 +49506,7 @@ export namespace Systems {
|
|
|
48516
49506
|
|
|
48517
49507
|
/**
|
|
48518
49508
|
* @description Finds sequences based on the given criteria
|
|
49509
|
+
* NOTE: This call will fail (Reason InvalidSequenceKey) if the SequenceKey parameter contains invalid keys, such as spaces, '/' or '%'
|
|
48519
49510
|
* @param sequenceKeys - An array of sequence keys to search for
|
|
48520
49511
|
* @param sequenceKeys - An optional regex string for searching keys
|
|
48521
49512
|
* @param referenceType - The type of reference (GroupId etc.). Must be used with ReferenceIds
|
|
@@ -48583,6 +49574,7 @@ export namespace Systems {
|
|
|
48583
49574
|
|
|
48584
49575
|
/**
|
|
48585
49576
|
* @description Gets a sequence by it's key
|
|
49577
|
+
* NOTE: This call will fail (Reason InvalidSequenceKey) if the SequenceKey parameter contains invalid keys, such as spaces, '/' or '%'
|
|
48586
49578
|
* @param sequenceKey - The unique grouping name
|
|
48587
49579
|
* @param callback - Callback to call when a response is received
|
|
48588
49580
|
*/
|
|
@@ -48622,6 +49614,7 @@ export namespace Systems {
|
|
|
48622
49614
|
|
|
48623
49615
|
/**
|
|
48624
49616
|
* @description Deletes the given sequences. This call will fail if the user isn't a creator of the space
|
|
49617
|
+
* NOTE: This call will fail (Reason InvalidSequenceKey) if the SequenceKey parameter contains invalid keys, such as spaces, '/' or '%'
|
|
48625
49618
|
* @param sequenceKeys - An array of sequence keys to delete
|
|
48626
49619
|
* @param callback - Callback to call when a response is received
|
|
48627
49620
|
*/
|
|
@@ -51946,6 +52939,74 @@ export namespace Systems {
|
|
|
51946
52939
|
|
|
51947
52940
|
return _promise;
|
|
51948
52941
|
}
|
|
52942
|
+
|
|
52943
|
+
/**
|
|
52944
|
+
* @description Duplicate an existing space and assign it to the current user
|
|
52945
|
+
* @param spaceId - Id of the space to duplicate.
|
|
52946
|
+
* @param newName - A unique name for the duplicated space.
|
|
52947
|
+
* @param newAttributes - Attributes to apply to the duplicated space.
|
|
52948
|
+
* @param memberGroupIds - An optional array of group (space) IDs to copy users from.
|
|
52949
|
+
* @param shallowCopy - If true, the duplicated space will reference the assets of the original space. Otherwise, all assets will be
|
|
52950
|
+
* duplicated.
|
|
52951
|
+
* @param callback - Callback when asynchronous task finishes
|
|
52952
|
+
*/
|
|
52953
|
+
|
|
52954
|
+
async duplicateSpace(
|
|
52955
|
+
spaceId: string,
|
|
52956
|
+
newName: string,
|
|
52957
|
+
newAttributes: Systems.SpaceAttributes,
|
|
52958
|
+
memberGroupIds: Common.Array<string> | null,
|
|
52959
|
+
shallowCopy: boolean,
|
|
52960
|
+
): Promise<Systems.SpaceResult> {
|
|
52961
|
+
var _resolve;
|
|
52962
|
+
|
|
52963
|
+
var _promise = new Promise<Systems.SpaceResult>((_r) => {
|
|
52964
|
+
_resolve = _r;
|
|
52965
|
+
});
|
|
52966
|
+
|
|
52967
|
+
var _callbackPtr: number;
|
|
52968
|
+
var _callback = (_stateObject__: number, result) => {
|
|
52969
|
+
var _resultPtr = getNativePointer(result);
|
|
52970
|
+
var _resultInstance = new Systems.SpaceResult(_resultPtr);
|
|
52971
|
+
|
|
52972
|
+
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
52973
|
+
return;
|
|
52974
|
+
}
|
|
52975
|
+
|
|
52976
|
+
_resolve(_resultInstance);
|
|
52977
|
+
|
|
52978
|
+
Module.removeFunction(_callbackPtr);
|
|
52979
|
+
};
|
|
52980
|
+
|
|
52981
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
52982
|
+
|
|
52983
|
+
Module.ccall(
|
|
52984
|
+
"csp_systems_SpaceSystem_DuplicateSpace_void_StringRC_StringRC_SpaceAttributes_ArrayRC_bool_SpaceResultCallback",
|
|
52985
|
+
"void",
|
|
52986
|
+
[
|
|
52987
|
+
"number",
|
|
52988
|
+
"string",
|
|
52989
|
+
"string",
|
|
52990
|
+
"number",
|
|
52991
|
+
"number",
|
|
52992
|
+
"boolean",
|
|
52993
|
+
"number",
|
|
52994
|
+
"number",
|
|
52995
|
+
],
|
|
52996
|
+
[
|
|
52997
|
+
this.pointer,
|
|
52998
|
+
spaceId,
|
|
52999
|
+
newName,
|
|
53000
|
+
newAttributes,
|
|
53001
|
+
memberGroupIds != null ? memberGroupIds.pointer : 0,
|
|
53002
|
+
shallowCopy,
|
|
53003
|
+
_callbackPtr,
|
|
53004
|
+
0,
|
|
53005
|
+
],
|
|
53006
|
+
);
|
|
53007
|
+
|
|
53008
|
+
return _promise;
|
|
53009
|
+
}
|
|
51949
53010
|
}
|
|
51950
53011
|
}
|
|
51951
53012
|
|
|
@@ -54795,6 +55856,42 @@ export namespace Common {
|
|
|
54795
55856
|
return _inst;
|
|
54796
55857
|
}
|
|
54797
55858
|
|
|
55859
|
+
static ofuint64_t(): Array<bigint> {
|
|
55860
|
+
var _ret = Module._malloc(8);
|
|
55861
|
+
Module.ccall(
|
|
55862
|
+
"csp_common_Array_Ctor_uint64_t",
|
|
55863
|
+
"void",
|
|
55864
|
+
["number"],
|
|
55865
|
+
[_ret],
|
|
55866
|
+
);
|
|
55867
|
+
var _inst = new Array<bigint>(
|
|
55868
|
+
getNativePointer(_ret),
|
|
55869
|
+
NumberFactory,
|
|
55870
|
+
"uint64_t",
|
|
55871
|
+
);
|
|
55872
|
+
Module._free(_ret);
|
|
55873
|
+
|
|
55874
|
+
return _inst;
|
|
55875
|
+
}
|
|
55876
|
+
|
|
55877
|
+
static ofcsp_multiplayer_SequenceHierarchy(): Array<Multiplayer.SequenceHierarchy> {
|
|
55878
|
+
var _ret = Module._malloc(8);
|
|
55879
|
+
Module.ccall(
|
|
55880
|
+
"csp_common_Array_Ctor_csp_multiplayer_SequenceHierarchy",
|
|
55881
|
+
"void",
|
|
55882
|
+
["number"],
|
|
55883
|
+
[_ret],
|
|
55884
|
+
);
|
|
55885
|
+
var _inst = new Array<Multiplayer.SequenceHierarchy>(
|
|
55886
|
+
getNativePointer(_ret),
|
|
55887
|
+
csp_multiplayer_SequenceHierarchyFactory,
|
|
55888
|
+
"csp_multiplayer_SequenceHierarchy",
|
|
55889
|
+
);
|
|
55890
|
+
Module._free(_ret);
|
|
55891
|
+
|
|
55892
|
+
return _inst;
|
|
55893
|
+
}
|
|
55894
|
+
|
|
54798
55895
|
static ofcsp_multiplayer_MessageInfo(): Array<Multiplayer.MessageInfo> {
|
|
54799
55896
|
var _ret = Module._malloc(8);
|
|
54800
55897
|
Module.ccall(
|
|
@@ -55542,6 +56639,44 @@ export namespace Common {
|
|
|
55542
56639
|
return _inst;
|
|
55543
56640
|
}
|
|
55544
56641
|
|
|
56642
|
+
static ofuint64_t_number(size: number): Array<bigint> {
|
|
56643
|
+
var _ret = Module._malloc(8);
|
|
56644
|
+
Module.ccall(
|
|
56645
|
+
"csp_common_Array_Conv_size_tC_uint64_t",
|
|
56646
|
+
"void",
|
|
56647
|
+
["number", "number"],
|
|
56648
|
+
[_ret, size],
|
|
56649
|
+
);
|
|
56650
|
+
var _inst = new Array<bigint>(
|
|
56651
|
+
getNativePointer(_ret),
|
|
56652
|
+
NumberFactory,
|
|
56653
|
+
"uint64_t",
|
|
56654
|
+
);
|
|
56655
|
+
Module._free(_ret);
|
|
56656
|
+
|
|
56657
|
+
return _inst;
|
|
56658
|
+
}
|
|
56659
|
+
|
|
56660
|
+
static ofcsp_multiplayer_SequenceHierarchy_number(
|
|
56661
|
+
size: number,
|
|
56662
|
+
): Array<Multiplayer.SequenceHierarchy> {
|
|
56663
|
+
var _ret = Module._malloc(8);
|
|
56664
|
+
Module.ccall(
|
|
56665
|
+
"csp_common_Array_Conv_size_tC_csp_multiplayer_SequenceHierarchy",
|
|
56666
|
+
"void",
|
|
56667
|
+
["number", "number"],
|
|
56668
|
+
[_ret, size],
|
|
56669
|
+
);
|
|
56670
|
+
var _inst = new Array<Multiplayer.SequenceHierarchy>(
|
|
56671
|
+
getNativePointer(_ret),
|
|
56672
|
+
csp_multiplayer_SequenceHierarchyFactory,
|
|
56673
|
+
"csp_multiplayer_SequenceHierarchy",
|
|
56674
|
+
);
|
|
56675
|
+
Module._free(_ret);
|
|
56676
|
+
|
|
56677
|
+
return _inst;
|
|
56678
|
+
}
|
|
56679
|
+
|
|
55545
56680
|
static ofcsp_multiplayer_MessageInfo_number(
|
|
55546
56681
|
size: number,
|
|
55547
56682
|
): Array<Multiplayer.MessageInfo> {
|
|
@@ -56389,6 +57524,24 @@ export namespace Common {
|
|
|
56389
57524
|
private TTypeFactory: ProxyClassFactory;
|
|
56390
57525
|
private TTypeName: string;
|
|
56391
57526
|
|
|
57527
|
+
static ofcsp_multiplayer_SpaceEntity(): List<Multiplayer.SpaceEntity> {
|
|
57528
|
+
var _ret = Module._malloc(8);
|
|
57529
|
+
Module.ccall(
|
|
57530
|
+
"csp_common_List_Ctor_csp_multiplayer_SpaceEntity",
|
|
57531
|
+
"void",
|
|
57532
|
+
["number"],
|
|
57533
|
+
[_ret],
|
|
57534
|
+
);
|
|
57535
|
+
var _inst = new List<Multiplayer.SpaceEntity>(
|
|
57536
|
+
getNativePointer(_ret),
|
|
57537
|
+
csp_multiplayer_SpaceEntityFactory,
|
|
57538
|
+
"csp_multiplayer_SpaceEntity",
|
|
57539
|
+
);
|
|
57540
|
+
Module._free(_ret);
|
|
57541
|
+
|
|
57542
|
+
return _inst;
|
|
57543
|
+
}
|
|
57544
|
+
|
|
56392
57545
|
static ofString(): List<string> {
|
|
56393
57546
|
var _ret = Module._malloc(8);
|
|
56394
57547
|
Module.ccall("csp_common_List_Ctor_String", "void", ["number"], [_ret]);
|
|
@@ -56420,6 +57573,26 @@ export namespace Common {
|
|
|
56420
57573
|
return _inst;
|
|
56421
57574
|
}
|
|
56422
57575
|
|
|
57576
|
+
static ofcsp_multiplayer_SpaceEntity_number(
|
|
57577
|
+
minimumSize: number,
|
|
57578
|
+
): List<Multiplayer.SpaceEntity> {
|
|
57579
|
+
var _ret = Module._malloc(8);
|
|
57580
|
+
Module.ccall(
|
|
57581
|
+
"csp_common_List_Ctor_size_t_csp_multiplayer_SpaceEntity",
|
|
57582
|
+
"void",
|
|
57583
|
+
["number", "number"],
|
|
57584
|
+
[_ret, minimumSize],
|
|
57585
|
+
);
|
|
57586
|
+
var _inst = new List<Multiplayer.SpaceEntity>(
|
|
57587
|
+
getNativePointer(_ret),
|
|
57588
|
+
csp_multiplayer_SpaceEntityFactory,
|
|
57589
|
+
"csp_multiplayer_SpaceEntity",
|
|
57590
|
+
);
|
|
57591
|
+
Module._free(_ret);
|
|
57592
|
+
|
|
57593
|
+
return _inst;
|
|
57594
|
+
}
|
|
57595
|
+
|
|
56423
57596
|
static ofString_number(minimumSize: number): List<string> {
|
|
56424
57597
|
var _ret = Module._malloc(8);
|
|
56425
57598
|
Module.ccall(
|
|
@@ -56458,6 +57631,26 @@ export namespace Common {
|
|
|
56458
57631
|
return _inst;
|
|
56459
57632
|
}
|
|
56460
57633
|
|
|
57634
|
+
static ofcsp_multiplayer_SpaceEntity_List(
|
|
57635
|
+
other: Common.List<Multiplayer.SpaceEntity>,
|
|
57636
|
+
): List<Multiplayer.SpaceEntity> {
|
|
57637
|
+
var _ret = Module._malloc(8);
|
|
57638
|
+
Module.ccall(
|
|
57639
|
+
"csp_common_List_Ctor_ListRC_csp_multiplayer_SpaceEntity",
|
|
57640
|
+
"void",
|
|
57641
|
+
["number", "number"],
|
|
57642
|
+
[_ret, other.pointer],
|
|
57643
|
+
);
|
|
57644
|
+
var _inst = new List<Multiplayer.SpaceEntity>(
|
|
57645
|
+
getNativePointer(_ret),
|
|
57646
|
+
csp_multiplayer_SpaceEntityFactory,
|
|
57647
|
+
"csp_multiplayer_SpaceEntity",
|
|
57648
|
+
);
|
|
57649
|
+
Module._free(_ret);
|
|
57650
|
+
|
|
57651
|
+
return _inst;
|
|
57652
|
+
}
|
|
57653
|
+
|
|
56461
57654
|
static ofString_List(other: Common.List<string>): List<string> {
|
|
56462
57655
|
var _ret = Module._malloc(8);
|
|
56463
57656
|
Module.ccall(
|