connected-spaces-platform.web 5.1.0 → 5.3.1
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 +116 -4
- package/Debug/ConnectedSpacesPlatform_WASM.wasm +0 -0
- package/Debug/ConnectedSpacesPlatform_WASM.wasm.debug.wasm +0 -0
- package/README.md +2 -23
- package/Release/ConnectedSpacesPlatform_WASM.js +1 -1
- package/Release/ConnectedSpacesPlatform_WASM.wasm +0 -0
- package/connectedspacesplatform.d.ts +313 -5
- package/connectedspacesplatform.js +578 -4
- package/connectedspacesplatform.js.map +1 -1
- package/connectedspacesplatform.ts +1064 -2
- package/package.json +1 -1
|
@@ -374,6 +374,11 @@ function csp_multiplayer_ButtonPropertyKeysFactory(nativePointer) {
|
|
|
374
374
|
}
|
|
375
375
|
ProxyClassFactories["csp_multiplayer_ButtonPropertyKeys"] =
|
|
376
376
|
csp_multiplayer_ButtonPropertyKeysFactory;
|
|
377
|
+
function csp_multiplayer_CinematicCameraPropertyKeysFactory(nativePointer) {
|
|
378
|
+
return nativePointer.pointer;
|
|
379
|
+
}
|
|
380
|
+
ProxyClassFactories["csp_multiplayer_CinematicCameraPropertyKeys"] =
|
|
381
|
+
csp_multiplayer_CinematicCameraPropertyKeysFactory;
|
|
377
382
|
function csp_multiplayer_CollisionPropertyKeysFactory(nativePointer) {
|
|
378
383
|
return nativePointer.pointer;
|
|
379
384
|
}
|
|
@@ -656,6 +661,10 @@ function csp_common_VariantFactory(nativePointer) {
|
|
|
656
661
|
return new Common.Variant(nativePointer);
|
|
657
662
|
}
|
|
658
663
|
ProxyClassFactories["csp_common_Variant"] = csp_common_VariantFactory;
|
|
664
|
+
function csp_common_Vector2Factory(nativePointer) {
|
|
665
|
+
return new Common.Vector2(nativePointer);
|
|
666
|
+
}
|
|
667
|
+
ProxyClassFactories["csp_common_Vector2"] = csp_common_Vector2Factory;
|
|
659
668
|
function csp_common_Vector3Factory(nativePointer) {
|
|
660
669
|
return new Common.Vector3(nativePointer);
|
|
661
670
|
}
|
|
@@ -694,6 +703,11 @@ function csp_multiplayer_SequenceHierarchyChangedParamsFactory(nativePointer) {
|
|
|
694
703
|
}
|
|
695
704
|
ProxyClassFactories["csp_multiplayer_SequenceHierarchyChangedParams"] =
|
|
696
705
|
csp_multiplayer_SequenceHierarchyChangedParamsFactory;
|
|
706
|
+
function csp_multiplayer_SequenceHotspotChangedParamsFactory(nativePointer) {
|
|
707
|
+
return new Multiplayer.SequenceHotspotChangedParams(nativePointer);
|
|
708
|
+
}
|
|
709
|
+
ProxyClassFactories["csp_multiplayer_SequenceHotspotChangedParams"] =
|
|
710
|
+
csp_multiplayer_SequenceHotspotChangedParamsFactory;
|
|
697
711
|
function csp_multiplayer_MultiplayerConnectionFactory(nativePointer) {
|
|
698
712
|
return new Multiplayer.MultiplayerConnection(nativePointer);
|
|
699
713
|
}
|
|
@@ -1031,6 +1045,11 @@ function csp_multiplayer_ButtonSpaceComponentFactory(nativePointer) {
|
|
|
1031
1045
|
}
|
|
1032
1046
|
ProxyClassFactories["csp_multiplayer_ButtonSpaceComponent"] =
|
|
1033
1047
|
csp_multiplayer_ButtonSpaceComponentFactory;
|
|
1048
|
+
function csp_multiplayer_CinematicCameraSpaceComponentFactory(nativePointer) {
|
|
1049
|
+
return new Multiplayer.CinematicCameraSpaceComponent(nativePointer);
|
|
1050
|
+
}
|
|
1051
|
+
ProxyClassFactories["csp_multiplayer_CinematicCameraSpaceComponent"] =
|
|
1052
|
+
csp_multiplayer_CinematicCameraSpaceComponentFactory;
|
|
1034
1053
|
function csp_multiplayer_CollisionSpaceComponentFactory(nativePointer) {
|
|
1035
1054
|
return new Multiplayer.CollisionSpaceComponent(nativePointer);
|
|
1036
1055
|
}
|
|
@@ -1839,6 +1858,7 @@ export var Multiplayer;
|
|
|
1839
1858
|
ComponentType[ComponentType["GaussianSplat"] = 24] = "GaussianSplat";
|
|
1840
1859
|
ComponentType[ComponentType["Text"] = 25] = "Text";
|
|
1841
1860
|
ComponentType[ComponentType["Hotspot"] = 26] = "Hotspot";
|
|
1861
|
+
ComponentType[ComponentType["CinematicCamera"] = 27] = "CinematicCamera";
|
|
1842
1862
|
})(ComponentType = Multiplayer.ComponentType || (Multiplayer.ComponentType = {}));
|
|
1843
1863
|
})(Multiplayer || (Multiplayer = {}));
|
|
1844
1864
|
(function (Multiplayer) {
|
|
@@ -1874,6 +1894,7 @@ export var Multiplayer;
|
|
|
1874
1894
|
ESequenceUpdateType[ESequenceUpdateType["Update"] = 1] = "Update";
|
|
1875
1895
|
ESequenceUpdateType[ESequenceUpdateType["Rename"] = 2] = "Rename";
|
|
1876
1896
|
ESequenceUpdateType[ESequenceUpdateType["Delete"] = 3] = "Delete";
|
|
1897
|
+
ESequenceUpdateType[ESequenceUpdateType["Invalid"] = 4] = "Invalid";
|
|
1877
1898
|
})(ESequenceUpdateType = Multiplayer.ESequenceUpdateType || (Multiplayer.ESequenceUpdateType = {}));
|
|
1878
1899
|
})(Multiplayer || (Multiplayer = {}));
|
|
1879
1900
|
(function (Multiplayer) {
|
|
@@ -1912,8 +1933,9 @@ export var Multiplayer;
|
|
|
1912
1933
|
ReplicatedValueType[ReplicatedValueType["Integer"] = 2] = "Integer";
|
|
1913
1934
|
ReplicatedValueType[ReplicatedValueType["Float"] = 3] = "Float";
|
|
1914
1935
|
ReplicatedValueType[ReplicatedValueType["String"] = 4] = "String";
|
|
1915
|
-
ReplicatedValueType[ReplicatedValueType["
|
|
1916
|
-
ReplicatedValueType[ReplicatedValueType["
|
|
1936
|
+
ReplicatedValueType[ReplicatedValueType["Vector2"] = 5] = "Vector2";
|
|
1937
|
+
ReplicatedValueType[ReplicatedValueType["Vector3"] = 6] = "Vector3";
|
|
1938
|
+
ReplicatedValueType[ReplicatedValueType["Vector4"] = 7] = "Vector4";
|
|
1917
1939
|
})(ReplicatedValueType = Multiplayer.ReplicatedValueType || (Multiplayer.ReplicatedValueType = {}));
|
|
1918
1940
|
})(Multiplayer || (Multiplayer = {}));
|
|
1919
1941
|
(function (Multiplayer) {
|
|
@@ -2133,6 +2155,28 @@ export var Multiplayer;
|
|
|
2133
2155
|
ButtonPropertyKeys[ButtonPropertyKeys["Num"] = 10] = "Num";
|
|
2134
2156
|
})(ButtonPropertyKeys = Multiplayer.ButtonPropertyKeys || (Multiplayer.ButtonPropertyKeys = {}));
|
|
2135
2157
|
})(Multiplayer || (Multiplayer = {}));
|
|
2158
|
+
(function (Multiplayer) {
|
|
2159
|
+
/**
|
|
2160
|
+
* @description Enumerates the list of properties that can be replicated for a CinematicCamera component.
|
|
2161
|
+
*/
|
|
2162
|
+
let CinematicCameraPropertyKeys;
|
|
2163
|
+
(function (CinematicCameraPropertyKeys) {
|
|
2164
|
+
CinematicCameraPropertyKeys[CinematicCameraPropertyKeys["Position"] = 0] = "Position";
|
|
2165
|
+
CinematicCameraPropertyKeys[CinematicCameraPropertyKeys["Rotation"] = 1] = "Rotation";
|
|
2166
|
+
CinematicCameraPropertyKeys[CinematicCameraPropertyKeys["IsEnabled"] = 2] = "IsEnabled";
|
|
2167
|
+
CinematicCameraPropertyKeys[CinematicCameraPropertyKeys["FocalLength"] = 3] = "FocalLength";
|
|
2168
|
+
CinematicCameraPropertyKeys[CinematicCameraPropertyKeys["AspectRatio"] = 4] = "AspectRatio";
|
|
2169
|
+
CinematicCameraPropertyKeys[CinematicCameraPropertyKeys["SensorSize"] = 5] = "SensorSize";
|
|
2170
|
+
CinematicCameraPropertyKeys[CinematicCameraPropertyKeys["NearClip"] = 6] = "NearClip";
|
|
2171
|
+
CinematicCameraPropertyKeys[CinematicCameraPropertyKeys["FarClip"] = 7] = "FarClip";
|
|
2172
|
+
CinematicCameraPropertyKeys[CinematicCameraPropertyKeys["Iso"] = 8] = "Iso";
|
|
2173
|
+
CinematicCameraPropertyKeys[CinematicCameraPropertyKeys["ShutterSpeed"] = 9] = "ShutterSpeed";
|
|
2174
|
+
CinematicCameraPropertyKeys[CinematicCameraPropertyKeys["Aperture"] = 10] = "Aperture";
|
|
2175
|
+
CinematicCameraPropertyKeys[CinematicCameraPropertyKeys["IsViewerCamera"] = 11] = "IsViewerCamera";
|
|
2176
|
+
CinematicCameraPropertyKeys[CinematicCameraPropertyKeys["ThirdPartyComponentRef"] = 12] = "ThirdPartyComponentRef";
|
|
2177
|
+
CinematicCameraPropertyKeys[CinematicCameraPropertyKeys["Num"] = 13] = "Num";
|
|
2178
|
+
})(CinematicCameraPropertyKeys = Multiplayer.CinematicCameraPropertyKeys || (Multiplayer.CinematicCameraPropertyKeys = {}));
|
|
2179
|
+
})(Multiplayer || (Multiplayer = {}));
|
|
2136
2180
|
(function (Multiplayer) {
|
|
2137
2181
|
/**
|
|
2138
2182
|
* @description Enumerates the list of properties that can be replicated for a collision component.
|
|
@@ -8841,6 +8885,105 @@ export class CSPFoundation {
|
|
|
8841
8885
|
}
|
|
8842
8886
|
Common.Variant = Variant;
|
|
8843
8887
|
})(Common || (Common = {}));
|
|
8888
|
+
(function (Common) {
|
|
8889
|
+
/**
|
|
8890
|
+
* @description Represents a 2 dimensional vector.
|
|
8891
|
+
*/
|
|
8892
|
+
class Vector2 extends NativeClassWrapper {
|
|
8893
|
+
/** @internal */
|
|
8894
|
+
constructor(pointer) {
|
|
8895
|
+
super(pointer);
|
|
8896
|
+
}
|
|
8897
|
+
/**
|
|
8898
|
+
* @description Returns a Vector2 with all fields set to 0.
|
|
8899
|
+
* @return Const vector2&
|
|
8900
|
+
*/
|
|
8901
|
+
static zero() {
|
|
8902
|
+
var _ret = Module._malloc(8);
|
|
8903
|
+
Module.ccall("csp_common_Vector2_Zero_Vector2RC", "void", ["number"], [_ret]);
|
|
8904
|
+
var _nPtr = new Common.Vector2(getNativePointer(_ret));
|
|
8905
|
+
Module._free(_ret);
|
|
8906
|
+
return _nPtr;
|
|
8907
|
+
}
|
|
8908
|
+
/**
|
|
8909
|
+
* @description Returns a Vector2 with all fields set to 1.
|
|
8910
|
+
* @return Const vector2&
|
|
8911
|
+
*/
|
|
8912
|
+
static one() {
|
|
8913
|
+
var _ret = Module._malloc(8);
|
|
8914
|
+
Module.ccall("csp_common_Vector2_One_Vector2RC", "void", ["number"], [_ret]);
|
|
8915
|
+
var _nPtr = new Common.Vector2(getNativePointer(_ret));
|
|
8916
|
+
Module._free(_ret);
|
|
8917
|
+
return _nPtr;
|
|
8918
|
+
}
|
|
8919
|
+
/**
|
|
8920
|
+
* @description Constructs a Vector2 with all fields set to 0.
|
|
8921
|
+
*/
|
|
8922
|
+
static create() {
|
|
8923
|
+
var _ptr = Module._malloc(8);
|
|
8924
|
+
Module.ccall("csp_common_Vector2_Ctor", "void", ["number"], [_ptr]);
|
|
8925
|
+
var _nPtr = getNativePointer(_ptr);
|
|
8926
|
+
return new Vector2(_nPtr);
|
|
8927
|
+
}
|
|
8928
|
+
/**
|
|
8929
|
+
* @description Constructs a Vector2 with the given x, y values.
|
|
8930
|
+
* @param x - Float
|
|
8931
|
+
* @param y - Float
|
|
8932
|
+
*/
|
|
8933
|
+
static create_x_y(x, y) {
|
|
8934
|
+
var _ptr = Module._malloc(8);
|
|
8935
|
+
Module.ccall("csp_common_Vector2_Ctor_float_float", "void", ["number", "number", "number"], [_ptr, x, y]);
|
|
8936
|
+
var _nPtr = getNativePointer(_ptr);
|
|
8937
|
+
return new Vector2(_nPtr);
|
|
8938
|
+
}
|
|
8939
|
+
/**
|
|
8940
|
+
* @description Member by member addition with another Vector2
|
|
8941
|
+
* @param vector2 - Other
|
|
8942
|
+
*/
|
|
8943
|
+
// operator+
|
|
8944
|
+
/**
|
|
8945
|
+
* @description Subtracts another Vector2 from this one
|
|
8946
|
+
* @param vector2 - Other
|
|
8947
|
+
*/
|
|
8948
|
+
// operator-
|
|
8949
|
+
/**
|
|
8950
|
+
* @description Divides the Vector2 by divisor
|
|
8951
|
+
* @param float - Divisor
|
|
8952
|
+
*/
|
|
8953
|
+
// operator/
|
|
8954
|
+
/**
|
|
8955
|
+
* @description Member by member multiplication with another Vector2
|
|
8956
|
+
* @param vector2 - Other
|
|
8957
|
+
*/
|
|
8958
|
+
// operator*
|
|
8959
|
+
/**
|
|
8960
|
+
* @description Multiplies the Vector2 by a scalar
|
|
8961
|
+
* @param float - Scalar
|
|
8962
|
+
*/
|
|
8963
|
+
// operator*
|
|
8964
|
+
delete() {
|
|
8965
|
+
if (this.ownsPointer && !this.disposed) {
|
|
8966
|
+
Module.ccall("csp_common_Vector2_Dtor", "void", ["number"], [this.pointer]);
|
|
8967
|
+
this.disposed = true;
|
|
8968
|
+
}
|
|
8969
|
+
}
|
|
8970
|
+
get x() {
|
|
8971
|
+
let _result = Module.ccall("csp_common_Vector2__Get_X", "number", ["number"], [this.pointer]);
|
|
8972
|
+
return _result;
|
|
8973
|
+
}
|
|
8974
|
+
set x(value) {
|
|
8975
|
+
Module.ccall("csp_common_Vector2__Set_X", "void", ["number", "number"], [this.pointer, value]);
|
|
8976
|
+
}
|
|
8977
|
+
get y() {
|
|
8978
|
+
let _result = Module.ccall("csp_common_Vector2__Get_Y", "number", ["number"], [this.pointer]);
|
|
8979
|
+
return _result;
|
|
8980
|
+
}
|
|
8981
|
+
set y(value) {
|
|
8982
|
+
Module.ccall("csp_common_Vector2__Set_Y", "void", ["number", "number"], [this.pointer, value]);
|
|
8983
|
+
}
|
|
8984
|
+
}
|
|
8985
|
+
Common.Vector2 = Vector2;
|
|
8986
|
+
})(Common || (Common = {}));
|
|
8844
8987
|
(function (Common) {
|
|
8845
8988
|
/**
|
|
8846
8989
|
* @description Represents a 3 dimensional vector.
|
|
@@ -9426,6 +9569,55 @@ export class CSPFoundation {
|
|
|
9426
9569
|
}
|
|
9427
9570
|
Multiplayer.SequenceHierarchyChangedParams = SequenceHierarchyChangedParams;
|
|
9428
9571
|
})(Multiplayer || (Multiplayer = {}));
|
|
9572
|
+
(function (Multiplayer) {
|
|
9573
|
+
class SequenceHotspotChangedParams extends NativeClassWrapper {
|
|
9574
|
+
/** @internal */
|
|
9575
|
+
constructor(pointer) {
|
|
9576
|
+
super(pointer);
|
|
9577
|
+
}
|
|
9578
|
+
static create() {
|
|
9579
|
+
var _ptr = Module._malloc(8);
|
|
9580
|
+
Module.ccall("csp_multiplayer_SequenceHotspotChangedParams_Ctor", "void", ["number"], [_ptr]);
|
|
9581
|
+
var _nPtr = getNativePointer(_ptr);
|
|
9582
|
+
return new SequenceHotspotChangedParams(_nPtr);
|
|
9583
|
+
}
|
|
9584
|
+
delete() {
|
|
9585
|
+
if (this.ownsPointer && !this.disposed) {
|
|
9586
|
+
Module.ccall("csp_multiplayer_SequenceHotspotChangedParams_Dtor", "void", ["number"], [this.pointer]);
|
|
9587
|
+
this.disposed = true;
|
|
9588
|
+
}
|
|
9589
|
+
}
|
|
9590
|
+
get updateType() {
|
|
9591
|
+
let _result = Module.ccall("csp_multiplayer_SequenceHotspotChangedParams__Get_UpdateType", "number", ["number"], [this.pointer]);
|
|
9592
|
+
return _result;
|
|
9593
|
+
}
|
|
9594
|
+
set updateType(value) {
|
|
9595
|
+
Module.ccall("csp_multiplayer_SequenceHotspotChangedParams__Set_UpdateType", "void", ["number", "number"], [this.pointer, value]);
|
|
9596
|
+
}
|
|
9597
|
+
get spaceId() {
|
|
9598
|
+
let _result = Module.ccall("csp_multiplayer_SequenceHotspotChangedParams__Get_SpaceId", "string", ["number"], [this.pointer]);
|
|
9599
|
+
return _result;
|
|
9600
|
+
}
|
|
9601
|
+
set spaceId(value) {
|
|
9602
|
+
Module.ccall("csp_multiplayer_SequenceHotspotChangedParams__Set_SpaceId", "void", ["number", "string"], [this.pointer, value]);
|
|
9603
|
+
}
|
|
9604
|
+
get name() {
|
|
9605
|
+
let _result = Module.ccall("csp_multiplayer_SequenceHotspotChangedParams__Get_Name", "string", ["number"], [this.pointer]);
|
|
9606
|
+
return _result;
|
|
9607
|
+
}
|
|
9608
|
+
set name(value) {
|
|
9609
|
+
Module.ccall("csp_multiplayer_SequenceHotspotChangedParams__Set_Name", "void", ["number", "string"], [this.pointer, value]);
|
|
9610
|
+
}
|
|
9611
|
+
get newName() {
|
|
9612
|
+
let _result = Module.ccall("csp_multiplayer_SequenceHotspotChangedParams__Get_NewName", "string", ["number"], [this.pointer]);
|
|
9613
|
+
return _result;
|
|
9614
|
+
}
|
|
9615
|
+
set newName(value) {
|
|
9616
|
+
Module.ccall("csp_multiplayer_SequenceHotspotChangedParams__Set_NewName", "void", ["number", "string"], [this.pointer, value]);
|
|
9617
|
+
}
|
|
9618
|
+
}
|
|
9619
|
+
Multiplayer.SequenceHotspotChangedParams = SequenceHotspotChangedParams;
|
|
9620
|
+
})(Multiplayer || (Multiplayer = {}));
|
|
9429
9621
|
(function (Multiplayer) {
|
|
9430
9622
|
/**
|
|
9431
9623
|
@ingroup Multiplayer
|
|
@@ -9582,6 +9774,18 @@ export class CSPFoundation {
|
|
|
9582
9774
|
var _callbackPtr = Module.addFunction(_callback, "vii");
|
|
9583
9775
|
Module.ccall("csp_multiplayer_MultiplayerConnection_SetSequenceChangedCallback_void_SequenceChangedCallbackHandler", "void", ["number", "number", "number"], [this.pointer, _callbackPtr, 0]);
|
|
9584
9776
|
}
|
|
9777
|
+
/**
|
|
9778
|
+
* @description Sets a callback to be fired when a hotspot sequence is changed.
|
|
9779
|
+
* @param callback - Callback to receive data for the hotspot sequence that has been changed.
|
|
9780
|
+
*/
|
|
9781
|
+
setHotspotSequenceChangedCallback(callback) {
|
|
9782
|
+
var _callback = (_stateObject__, arg1) => {
|
|
9783
|
+
var _arg1 = new Multiplayer.SequenceHotspotChangedParams(getNativePointer(arg1));
|
|
9784
|
+
callback(_arg1);
|
|
9785
|
+
};
|
|
9786
|
+
var _callbackPtr = Module.addFunction(_callback, "vii");
|
|
9787
|
+
Module.ccall("csp_multiplayer_MultiplayerConnection_SetHotspotSequenceChangedCallback_void_HotspotSequenceChangedCallbackHandler", "void", ["number", "number", "number"], [this.pointer, _callbackPtr, 0]);
|
|
9788
|
+
}
|
|
9585
9789
|
/**
|
|
9586
9790
|
* @description Registers a callback to listen for the named event.
|
|
9587
9791
|
* @param eventName - The identifying name for the event to listen for.
|
|
@@ -9724,6 +9928,16 @@ export class CSPFoundation {
|
|
|
9724
9928
|
var _nPtr = getNativePointer(_ptr);
|
|
9725
9929
|
return new ReplicatedValue(_nPtr);
|
|
9726
9930
|
}
|
|
9931
|
+
/**
|
|
9932
|
+
* @description Construct a ReplicatedValue based on a csp::common::Vector2 type.
|
|
9933
|
+
* @param inVector2Value - Initial value.
|
|
9934
|
+
*/
|
|
9935
|
+
static create_vector2Value(vector2Value) {
|
|
9936
|
+
var _ptr = Module._malloc(8);
|
|
9937
|
+
Module.ccall("csp_multiplayer_ReplicatedValue_Ctor_Vector2RC", "void", ["number", "number"], [_ptr, vector2Value.pointer]);
|
|
9938
|
+
var _nPtr = getNativePointer(_ptr);
|
|
9939
|
+
return new ReplicatedValue(_nPtr);
|
|
9940
|
+
}
|
|
9727
9941
|
/**
|
|
9728
9942
|
* @description Construct a ReplicatedValue based on a csp::common::Vector3 type.
|
|
9729
9943
|
* @param inVector3Value - Initial value.
|
|
@@ -9853,6 +10067,24 @@ export class CSPFoundation {
|
|
|
9853
10067
|
_result = _resultString;
|
|
9854
10068
|
return _result;
|
|
9855
10069
|
}
|
|
10070
|
+
/**
|
|
10071
|
+
* @description Set a Vector2 value for this replicated value from a csp::common::Vector2, will overwrite and previous value.
|
|
10072
|
+
*/
|
|
10073
|
+
setVector2(value) {
|
|
10074
|
+
Module.ccall("csp_multiplayer_ReplicatedValue_SetVector2_void_Vector2RC", "void", ["number", "number"], [this.pointer, value.pointer]);
|
|
10075
|
+
}
|
|
10076
|
+
/**
|
|
10077
|
+
* @description Get a csp::common::Vector2 value from this replicated value, will assert if not a csp::common::Vector2 type.
|
|
10078
|
+
* /// Use ReplicatedValue::GetReplicatedValueType to ensure type before accessing.
|
|
10079
|
+
* /// @return csp::common::Vector2
|
|
10080
|
+
*/
|
|
10081
|
+
getVector2() {
|
|
10082
|
+
var _ret = Module._malloc(8);
|
|
10083
|
+
Module.ccall("csp_multiplayer_ReplicatedValue_GetVector2C_Vector2RC", "void", ["number", "number"], [_ret, this.pointer]);
|
|
10084
|
+
var _nPtr = new Common.Vector2(getNativePointer(_ret));
|
|
10085
|
+
Module._free(_ret);
|
|
10086
|
+
return _nPtr;
|
|
10087
|
+
}
|
|
9856
10088
|
/**
|
|
9857
10089
|
* @description Set a Vector3 value for this replicated value from a csp::common::Vector3, will overwrite and previous value.
|
|
9858
10090
|
*/
|
|
@@ -15069,7 +15301,7 @@ export class CSPFoundation {
|
|
|
15069
15301
|
})(Systems || (Systems = {}));
|
|
15070
15302
|
(function (Systems) {
|
|
15071
15303
|
/**
|
|
15072
|
-
* @description Data structure for an Agora user token, giving userID, channel name and settings regarding sharing of audio/video/screenshare.
|
|
15304
|
+
* @description Data structure for an Agora user token, giving userID, referenceID, channel name and settings regarding sharing of audio/video/screenshare.
|
|
15073
15305
|
*/
|
|
15074
15306
|
class AgoraUserTokenParams extends NativeClassWrapper {
|
|
15075
15307
|
/** @internal */
|
|
@@ -15102,6 +15334,13 @@ export class CSPFoundation {
|
|
|
15102
15334
|
set channelName(value) {
|
|
15103
15335
|
Module.ccall("csp_systems_AgoraUserTokenParams__Set_ChannelName", "void", ["number", "string"], [this.pointer, value]);
|
|
15104
15336
|
}
|
|
15337
|
+
get referenceId() {
|
|
15338
|
+
let _result = Module.ccall("csp_systems_AgoraUserTokenParams__Get_ReferenceId", "string", ["number"], [this.pointer]);
|
|
15339
|
+
return _result;
|
|
15340
|
+
}
|
|
15341
|
+
set referenceId(value) {
|
|
15342
|
+
Module.ccall("csp_systems_AgoraUserTokenParams__Set_ReferenceId", "void", ["number", "string"], [this.pointer, value]);
|
|
15343
|
+
}
|
|
15105
15344
|
get lifespan() {
|
|
15106
15345
|
let _result = Module.ccall("csp_systems_AgoraUserTokenParams__Get_Lifespan", "number", ["number"], [this.pointer]);
|
|
15107
15346
|
return _result;
|
|
@@ -16370,6 +16609,283 @@ export class CSPFoundation {
|
|
|
16370
16609
|
}
|
|
16371
16610
|
Multiplayer.ButtonSpaceComponent = ButtonSpaceComponent;
|
|
16372
16611
|
})(Multiplayer || (Multiplayer = {}));
|
|
16612
|
+
(function (Multiplayer) {
|
|
16613
|
+
/**
|
|
16614
|
+
@ingroup CinematicCameraSpaceComponent
|
|
16615
|
+
* @description Data representation of an CinematicCameraSpaceComponent.
|
|
16616
|
+
*/
|
|
16617
|
+
class CinematicCameraSpaceComponent extends Multiplayer.ComponentBase {
|
|
16618
|
+
/** @internal */
|
|
16619
|
+
constructor(pointer) {
|
|
16620
|
+
super(pointer);
|
|
16621
|
+
}
|
|
16622
|
+
static fromComponentBase(baseInstance) {
|
|
16623
|
+
const nativeClassWrapper = baseInstance;
|
|
16624
|
+
return new Multiplayer.CinematicCameraSpaceComponent(new NativePointer(nativeClassWrapper.pointer, nativeClassWrapper.ownsPointer));
|
|
16625
|
+
}
|
|
16626
|
+
/**
|
|
16627
|
+
* @description Constructs the CinematicCamera space component, and associates it with the specified Parent space entity.
|
|
16628
|
+
* @param parent - The Space entity that owns this component.
|
|
16629
|
+
*/
|
|
16630
|
+
static create_parent(parent) {
|
|
16631
|
+
var _ptr = Module._malloc(8);
|
|
16632
|
+
Module.ccall("csp_multiplayer_CinematicCameraSpaceComponent_Ctor_SpaceEntityP", "void", ["number", "number"], [_ptr, parent.pointer]);
|
|
16633
|
+
var _nPtr = getNativePointer(_ptr);
|
|
16634
|
+
return new CinematicCameraSpaceComponent(_nPtr);
|
|
16635
|
+
}
|
|
16636
|
+
/**
|
|
16637
|
+
* @description Gived the sensor size and focal length, return the horizonal fov
|
|
16638
|
+
* @return FOV in degrees
|
|
16639
|
+
*/
|
|
16640
|
+
getFov() {
|
|
16641
|
+
let _result = Module.ccall("csp_multiplayer_CinematicCameraSpaceComponent_GetFovC_float", "number", ["number"], [this.pointer]);
|
|
16642
|
+
return _result;
|
|
16643
|
+
}
|
|
16644
|
+
/**
|
|
16645
|
+
* \addtogroup IPositionComponent
|
|
16646
|
+
@{
|
|
16647
|
+
@copydoc IPositionComponent::GetPosition()
|
|
16648
|
+
*/
|
|
16649
|
+
getPosition() {
|
|
16650
|
+
var _ret = Module._malloc(8);
|
|
16651
|
+
Module.ccall("csp_multiplayer_CinematicCameraSpaceComponent_GetPositionC_Vector3RC", "void", ["number", "number"], [_ret, this.pointer]);
|
|
16652
|
+
var _nPtr = new Common.Vector3(getNativePointer(_ret));
|
|
16653
|
+
Module._free(_ret);
|
|
16654
|
+
return _nPtr;
|
|
16655
|
+
}
|
|
16656
|
+
/**
|
|
16657
|
+
@copydoc IPositionComponent::SetPosition()
|
|
16658
|
+
*/
|
|
16659
|
+
setPosition(value) {
|
|
16660
|
+
Module.ccall("csp_multiplayer_CinematicCameraSpaceComponent_SetPosition_void_Vector3RC", "void", ["number", "number"], [this.pointer, value.pointer]);
|
|
16661
|
+
}
|
|
16662
|
+
/**
|
|
16663
|
+
@}
|
|
16664
|
+
* \addtogroup IRotationComponent
|
|
16665
|
+
@{
|
|
16666
|
+
@copydoc IRotationComponent::GetRotation()
|
|
16667
|
+
*/
|
|
16668
|
+
getRotation() {
|
|
16669
|
+
var _ret = Module._malloc(8);
|
|
16670
|
+
Module.ccall("csp_multiplayer_CinematicCameraSpaceComponent_GetRotationC_Vector4RC", "void", ["number", "number"], [_ret, this.pointer]);
|
|
16671
|
+
var _nPtr = new Common.Vector4(getNativePointer(_ret));
|
|
16672
|
+
Module._free(_ret);
|
|
16673
|
+
return _nPtr;
|
|
16674
|
+
}
|
|
16675
|
+
/**
|
|
16676
|
+
@copydoc IRotationComponent::SetRotation()
|
|
16677
|
+
*/
|
|
16678
|
+
setRotation(value) {
|
|
16679
|
+
Module.ccall("csp_multiplayer_CinematicCameraSpaceComponent_SetRotation_void_Vector4RC", "void", ["number", "number"], [this.pointer, value.pointer]);
|
|
16680
|
+
}
|
|
16681
|
+
/**
|
|
16682
|
+
@}
|
|
16683
|
+
* @description Get focal length
|
|
16684
|
+
* @return Current focal length
|
|
16685
|
+
*/
|
|
16686
|
+
getFocalLength() {
|
|
16687
|
+
let _result = Module.ccall("csp_multiplayer_CinematicCameraSpaceComponent_GetFocalLengthC_float", "number", ["number"], [this.pointer]);
|
|
16688
|
+
return _result;
|
|
16689
|
+
}
|
|
16690
|
+
/**
|
|
16691
|
+
* @description Set focalLength
|
|
16692
|
+
* Note: Effects the result of GetFov()
|
|
16693
|
+
* @param value - Focallength
|
|
16694
|
+
*/
|
|
16695
|
+
setFocalLength(value) {
|
|
16696
|
+
assert(value >= Limits.FLOAT_MIN);
|
|
16697
|
+
assert(value <= Limits.FLOAT_MAX);
|
|
16698
|
+
Module.ccall("csp_multiplayer_CinematicCameraSpaceComponent_SetFocalLength_void_float", "void", ["number", "number"], [this.pointer, value]);
|
|
16699
|
+
}
|
|
16700
|
+
/**
|
|
16701
|
+
* @description Get Current aspect ratio
|
|
16702
|
+
* @return Current aspect ratio
|
|
16703
|
+
*/
|
|
16704
|
+
getAspectRatio() {
|
|
16705
|
+
let _result = Module.ccall("csp_multiplayer_CinematicCameraSpaceComponent_GetAspectRatioC_float", "number", ["number"], [this.pointer]);
|
|
16706
|
+
return _result;
|
|
16707
|
+
}
|
|
16708
|
+
/**
|
|
16709
|
+
* @description Set Current aspect ratio
|
|
16710
|
+
* @param value - Current aspect ratio
|
|
16711
|
+
*/
|
|
16712
|
+
setAspectRatio(value) {
|
|
16713
|
+
assert(value >= Limits.FLOAT_MIN);
|
|
16714
|
+
assert(value <= Limits.FLOAT_MAX);
|
|
16715
|
+
Module.ccall("csp_multiplayer_CinematicCameraSpaceComponent_SetAspectRatio_void_float", "void", ["number", "number"], [this.pointer, value]);
|
|
16716
|
+
}
|
|
16717
|
+
/**
|
|
16718
|
+
* @description Get sensor size
|
|
16719
|
+
* @return Current sensor size
|
|
16720
|
+
*/
|
|
16721
|
+
getSensorSize() {
|
|
16722
|
+
var _ret = Module._malloc(8);
|
|
16723
|
+
Module.ccall("csp_multiplayer_CinematicCameraSpaceComponent_GetSensorSizeC_Vector2RC", "void", ["number", "number"], [_ret, this.pointer]);
|
|
16724
|
+
var _nPtr = new Common.Vector2(getNativePointer(_ret));
|
|
16725
|
+
Module._free(_ret);
|
|
16726
|
+
return _nPtr;
|
|
16727
|
+
}
|
|
16728
|
+
/**
|
|
16729
|
+
* @description Set Current SensorSize
|
|
16730
|
+
* @param value - Current SensorSize
|
|
16731
|
+
*/
|
|
16732
|
+
setSensorSize(value) {
|
|
16733
|
+
Module.ccall("csp_multiplayer_CinematicCameraSpaceComponent_SetSensorSize_void_Vector2RC", "void", ["number", "number"], [this.pointer, value.pointer]);
|
|
16734
|
+
}
|
|
16735
|
+
/**
|
|
16736
|
+
* @description Get near clip
|
|
16737
|
+
* Note: On platforms that don't support reversedZ, near clip should be used to control the clipping distance
|
|
16738
|
+
* @return Current near clip
|
|
16739
|
+
*/
|
|
16740
|
+
getNearClip() {
|
|
16741
|
+
let _result = Module.ccall("csp_multiplayer_CinematicCameraSpaceComponent_GetNearClipC_float", "number", ["number"], [this.pointer]);
|
|
16742
|
+
return _result;
|
|
16743
|
+
}
|
|
16744
|
+
/**
|
|
16745
|
+
* @description Set near clip
|
|
16746
|
+
* @param value - Near clip
|
|
16747
|
+
*/
|
|
16748
|
+
setNearClip(value) {
|
|
16749
|
+
assert(value >= Limits.FLOAT_MIN);
|
|
16750
|
+
assert(value <= Limits.FLOAT_MAX);
|
|
16751
|
+
Module.ccall("csp_multiplayer_CinematicCameraSpaceComponent_SetNearClip_void_float", "void", ["number", "number"], [this.pointer, value]);
|
|
16752
|
+
}
|
|
16753
|
+
/**
|
|
16754
|
+
* @description Get far clip
|
|
16755
|
+
* Note: On platforms that don't support reversedZ, far clip should be used to control the clipping distance
|
|
16756
|
+
* @return Current far clip
|
|
16757
|
+
*/
|
|
16758
|
+
getFarClip() {
|
|
16759
|
+
let _result = Module.ccall("csp_multiplayer_CinematicCameraSpaceComponent_GetFarClipC_float", "number", ["number"], [this.pointer]);
|
|
16760
|
+
return _result;
|
|
16761
|
+
}
|
|
16762
|
+
/**
|
|
16763
|
+
* @description Set far clip
|
|
16764
|
+
* Note: far clip, controls how the density increases and height decreases. Smaller values make the visible transition larger.
|
|
16765
|
+
* @param value - Far clip
|
|
16766
|
+
*/
|
|
16767
|
+
setFarClip(value) {
|
|
16768
|
+
assert(value >= Limits.FLOAT_MIN);
|
|
16769
|
+
assert(value <= Limits.FLOAT_MAX);
|
|
16770
|
+
Module.ccall("csp_multiplayer_CinematicCameraSpaceComponent_SetFarClip_void_float", "void", ["number", "number"], [this.pointer, value]);
|
|
16771
|
+
}
|
|
16772
|
+
/**
|
|
16773
|
+
* @description Get ISO sensitivity for controlling exposure.
|
|
16774
|
+
* Note: reserved for future use, do not implement on clients
|
|
16775
|
+
* @return Current iso
|
|
16776
|
+
*/
|
|
16777
|
+
getIso() {
|
|
16778
|
+
let _result = Module.ccall("csp_multiplayer_CinematicCameraSpaceComponent_GetIsoC_float", "number", ["number"], [this.pointer]);
|
|
16779
|
+
return _result;
|
|
16780
|
+
}
|
|
16781
|
+
/**
|
|
16782
|
+
* @description Set ISO sensitivity for controlling exposure.
|
|
16783
|
+
* Note: reserved for future use, do not implement on clients
|
|
16784
|
+
* @param value - ISO sensitivity for controlling exposure.
|
|
16785
|
+
*/
|
|
16786
|
+
setIso(value) {
|
|
16787
|
+
assert(value >= Limits.FLOAT_MIN);
|
|
16788
|
+
assert(value <= Limits.FLOAT_MAX);
|
|
16789
|
+
Module.ccall("csp_multiplayer_CinematicCameraSpaceComponent_SetIso_void_float", "void", ["number", "number"], [this.pointer, value]);
|
|
16790
|
+
}
|
|
16791
|
+
/**
|
|
16792
|
+
* @description Get shutter speed.
|
|
16793
|
+
* Note: reserved for future use, do not implement on clients
|
|
16794
|
+
* @param value - Shutter speed
|
|
16795
|
+
*/
|
|
16796
|
+
getShutterSpeed() {
|
|
16797
|
+
let _result = Module.ccall("csp_multiplayer_CinematicCameraSpaceComponent_GetShutterSpeedC_float", "number", ["number"], [this.pointer]);
|
|
16798
|
+
return _result;
|
|
16799
|
+
}
|
|
16800
|
+
/**
|
|
16801
|
+
* @description Set shutter speed
|
|
16802
|
+
* Note: reserved for future use, do not implement on clients
|
|
16803
|
+
* @param value - Shutter speed
|
|
16804
|
+
*/
|
|
16805
|
+
setShutterSpeed(value) {
|
|
16806
|
+
assert(value >= Limits.FLOAT_MIN);
|
|
16807
|
+
assert(value <= Limits.FLOAT_MAX);
|
|
16808
|
+
Module.ccall("csp_multiplayer_CinematicCameraSpaceComponent_SetShutterSpeed_void_float", "void", ["number", "number"], [this.pointer, value]);
|
|
16809
|
+
}
|
|
16810
|
+
/**
|
|
16811
|
+
* @description Get aperture.
|
|
16812
|
+
* Note: reserved for future use, do not implement on clients
|
|
16813
|
+
* @param value - Aperture
|
|
16814
|
+
*/
|
|
16815
|
+
getAperture() {
|
|
16816
|
+
let _result = Module.ccall("csp_multiplayer_CinematicCameraSpaceComponent_GetApertureC_float", "number", ["number"], [this.pointer]);
|
|
16817
|
+
return _result;
|
|
16818
|
+
}
|
|
16819
|
+
/**
|
|
16820
|
+
* @description Set aperture
|
|
16821
|
+
* Note: reserved for future use, do not implement on clients
|
|
16822
|
+
* @param value - Aperture flag
|
|
16823
|
+
*/
|
|
16824
|
+
setAperture(value) {
|
|
16825
|
+
assert(value >= Limits.FLOAT_MIN);
|
|
16826
|
+
assert(value <= Limits.FLOAT_MAX);
|
|
16827
|
+
Module.ccall("csp_multiplayer_CinematicCameraSpaceComponent_SetAperture_void_float", "void", ["number", "number"], [this.pointer, value]);
|
|
16828
|
+
}
|
|
16829
|
+
/**
|
|
16830
|
+
* @description Get IsViewerCamera.
|
|
16831
|
+
* Note: reserved for future use, do not implement on clients
|
|
16832
|
+
* @param value - IsViewerCamera
|
|
16833
|
+
*/
|
|
16834
|
+
getIsViewerCamera() {
|
|
16835
|
+
let _result = Module.ccall("csp_multiplayer_CinematicCameraSpaceComponent_GetIsViewerCameraC_bool", "boolean", ["number"], [this.pointer]);
|
|
16836
|
+
return _result;
|
|
16837
|
+
}
|
|
16838
|
+
/**
|
|
16839
|
+
* @description Set IsViewerCamera
|
|
16840
|
+
* Note: reserved for future use, do not implement on clients
|
|
16841
|
+
* @param value - IsViewerCamera Flag
|
|
16842
|
+
*/
|
|
16843
|
+
setIsViewerCamera(value) {
|
|
16844
|
+
Module.ccall("csp_multiplayer_CinematicCameraSpaceComponent_SetIsViewerCamera_void_bool", "void", ["number", "boolean"], [this.pointer, value]);
|
|
16845
|
+
}
|
|
16846
|
+
/**
|
|
16847
|
+
* \addtogroup IEnableableComponent
|
|
16848
|
+
@{
|
|
16849
|
+
@copydoc IEnableableComponent::GetIsEnabled()
|
|
16850
|
+
*/
|
|
16851
|
+
getIsEnabled() {
|
|
16852
|
+
let _result = Module.ccall("csp_multiplayer_CinematicCameraSpaceComponent_GetIsEnabledC_bool", "boolean", ["number"], [this.pointer]);
|
|
16853
|
+
return _result;
|
|
16854
|
+
}
|
|
16855
|
+
/**
|
|
16856
|
+
@copydoc IEnableableComponent::SetIsEnabled()
|
|
16857
|
+
*/
|
|
16858
|
+
setIsEnabled(value) {
|
|
16859
|
+
Module.ccall("csp_multiplayer_CinematicCameraSpaceComponent_SetIsEnabled_void_bool", "void", ["number", "boolean"], [this.pointer, value]);
|
|
16860
|
+
}
|
|
16861
|
+
/**
|
|
16862
|
+
@}
|
|
16863
|
+
* \addtogroup IThirdPartyComponentRef
|
|
16864
|
+
@{
|
|
16865
|
+
@copydoc IThirdPartyComponentRef::GetThirdPartyComponentRef()
|
|
16866
|
+
*/
|
|
16867
|
+
getThirdPartyComponentRef() {
|
|
16868
|
+
let _result = Module.ccall("csp_multiplayer_CinematicCameraSpaceComponent_GetThirdPartyComponentRefC_StringRC", "number", ["number"], [this.pointer]);
|
|
16869
|
+
const _resultString = Module.UTF8ToString(_result);
|
|
16870
|
+
free(_result);
|
|
16871
|
+
_result = _resultString;
|
|
16872
|
+
return _result;
|
|
16873
|
+
}
|
|
16874
|
+
/**
|
|
16875
|
+
@copydoc IThirdPartyComponentRef::SetThirdPartyComponentRef()
|
|
16876
|
+
*/
|
|
16877
|
+
setThirdPartyComponentRef(value) {
|
|
16878
|
+
Module.ccall("csp_multiplayer_CinematicCameraSpaceComponent_SetThirdPartyComponentRef_void_StringRC", "void", ["number", "string"], [this.pointer, value]);
|
|
16879
|
+
}
|
|
16880
|
+
delete() {
|
|
16881
|
+
if (this.ownsPointer && !this.disposed) {
|
|
16882
|
+
Module.ccall("csp_multiplayer_CinematicCameraSpaceComponent_Dtor", "void", ["number"], [this.pointer]);
|
|
16883
|
+
this.disposed = true;
|
|
16884
|
+
}
|
|
16885
|
+
}
|
|
16886
|
+
}
|
|
16887
|
+
Multiplayer.CinematicCameraSpaceComponent = CinematicCameraSpaceComponent;
|
|
16888
|
+
})(Multiplayer || (Multiplayer = {}));
|
|
16373
16889
|
(function (Multiplayer) {
|
|
16374
16890
|
/**
|
|
16375
16891
|
@ingroup CollisionSpaceComponent
|
|
@@ -18179,7 +18695,7 @@ export class CSPFoundation {
|
|
|
18179
18695
|
* @return Componentid'.
|
|
18180
18696
|
*/
|
|
18181
18697
|
getUniqueComponentId() {
|
|
18182
|
-
let _result = Module.ccall("
|
|
18698
|
+
let _result = Module.ccall("csp_multiplayer_HotspotSpaceComponent_GetUniqueComponentIdC_String", "number", ["number"], [this.pointer]);
|
|
18183
18699
|
const _resultString = Module.UTF8ToString(_result);
|
|
18184
18700
|
free(_result);
|
|
18185
18701
|
_result = _resultString;
|
|
@@ -22714,6 +23230,31 @@ export class CSPFoundation {
|
|
|
22714
23230
|
this.disposed = true;
|
|
22715
23231
|
}
|
|
22716
23232
|
}
|
|
23233
|
+
/**
|
|
23234
|
+
* @description This will delete any groups which only contain this item
|
|
23235
|
+
* For any groups which contanin the given item and additional items, it will just update the group by removing the given item.
|
|
23236
|
+
* @param itemName - An item to update all sequences containing.
|
|
23237
|
+
* @param callback - Callback to call when a response is received
|
|
23238
|
+
*/
|
|
23239
|
+
async removeItemFromGroups(itemName) {
|
|
23240
|
+
var _resolve;
|
|
23241
|
+
var _promise = new Promise((_r) => {
|
|
23242
|
+
_resolve = _r;
|
|
23243
|
+
});
|
|
23244
|
+
var _callbackPtr;
|
|
23245
|
+
var _callback = (_stateObject__, result) => {
|
|
23246
|
+
var _resultPtr = getNativePointer(result);
|
|
23247
|
+
var _resultInstance = new Systems.NullResult(_resultPtr);
|
|
23248
|
+
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
23249
|
+
return;
|
|
23250
|
+
}
|
|
23251
|
+
_resolve(_resultInstance);
|
|
23252
|
+
Module.removeFunction(_callbackPtr);
|
|
23253
|
+
};
|
|
23254
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
23255
|
+
Module.ccall("csp_systems_HotspotSequenceSystem_RemoveItemFromGroups_void_StringRC_NullResultCallback", "void", ["number", "string", "number", "number"], [this.pointer, itemName, _callbackPtr, 0]);
|
|
23256
|
+
return _promise;
|
|
23257
|
+
}
|
|
22717
23258
|
}
|
|
22718
23259
|
Systems.HotspotSequenceSystem = HotspotSequenceSystem;
|
|
22719
23260
|
})(Systems || (Systems = {}));
|
|
@@ -23805,6 +24346,39 @@ export class CSPFoundation {
|
|
|
23805
24346
|
]);
|
|
23806
24347
|
return _promise;
|
|
23807
24348
|
}
|
|
24349
|
+
/**
|
|
24350
|
+
* @description Finds all sequences that contain the given items
|
|
24351
|
+
* @param items - An array of items which should be searched for
|
|
24352
|
+
* @param referenceType - The type of reference (GroupId etc.). Must be used with ReferenceIds
|
|
24353
|
+
* @param referenceIds - The ids of the reference. Must be used with ReferenceType
|
|
24354
|
+
* @param callback - Callback to call when a response is received
|
|
24355
|
+
*/
|
|
24356
|
+
async getAllSequencesContainingItems(items, referenceType, referenceIds) {
|
|
24357
|
+
var _resolve;
|
|
24358
|
+
var _promise = new Promise((_r) => {
|
|
24359
|
+
_resolve = _r;
|
|
24360
|
+
});
|
|
24361
|
+
var _callbackPtr;
|
|
24362
|
+
var _callback = (_stateObject__, result) => {
|
|
24363
|
+
var _resultPtr = getNativePointer(result);
|
|
24364
|
+
var _resultInstance = new Systems.SequencesResult(_resultPtr);
|
|
24365
|
+
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
24366
|
+
return;
|
|
24367
|
+
}
|
|
24368
|
+
_resolve(_resultInstance);
|
|
24369
|
+
Module.removeFunction(_callbackPtr);
|
|
24370
|
+
};
|
|
24371
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
24372
|
+
Module.ccall("csp_systems_SequenceSystem_GetAllSequencesContainingItems_void_ArrayRC_StringRC_ArrayRC_SequencesResultCallback", "void", ["number", "number", "string", "number", "number", "number"], [
|
|
24373
|
+
this.pointer,
|
|
24374
|
+
items.pointer,
|
|
24375
|
+
referenceType,
|
|
24376
|
+
referenceIds.pointer,
|
|
24377
|
+
_callbackPtr,
|
|
24378
|
+
0,
|
|
24379
|
+
]);
|
|
24380
|
+
return _promise;
|
|
24381
|
+
}
|
|
23808
24382
|
/**
|
|
23809
24383
|
* @description Gets a sequence by it's key
|
|
23810
24384
|
* NOTE: This call will fail (Reason InvalidSequenceKey) if the SequenceKey parameter contains invalid keys, such as spaces, '/' or '%'
|