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
|
@@ -689,6 +689,11 @@ function csp_multiplayer_SequenceChangedParamsFactory(nativePointer) {
|
|
|
689
689
|
}
|
|
690
690
|
ProxyClassFactories["csp_multiplayer_SequenceChangedParams"] =
|
|
691
691
|
csp_multiplayer_SequenceChangedParamsFactory;
|
|
692
|
+
function csp_multiplayer_SequenceHierarchyChangedParamsFactory(nativePointer) {
|
|
693
|
+
return new Multiplayer.SequenceHierarchyChangedParams(nativePointer);
|
|
694
|
+
}
|
|
695
|
+
ProxyClassFactories["csp_multiplayer_SequenceHierarchyChangedParams"] =
|
|
696
|
+
csp_multiplayer_SequenceHierarchyChangedParamsFactory;
|
|
692
697
|
function csp_multiplayer_MultiplayerConnectionFactory(nativePointer) {
|
|
693
698
|
return new Multiplayer.MultiplayerConnection(nativePointer);
|
|
694
699
|
}
|
|
@@ -699,6 +704,11 @@ function csp_multiplayer_ReplicatedValueFactory(nativePointer) {
|
|
|
699
704
|
}
|
|
700
705
|
ProxyClassFactories["csp_multiplayer_ReplicatedValue"] =
|
|
701
706
|
csp_multiplayer_ReplicatedValueFactory;
|
|
707
|
+
function csp_multiplayer_SequenceHierarchyFactory(nativePointer) {
|
|
708
|
+
return new Multiplayer.SequenceHierarchy(nativePointer);
|
|
709
|
+
}
|
|
710
|
+
ProxyClassFactories["csp_multiplayer_SequenceHierarchy"] =
|
|
711
|
+
csp_multiplayer_SequenceHierarchyFactory;
|
|
702
712
|
function csp_multiplayer_ComponentUpdateInfoFactory(nativePointer) {
|
|
703
713
|
return new Multiplayer.ComponentUpdateInfo(nativePointer);
|
|
704
714
|
}
|
|
@@ -991,6 +1001,16 @@ function csp_systems_VoipSystemFactory(nativePointer) {
|
|
|
991
1001
|
return new Systems.VoipSystem(nativePointer);
|
|
992
1002
|
}
|
|
993
1003
|
ProxyClassFactories["csp_systems_VoipSystem"] = csp_systems_VoipSystemFactory;
|
|
1004
|
+
function csp_multiplayer_SequenceHierarchyResultFactory(nativePointer) {
|
|
1005
|
+
return new Multiplayer.SequenceHierarchyResult(nativePointer);
|
|
1006
|
+
}
|
|
1007
|
+
ProxyClassFactories["csp_multiplayer_SequenceHierarchyResult"] =
|
|
1008
|
+
csp_multiplayer_SequenceHierarchyResultFactory;
|
|
1009
|
+
function csp_multiplayer_SequenceHierarchyCollectionResultFactory(nativePointer) {
|
|
1010
|
+
return new Multiplayer.SequenceHierarchyCollectionResult(nativePointer);
|
|
1011
|
+
}
|
|
1012
|
+
ProxyClassFactories["csp_multiplayer_SequenceHierarchyCollectionResult"] =
|
|
1013
|
+
csp_multiplayer_SequenceHierarchyCollectionResultFactory;
|
|
994
1014
|
function csp_multiplayer_AnimatedModelSpaceComponentFactory(nativePointer) {
|
|
995
1015
|
return new Multiplayer.AnimatedModelSpaceComponent(nativePointer);
|
|
996
1016
|
}
|
|
@@ -1519,6 +1539,16 @@ function csp_common_Array_csp_systems_SpaceUserRoleFactory(nativePointer) {
|
|
|
1519
1539
|
}
|
|
1520
1540
|
ProxyClassFactories["csp_common_Array_csp_systems_SpaceUserRole"] =
|
|
1521
1541
|
csp_common_Array_csp_systems_SpaceUserRoleFactory;
|
|
1542
|
+
function csp_common_Array_uint64_tFactory(nativePointer) {
|
|
1543
|
+
return new Common.Array(nativePointer, NumberFactory, "uint64_t");
|
|
1544
|
+
}
|
|
1545
|
+
ProxyClassFactories["csp_common_Array_uint64_t"] =
|
|
1546
|
+
csp_common_Array_uint64_tFactory;
|
|
1547
|
+
function csp_common_Array_csp_multiplayer_SequenceHierarchyFactory(nativePointer) {
|
|
1548
|
+
return new Common.Array(nativePointer, csp_multiplayer_SequenceHierarchyFactory, "csp_multiplayer_SequenceHierarchy");
|
|
1549
|
+
}
|
|
1550
|
+
ProxyClassFactories["csp_common_Array_csp_multiplayer_SequenceHierarchy"] =
|
|
1551
|
+
csp_common_Array_csp_multiplayer_SequenceHierarchyFactory;
|
|
1522
1552
|
function csp_common_Array_csp_multiplayer_MessageInfoFactory(nativePointer) {
|
|
1523
1553
|
return new Common.Array(nativePointer, csp_multiplayer_MessageInfoFactory, "csp_multiplayer_MessageInfo");
|
|
1524
1554
|
}
|
|
@@ -1710,6 +1740,11 @@ function csp_common_Array_csp_common_Map_String_StringFactory(nativePointer) {
|
|
|
1710
1740
|
}
|
|
1711
1741
|
ProxyClassFactories["csp_common_Array_csp_common_Map_String_String"] =
|
|
1712
1742
|
csp_common_Array_csp_common_Map_String_StringFactory;
|
|
1743
|
+
function csp_common_List_csp_multiplayer_SpaceEntityFactory(nativePointer) {
|
|
1744
|
+
return new Common.List(nativePointer, csp_multiplayer_SpaceEntityFactory, "csp_multiplayer_SpaceEntity");
|
|
1745
|
+
}
|
|
1746
|
+
ProxyClassFactories["csp_common_List_csp_multiplayer_SpaceEntity"] =
|
|
1747
|
+
csp_common_List_csp_multiplayer_SpaceEntityFactory;
|
|
1713
1748
|
function csp_common_List_StringFactory(nativePointer) {
|
|
1714
1749
|
return new Common.List(nativePointer, StringFactory, "String");
|
|
1715
1750
|
}
|
|
@@ -1837,7 +1872,8 @@ export var Multiplayer;
|
|
|
1837
1872
|
(function (ESequenceUpdateType) {
|
|
1838
1873
|
ESequenceUpdateType[ESequenceUpdateType["Create"] = 0] = "Create";
|
|
1839
1874
|
ESequenceUpdateType[ESequenceUpdateType["Update"] = 1] = "Update";
|
|
1840
|
-
ESequenceUpdateType[ESequenceUpdateType["
|
|
1875
|
+
ESequenceUpdateType[ESequenceUpdateType["Rename"] = 2] = "Rename";
|
|
1876
|
+
ESequenceUpdateType[ESequenceUpdateType["Delete"] = 3] = "Delete";
|
|
1841
1877
|
})(ESequenceUpdateType = Multiplayer.ESequenceUpdateType || (Multiplayer.ESequenceUpdateType = {}));
|
|
1842
1878
|
})(Multiplayer || (Multiplayer = {}));
|
|
1843
1879
|
(function (Multiplayer) {
|
|
@@ -1925,6 +1961,7 @@ export var Multiplayer;
|
|
|
1925
1961
|
SpaceEntityUpdateFlags[SpaceEntityUpdateFlags["UPDATE_FLAGS_SELECTION_ID"] = 32] = "UPDATE_FLAGS_SELECTION_ID";
|
|
1926
1962
|
SpaceEntityUpdateFlags[SpaceEntityUpdateFlags["UPDATE_FLAGS_THIRD_PARTY_REF"] = 64] = "UPDATE_FLAGS_THIRD_PARTY_REF";
|
|
1927
1963
|
SpaceEntityUpdateFlags[SpaceEntityUpdateFlags["UPDATE_FLAGS_THIRD_PARTY_PLATFORM"] = 128] = "UPDATE_FLAGS_THIRD_PARTY_PLATFORM";
|
|
1964
|
+
SpaceEntityUpdateFlags[SpaceEntityUpdateFlags["UPDATE_FLAGS_PARENT"] = 256] = "UPDATE_FLAGS_PARENT";
|
|
1928
1965
|
})(SpaceEntityUpdateFlags = Multiplayer.SpaceEntityUpdateFlags || (Multiplayer.SpaceEntityUpdateFlags = {}));
|
|
1929
1966
|
})(Multiplayer || (Multiplayer = {}));
|
|
1930
1967
|
(function (Multiplayer) {
|
|
@@ -2625,6 +2662,7 @@ export var Multiplayer;
|
|
|
2625
2662
|
ERequestFailureReason[ERequestFailureReason["ShopifyInvalidStoreName"] = 32] = "ShopifyInvalidStoreName";
|
|
2626
2663
|
ERequestFailureReason[ERequestFailureReason["UserShopifyLimitReached"] = 33] = "UserShopifyLimitReached";
|
|
2627
2664
|
ERequestFailureReason[ERequestFailureReason["UserTokenRefreshFailed"] = 34] = "UserTokenRefreshFailed";
|
|
2665
|
+
ERequestFailureReason[ERequestFailureReason["InvalidSequenceKey"] = 35] = "InvalidSequenceKey";
|
|
2628
2666
|
})(ERequestFailureReason = Systems.ERequestFailureReason || (Systems.ERequestFailureReason = {}));
|
|
2629
2667
|
})(Systems || (Systems = {}));
|
|
2630
2668
|
(function (Systems) {
|
|
@@ -8855,6 +8893,31 @@ export class CSPFoundation {
|
|
|
8855
8893
|
var _nPtr = getNativePointer(_ptr);
|
|
8856
8894
|
return new Vector3(_nPtr);
|
|
8857
8895
|
}
|
|
8896
|
+
/**
|
|
8897
|
+
* @description Member by member addition with another Vector3
|
|
8898
|
+
* @param vector3 - Other
|
|
8899
|
+
*/
|
|
8900
|
+
// operator+
|
|
8901
|
+
/**
|
|
8902
|
+
* @description Subtracts another Vector3 from this one
|
|
8903
|
+
* @param vector3 - Other
|
|
8904
|
+
*/
|
|
8905
|
+
// operator-
|
|
8906
|
+
/**
|
|
8907
|
+
* @description Divides the Vector3 by divisor
|
|
8908
|
+
* @param float - Divisor
|
|
8909
|
+
*/
|
|
8910
|
+
// operator/
|
|
8911
|
+
/**
|
|
8912
|
+
* @description Member by member multiplication with another Vector3
|
|
8913
|
+
* @param vector3 - Other
|
|
8914
|
+
*/
|
|
8915
|
+
// operator*
|
|
8916
|
+
/**
|
|
8917
|
+
* @description Multiplies the Vector3 by a scalar
|
|
8918
|
+
* @param float - Scalar
|
|
8919
|
+
*/
|
|
8920
|
+
// operator*
|
|
8858
8921
|
delete() {
|
|
8859
8922
|
if (this.ownsPointer && !this.disposed) {
|
|
8860
8923
|
Module.ccall("csp_common_Vector3_Dtor", "void", ["number"], [this.pointer]);
|
|
@@ -8949,6 +9012,31 @@ export class CSPFoundation {
|
|
|
8949
9012
|
var _nPtr = getNativePointer(_ptr);
|
|
8950
9013
|
return new Vector4(_nPtr);
|
|
8951
9014
|
}
|
|
9015
|
+
/**
|
|
9016
|
+
* @description Member by member addition with another Vector4
|
|
9017
|
+
* @param vector4 - Other
|
|
9018
|
+
*/
|
|
9019
|
+
// operator+
|
|
9020
|
+
/**
|
|
9021
|
+
* @description Subtracts another Vector4 from this one
|
|
9022
|
+
* @param vector4 - Other
|
|
9023
|
+
*/
|
|
9024
|
+
// operator-
|
|
9025
|
+
/**
|
|
9026
|
+
* @description Divides the Vector4 by divisor
|
|
9027
|
+
* @param float - Divisor
|
|
9028
|
+
*/
|
|
9029
|
+
// operator/
|
|
9030
|
+
/**
|
|
9031
|
+
* @description Member by member multiplication with another Vector4
|
|
9032
|
+
* @param vector4 - Other
|
|
9033
|
+
*/
|
|
9034
|
+
// operator*
|
|
9035
|
+
/**
|
|
9036
|
+
* @description Multiplies the Vector4 by a scalar
|
|
9037
|
+
* @param float - Scalar
|
|
9038
|
+
*/
|
|
9039
|
+
// operator*
|
|
8952
9040
|
delete() {
|
|
8953
9041
|
if (this.ownsPointer && !this.disposed) {
|
|
8954
9042
|
Module.ccall("csp_common_Vector4_Dtor", "void", ["number"], [this.pointer]);
|
|
@@ -9293,6 +9381,51 @@ export class CSPFoundation {
|
|
|
9293
9381
|
}
|
|
9294
9382
|
Multiplayer.SequenceChangedParams = SequenceChangedParams;
|
|
9295
9383
|
})(Multiplayer || (Multiplayer = {}));
|
|
9384
|
+
(function (Multiplayer) {
|
|
9385
|
+
class SequenceHierarchyChangedParams extends NativeClassWrapper {
|
|
9386
|
+
/** @internal */
|
|
9387
|
+
constructor(pointer) {
|
|
9388
|
+
super(pointer);
|
|
9389
|
+
}
|
|
9390
|
+
static create() {
|
|
9391
|
+
var _ptr = Module._malloc(8);
|
|
9392
|
+
Module.ccall("csp_multiplayer_SequenceHierarchyChangedParams_Ctor", "void", ["number"], [_ptr]);
|
|
9393
|
+
var _nPtr = getNativePointer(_ptr);
|
|
9394
|
+
return new SequenceHierarchyChangedParams(_nPtr);
|
|
9395
|
+
}
|
|
9396
|
+
delete() {
|
|
9397
|
+
if (this.ownsPointer && !this.disposed) {
|
|
9398
|
+
Module.ccall("csp_multiplayer_SequenceHierarchyChangedParams_Dtor", "void", ["number"], [this.pointer]);
|
|
9399
|
+
this.disposed = true;
|
|
9400
|
+
}
|
|
9401
|
+
}
|
|
9402
|
+
get updateType() {
|
|
9403
|
+
let _result = Module.ccall("csp_multiplayer_SequenceHierarchyChangedParams__Get_UpdateType", "number", ["number"], [this.pointer]);
|
|
9404
|
+
return _result;
|
|
9405
|
+
}
|
|
9406
|
+
set updateType(value) {
|
|
9407
|
+
Module.ccall("csp_multiplayer_SequenceHierarchyChangedParams__Set_UpdateType", "void", ["number", "number"], [this.pointer, value]);
|
|
9408
|
+
}
|
|
9409
|
+
get parentId() {
|
|
9410
|
+
let _result = Module.ccall("csp_multiplayer_SequenceHierarchyChangedParams__Get_ParentId", "bigint", ["number"], [this.pointer]);
|
|
9411
|
+
const _unfixedValue = _result;
|
|
9412
|
+
let _fixedValue = _unfixedValue < 0 ? _unfixedValue + 2n ** 64n : _unfixedValue;
|
|
9413
|
+
_result = _fixedValue;
|
|
9414
|
+
return _result;
|
|
9415
|
+
}
|
|
9416
|
+
set parentId(value) {
|
|
9417
|
+
Module.ccall("csp_multiplayer_SequenceHierarchyChangedParams__Set_ParentId", "void", ["number", "bigint"], [this.pointer, value]);
|
|
9418
|
+
}
|
|
9419
|
+
get isRoot() {
|
|
9420
|
+
let _result = Module.ccall("csp_multiplayer_SequenceHierarchyChangedParams__Get_IsRoot", "boolean", ["number"], [this.pointer]);
|
|
9421
|
+
return _result;
|
|
9422
|
+
}
|
|
9423
|
+
set isRoot(value) {
|
|
9424
|
+
Module.ccall("csp_multiplayer_SequenceHierarchyChangedParams__Set_IsRoot", "void", ["number", "boolean"], [this.pointer, value]);
|
|
9425
|
+
}
|
|
9426
|
+
}
|
|
9427
|
+
Multiplayer.SequenceHierarchyChangedParams = SequenceHierarchyChangedParams;
|
|
9428
|
+
})(Multiplayer || (Multiplayer = {}));
|
|
9296
9429
|
(function (Multiplayer) {
|
|
9297
9430
|
/**
|
|
9298
9431
|
@ingroup Multiplayer
|
|
@@ -9759,6 +9892,55 @@ export class CSPFoundation {
|
|
|
9759
9892
|
}
|
|
9760
9893
|
Multiplayer.ReplicatedValue = ReplicatedValue;
|
|
9761
9894
|
})(Multiplayer || (Multiplayer = {}));
|
|
9895
|
+
(function (Multiplayer) {
|
|
9896
|
+
/**
|
|
9897
|
+
@ingroup Space Entity System
|
|
9898
|
+
* @description Class which exposes data that is relevent to entity hierarchies, which comes from the underlying Sequence System.
|
|
9899
|
+
* This allows users to manage the ordering of child entites within their parent.
|
|
9900
|
+
*/
|
|
9901
|
+
class SequenceHierarchy extends NativeClassWrapper {
|
|
9902
|
+
/** @internal */
|
|
9903
|
+
constructor(pointer) {
|
|
9904
|
+
super(pointer);
|
|
9905
|
+
}
|
|
9906
|
+
hasParent() {
|
|
9907
|
+
let _result = Module.ccall("csp_multiplayer_SequenceHierarchy_HasParentC_bool", "boolean", ["number"], [this.pointer]);
|
|
9908
|
+
return _result;
|
|
9909
|
+
}
|
|
9910
|
+
static create() {
|
|
9911
|
+
var _ptr = Module._malloc(8);
|
|
9912
|
+
Module.ccall("csp_multiplayer_SequenceHierarchy_Ctor", "void", ["number"], [_ptr]);
|
|
9913
|
+
var _nPtr = getNativePointer(_ptr);
|
|
9914
|
+
return new SequenceHierarchy(_nPtr);
|
|
9915
|
+
}
|
|
9916
|
+
delete() {
|
|
9917
|
+
if (this.ownsPointer && !this.disposed) {
|
|
9918
|
+
Module.ccall("csp_multiplayer_SequenceHierarchy_Dtor", "void", ["number"], [this.pointer]);
|
|
9919
|
+
this.disposed = true;
|
|
9920
|
+
}
|
|
9921
|
+
}
|
|
9922
|
+
get ids() {
|
|
9923
|
+
const _ptr = Module._malloc(8);
|
|
9924
|
+
Module.ccall("csp_multiplayer_SequenceHierarchy__Get_Ids", "void", ["number", "number"], [_ptr, this.pointer]);
|
|
9925
|
+
const _nPtr = getNativePointer(_ptr);
|
|
9926
|
+
return new Common.Array(_nPtr, NumberFactory, "uint64_t");
|
|
9927
|
+
}
|
|
9928
|
+
set ids(value) {
|
|
9929
|
+
Module.ccall("csp_multiplayer_SequenceHierarchy__Set_Ids", "void", ["number", "number"], [this.pointer, value.pointer]);
|
|
9930
|
+
}
|
|
9931
|
+
get parentId() {
|
|
9932
|
+
let _result = Module.ccall("csp_multiplayer_SequenceHierarchy__Get_ParentId", "bigint", ["number"], [this.pointer]);
|
|
9933
|
+
const _unfixedValue = _result;
|
|
9934
|
+
let _fixedValue = _unfixedValue < 0 ? _unfixedValue + 2n ** 64n : _unfixedValue;
|
|
9935
|
+
_result = _fixedValue;
|
|
9936
|
+
return _result;
|
|
9937
|
+
}
|
|
9938
|
+
set parentId(value) {
|
|
9939
|
+
Module.ccall("csp_multiplayer_SequenceHierarchy__Set_ParentId", "void", ["number", "bigint"], [this.pointer, value]);
|
|
9940
|
+
}
|
|
9941
|
+
}
|
|
9942
|
+
Multiplayer.SequenceHierarchy = SequenceHierarchy;
|
|
9943
|
+
})(Multiplayer || (Multiplayer = {}));
|
|
9762
9944
|
(function (Multiplayer) {
|
|
9763
9945
|
/**
|
|
9764
9946
|
* @description Info class that specifies a type of update and the ID of a component the update is applied to.
|
|
@@ -9888,6 +10070,17 @@ export class CSPFoundation {
|
|
|
9888
10070
|
Module._free(_ret);
|
|
9889
10071
|
return _nPtr;
|
|
9890
10072
|
}
|
|
10073
|
+
/**
|
|
10074
|
+
* @description Get the Global SpaceTransform of the SpaceEntity, derived from it's parent.
|
|
10075
|
+
* @return SpaceTransform.
|
|
10076
|
+
*/
|
|
10077
|
+
getGlobalTransform() {
|
|
10078
|
+
var _ret = Module._malloc(8);
|
|
10079
|
+
Module.ccall("csp_multiplayer_SpaceEntity_GetGlobalTransformC_SpaceTransform", "void", ["number", "number"], [_ret, this.pointer]);
|
|
10080
|
+
var _nPtr = new Multiplayer.SpaceTransform(getNativePointer(_ret));
|
|
10081
|
+
Module._free(_ret);
|
|
10082
|
+
return _nPtr;
|
|
10083
|
+
}
|
|
9891
10084
|
/**
|
|
9892
10085
|
* @description Get the position of the SpaceEntity, in world space.
|
|
9893
10086
|
* @return Position.
|
|
@@ -9899,6 +10092,17 @@ export class CSPFoundation {
|
|
|
9899
10092
|
Module._free(_ret);
|
|
9900
10093
|
return _nPtr;
|
|
9901
10094
|
}
|
|
10095
|
+
/**
|
|
10096
|
+
* @description Get the Global position of the SpaceEntity, in world space, derived from it's parent.
|
|
10097
|
+
* @return Position.
|
|
10098
|
+
*/
|
|
10099
|
+
getGlobalPosition() {
|
|
10100
|
+
var _ret = Module._malloc(8);
|
|
10101
|
+
Module.ccall("csp_multiplayer_SpaceEntity_GetGlobalPositionC_Vector3", "void", ["number", "number"], [_ret, this.pointer]);
|
|
10102
|
+
var _nPtr = new Common.Vector3(getNativePointer(_ret));
|
|
10103
|
+
Module._free(_ret);
|
|
10104
|
+
return _nPtr;
|
|
10105
|
+
}
|
|
9902
10106
|
/**
|
|
9903
10107
|
* @description Set the position of the SpaceEntity, in world space.
|
|
9904
10108
|
* @param value - The position to set.
|
|
@@ -9917,6 +10121,17 @@ export class CSPFoundation {
|
|
|
9917
10121
|
Module._free(_ret);
|
|
9918
10122
|
return _nPtr;
|
|
9919
10123
|
}
|
|
10124
|
+
/**
|
|
10125
|
+
* @description Get the Global rotation of the SpaceEntity, derived from it's parent.
|
|
10126
|
+
* @return Rotation.
|
|
10127
|
+
*/
|
|
10128
|
+
getGlobalRotation() {
|
|
10129
|
+
var _ret = Module._malloc(8);
|
|
10130
|
+
Module.ccall("csp_multiplayer_SpaceEntity_GetGlobalRotationC_Vector4", "void", ["number", "number"], [_ret, this.pointer]);
|
|
10131
|
+
var _nPtr = new Common.Vector4(getNativePointer(_ret));
|
|
10132
|
+
Module._free(_ret);
|
|
10133
|
+
return _nPtr;
|
|
10134
|
+
}
|
|
9920
10135
|
/**
|
|
9921
10136
|
* @description Set the rotation of the SpaceEntity.
|
|
9922
10137
|
* @param value - The rotation to set.
|
|
@@ -9935,6 +10150,17 @@ export class CSPFoundation {
|
|
|
9935
10150
|
Module._free(_ret);
|
|
9936
10151
|
return _nPtr;
|
|
9937
10152
|
}
|
|
10153
|
+
/**
|
|
10154
|
+
* @description Get the Global scale of the SpaceEntity, derived from it's parent.
|
|
10155
|
+
* @return Scale.
|
|
10156
|
+
*/
|
|
10157
|
+
getGlobalScale() {
|
|
10158
|
+
var _ret = Module._malloc(8);
|
|
10159
|
+
Module.ccall("csp_multiplayer_SpaceEntity_GetGlobalScaleC_Vector3", "void", ["number", "number"], [_ret, this.pointer]);
|
|
10160
|
+
var _nPtr = new Common.Vector3(getNativePointer(_ret));
|
|
10161
|
+
Module._free(_ret);
|
|
10162
|
+
return _nPtr;
|
|
10163
|
+
}
|
|
9938
10164
|
/**
|
|
9939
10165
|
* @description Set the scale of the SpaceEntity.
|
|
9940
10166
|
* @param value - The scale to set.
|
|
@@ -10002,6 +10228,68 @@ export class CSPFoundation {
|
|
|
10002
10228
|
Module._free(_ret);
|
|
10003
10229
|
return _nPtr;
|
|
10004
10230
|
}
|
|
10231
|
+
/**
|
|
10232
|
+
* @description Sets the parent for this entity
|
|
10233
|
+
* QueueUpdate() should be called afterwards to enable changes to the parent.
|
|
10234
|
+
* @param parentId - Uint64_t the new parent id of this entity.
|
|
10235
|
+
*/
|
|
10236
|
+
setParentId(parentId) {
|
|
10237
|
+
assert(parentId >= Limits.UINT64_MIN);
|
|
10238
|
+
assert(parentId <= Limits.UINT64_MAX);
|
|
10239
|
+
Module.ccall("csp_multiplayer_SpaceEntity_SetParentId_void_uint64_t", "void", ["number", "bigint"], [this.pointer, parentId]);
|
|
10240
|
+
}
|
|
10241
|
+
/**
|
|
10242
|
+
* @description Removes the parent entity
|
|
10243
|
+
* QueueUpdate() should be called afterwards to enable changes to the parent.
|
|
10244
|
+
*/
|
|
10245
|
+
removeParentEntity() {
|
|
10246
|
+
Module.ccall("csp_multiplayer_SpaceEntity_RemoveParentEntity_void", "void", ["number"], [this.pointer]);
|
|
10247
|
+
}
|
|
10248
|
+
/**
|
|
10249
|
+
* @description Gets the parent of this entity
|
|
10250
|
+
* @return SpaceEntity
|
|
10251
|
+
*/
|
|
10252
|
+
getParentEntity() {
|
|
10253
|
+
var _ret = Module._malloc(8);
|
|
10254
|
+
Module.ccall("csp_multiplayer_SpaceEntity_GetParentEntityC_SpaceEntityP", "void", ["number", "number"], [_ret, this.pointer]);
|
|
10255
|
+
var _nPtr = new Multiplayer.SpaceEntity(getNativePointer(_ret));
|
|
10256
|
+
Module._free(_ret);
|
|
10257
|
+
return _nPtr;
|
|
10258
|
+
}
|
|
10259
|
+
/**
|
|
10260
|
+
* @description Create a new entity with this entity as it's parent
|
|
10261
|
+
* @param inName - The name to give the new SpaceEntity.
|
|
10262
|
+
* @param inSpaceTransform - The initial transform to set the SpaceEntity to.
|
|
10263
|
+
* @param callback - A callback that executes when the creation is complete,
|
|
10264
|
+
* which contains a pointer to the new SpaceEntity so that it can be used on the local client.
|
|
10265
|
+
*/
|
|
10266
|
+
async createChildEntity(name, spaceTransform) {
|
|
10267
|
+
var _resolve;
|
|
10268
|
+
var _promise = new Promise((_r) => {
|
|
10269
|
+
_resolve = _r;
|
|
10270
|
+
});
|
|
10271
|
+
var _callbackPtr;
|
|
10272
|
+
var _callback = (_stateObject__, arg1) => {
|
|
10273
|
+
var _arg1Ptr = getNativePointer(arg1);
|
|
10274
|
+
var _arg1Instance = new Multiplayer.SpaceEntity(_arg1Ptr);
|
|
10275
|
+
_resolve(_arg1Instance);
|
|
10276
|
+
Module.removeFunction(_callbackPtr);
|
|
10277
|
+
};
|
|
10278
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
10279
|
+
Module.ccall("csp_multiplayer_SpaceEntity_CreateChildEntity_void_StringRC_SpaceTransformRC_EntityCreatedCallback", "void", ["number", "string", "number", "number", "number"], [this.pointer, name, spaceTransform.pointer, _callbackPtr, 0]);
|
|
10280
|
+
return _promise;
|
|
10281
|
+
}
|
|
10282
|
+
/**
|
|
10283
|
+
* @description Gets the children of this entity
|
|
10284
|
+
* @return Csp::common::list<spaceentity>
|
|
10285
|
+
*/
|
|
10286
|
+
getChildEntities() {
|
|
10287
|
+
var _ret = Module._malloc(8);
|
|
10288
|
+
Module.ccall("csp_multiplayer_SpaceEntity_GetChildEntitiesC_ListPC", "void", ["number", "number"], [_ret, this.pointer]);
|
|
10289
|
+
var _nPtr = new Common.List(getNativePointer(_ret), csp_multiplayer_SpaceEntityFactory, "csp_multiplayer_SpaceEntity");
|
|
10290
|
+
Module._free(_ret);
|
|
10291
|
+
return _nPtr;
|
|
10292
|
+
}
|
|
10005
10293
|
/**
|
|
10006
10294
|
* @description Queues an update which will be executed on next Tick() or ProcessPendingEntityOperations(). Not a blocking or async function.
|
|
10007
10295
|
*/
|
|
@@ -10649,6 +10937,195 @@ export class CSPFoundation {
|
|
|
10649
10937
|
setEntityPatchRateLimitEnabled(enabled) {
|
|
10650
10938
|
Module.ccall("csp_multiplayer_SpaceEntitySystem_SetEntityPatchRateLimitEnabled_void_bool", "void", ["number", "boolean"], [this.pointer, enabled]);
|
|
10651
10939
|
}
|
|
10940
|
+
/**
|
|
10941
|
+
* @description Retrieves all entites that exist at the root level (do not have a parent entity).
|
|
10942
|
+
* @return A list of root entities.
|
|
10943
|
+
*/
|
|
10944
|
+
getRootHierarchyEntities() {
|
|
10945
|
+
var _ret = Module._malloc(8);
|
|
10946
|
+
Module.ccall("csp_multiplayer_SpaceEntitySystem_GetRootHierarchyEntitiesC_ListPC", "void", ["number", "number"], [_ret, this.pointer]);
|
|
10947
|
+
var _nPtr = new Common.List(getNativePointer(_ret), csp_multiplayer_SpaceEntityFactory, "csp_multiplayer_SpaceEntity");
|
|
10948
|
+
Module._free(_ret);
|
|
10949
|
+
return _nPtr;
|
|
10950
|
+
}
|
|
10951
|
+
/**
|
|
10952
|
+
* @description Creates an entity hierarchy for a given parent entity id. Pass null to create a hiererchy for the root.
|
|
10953
|
+
* @param parentId - An optional parent. Pass null to create a hiererchy for the root.
|
|
10954
|
+
* @param hierarchyItemIds - An array of entity ids.
|
|
10955
|
+
* @param callback - A callback when the asynchronous task finishes.
|
|
10956
|
+
*/
|
|
10957
|
+
async createSequenceHierarchy(parentId, hierarchyItemIds) {
|
|
10958
|
+
var _resolve;
|
|
10959
|
+
var _promise = new Promise((_r) => {
|
|
10960
|
+
_resolve = _r;
|
|
10961
|
+
});
|
|
10962
|
+
var _callbackPtr;
|
|
10963
|
+
var _callback = (_stateObject__, result) => {
|
|
10964
|
+
var _resultPtr = getNativePointer(result);
|
|
10965
|
+
var _resultInstance = new Multiplayer.SequenceHierarchyResult(_resultPtr);
|
|
10966
|
+
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
10967
|
+
return;
|
|
10968
|
+
}
|
|
10969
|
+
_resolve(_resultInstance);
|
|
10970
|
+
Module.removeFunction(_callbackPtr);
|
|
10971
|
+
};
|
|
10972
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
10973
|
+
var parentIdPointer = 0;
|
|
10974
|
+
if (parentId != null) {
|
|
10975
|
+
parentIdPointer = Module._malloc(4);
|
|
10976
|
+
Module.setValue(parentIdPointer, parentId, "i32");
|
|
10977
|
+
}
|
|
10978
|
+
Module.ccall("csp_multiplayer_SpaceEntitySystem_CreateSequenceHierarchy_void_uint64_tRC_ArrayRC_SequenceHierarchyResultCallback", "void", ["number", "bigint", "number", "number", "number"], [
|
|
10979
|
+
this.pointer,
|
|
10980
|
+
parentIdPointer,
|
|
10981
|
+
hierarchyItemIds.pointer,
|
|
10982
|
+
_callbackPtr,
|
|
10983
|
+
0,
|
|
10984
|
+
]);
|
|
10985
|
+
if (parentIdPointer) {
|
|
10986
|
+
Module._free(parentIdPointer);
|
|
10987
|
+
}
|
|
10988
|
+
return _promise;
|
|
10989
|
+
}
|
|
10990
|
+
/**
|
|
10991
|
+
* @description Updates an entity hierarchy for a given parent entity id. Pass null to update the root.
|
|
10992
|
+
* This will create a hierarchy if it doesnt exist.
|
|
10993
|
+
* @param parentId - An optional parent. Pass null to create a hiererchy for the root.
|
|
10994
|
+
* @param hierarchyItemIds - An array of entity ids.
|
|
10995
|
+
* @param callback - A callback when the asynchronous task finishes.
|
|
10996
|
+
*/
|
|
10997
|
+
async updateSequenceHierarchy(parentId, hierarchyItemIds) {
|
|
10998
|
+
var _resolve;
|
|
10999
|
+
var _promise = new Promise((_r) => {
|
|
11000
|
+
_resolve = _r;
|
|
11001
|
+
});
|
|
11002
|
+
var _callbackPtr;
|
|
11003
|
+
var _callback = (_stateObject__, result) => {
|
|
11004
|
+
var _resultPtr = getNativePointer(result);
|
|
11005
|
+
var _resultInstance = new Multiplayer.SequenceHierarchyResult(_resultPtr);
|
|
11006
|
+
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
11007
|
+
return;
|
|
11008
|
+
}
|
|
11009
|
+
_resolve(_resultInstance);
|
|
11010
|
+
Module.removeFunction(_callbackPtr);
|
|
11011
|
+
};
|
|
11012
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
11013
|
+
var parentIdPointer = 0;
|
|
11014
|
+
if (parentId != null) {
|
|
11015
|
+
parentIdPointer = Module._malloc(4);
|
|
11016
|
+
Module.setValue(parentIdPointer, parentId, "i32");
|
|
11017
|
+
}
|
|
11018
|
+
Module.ccall("csp_multiplayer_SpaceEntitySystem_UpdateSequenceHierarchy_void_uint64_tRC_ArrayRC_SequenceHierarchyResultCallback", "void", ["number", "bigint", "number", "number", "number"], [
|
|
11019
|
+
this.pointer,
|
|
11020
|
+
parentIdPointer,
|
|
11021
|
+
hierarchyItemIds.pointer,
|
|
11022
|
+
_callbackPtr,
|
|
11023
|
+
0,
|
|
11024
|
+
]);
|
|
11025
|
+
if (parentIdPointer) {
|
|
11026
|
+
Module._free(parentIdPointer);
|
|
11027
|
+
}
|
|
11028
|
+
return _promise;
|
|
11029
|
+
}
|
|
11030
|
+
/**
|
|
11031
|
+
* @description Gets an entity hierarchy for a given parent entity id. Pass null to get the root hierarchy.
|
|
11032
|
+
* @param parentId - An optional parent. Pass null to get the root hierarchy.
|
|
11033
|
+
* @param callback - A callback when the asynchronous task finishes.
|
|
11034
|
+
*/
|
|
11035
|
+
async getSequenceHierarchy(parentId) {
|
|
11036
|
+
var _resolve;
|
|
11037
|
+
var _promise = new Promise((_r) => {
|
|
11038
|
+
_resolve = _r;
|
|
11039
|
+
});
|
|
11040
|
+
var _callbackPtr;
|
|
11041
|
+
var _callback = (_stateObject__, result) => {
|
|
11042
|
+
var _resultPtr = getNativePointer(result);
|
|
11043
|
+
var _resultInstance = new Multiplayer.SequenceHierarchyResult(_resultPtr);
|
|
11044
|
+
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
11045
|
+
return;
|
|
11046
|
+
}
|
|
11047
|
+
_resolve(_resultInstance);
|
|
11048
|
+
Module.removeFunction(_callbackPtr);
|
|
11049
|
+
};
|
|
11050
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
11051
|
+
var parentIdPointer = 0;
|
|
11052
|
+
if (parentId != null) {
|
|
11053
|
+
parentIdPointer = Module._malloc(4);
|
|
11054
|
+
Module.setValue(parentIdPointer, parentId, "i32");
|
|
11055
|
+
}
|
|
11056
|
+
Module.ccall("csp_multiplayer_SpaceEntitySystem_GetSequenceHierarchy_void_uint64_tRC_SequenceHierarchyResultCallback", "void", ["number", "bigint", "number", "number"], [this.pointer, parentIdPointer, _callbackPtr, 0]);
|
|
11057
|
+
if (parentIdPointer) {
|
|
11058
|
+
Module._free(parentIdPointer);
|
|
11059
|
+
}
|
|
11060
|
+
return _promise;
|
|
11061
|
+
}
|
|
11062
|
+
/**
|
|
11063
|
+
* @description Gets all hierarchies for a space
|
|
11064
|
+
* @param callback - A callback when the asynchronous task finishes.
|
|
11065
|
+
*/
|
|
11066
|
+
async getAllSequenceHierarchies() {
|
|
11067
|
+
var _resolve;
|
|
11068
|
+
var _promise = new Promise((_r) => {
|
|
11069
|
+
_resolve = _r;
|
|
11070
|
+
});
|
|
11071
|
+
var _callbackPtr;
|
|
11072
|
+
var _callback = (_stateObject__, result) => {
|
|
11073
|
+
var _resultPtr = getNativePointer(result);
|
|
11074
|
+
var _resultInstance = new Multiplayer.SequenceHierarchyCollectionResult(_resultPtr);
|
|
11075
|
+
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
11076
|
+
return;
|
|
11077
|
+
}
|
|
11078
|
+
_resolve(_resultInstance);
|
|
11079
|
+
Module.removeFunction(_callbackPtr);
|
|
11080
|
+
};
|
|
11081
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
11082
|
+
Module.ccall("csp_multiplayer_SpaceEntitySystem_GetAllSequenceHierarchies_void_SequenceHierarchyCollectionResultCallback", "void", ["number", "number", "number"], [this.pointer, _callbackPtr, 0]);
|
|
11083
|
+
return _promise;
|
|
11084
|
+
}
|
|
11085
|
+
/**
|
|
11086
|
+
* @description Deletes an entity hierarchy for a given parent entity id. Pass null to delete the root hierarchy.
|
|
11087
|
+
* @param parentId - An optional parent. Pass null to get the root hierarchy.
|
|
11088
|
+
* @param callback - A callback when the asynchronous task finishes.
|
|
11089
|
+
*/
|
|
11090
|
+
async deleteSequenceHierarchy(parentId) {
|
|
11091
|
+
var _resolve;
|
|
11092
|
+
var _promise = new Promise((_r) => {
|
|
11093
|
+
_resolve = _r;
|
|
11094
|
+
});
|
|
11095
|
+
var _callbackPtr;
|
|
11096
|
+
var _callback = (_stateObject__, result) => {
|
|
11097
|
+
var _resultPtr = getNativePointer(result);
|
|
11098
|
+
var _resultInstance = new Systems.NullResult(_resultPtr);
|
|
11099
|
+
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
11100
|
+
return;
|
|
11101
|
+
}
|
|
11102
|
+
_resolve(_resultInstance);
|
|
11103
|
+
Module.removeFunction(_callbackPtr);
|
|
11104
|
+
};
|
|
11105
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
11106
|
+
var parentIdPointer = 0;
|
|
11107
|
+
if (parentId != null) {
|
|
11108
|
+
parentIdPointer = Module._malloc(4);
|
|
11109
|
+
Module.setValue(parentIdPointer, parentId, "i32");
|
|
11110
|
+
}
|
|
11111
|
+
Module.ccall("csp_multiplayer_SpaceEntitySystem_DeleteSequenceHierarchy_void_uint64_tRC_NullResultCallback", "void", ["number", "bigint", "number", "number"], [this.pointer, parentIdPointer, _callbackPtr, 0]);
|
|
11112
|
+
if (parentIdPointer) {
|
|
11113
|
+
Module._free(parentIdPointer);
|
|
11114
|
+
}
|
|
11115
|
+
return _promise;
|
|
11116
|
+
}
|
|
11117
|
+
/**
|
|
11118
|
+
* @description Sets a callback for a sequence hierarchy changed event.
|
|
11119
|
+
* @param callback - Callback to receive data for the sequence hierarchy that has been changed.
|
|
11120
|
+
*/
|
|
11121
|
+
setSequenceHierarchyChangedCallback(callback) {
|
|
11122
|
+
var _callback = (_stateObject__, arg1) => {
|
|
11123
|
+
var _arg1 = new Multiplayer.SequenceHierarchyChangedParams(getNativePointer(arg1));
|
|
11124
|
+
callback(_arg1);
|
|
11125
|
+
};
|
|
11126
|
+
var _callbackPtr = Module.addFunction(_callback, "vii");
|
|
11127
|
+
Module.ccall("csp_multiplayer_SpaceEntitySystem_SetSequenceHierarchyChangedCallback_void_SequenceHierarchyChangedCallbackHandler", "void", ["number", "number", "number"], [this.pointer, _callbackPtr, 0]);
|
|
11128
|
+
}
|
|
10652
11129
|
}
|
|
10653
11130
|
Multiplayer.SpaceEntitySystem = SpaceEntitySystem;
|
|
10654
11131
|
})(Multiplayer || (Multiplayer = {}));
|
|
@@ -10682,6 +11159,17 @@ export class CSPFoundation {
|
|
|
10682
11159
|
var _nPtr = getNativePointer(_ptr);
|
|
10683
11160
|
return new SpaceTransform(_nPtr);
|
|
10684
11161
|
}
|
|
11162
|
+
/**
|
|
11163
|
+
* @description Equality operator
|
|
11164
|
+
* @param spaceTransform - Transform
|
|
11165
|
+
*/
|
|
11166
|
+
// operator==
|
|
11167
|
+
/**
|
|
11168
|
+
* @description Multiplication operator
|
|
11169
|
+
* @param spaceTransform - Transform
|
|
11170
|
+
* NOTE: This mimics the operations of a matrix transform multiplication, but converts the back into a recognisable form.
|
|
11171
|
+
*/
|
|
11172
|
+
// operator*
|
|
10685
11173
|
delete() {
|
|
10686
11174
|
if (this.ownsPointer && !this.disposed) {
|
|
10687
11175
|
Module.ccall("csp_multiplayer_SpaceTransform_Dtor", "void", ["number"], [this.pointer]);
|
|
@@ -14794,6 +15282,72 @@ export class CSPFoundation {
|
|
|
14794
15282
|
}
|
|
14795
15283
|
Systems.VoipSystem = VoipSystem;
|
|
14796
15284
|
})(Systems || (Systems = {}));
|
|
15285
|
+
(function (Multiplayer) {
|
|
15286
|
+
/**
|
|
15287
|
+
@ingroup Space Entity System
|
|
15288
|
+
* @description Data class used to contain information when attempting to get a sequence hierarchy
|
|
15289
|
+
*/
|
|
15290
|
+
class SequenceHierarchyResult extends Systems.ResultBase {
|
|
15291
|
+
/** @internal */
|
|
15292
|
+
constructor(pointer) {
|
|
15293
|
+
super(pointer);
|
|
15294
|
+
}
|
|
15295
|
+
static fromResultBase(baseInstance) {
|
|
15296
|
+
const nativeClassWrapper = baseInstance;
|
|
15297
|
+
return new Multiplayer.SequenceHierarchyResult(new NativePointer(nativeClassWrapper.pointer, nativeClassWrapper.ownsPointer));
|
|
15298
|
+
}
|
|
15299
|
+
/**
|
|
15300
|
+
* @description Retreives the SequenceHierarchy from the result.
|
|
15301
|
+
*/
|
|
15302
|
+
getSequenceHierarchy() {
|
|
15303
|
+
var _ret = Module._malloc(8);
|
|
15304
|
+
Module.ccall("csp_multiplayer_SequenceHierarchyResult_GetSequenceHierarchyC_SequenceHierarchyRC", "void", ["number", "number"], [_ret, this.pointer]);
|
|
15305
|
+
var _nPtr = new Multiplayer.SequenceHierarchy(getNativePointer(_ret));
|
|
15306
|
+
Module._free(_ret);
|
|
15307
|
+
return _nPtr;
|
|
15308
|
+
}
|
|
15309
|
+
delete() {
|
|
15310
|
+
if (this.ownsPointer && !this.disposed) {
|
|
15311
|
+
Module.ccall("csp_multiplayer_SequenceHierarchyResult_Dtor", "void", ["number"], [this.pointer]);
|
|
15312
|
+
this.disposed = true;
|
|
15313
|
+
}
|
|
15314
|
+
}
|
|
15315
|
+
}
|
|
15316
|
+
Multiplayer.SequenceHierarchyResult = SequenceHierarchyResult;
|
|
15317
|
+
})(Multiplayer || (Multiplayer = {}));
|
|
15318
|
+
(function (Multiplayer) {
|
|
15319
|
+
/**
|
|
15320
|
+
@ingroup Space Entity System
|
|
15321
|
+
* @description Data class used to contain information when attempting to get an array of sequence hierachies
|
|
15322
|
+
*/
|
|
15323
|
+
class SequenceHierarchyCollectionResult extends Systems.ResultBase {
|
|
15324
|
+
/** @internal */
|
|
15325
|
+
constructor(pointer) {
|
|
15326
|
+
super(pointer);
|
|
15327
|
+
}
|
|
15328
|
+
static fromResultBase(baseInstance) {
|
|
15329
|
+
const nativeClassWrapper = baseInstance;
|
|
15330
|
+
return new Multiplayer.SequenceHierarchyCollectionResult(new NativePointer(nativeClassWrapper.pointer, nativeClassWrapper.ownsPointer));
|
|
15331
|
+
}
|
|
15332
|
+
/**
|
|
15333
|
+
* @description Retreives the SequenceHierarchies from the result.
|
|
15334
|
+
*/
|
|
15335
|
+
getSequenceHierarchyCollection() {
|
|
15336
|
+
var _ret = Module._malloc(8);
|
|
15337
|
+
Module.ccall("csp_multiplayer_SequenceHierarchyCollectionResult_GetSequenceHierarchyCollectionC_ArrayRC", "void", ["number", "number"], [_ret, this.pointer]);
|
|
15338
|
+
var _nPtr = new Common.Array(getNativePointer(_ret), csp_multiplayer_SequenceHierarchyFactory, "csp_multiplayer_SequenceHierarchy");
|
|
15339
|
+
Module._free(_ret);
|
|
15340
|
+
return _nPtr;
|
|
15341
|
+
}
|
|
15342
|
+
delete() {
|
|
15343
|
+
if (this.ownsPointer && !this.disposed) {
|
|
15344
|
+
Module.ccall("csp_multiplayer_SequenceHierarchyCollectionResult_Dtor", "void", ["number"], [this.pointer]);
|
|
15345
|
+
this.disposed = true;
|
|
15346
|
+
}
|
|
15347
|
+
}
|
|
15348
|
+
}
|
|
15349
|
+
Multiplayer.SequenceHierarchyCollectionResult = SequenceHierarchyCollectionResult;
|
|
15350
|
+
})(Multiplayer || (Multiplayer = {}));
|
|
14797
15351
|
(function (Multiplayer) {
|
|
14798
15352
|
/**
|
|
14799
15353
|
@ingroup AnimatedModelSpaceComponent
|
|
@@ -22014,7 +22568,7 @@ export class CSPFoundation {
|
|
|
22014
22568
|
* @param hotspotIds - Set of hotspot ids to add to the group
|
|
22015
22569
|
* @param callback - Callback to call when a response is received
|
|
22016
22570
|
*/
|
|
22017
|
-
async createHotspotGroup(
|
|
22571
|
+
async createHotspotGroup(groupName, hotspotIds) {
|
|
22018
22572
|
var _resolve;
|
|
22019
22573
|
var _promise = new Promise((_r) => {
|
|
22020
22574
|
_resolve = _r;
|
|
@@ -22030,7 +22584,7 @@ export class CSPFoundation {
|
|
|
22030
22584
|
Module.removeFunction(_callbackPtr);
|
|
22031
22585
|
};
|
|
22032
22586
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
22033
|
-
Module.ccall("csp_systems_HotspotSequenceSystem_CreateHotspotGroup_void_StringRC_ArrayRC_HotspotGroupResultCallback", "void", ["number", "string", "number", "number", "number"], [this.pointer,
|
|
22587
|
+
Module.ccall("csp_systems_HotspotSequenceSystem_CreateHotspotGroup_void_StringRC_ArrayRC_HotspotGroupResultCallback", "void", ["number", "string", "number", "number", "number"], [this.pointer, groupName, hotspotIds.pointer, _callbackPtr, 0]);
|
|
22034
22588
|
return _promise;
|
|
22035
22589
|
}
|
|
22036
22590
|
/**
|
|
@@ -23084,6 +23638,7 @@ export class CSPFoundation {
|
|
|
23084
23638
|
}
|
|
23085
23639
|
/**
|
|
23086
23640
|
* @description Creates a new sequence. If a sequence already exists with this key, it will overwrite the current one.
|
|
23641
|
+
* NOTE: This call will fail (Reason InvalidSequenceKey) if the SequenceKey parameter contains invalid keys, such as spaces, '/' or '%'
|
|
23087
23642
|
* This call will fail if the user isn't a creator of the space.
|
|
23088
23643
|
* @param sequenceKey - The unique grouping name. Our naming convention is: Type:[SpaceId]:[GroupName]
|
|
23089
23644
|
* @param referenceType - The type of reference (GroupId etc.)
|
|
@@ -23131,6 +23686,7 @@ export class CSPFoundation {
|
|
|
23131
23686
|
}
|
|
23132
23687
|
/**
|
|
23133
23688
|
* @description Updates an existing sequence. This call will fail if the user isn't a creator of the space.
|
|
23689
|
+
* NOTE: This call will fail if the SequenceKey parameter contains invalid keys, such as spaces, '/' or '%'
|
|
23134
23690
|
* @param sequenceKey - The unique grouping name. Our naming convention is: Type:[SpaceId]:[GroupName]
|
|
23135
23691
|
* @param referenceType - The type of reference (GroupId etc.)
|
|
23136
23692
|
* @param referenceId - The id of the reference
|
|
@@ -23177,6 +23733,8 @@ export class CSPFoundation {
|
|
|
23177
23733
|
}
|
|
23178
23734
|
/**
|
|
23179
23735
|
* @description Renames a given sequence. This call will fail if the user isn't a creator of the space.
|
|
23736
|
+
* NOTE: This call will fail (Reason InvalidSequenceKey) if the OldSequenceKey, or NewSequenceKey parameters contains invalid keys, such as
|
|
23737
|
+
* spaces, '/' or '%'
|
|
23180
23738
|
* @param oldSequenceKey - The current sequence key name
|
|
23181
23739
|
* @param newSequenceKey - The new sequence key name
|
|
23182
23740
|
* @param callback - Callback to call when a response is received
|
|
@@ -23202,6 +23760,7 @@ export class CSPFoundation {
|
|
|
23202
23760
|
}
|
|
23203
23761
|
/**
|
|
23204
23762
|
* @description Finds sequences based on the given criteria
|
|
23763
|
+
* NOTE: This call will fail (Reason InvalidSequenceKey) if the SequenceKey parameter contains invalid keys, such as spaces, '/' or '%'
|
|
23205
23764
|
* @param sequenceKeys - An array of sequence keys to search for
|
|
23206
23765
|
* @param sequenceKeys - An optional regex string for searching keys
|
|
23207
23766
|
* @param referenceType - The type of reference (GroupId etc.). Must be used with ReferenceIds
|
|
@@ -23248,6 +23807,7 @@ export class CSPFoundation {
|
|
|
23248
23807
|
}
|
|
23249
23808
|
/**
|
|
23250
23809
|
* @description Gets a sequence by it's key
|
|
23810
|
+
* NOTE: This call will fail (Reason InvalidSequenceKey) if the SequenceKey parameter contains invalid keys, such as spaces, '/' or '%'
|
|
23251
23811
|
* @param sequenceKey - The unique grouping name
|
|
23252
23812
|
* @param callback - Callback to call when a response is received
|
|
23253
23813
|
*/
|
|
@@ -23272,6 +23832,7 @@ export class CSPFoundation {
|
|
|
23272
23832
|
}
|
|
23273
23833
|
/**
|
|
23274
23834
|
* @description Deletes the given sequences. This call will fail if the user isn't a creator of the space
|
|
23835
|
+
* NOTE: This call will fail (Reason InvalidSequenceKey) if the SequenceKey parameter contains invalid keys, such as spaces, '/' or '%'
|
|
23275
23836
|
* @param sequenceKeys - An array of sequence keys to delete
|
|
23276
23837
|
* @param callback - Callback to call when a response is received
|
|
23277
23838
|
*/
|
|
@@ -25225,6 +25786,53 @@ export class CSPFoundation {
|
|
|
25225
25786
|
Module.ccall("csp_systems_SpaceSystem_DeleteSpaceGeoLocation_void_StringRC_NullResultCallback", "void", ["number", "string", "number", "number"], [this.pointer, spaceId, _callbackPtr, 0]);
|
|
25226
25787
|
return _promise;
|
|
25227
25788
|
}
|
|
25789
|
+
/**
|
|
25790
|
+
* @description Duplicate an existing space and assign it to the current user
|
|
25791
|
+
* @param spaceId - Id of the space to duplicate.
|
|
25792
|
+
* @param newName - A unique name for the duplicated space.
|
|
25793
|
+
* @param newAttributes - Attributes to apply to the duplicated space.
|
|
25794
|
+
* @param memberGroupIds - An optional array of group (space) IDs to copy users from.
|
|
25795
|
+
* @param shallowCopy - If true, the duplicated space will reference the assets of the original space. Otherwise, all assets will be
|
|
25796
|
+
* duplicated.
|
|
25797
|
+
* @param callback - Callback when asynchronous task finishes
|
|
25798
|
+
*/
|
|
25799
|
+
async duplicateSpace(spaceId, newName, newAttributes, memberGroupIds, shallowCopy) {
|
|
25800
|
+
var _resolve;
|
|
25801
|
+
var _promise = new Promise((_r) => {
|
|
25802
|
+
_resolve = _r;
|
|
25803
|
+
});
|
|
25804
|
+
var _callbackPtr;
|
|
25805
|
+
var _callback = (_stateObject__, result) => {
|
|
25806
|
+
var _resultPtr = getNativePointer(result);
|
|
25807
|
+
var _resultInstance = new Systems.SpaceResult(_resultPtr);
|
|
25808
|
+
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
25809
|
+
return;
|
|
25810
|
+
}
|
|
25811
|
+
_resolve(_resultInstance);
|
|
25812
|
+
Module.removeFunction(_callbackPtr);
|
|
25813
|
+
};
|
|
25814
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
25815
|
+
Module.ccall("csp_systems_SpaceSystem_DuplicateSpace_void_StringRC_StringRC_SpaceAttributes_ArrayRC_bool_SpaceResultCallback", "void", [
|
|
25816
|
+
"number",
|
|
25817
|
+
"string",
|
|
25818
|
+
"string",
|
|
25819
|
+
"number",
|
|
25820
|
+
"number",
|
|
25821
|
+
"boolean",
|
|
25822
|
+
"number",
|
|
25823
|
+
"number",
|
|
25824
|
+
], [
|
|
25825
|
+
this.pointer,
|
|
25826
|
+
spaceId,
|
|
25827
|
+
newName,
|
|
25828
|
+
newAttributes,
|
|
25829
|
+
memberGroupIds != null ? memberGroupIds.pointer : 0,
|
|
25830
|
+
shallowCopy,
|
|
25831
|
+
_callbackPtr,
|
|
25832
|
+
0,
|
|
25833
|
+
]);
|
|
25834
|
+
return _promise;
|
|
25835
|
+
}
|
|
25228
25836
|
}
|
|
25229
25837
|
Systems.SpaceSystem = SpaceSystem;
|
|
25230
25838
|
})(Systems || (Systems = {}));
|
|
@@ -26901,6 +27509,20 @@ export class CSPFoundation {
|
|
|
26901
27509
|
Module._free(_ret);
|
|
26902
27510
|
return _inst;
|
|
26903
27511
|
}
|
|
27512
|
+
static ofuint64_t() {
|
|
27513
|
+
var _ret = Module._malloc(8);
|
|
27514
|
+
Module.ccall("csp_common_Array_Ctor_uint64_t", "void", ["number"], [_ret]);
|
|
27515
|
+
var _inst = new Array(getNativePointer(_ret), NumberFactory, "uint64_t");
|
|
27516
|
+
Module._free(_ret);
|
|
27517
|
+
return _inst;
|
|
27518
|
+
}
|
|
27519
|
+
static ofcsp_multiplayer_SequenceHierarchy() {
|
|
27520
|
+
var _ret = Module._malloc(8);
|
|
27521
|
+
Module.ccall("csp_common_Array_Ctor_csp_multiplayer_SequenceHierarchy", "void", ["number"], [_ret]);
|
|
27522
|
+
var _inst = new Array(getNativePointer(_ret), csp_multiplayer_SequenceHierarchyFactory, "csp_multiplayer_SequenceHierarchy");
|
|
27523
|
+
Module._free(_ret);
|
|
27524
|
+
return _inst;
|
|
27525
|
+
}
|
|
26904
27526
|
static ofcsp_multiplayer_MessageInfo() {
|
|
26905
27527
|
var _ret = Module._malloc(8);
|
|
26906
27528
|
Module.ccall("csp_common_Array_Ctor_csp_multiplayer_MessageInfo", "void", ["number"], [_ret]);
|
|
@@ -27195,6 +27817,20 @@ export class CSPFoundation {
|
|
|
27195
27817
|
Module._free(_ret);
|
|
27196
27818
|
return _inst;
|
|
27197
27819
|
}
|
|
27820
|
+
static ofuint64_t_number(size) {
|
|
27821
|
+
var _ret = Module._malloc(8);
|
|
27822
|
+
Module.ccall("csp_common_Array_Conv_size_tC_uint64_t", "void", ["number", "number"], [_ret, size]);
|
|
27823
|
+
var _inst = new Array(getNativePointer(_ret), NumberFactory, "uint64_t");
|
|
27824
|
+
Module._free(_ret);
|
|
27825
|
+
return _inst;
|
|
27826
|
+
}
|
|
27827
|
+
static ofcsp_multiplayer_SequenceHierarchy_number(size) {
|
|
27828
|
+
var _ret = Module._malloc(8);
|
|
27829
|
+
Module.ccall("csp_common_Array_Conv_size_tC_csp_multiplayer_SequenceHierarchy", "void", ["number", "number"], [_ret, size]);
|
|
27830
|
+
var _inst = new Array(getNativePointer(_ret), csp_multiplayer_SequenceHierarchyFactory, "csp_multiplayer_SequenceHierarchy");
|
|
27831
|
+
Module._free(_ret);
|
|
27832
|
+
return _inst;
|
|
27833
|
+
}
|
|
27198
27834
|
static ofcsp_multiplayer_MessageInfo_number(size) {
|
|
27199
27835
|
var _ret = Module._malloc(8);
|
|
27200
27836
|
Module.ccall("csp_common_Array_Conv_size_tC_csp_multiplayer_MessageInfo", "void", ["number", "number"], [_ret, size]);
|
|
@@ -27506,6 +28142,13 @@ export class CSPFoundation {
|
|
|
27506
28142
|
this.TTypeFactory = TTypeFactory;
|
|
27507
28143
|
this.TTypeName = TTypeName;
|
|
27508
28144
|
}
|
|
28145
|
+
static ofcsp_multiplayer_SpaceEntity() {
|
|
28146
|
+
var _ret = Module._malloc(8);
|
|
28147
|
+
Module.ccall("csp_common_List_Ctor_csp_multiplayer_SpaceEntity", "void", ["number"], [_ret]);
|
|
28148
|
+
var _inst = new List(getNativePointer(_ret), csp_multiplayer_SpaceEntityFactory, "csp_multiplayer_SpaceEntity");
|
|
28149
|
+
Module._free(_ret);
|
|
28150
|
+
return _inst;
|
|
28151
|
+
}
|
|
27509
28152
|
static ofString() {
|
|
27510
28153
|
var _ret = Module._malloc(8);
|
|
27511
28154
|
Module.ccall("csp_common_List_Ctor_String", "void", ["number"], [_ret]);
|
|
@@ -27520,6 +28163,13 @@ export class CSPFoundation {
|
|
|
27520
28163
|
Module._free(_ret);
|
|
27521
28164
|
return _inst;
|
|
27522
28165
|
}
|
|
28166
|
+
static ofcsp_multiplayer_SpaceEntity_number(minimumSize) {
|
|
28167
|
+
var _ret = Module._malloc(8);
|
|
28168
|
+
Module.ccall("csp_common_List_Ctor_size_t_csp_multiplayer_SpaceEntity", "void", ["number", "number"], [_ret, minimumSize]);
|
|
28169
|
+
var _inst = new List(getNativePointer(_ret), csp_multiplayer_SpaceEntityFactory, "csp_multiplayer_SpaceEntity");
|
|
28170
|
+
Module._free(_ret);
|
|
28171
|
+
return _inst;
|
|
28172
|
+
}
|
|
27523
28173
|
static ofString_number(minimumSize) {
|
|
27524
28174
|
var _ret = Module._malloc(8);
|
|
27525
28175
|
Module.ccall("csp_common_List_Ctor_size_t_String", "void", ["number", "number"], [_ret, minimumSize]);
|
|
@@ -27534,6 +28184,13 @@ export class CSPFoundation {
|
|
|
27534
28184
|
Module._free(_ret);
|
|
27535
28185
|
return _inst;
|
|
27536
28186
|
}
|
|
28187
|
+
static ofcsp_multiplayer_SpaceEntity_List(other) {
|
|
28188
|
+
var _ret = Module._malloc(8);
|
|
28189
|
+
Module.ccall("csp_common_List_Ctor_ListRC_csp_multiplayer_SpaceEntity", "void", ["number", "number"], [_ret, other.pointer]);
|
|
28190
|
+
var _inst = new List(getNativePointer(_ret), csp_multiplayer_SpaceEntityFactory, "csp_multiplayer_SpaceEntity");
|
|
28191
|
+
Module._free(_ret);
|
|
28192
|
+
return _inst;
|
|
28193
|
+
}
|
|
27537
28194
|
static ofString_List(other) {
|
|
27538
28195
|
var _ret = Module._malloc(8);
|
|
27539
28196
|
Module.ccall("csp_common_List_Ctor_ListRC_String", "void", ["number", "number"], [_ret, other.pointer]);
|