connected-spaces-platform.web 4.17.1 → 4.18.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 +58 -32
- package/Debug/ConnectedSpacesPlatform_WASM.wasm +0 -0
- package/Debug/ConnectedSpacesPlatform_WASM.wasm.debug.wasm +0 -0
- package/README.md +59 -9
- package/Release/ConnectedSpacesPlatform_WASM.js +1 -1
- package/Release/ConnectedSpacesPlatform_WASM.wasm +0 -0
- package/connectedspacesplatform.d.ts +304 -440
- package/connectedspacesplatform.js +434 -487
- package/connectedspacesplatform.js.map +1 -1
- package/connectedspacesplatform.ts +723 -619
- package/package.json +1 -1
|
@@ -289,6 +289,11 @@ function csp_multiplayer_ConnectionStateFactory(nativePointer) {
|
|
|
289
289
|
}
|
|
290
290
|
ProxyClassFactories["csp_multiplayer_ConnectionState"] =
|
|
291
291
|
csp_multiplayer_ConnectionStateFactory;
|
|
292
|
+
function csp_multiplayer_ErrorCodeFactory(nativePointer) {
|
|
293
|
+
return nativePointer.pointer;
|
|
294
|
+
}
|
|
295
|
+
ProxyClassFactories["csp_multiplayer_ErrorCode"] =
|
|
296
|
+
csp_multiplayer_ErrorCodeFactory;
|
|
292
297
|
function csp_multiplayer_ReplicatedValueTypeFactory(nativePointer) {
|
|
293
298
|
return nativePointer.pointer;
|
|
294
299
|
}
|
|
@@ -558,6 +563,10 @@ function csp_systems_TierNamesFactory(nativePointer) {
|
|
|
558
563
|
return nativePointer.pointer;
|
|
559
564
|
}
|
|
560
565
|
ProxyClassFactories["csp_systems_TierNames"] = csp_systems_TierNamesFactory;
|
|
566
|
+
function csp_systems_AvatarTypeFactory(nativePointer) {
|
|
567
|
+
return nativePointer.pointer;
|
|
568
|
+
}
|
|
569
|
+
ProxyClassFactories["csp_systems_AvatarType"] = csp_systems_AvatarTypeFactory;
|
|
561
570
|
function csp_systems_SpaceAttributesFactory(nativePointer) {
|
|
562
571
|
return nativePointer.pointer;
|
|
563
572
|
}
|
|
@@ -660,11 +669,6 @@ function csp_multiplayer_ReplicatedValueFactory(nativePointer) {
|
|
|
660
669
|
}
|
|
661
670
|
ProxyClassFactories["csp_multiplayer_ReplicatedValue"] =
|
|
662
671
|
csp_multiplayer_ReplicatedValueFactory;
|
|
663
|
-
function csp_multiplayer_PropertyUpdateInfoFactory(nativePointer) {
|
|
664
|
-
return new Multiplayer.PropertyUpdateInfo(nativePointer);
|
|
665
|
-
}
|
|
666
|
-
ProxyClassFactories["csp_multiplayer_PropertyUpdateInfo"] =
|
|
667
|
-
csp_multiplayer_PropertyUpdateInfoFactory;
|
|
668
672
|
function csp_multiplayer_ComponentUpdateInfoFactory(nativePointer) {
|
|
669
673
|
return new Multiplayer.ComponentUpdateInfo(nativePointer);
|
|
670
674
|
}
|
|
@@ -1228,6 +1232,11 @@ function csp_systems_SettingsCollectionResultFactory(nativePointer) {
|
|
|
1228
1232
|
}
|
|
1229
1233
|
ProxyClassFactories["csp_systems_SettingsCollectionResult"] =
|
|
1230
1234
|
csp_systems_SettingsCollectionResultFactory;
|
|
1235
|
+
function csp_systems_AvatarInfoResultFactory(nativePointer) {
|
|
1236
|
+
return new Systems.AvatarInfoResult(nativePointer);
|
|
1237
|
+
}
|
|
1238
|
+
ProxyClassFactories["csp_systems_AvatarInfoResult"] =
|
|
1239
|
+
csp_systems_AvatarInfoResultFactory;
|
|
1231
1240
|
function csp_systems_SettingsSystemFactory(nativePointer) {
|
|
1232
1241
|
return new Systems.SettingsSystem(nativePointer);
|
|
1233
1242
|
}
|
|
@@ -1678,7 +1687,7 @@ export var Multiplayer;
|
|
|
1678
1687
|
})(Multiplayer || (Multiplayer = {}));
|
|
1679
1688
|
(function (Multiplayer) {
|
|
1680
1689
|
/**
|
|
1681
|
-
* @description Enum used to specify the current state of the
|
|
1690
|
+
* @description Enum used to specify the current state of the multiplayer connection.
|
|
1682
1691
|
*/
|
|
1683
1692
|
let ConnectionState;
|
|
1684
1693
|
(function (ConnectionState) {
|
|
@@ -1688,6 +1697,19 @@ export var Multiplayer;
|
|
|
1688
1697
|
ConnectionState[ConnectionState["Disconnected"] = 3] = "Disconnected";
|
|
1689
1698
|
})(ConnectionState = Multiplayer.ConnectionState || (Multiplayer.ConnectionState = {}));
|
|
1690
1699
|
})(Multiplayer || (Multiplayer = {}));
|
|
1700
|
+
(function (Multiplayer) {
|
|
1701
|
+
/**
|
|
1702
|
+
* @description Enum used to indicate the failure state of a multiplayer request.
|
|
1703
|
+
*/
|
|
1704
|
+
let ErrorCode;
|
|
1705
|
+
(function (ErrorCode) {
|
|
1706
|
+
ErrorCode[ErrorCode["None"] = 0] = "None";
|
|
1707
|
+
ErrorCode[ErrorCode["Unknown"] = 1] = "Unknown";
|
|
1708
|
+
ErrorCode[ErrorCode["NotConnected"] = 2] = "NotConnected";
|
|
1709
|
+
ErrorCode[ErrorCode["AlreadyConnected"] = 3] = "AlreadyConnected";
|
|
1710
|
+
ErrorCode[ErrorCode["SpaceUserLimitExceeded"] = 4] = "SpaceUserLimitExceeded";
|
|
1711
|
+
})(ErrorCode = Multiplayer.ErrorCode || (Multiplayer.ErrorCode = {}));
|
|
1712
|
+
})(Multiplayer || (Multiplayer = {}));
|
|
1691
1713
|
(function (Multiplayer) {
|
|
1692
1714
|
/**
|
|
1693
1715
|
* @description Enum representing the type of a replicated value.
|
|
@@ -1717,7 +1739,13 @@ export var Multiplayer;
|
|
|
1717
1739
|
})(Multiplayer || (Multiplayer = {}));
|
|
1718
1740
|
(function (Multiplayer) {
|
|
1719
1741
|
/**
|
|
1720
|
-
* @description Enum used to
|
|
1742
|
+
* @description This Enum should be used to determine what kind of operation the component update represents.
|
|
1743
|
+
* Update means properties on the component have updated, all need to be checked as we do not provide reference of specific property updates.
|
|
1744
|
+
* Add means the component is newly added, clients should ensure that this triggers appropriate instantiation of wrapping objects.
|
|
1745
|
+
* All properties for the component should be included.
|
|
1746
|
+
* Delete means the component has been marked for deletion. It is likely that some other clients will not have the component at the point this is
|
|
1747
|
+
* recieved. Any wrapping data objects should be deleted when this is recieved, and clients should cease updating this component as any call would
|
|
1748
|
+
* fail. The CSP representation of the component has been removed at this point.
|
|
1721
1749
|
*/
|
|
1722
1750
|
let ComponentUpdateType;
|
|
1723
1751
|
(function (ComponentUpdateType) {
|
|
@@ -1727,6 +1755,11 @@ export var Multiplayer;
|
|
|
1727
1755
|
})(ComponentUpdateType = Multiplayer.ComponentUpdateType || (Multiplayer.ComponentUpdateType = {}));
|
|
1728
1756
|
})(Multiplayer || (Multiplayer = {}));
|
|
1729
1757
|
(function (Multiplayer) {
|
|
1758
|
+
/**
|
|
1759
|
+
* @description Enum used to specify what part of a SpaceEntity was updated when deserialising.
|
|
1760
|
+
* Use this to determine which parts of an entity to copy values from when an update occurs.
|
|
1761
|
+
* It is a bitwise flag enum, so values are additive, the value may represent several flags.
|
|
1762
|
+
*/
|
|
1730
1763
|
let SpaceEntityUpdateFlags;
|
|
1731
1764
|
(function (SpaceEntityUpdateFlags) {
|
|
1732
1765
|
SpaceEntityUpdateFlags[SpaceEntityUpdateFlags["UPDATE_FLAGS_NAME"] = 1] = "UPDATE_FLAGS_NAME";
|
|
@@ -2186,7 +2219,7 @@ export var Multiplayer;
|
|
|
2186
2219
|
ReflectionPropertyKeys[ReflectionPropertyKeys["ReflectionAssetId"] = 1] = "ReflectionAssetId";
|
|
2187
2220
|
ReflectionPropertyKeys[ReflectionPropertyKeys["AssetCollectionId"] = 2] = "AssetCollectionId";
|
|
2188
2221
|
ReflectionPropertyKeys[ReflectionPropertyKeys["Position"] = 3] = "Position";
|
|
2189
|
-
ReflectionPropertyKeys[ReflectionPropertyKeys["
|
|
2222
|
+
ReflectionPropertyKeys[ReflectionPropertyKeys["Rotation_NOT_USED"] = 4] = "Rotation_NOT_USED";
|
|
2190
2223
|
ReflectionPropertyKeys[ReflectionPropertyKeys["Scale"] = 5] = "Scale";
|
|
2191
2224
|
ReflectionPropertyKeys[ReflectionPropertyKeys["ReflectionShape"] = 6] = "ReflectionShape";
|
|
2192
2225
|
ReflectionPropertyKeys[ReflectionPropertyKeys["ThirdPartyComponentRef"] = 7] = "ThirdPartyComponentRef";
|
|
@@ -2383,6 +2416,7 @@ export var Multiplayer;
|
|
|
2383
2416
|
ERequestFailureReason[ERequestFailureReason["ShopifyConnectionBroken"] = 31] = "ShopifyConnectionBroken";
|
|
2384
2417
|
ERequestFailureReason[ERequestFailureReason["ShopifyInvalidStoreName"] = 32] = "ShopifyInvalidStoreName";
|
|
2385
2418
|
ERequestFailureReason[ERequestFailureReason["UserShopifyLimitReached"] = 33] = "UserShopifyLimitReached";
|
|
2419
|
+
ERequestFailureReason[ERequestFailureReason["UserTokenRefreshFailed"] = 34] = "UserTokenRefreshFailed";
|
|
2386
2420
|
})(ERequestFailureReason = Systems.ERequestFailureReason || (Systems.ERequestFailureReason = {}));
|
|
2387
2421
|
})(Systems || (Systems = {}));
|
|
2388
2422
|
(function (Systems) {
|
|
@@ -2494,6 +2528,18 @@ export var Multiplayer;
|
|
|
2494
2528
|
TierNames[TierNames["Invalid"] = 4] = "Invalid";
|
|
2495
2529
|
})(TierNames = Systems.TierNames || (Systems.TierNames = {}));
|
|
2496
2530
|
})(Systems || (Systems = {}));
|
|
2531
|
+
(function (Systems) {
|
|
2532
|
+
/**
|
|
2533
|
+
* @description Used to specify the type of the user's avatar
|
|
2534
|
+
*/
|
|
2535
|
+
let AvatarType;
|
|
2536
|
+
(function (AvatarType) {
|
|
2537
|
+
AvatarType[AvatarType["None"] = 0] = "None";
|
|
2538
|
+
AvatarType[AvatarType["Premade"] = 1] = "Premade";
|
|
2539
|
+
AvatarType[AvatarType["ReadyPlayerMe"] = 2] = "ReadyPlayerMe";
|
|
2540
|
+
AvatarType[AvatarType["Custom"] = 3] = "Custom";
|
|
2541
|
+
})(AvatarType = Systems.AvatarType || (Systems.AvatarType = {}));
|
|
2542
|
+
})(Systems || (Systems = {}));
|
|
2497
2543
|
(function (Systems) {
|
|
2498
2544
|
let SpaceAttributes;
|
|
2499
2545
|
(function (SpaceAttributes) {
|
|
@@ -2818,18 +2864,6 @@ export class CSPFoundation {
|
|
|
2818
2864
|
_result = _resultString;
|
|
2819
2865
|
return _result;
|
|
2820
2866
|
}
|
|
2821
|
-
/**
|
|
2822
|
-
* @description Gets the EntitySystemVersion number.
|
|
2823
|
-
* This represents the system used to parse data for Entities,
|
|
2824
|
-
* and is used to prevent conflicting entity data versions from being used together where we cannot parse both.
|
|
2825
|
-
* This is currently unused.
|
|
2826
|
-
* @return The system version number, a manually incremented counter that changes when significant breaking changes occur in the entity
|
|
2827
|
-
* parsing systems
|
|
2828
|
-
*/
|
|
2829
|
-
static getEntitySystemVersion() {
|
|
2830
|
-
let _result = Module.ccall("csp_CSPFoundation_GetEntitySystemVersion_int32_t", "number", [], []);
|
|
2831
|
-
return _result;
|
|
2832
|
-
}
|
|
2833
2867
|
/**
|
|
2834
2868
|
* @description Unique identifier for the current device.
|
|
2835
2869
|
* Used internally by certain user authentication endpoints.
|
|
@@ -9002,7 +9036,7 @@ export class CSPFoundation {
|
|
|
9002
9036
|
}
|
|
9003
9037
|
/**
|
|
9004
9038
|
* @description Start the connection and register to start receiving updates from the server.
|
|
9005
|
-
* @param callback - A callback with
|
|
9039
|
+
* @param callback - A callback with failure state.
|
|
9006
9040
|
*/
|
|
9007
9041
|
async connect() {
|
|
9008
9042
|
var _resolve;
|
|
@@ -9011,16 +9045,16 @@ export class CSPFoundation {
|
|
|
9011
9045
|
});
|
|
9012
9046
|
var _callbackPtr;
|
|
9013
9047
|
var _callback = (_stateObject__, arg1) => {
|
|
9014
|
-
_resolve(
|
|
9048
|
+
_resolve(arg1);
|
|
9015
9049
|
Module.removeFunction(_callbackPtr);
|
|
9016
9050
|
};
|
|
9017
9051
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
9018
|
-
Module.ccall("
|
|
9052
|
+
Module.ccall("csp_multiplayer_MultiplayerConnection_Connect_void_ErrorCodeCallbackHandler", "void", ["number", "number", "number"], [this.pointer, _callbackPtr, 0]);
|
|
9019
9053
|
return _promise;
|
|
9020
9054
|
}
|
|
9021
9055
|
/**
|
|
9022
9056
|
* @description End the multiplayer connection.
|
|
9023
|
-
* @param callback - A callback with
|
|
9057
|
+
* @param callback - A callback with failure state.
|
|
9024
9058
|
*/
|
|
9025
9059
|
async disconnect() {
|
|
9026
9060
|
var _resolve;
|
|
@@ -9029,16 +9063,16 @@ export class CSPFoundation {
|
|
|
9029
9063
|
});
|
|
9030
9064
|
var _callbackPtr;
|
|
9031
9065
|
var _callback = (_stateObject__, arg1) => {
|
|
9032
|
-
_resolve(
|
|
9066
|
+
_resolve(arg1);
|
|
9033
9067
|
Module.removeFunction(_callbackPtr);
|
|
9034
9068
|
};
|
|
9035
9069
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
9036
|
-
Module.ccall("
|
|
9070
|
+
Module.ccall("csp_multiplayer_MultiplayerConnection_Disconnect_void_ErrorCodeCallbackHandler", "void", ["number", "number", "number"], [this.pointer, _callbackPtr, 0]);
|
|
9037
9071
|
return _promise;
|
|
9038
9072
|
}
|
|
9039
9073
|
/**
|
|
9040
9074
|
* @description Initialise the connection and get initial entity data from the server.
|
|
9041
|
-
* @param callback - A callback with
|
|
9075
|
+
* @param callback - A callback with failure state.
|
|
9042
9076
|
*/
|
|
9043
9077
|
async initialiseConnection() {
|
|
9044
9078
|
var _resolve;
|
|
@@ -9047,18 +9081,18 @@ export class CSPFoundation {
|
|
|
9047
9081
|
});
|
|
9048
9082
|
var _callbackPtr;
|
|
9049
9083
|
var _callback = (_stateObject__, arg1) => {
|
|
9050
|
-
_resolve(
|
|
9084
|
+
_resolve(arg1);
|
|
9051
9085
|
Module.removeFunction(_callbackPtr);
|
|
9052
9086
|
};
|
|
9053
9087
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
9054
|
-
Module.ccall("
|
|
9088
|
+
Module.ccall("csp_multiplayer_MultiplayerConnection_InitialiseConnection_void_ErrorCodeCallbackHandler", "void", ["number", "number", "number"], [this.pointer, _callbackPtr, 0]);
|
|
9055
9089
|
return _promise;
|
|
9056
9090
|
}
|
|
9057
9091
|
/**
|
|
9058
9092
|
* @description Sends a network event by EventName to all currently connected clients.
|
|
9059
9093
|
* @param eventName - The identifying name for the event.
|
|
9060
9094
|
* @param args - An array of arguments (ReplicatedValue) to be passed as part of the event payload.
|
|
9061
|
-
* @param callback - A
|
|
9095
|
+
* @param callback - A callback with failure state.
|
|
9062
9096
|
*/
|
|
9063
9097
|
async sendNetworkEvent(eventName, args) {
|
|
9064
9098
|
var _resolve;
|
|
@@ -9067,11 +9101,11 @@ export class CSPFoundation {
|
|
|
9067
9101
|
});
|
|
9068
9102
|
var _callbackPtr;
|
|
9069
9103
|
var _callback = (_stateObject__, arg1) => {
|
|
9070
|
-
_resolve(
|
|
9104
|
+
_resolve(arg1);
|
|
9071
9105
|
Module.removeFunction(_callbackPtr);
|
|
9072
9106
|
};
|
|
9073
9107
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
9074
|
-
Module.ccall("
|
|
9108
|
+
Module.ccall("csp_multiplayer_MultiplayerConnection_SendNetworkEvent_void_StringRC_ArrayRC_ErrorCodeCallbackHandler", "void", ["number", "string", "number", "number", "number"], [this.pointer, eventName, args.pointer, _callbackPtr, 0]);
|
|
9075
9109
|
return _promise;
|
|
9076
9110
|
}
|
|
9077
9111
|
/**
|
|
@@ -9079,7 +9113,7 @@ export class CSPFoundation {
|
|
|
9079
9113
|
* @param eventName - The identifying name for the event.
|
|
9080
9114
|
* @param args - An array of arguments (ReplicatedValue) to be passed as part of the event payload.
|
|
9081
9115
|
* @param targetClientId - The client ID to send the event to.
|
|
9082
|
-
* @param callback - A
|
|
9116
|
+
* @param callback - A callback with failure state.
|
|
9083
9117
|
*/
|
|
9084
9118
|
async sendNetworkEventToClient(eventName, args, targetClientId) {
|
|
9085
9119
|
var _resolve;
|
|
@@ -9088,11 +9122,11 @@ export class CSPFoundation {
|
|
|
9088
9122
|
});
|
|
9089
9123
|
var _callbackPtr;
|
|
9090
9124
|
var _callback = (_stateObject__, arg1) => {
|
|
9091
|
-
_resolve(
|
|
9125
|
+
_resolve(arg1);
|
|
9092
9126
|
Module.removeFunction(_callbackPtr);
|
|
9093
9127
|
};
|
|
9094
9128
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
9095
|
-
Module.ccall("
|
|
9129
|
+
Module.ccall("csp_multiplayer_MultiplayerConnection_SendNetworkEventToClient_void_StringRC_ArrayRC_uint64_t_ErrorCodeCallbackHandler", "void", ["number", "string", "number", "bigint", "number", "number"], [
|
|
9096
9130
|
this.pointer,
|
|
9097
9131
|
eventName,
|
|
9098
9132
|
args.pointer,
|
|
@@ -9136,8 +9170,8 @@ export class CSPFoundation {
|
|
|
9136
9170
|
}
|
|
9137
9171
|
/**
|
|
9138
9172
|
* @description Sets a callback for a network interruption event.
|
|
9139
|
-
*
|
|
9140
|
-
*
|
|
9173
|
+
* Connection isn't recoverable after this point and Disconnect should be called.
|
|
9174
|
+
* @param callback - The callback for network interruption, contains a string showing failure.
|
|
9141
9175
|
*/
|
|
9142
9176
|
setNetworkInterruptionCallback(callback) {
|
|
9143
9177
|
var _callback = (_stateObject__, arg1) => {
|
|
@@ -9251,10 +9285,10 @@ export class CSPFoundation {
|
|
|
9251
9285
|
}
|
|
9252
9286
|
/**
|
|
9253
9287
|
* @description Sets the Self Messaging flag for this client.
|
|
9254
|
-
*
|
|
9255
|
-
|
|
9288
|
+
* This allows a client to declare that it wishes to recieve every patch and object message it sends.
|
|
9289
|
+
@warning Don't use this function if you aren't sure of the consequences, it's very unlikely that a client would want to use this!
|
|
9256
9290
|
* @param allowSelfMessaging - True to allow and false to disallow.
|
|
9257
|
-
* @param callback -
|
|
9291
|
+
* @param callback - A callback with failure state.
|
|
9258
9292
|
*/
|
|
9259
9293
|
async setAllowSelfMessagingFlag(allowSelfMessaging) {
|
|
9260
9294
|
var _resolve;
|
|
@@ -9263,11 +9297,11 @@ export class CSPFoundation {
|
|
|
9263
9297
|
});
|
|
9264
9298
|
var _callbackPtr;
|
|
9265
9299
|
var _callback = (_stateObject__, arg1) => {
|
|
9266
|
-
_resolve(
|
|
9300
|
+
_resolve(arg1);
|
|
9267
9301
|
Module.removeFunction(_callbackPtr);
|
|
9268
9302
|
};
|
|
9269
9303
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
9270
|
-
Module.ccall("
|
|
9304
|
+
Module.ccall("csp_multiplayer_MultiplayerConnection_SetAllowSelfMessagingFlag_void_boolC_ErrorCodeCallbackHandler", "void", ["number", "boolean", "number", "number"], [this.pointer, allowSelfMessaging, _callbackPtr, 0]);
|
|
9271
9305
|
return _promise;
|
|
9272
9306
|
}
|
|
9273
9307
|
/**
|
|
@@ -9509,44 +9543,6 @@ export class CSPFoundation {
|
|
|
9509
9543
|
}
|
|
9510
9544
|
Multiplayer.ReplicatedValue = ReplicatedValue;
|
|
9511
9545
|
})(Multiplayer || (Multiplayer = {}));
|
|
9512
|
-
(function (Multiplayer) {
|
|
9513
|
-
class PropertyUpdateInfo extends NativeClassWrapper {
|
|
9514
|
-
/** @internal */
|
|
9515
|
-
constructor(pointer) {
|
|
9516
|
-
super(pointer);
|
|
9517
|
-
}
|
|
9518
|
-
static create() {
|
|
9519
|
-
var _ptr = Module._malloc(8);
|
|
9520
|
-
Module.ccall("csp_multiplayer_PropertyUpdateInfo_Ctor", "void", ["number"], [_ptr]);
|
|
9521
|
-
var _nPtr = getNativePointer(_ptr);
|
|
9522
|
-
return new PropertyUpdateInfo(_nPtr);
|
|
9523
|
-
}
|
|
9524
|
-
delete() {
|
|
9525
|
-
if (this.ownsPointer && !this.disposed) {
|
|
9526
|
-
Module.ccall("csp_multiplayer_PropertyUpdateInfo_Dtor", "void", ["number"], [this.pointer]);
|
|
9527
|
-
this.disposed = true;
|
|
9528
|
-
}
|
|
9529
|
-
}
|
|
9530
|
-
get propertyId() {
|
|
9531
|
-
let _result = Module.ccall("csp_multiplayer_PropertyUpdateInfo__Get_PropertyId", "number", ["number"], [this.pointer]);
|
|
9532
|
-
const _unfixedValue = _result;
|
|
9533
|
-
let _fixedValue = _unfixedValue < 0 ? _unfixedValue + 2 ** 32 : _unfixedValue;
|
|
9534
|
-
_result = _fixedValue;
|
|
9535
|
-
return _result;
|
|
9536
|
-
}
|
|
9537
|
-
set propertyId(value) {
|
|
9538
|
-
Module.ccall("csp_multiplayer_PropertyUpdateInfo__Set_PropertyId", "void", ["number", "number"], [this.pointer, value]);
|
|
9539
|
-
}
|
|
9540
|
-
get updateType() {
|
|
9541
|
-
let _result = Module.ccall("csp_multiplayer_PropertyUpdateInfo__Get_UpdateType", "number", ["number"], [this.pointer]);
|
|
9542
|
-
return _result;
|
|
9543
|
-
}
|
|
9544
|
-
set updateType(value) {
|
|
9545
|
-
Module.ccall("csp_multiplayer_PropertyUpdateInfo__Set_UpdateType", "void", ["number", "number"], [this.pointer, value]);
|
|
9546
|
-
}
|
|
9547
|
-
}
|
|
9548
|
-
Multiplayer.PropertyUpdateInfo = PropertyUpdateInfo;
|
|
9549
|
-
})(Multiplayer || (Multiplayer = {}));
|
|
9550
9546
|
(function (Multiplayer) {
|
|
9551
9547
|
/**
|
|
9552
9548
|
* @description Info class that specifies a type of update and the ID of a component the update is applied to.
|
|
@@ -9822,6 +9818,7 @@ export class CSPFoundation {
|
|
|
9822
9818
|
* @description Set a callback to be executed when a patch message is received for this Entity. Only one callback can be set.
|
|
9823
9819
|
* @param callback - Contains the SpaceEntity that updated, a set of flags to tell which parts updated
|
|
9824
9820
|
* and an array of information to tell which components updated.
|
|
9821
|
+
* When this callback is recieved, the flags and arrays should be used to determine which properties have updated data.
|
|
9825
9822
|
*/
|
|
9826
9823
|
setUpdateCallback(callback) {
|
|
9827
9824
|
var _callback = (_stateObject__, arg1, arg2, arg3) => {
|
|
@@ -12731,6 +12728,33 @@ export class CSPFoundation {
|
|
|
12731
12728
|
let _result = Module.ccall("csp_systems_LogSystem_LoggingEnabled_bool_LogLevelC", "boolean", ["number", "number"], [this.pointer, level]);
|
|
12732
12729
|
return _result;
|
|
12733
12730
|
}
|
|
12731
|
+
/**
|
|
12732
|
+
* @description Log a message at a specific verbosity level.
|
|
12733
|
+
* @param level - The level to log this message at.
|
|
12734
|
+
* @param inMessage - The message to be logged.
|
|
12735
|
+
*/
|
|
12736
|
+
logMsg(level, message) {
|
|
12737
|
+
Module.ccall("csp_systems_LogSystem_LogMsg_void_LogLevelC_StringRC", "void", ["number", "number", "string"], [this.pointer, level, message]);
|
|
12738
|
+
}
|
|
12739
|
+
/**
|
|
12740
|
+
* @description Log an event.
|
|
12741
|
+
* @param inEvent - The event to be logged.
|
|
12742
|
+
*/
|
|
12743
|
+
logEvent(event) {
|
|
12744
|
+
Module.ccall("csp_systems_LogSystem_LogEvent_void_StringRC", "void", ["number", "string"], [this.pointer, event]);
|
|
12745
|
+
}
|
|
12746
|
+
/**
|
|
12747
|
+
* @description Specify a 'Marker' event which can be used to communicate a certain process occurring, usually for debugging.
|
|
12748
|
+
*/
|
|
12749
|
+
beginMarker(marker) {
|
|
12750
|
+
Module.ccall("csp_systems_LogSystem_BeginMarker_void_StringRC", "void", ["number", "string"], [this.pointer, marker]);
|
|
12751
|
+
}
|
|
12752
|
+
/**
|
|
12753
|
+
* @description End a 'Marker' event.
|
|
12754
|
+
*/
|
|
12755
|
+
endMarker() {
|
|
12756
|
+
Module.ccall("csp_systems_LogSystem_EndMarker_void", "void", ["number"], [this.pointer]);
|
|
12757
|
+
}
|
|
12734
12758
|
/**
|
|
12735
12759
|
* @description Clears all logging callbacks.
|
|
12736
12760
|
*/
|
|
@@ -14187,6 +14211,9 @@ export class CSPFoundation {
|
|
|
14187
14211
|
var _nPtr = getNativePointer(_ptr);
|
|
14188
14212
|
return new AnimatedModelSpaceComponent(_nPtr);
|
|
14189
14213
|
}
|
|
14214
|
+
/** @deprecated
|
|
14215
|
+
Due to the introduction of LODs it doesn't make sense to set a specific asset anymore
|
|
14216
|
+
*/
|
|
14190
14217
|
getExternalResourceAssetId() {
|
|
14191
14218
|
let _result = Module.ccall("csp_multiplayer_AnimatedModelSpaceComponent_GetExternalResourceAssetIdC_StringRC", "number", ["number"], [this.pointer]);
|
|
14192
14219
|
const _resultString = Module.UTF8ToString(_result);
|
|
@@ -14194,6 +14221,9 @@ export class CSPFoundation {
|
|
|
14194
14221
|
_result = _resultString;
|
|
14195
14222
|
return _result;
|
|
14196
14223
|
}
|
|
14224
|
+
/** @deprecated
|
|
14225
|
+
Due to the introduction of LODs it doesn't make sense to set a specific asset anymore
|
|
14226
|
+
*/
|
|
14197
14227
|
setExternalResourceAssetId(value) {
|
|
14198
14228
|
Module.ccall("csp_multiplayer_AnimatedModelSpaceComponent_SetExternalResourceAssetId_void_StringRC", "void", ["number", "string"], [this.pointer, value]);
|
|
14199
14229
|
}
|
|
@@ -14427,13 +14457,9 @@ export class CSPFoundation {
|
|
|
14427
14457
|
return new AudioSpaceComponent(_nPtr);
|
|
14428
14458
|
}
|
|
14429
14459
|
/**
|
|
14430
|
-
*
|
|
14431
|
-
|
|
14432
|
-
|
|
14433
|
-
* - +Y is UP
|
|
14434
|
-
* - +X is left (facing forward)
|
|
14435
|
-
* - +Z is forward
|
|
14436
|
-
* @return The 3D position as vector (left, up, forward) in meters.
|
|
14460
|
+
* \addtogroup IPositionComponent
|
|
14461
|
+
@{
|
|
14462
|
+
@copydoc IPositionComponent::GetPosition()
|
|
14437
14463
|
*/
|
|
14438
14464
|
getPosition() {
|
|
14439
14465
|
var _ret = Module._malloc(8);
|
|
@@ -14443,17 +14469,13 @@ export class CSPFoundation {
|
|
|
14443
14469
|
return _nPtr;
|
|
14444
14470
|
}
|
|
14445
14471
|
/**
|
|
14446
|
-
|
|
14447
|
-
* NOTE: The coordinate system used follows the glTF 2.0 specification, in meters.
|
|
14448
|
-
* - Right handed coordinate system
|
|
14449
|
-
* - +Y is UP
|
|
14450
|
-
* - +X is left (facing forward)
|
|
14451
|
-
* - +Z is forward
|
|
14472
|
+
@copydoc IPositionComponent::SetPosition()
|
|
14452
14473
|
*/
|
|
14453
14474
|
setPosition(value) {
|
|
14454
14475
|
Module.ccall("csp_multiplayer_AudioSpaceComponent_SetPosition_void_Vector3RC", "void", ["number", "number"], [this.pointer, value.pointer]);
|
|
14455
14476
|
}
|
|
14456
14477
|
/**
|
|
14478
|
+
@}
|
|
14457
14479
|
* @description Gets the current playback state of the audio of this audio component.
|
|
14458
14480
|
* @return The current playback state of the audio of this audio component.
|
|
14459
14481
|
*/
|
|
@@ -15068,13 +15090,9 @@ export class CSPFoundation {
|
|
|
15068
15090
|
Module.ccall("csp_multiplayer_ButtonSpaceComponent_SetAssetCollectionId_void_StringRC", "void", ["number", "string"], [this.pointer, value]);
|
|
15069
15091
|
}
|
|
15070
15092
|
/**
|
|
15071
|
-
*
|
|
15072
|
-
|
|
15073
|
-
|
|
15074
|
-
* - +Y is UP
|
|
15075
|
-
* - +X is left (facing forward)
|
|
15076
|
-
* - +Z is forward
|
|
15077
|
-
* @return The 3D position as vector (left, up, forward) in meters.
|
|
15093
|
+
* \addtogroup ITransformComponent
|
|
15094
|
+
@{
|
|
15095
|
+
@copydoc IPositionComponent::GetPosition()
|
|
15078
15096
|
*/
|
|
15079
15097
|
getPosition() {
|
|
15080
15098
|
var _ret = Module._malloc(8);
|
|
@@ -15084,26 +15102,13 @@ export class CSPFoundation {
|
|
|
15084
15102
|
return _nPtr;
|
|
15085
15103
|
}
|
|
15086
15104
|
/**
|
|
15087
|
-
|
|
15088
|
-
* NOTE: The coordinate system used follows the glTF 2.0 specification, in meters.
|
|
15089
|
-
* - Right handed coordinate system
|
|
15090
|
-
* - +Y is UP
|
|
15091
|
-
* - +X is left (facing forward)
|
|
15092
|
-
* - +Z is forward
|
|
15105
|
+
@copydoc IPositionComponent::SetPosition()
|
|
15093
15106
|
*/
|
|
15094
15107
|
setPosition(value) {
|
|
15095
15108
|
Module.ccall("csp_multiplayer_ButtonSpaceComponent_SetPosition_void_Vector3RC", "void", ["number", "number"], [this.pointer, value.pointer]);
|
|
15096
15109
|
}
|
|
15097
15110
|
/**
|
|
15098
|
-
|
|
15099
|
-
* NOTE: The coordinate system respects the following conventions:
|
|
15100
|
-
* - Right handed coordinate system
|
|
15101
|
-
* - Positive rotation is counterclockwise
|
|
15102
|
-
* - The geographic North is along the positive Z axis (+Z) at an orientation of 0 degrees.
|
|
15103
|
-
* - North: +Z
|
|
15104
|
-
* - East: -X
|
|
15105
|
-
* - South: -Z
|
|
15106
|
-
* - West: +X
|
|
15111
|
+
@copydoc IRotationComponent::GetRotation()
|
|
15107
15112
|
*/
|
|
15108
15113
|
getRotation() {
|
|
15109
15114
|
var _ret = Module._malloc(8);
|
|
@@ -15113,28 +15118,13 @@ export class CSPFoundation {
|
|
|
15113
15118
|
return _nPtr;
|
|
15114
15119
|
}
|
|
15115
15120
|
/**
|
|
15116
|
-
|
|
15117
|
-
* NOTE: The coordinate system respects the following conventions:
|
|
15118
|
-
* - Right handed coordinate system
|
|
15119
|
-
* - Positive rotation is counterclockwise
|
|
15120
|
-
* - The geographic North is along the positive Z axis (+Z) at an orientation of 0 degrees.
|
|
15121
|
-
* - North: +Z
|
|
15122
|
-
* - East: -X
|
|
15123
|
-
* - South: -Z
|
|
15124
|
-
* - West: +X
|
|
15125
|
-
* @param value - The quaternion in radians to use as new rotation of this component.
|
|
15121
|
+
@copydoc IRotationComponent::SetRotation()
|
|
15126
15122
|
*/
|
|
15127
15123
|
setRotation(value) {
|
|
15128
15124
|
Module.ccall("csp_multiplayer_ButtonSpaceComponent_SetRotation_void_Vector4RC", "void", ["number", "number"], [this.pointer, value.pointer]);
|
|
15129
15125
|
}
|
|
15130
15126
|
/**
|
|
15131
|
-
|
|
15132
|
-
* NOTE: The coordinate system used follows the glTF 2.0 specification.
|
|
15133
|
-
* - Right handed coordinate system
|
|
15134
|
-
* - +Y is UP
|
|
15135
|
-
* - +X is left (facing forward)
|
|
15136
|
-
* - +Z is forward
|
|
15137
|
-
* @return The 3D scale as vector (left, up, forward).
|
|
15127
|
+
@copydoc IScaleComponent::GetScale()
|
|
15138
15128
|
*/
|
|
15139
15129
|
getScale() {
|
|
15140
15130
|
var _ret = Module._malloc(8);
|
|
@@ -15144,18 +15134,29 @@ export class CSPFoundation {
|
|
|
15144
15134
|
return _nPtr;
|
|
15145
15135
|
}
|
|
15146
15136
|
/**
|
|
15147
|
-
|
|
15148
|
-
* @param value - The new value expressed as vector (left, up, forward).
|
|
15149
|
-
* NOTE: The coordinate system used follows the glTF 2.0 specification.
|
|
15150
|
-
* - Right handed coordinate system
|
|
15151
|
-
* - +Y is UP
|
|
15152
|
-
* - +X is left (facing forward)
|
|
15153
|
-
* - +Z is forward
|
|
15137
|
+
@copydoc IScaleComponent::SetScale()
|
|
15154
15138
|
*/
|
|
15155
15139
|
setScale(value) {
|
|
15156
15140
|
Module.ccall("csp_multiplayer_ButtonSpaceComponent_SetScale_void_Vector3RC", "void", ["number", "number"], [this.pointer, value.pointer]);
|
|
15157
15141
|
}
|
|
15158
15142
|
/**
|
|
15143
|
+
@copydoc ITransformComponent::GetTransform()
|
|
15144
|
+
*/
|
|
15145
|
+
getTransform() {
|
|
15146
|
+
var _ret = Module._malloc(8);
|
|
15147
|
+
Module.ccall("csp_multiplayer_ButtonSpaceComponent_GetTransformC_SpaceTransform", "void", ["number", "number"], [_ret, this.pointer]);
|
|
15148
|
+
var _nPtr = new Multiplayer.SpaceTransform(getNativePointer(_ret));
|
|
15149
|
+
Module._free(_ret);
|
|
15150
|
+
return _nPtr;
|
|
15151
|
+
}
|
|
15152
|
+
/**
|
|
15153
|
+
@copydoc ITransformComonent::SetTransform()
|
|
15154
|
+
*/
|
|
15155
|
+
setTransform(value) {
|
|
15156
|
+
Module.ccall("csp_multiplayer_ButtonSpaceComponent_SetTransform_void_SpaceTransformRC", "void", ["number", "number"], [this.pointer, value.pointer]);
|
|
15157
|
+
}
|
|
15158
|
+
/**
|
|
15159
|
+
@}
|
|
15159
15160
|
* \addtogroup IClickableComponent
|
|
15160
15161
|
@{
|
|
15161
15162
|
@copydoc IClickableComponent::GetIsEnabled()
|
|
@@ -15233,13 +15234,9 @@ export class CSPFoundation {
|
|
|
15233
15234
|
return new CollisionSpaceComponent(_nPtr);
|
|
15234
15235
|
}
|
|
15235
15236
|
/**
|
|
15236
|
-
*
|
|
15237
|
-
|
|
15238
|
-
|
|
15239
|
-
* - +Y is UP
|
|
15240
|
-
* - +X is left (facing forward)
|
|
15241
|
-
* - +Z is forward
|
|
15242
|
-
* @return The 3D position as vector (left, up, forward) in meters.
|
|
15237
|
+
* \addtogroup ITransformComponent
|
|
15238
|
+
@{
|
|
15239
|
+
@copydoc IPositionComponent::GetPosition()
|
|
15243
15240
|
*/
|
|
15244
15241
|
getPosition() {
|
|
15245
15242
|
var _ret = Module._malloc(8);
|
|
@@ -15249,26 +15246,13 @@ export class CSPFoundation {
|
|
|
15249
15246
|
return _nPtr;
|
|
15250
15247
|
}
|
|
15251
15248
|
/**
|
|
15252
|
-
|
|
15253
|
-
* NOTE: The coordinate system used follows the glTF 2.0 specification, in meters.
|
|
15254
|
-
* - Right handed coordinate system
|
|
15255
|
-
* - +Y is UP
|
|
15256
|
-
* - +X is left (facing forward)
|
|
15257
|
-
* - +Z is forward
|
|
15249
|
+
@copydoc IPositionComponent::SetPosition()
|
|
15258
15250
|
*/
|
|
15259
15251
|
setPosition(value) {
|
|
15260
15252
|
Module.ccall("csp_multiplayer_CollisionSpaceComponent_SetPosition_void_Vector3RC", "void", ["number", "number"], [this.pointer, value.pointer]);
|
|
15261
15253
|
}
|
|
15262
15254
|
/**
|
|
15263
|
-
|
|
15264
|
-
* NOTE: The coordinate system respects the following conventions:
|
|
15265
|
-
* - Right handed coordinate system
|
|
15266
|
-
* - Positive rotation is counterclockwise
|
|
15267
|
-
* - The geographic North is along the positive Z axis (+Z) at an orientation of 0 degrees.
|
|
15268
|
-
* - North: +Z
|
|
15269
|
-
* - East: -X
|
|
15270
|
-
* - South: -Z
|
|
15271
|
-
* - West: +X
|
|
15255
|
+
@copydoc IRotationComponent::GetRotation()
|
|
15272
15256
|
*/
|
|
15273
15257
|
getRotation() {
|
|
15274
15258
|
var _ret = Module._malloc(8);
|
|
@@ -15278,28 +15262,13 @@ export class CSPFoundation {
|
|
|
15278
15262
|
return _nPtr;
|
|
15279
15263
|
}
|
|
15280
15264
|
/**
|
|
15281
|
-
|
|
15282
|
-
* NOTE: The coordinate system respects the following conventions:
|
|
15283
|
-
* - Right handed coordinate system
|
|
15284
|
-
* - Positive rotation is counterclockwise
|
|
15285
|
-
* - The geographic North is along the positive Z axis (+Z) at an orientation of 0 degrees.
|
|
15286
|
-
* - North: +Z
|
|
15287
|
-
* - East: -X
|
|
15288
|
-
* - South: -Z
|
|
15289
|
-
* - West: +X
|
|
15290
|
-
* @param value - The quaternion in radians to use as new rotation of this component.
|
|
15265
|
+
@copydoc IRotationComponent::SetRotation()
|
|
15291
15266
|
*/
|
|
15292
15267
|
setRotation(value) {
|
|
15293
15268
|
Module.ccall("csp_multiplayer_CollisionSpaceComponent_SetRotation_void_Vector4RC", "void", ["number", "number"], [this.pointer, value.pointer]);
|
|
15294
15269
|
}
|
|
15295
15270
|
/**
|
|
15296
|
-
|
|
15297
|
-
* NOTE: The coordinate system used follows the glTF 2.0 specification.
|
|
15298
|
-
* - Right handed coordinate system
|
|
15299
|
-
* - +Y is UP
|
|
15300
|
-
* - +X is left (facing forward)
|
|
15301
|
-
* - +Z is forward
|
|
15302
|
-
* @return The 3D scale as vector (left, up, forward).
|
|
15271
|
+
@copydoc IScaleComponent::GetScale()
|
|
15303
15272
|
*/
|
|
15304
15273
|
getScale() {
|
|
15305
15274
|
var _ret = Module._malloc(8);
|
|
@@ -15309,18 +15278,29 @@ export class CSPFoundation {
|
|
|
15309
15278
|
return _nPtr;
|
|
15310
15279
|
}
|
|
15311
15280
|
/**
|
|
15312
|
-
|
|
15313
|
-
* @param value - The new value expressed as vector (left, up, forward).
|
|
15314
|
-
* NOTE: The coordinate system used follows the glTF 2.0 specification.
|
|
15315
|
-
* - Right handed coordinate system
|
|
15316
|
-
* - +Y is UP
|
|
15317
|
-
* - +X is left (facing forward)
|
|
15318
|
-
* - +Z is forward
|
|
15281
|
+
@copydoc IScaleComponent::SetScale()
|
|
15319
15282
|
*/
|
|
15320
15283
|
setScale(value) {
|
|
15321
15284
|
Module.ccall("csp_multiplayer_CollisionSpaceComponent_SetScale_void_Vector3RC", "void", ["number", "number"], [this.pointer, value.pointer]);
|
|
15322
15285
|
}
|
|
15323
15286
|
/**
|
|
15287
|
+
@copydoc ITransformComponent::GetTransform()
|
|
15288
|
+
*/
|
|
15289
|
+
getTransform() {
|
|
15290
|
+
var _ret = Module._malloc(8);
|
|
15291
|
+
Module.ccall("csp_multiplayer_CollisionSpaceComponent_GetTransformC_SpaceTransform", "void", ["number", "number"], [_ret, this.pointer]);
|
|
15292
|
+
var _nPtr = new Multiplayer.SpaceTransform(getNativePointer(_ret));
|
|
15293
|
+
Module._free(_ret);
|
|
15294
|
+
return _nPtr;
|
|
15295
|
+
}
|
|
15296
|
+
/**
|
|
15297
|
+
@copydoc ITransformComonent::SetTransform()
|
|
15298
|
+
*/
|
|
15299
|
+
setTransform(value) {
|
|
15300
|
+
Module.ccall("csp_multiplayer_CollisionSpaceComponent_SetTransform_void_SpaceTransformRC", "void", ["number", "number"], [this.pointer, value.pointer]);
|
|
15301
|
+
}
|
|
15302
|
+
/**
|
|
15303
|
+
@}
|
|
15324
15304
|
* @description Gets the collision shape used by this collision component.
|
|
15325
15305
|
* @return The colllision shape used by this collision component.
|
|
15326
15306
|
*/
|
|
@@ -15747,7 +15727,9 @@ export class CSPFoundation {
|
|
|
15747
15727
|
return _promise;
|
|
15748
15728
|
}
|
|
15749
15729
|
/**
|
|
15750
|
-
*
|
|
15730
|
+
* \addtogroup IPositionComponent
|
|
15731
|
+
@{
|
|
15732
|
+
@copydoc IPositionComponent::GetPosition()
|
|
15751
15733
|
*/
|
|
15752
15734
|
getPosition() {
|
|
15753
15735
|
var _ret = Module._malloc(8);
|
|
@@ -15757,14 +15739,16 @@ export class CSPFoundation {
|
|
|
15757
15739
|
return _nPtr;
|
|
15758
15740
|
}
|
|
15759
15741
|
/**
|
|
15760
|
-
|
|
15761
|
-
* @param value - - The new 3D position assigned to the origin of this component.
|
|
15742
|
+
@copydoc IPositionComponent::SetPosition()
|
|
15762
15743
|
*/
|
|
15763
15744
|
setPosition(value) {
|
|
15764
15745
|
Module.ccall("csp_multiplayer_ConversationSpaceComponent_SetPosition_void_Vector3RC", "void", ["number", "number"], [this.pointer, value.pointer]);
|
|
15765
15746
|
}
|
|
15766
15747
|
/**
|
|
15767
|
-
|
|
15748
|
+
@}
|
|
15749
|
+
* \addtogroup IRotationComponent
|
|
15750
|
+
@{
|
|
15751
|
+
@copydoc IRotationComponent::GetRotation()
|
|
15768
15752
|
*/
|
|
15769
15753
|
getRotation() {
|
|
15770
15754
|
var _ret = Module._malloc(8);
|
|
@@ -15774,12 +15758,14 @@ export class CSPFoundation {
|
|
|
15774
15758
|
return _nPtr;
|
|
15775
15759
|
}
|
|
15776
15760
|
/**
|
|
15777
|
-
|
|
15778
|
-
* @param value - - The new rotation assigned to the origin of this component.
|
|
15761
|
+
@copydoc IRotationComponent::SetRotation()
|
|
15779
15762
|
*/
|
|
15780
15763
|
setRotation(value) {
|
|
15781
15764
|
Module.ccall("csp_multiplayer_ConversationSpaceComponent_SetRotation_void_Vector4RC", "void", ["number", "number"], [this.pointer, value.pointer]);
|
|
15782
15765
|
}
|
|
15766
|
+
/**
|
|
15767
|
+
@}
|
|
15768
|
+
*/
|
|
15783
15769
|
getIsVisible() {
|
|
15784
15770
|
let _result = Module.ccall("csp_multiplayer_ConversationSpaceComponent_GetIsVisibleC_bool", "boolean", ["number"], [this.pointer]);
|
|
15785
15771
|
return _result;
|
|
@@ -16006,13 +15992,9 @@ export class CSPFoundation {
|
|
|
16006
15992
|
return new ECommerceSpaceComponent(_nPtr);
|
|
16007
15993
|
}
|
|
16008
15994
|
/**
|
|
16009
|
-
*
|
|
16010
|
-
|
|
16011
|
-
|
|
16012
|
-
* - +Y is UP
|
|
16013
|
-
* - +X is left (facing forward)
|
|
16014
|
-
* - +Z is forward
|
|
16015
|
-
* @return The 3D position as vector (left, up, forward) in meters.
|
|
15995
|
+
* \addtogroup ITransformComponent
|
|
15996
|
+
@{
|
|
15997
|
+
@copydoc IPositionComponent::GetPosition()
|
|
16016
15998
|
*/
|
|
16017
15999
|
getPosition() {
|
|
16018
16000
|
var _ret = Module._malloc(8);
|
|
@@ -16022,17 +16004,13 @@ export class CSPFoundation {
|
|
|
16022
16004
|
return _nPtr;
|
|
16023
16005
|
}
|
|
16024
16006
|
/**
|
|
16025
|
-
|
|
16026
|
-
* NOTE: The coordinate system used follows the glTF 2.0 specification, in meters.
|
|
16027
|
-
* - Right handed coordinate system
|
|
16028
|
-
* - +Y is UP
|
|
16029
|
-
* - +X is left (facing forward)
|
|
16030
|
-
* - +Z is forward
|
|
16007
|
+
@copydoc IPositionComponent::SetPosition()
|
|
16031
16008
|
*/
|
|
16032
16009
|
setPosition(value) {
|
|
16033
16010
|
Module.ccall("csp_multiplayer_ECommerceSpaceComponent_SetPosition_void_Vector3RC", "void", ["number", "number"], [this.pointer, value.pointer]);
|
|
16034
16011
|
}
|
|
16035
16012
|
/**
|
|
16013
|
+
@}
|
|
16036
16014
|
* @description Gets the product ID associated with the ECommerce component.
|
|
16037
16015
|
* @return The product ID associated with the ECommerce component.
|
|
16038
16016
|
*/
|
|
@@ -16119,7 +16097,9 @@ export class CSPFoundation {
|
|
|
16119
16097
|
Module.ccall("csp_multiplayer_ExternalLinkSpaceComponent_SetLinkUrl_void_StringRC", "void", ["number", "string"], [this.pointer, value]);
|
|
16120
16098
|
}
|
|
16121
16099
|
/**
|
|
16122
|
-
*
|
|
16100
|
+
* \addtogroup ITransformComponent
|
|
16101
|
+
@{
|
|
16102
|
+
@copydoc IPositionComponent::GetPosition()
|
|
16123
16103
|
*/
|
|
16124
16104
|
getPosition() {
|
|
16125
16105
|
var _ret = Module._malloc(8);
|
|
@@ -16129,14 +16109,13 @@ export class CSPFoundation {
|
|
|
16129
16109
|
return _nPtr;
|
|
16130
16110
|
}
|
|
16131
16111
|
/**
|
|
16132
|
-
|
|
16133
|
-
* @param value - - The new 3D position assigned to the origin of this component.
|
|
16112
|
+
@copydoc IPositionComponent::SetPosition()
|
|
16134
16113
|
*/
|
|
16135
16114
|
setPosition(value) {
|
|
16136
16115
|
Module.ccall("csp_multiplayer_ExternalLinkSpaceComponent_SetPosition_void_Vector3RC", "void", ["number", "number"], [this.pointer, value.pointer]);
|
|
16137
16116
|
}
|
|
16138
16117
|
/**
|
|
16139
|
-
|
|
16118
|
+
@copydoc IRotationComponent::GetRotation()
|
|
16140
16119
|
*/
|
|
16141
16120
|
getRotation() {
|
|
16142
16121
|
var _ret = Module._malloc(8);
|
|
@@ -16146,14 +16125,13 @@ export class CSPFoundation {
|
|
|
16146
16125
|
return _nPtr;
|
|
16147
16126
|
}
|
|
16148
16127
|
/**
|
|
16149
|
-
|
|
16150
|
-
* @param value - - The new rotation assigned to the origin of this component.
|
|
16128
|
+
@copydoc IRotationComponent::SetRotation()
|
|
16151
16129
|
*/
|
|
16152
16130
|
setRotation(value) {
|
|
16153
16131
|
Module.ccall("csp_multiplayer_ExternalLinkSpaceComponent_SetRotation_void_Vector4RC", "void", ["number", "number"], [this.pointer, value.pointer]);
|
|
16154
16132
|
}
|
|
16155
16133
|
/**
|
|
16156
|
-
|
|
16134
|
+
@copydoc IScaleComponent::GetScale()
|
|
16157
16135
|
*/
|
|
16158
16136
|
getScale() {
|
|
16159
16137
|
var _ret = Module._malloc(8);
|
|
@@ -16163,13 +16141,29 @@ export class CSPFoundation {
|
|
|
16163
16141
|
return _nPtr;
|
|
16164
16142
|
}
|
|
16165
16143
|
/**
|
|
16166
|
-
|
|
16167
|
-
* @param value - - The new 3D scale assigned to this component.
|
|
16144
|
+
@copydoc IScaleComponent::SetScale()
|
|
16168
16145
|
*/
|
|
16169
16146
|
setScale(value) {
|
|
16170
16147
|
Module.ccall("csp_multiplayer_ExternalLinkSpaceComponent_SetScale_void_Vector3RC", "void", ["number", "number"], [this.pointer, value.pointer]);
|
|
16171
16148
|
}
|
|
16172
16149
|
/**
|
|
16150
|
+
@copydoc ITransformComponent::GetTransform()
|
|
16151
|
+
*/
|
|
16152
|
+
getTransform() {
|
|
16153
|
+
var _ret = Module._malloc(8);
|
|
16154
|
+
Module.ccall("csp_multiplayer_ExternalLinkSpaceComponent_GetTransformC_SpaceTransform", "void", ["number", "number"], [_ret, this.pointer]);
|
|
16155
|
+
var _nPtr = new Multiplayer.SpaceTransform(getNativePointer(_ret));
|
|
16156
|
+
Module._free(_ret);
|
|
16157
|
+
return _nPtr;
|
|
16158
|
+
}
|
|
16159
|
+
/**
|
|
16160
|
+
@copydoc ITransformComonent::SetTransform()
|
|
16161
|
+
*/
|
|
16162
|
+
setTransform(value) {
|
|
16163
|
+
Module.ccall("csp_multiplayer_ExternalLinkSpaceComponent_SetTransform_void_SpaceTransformRC", "void", ["number", "number"], [this.pointer, value.pointer]);
|
|
16164
|
+
}
|
|
16165
|
+
/**
|
|
16166
|
+
@}
|
|
16173
16167
|
* @description Gets the text that will be displayed by the component as hyperlink to the URL it redirects to.
|
|
16174
16168
|
*/
|
|
16175
16169
|
getDisplayText() {
|
|
@@ -16320,13 +16314,9 @@ export class CSPFoundation {
|
|
|
16320
16314
|
Module.ccall("csp_multiplayer_FiducialMarkerSpaceComponent_SetAssetCollectionId_void_StringRC", "void", ["number", "string"], [this.pointer, value]);
|
|
16321
16315
|
}
|
|
16322
16316
|
/**
|
|
16323
|
-
*
|
|
16324
|
-
|
|
16325
|
-
|
|
16326
|
-
* - +Y is UP
|
|
16327
|
-
* - +X is left (facing forward)
|
|
16328
|
-
* - +Z is forward
|
|
16329
|
-
* @return The 3D position as vector (left, up, forward) in meters.
|
|
16317
|
+
* \addtogroup ITransformComponent
|
|
16318
|
+
@{
|
|
16319
|
+
@copydoc IPositionComponent::GetPosition()
|
|
16330
16320
|
*/
|
|
16331
16321
|
getPosition() {
|
|
16332
16322
|
var _ret = Module._malloc(8);
|
|
@@ -16336,26 +16326,13 @@ export class CSPFoundation {
|
|
|
16336
16326
|
return _nPtr;
|
|
16337
16327
|
}
|
|
16338
16328
|
/**
|
|
16339
|
-
|
|
16340
|
-
* NOTE: The coordinate system used follows the glTF 2.0 specification, in meters.
|
|
16341
|
-
* - Right handed coordinate system
|
|
16342
|
-
* - +Y is UP
|
|
16343
|
-
* - +X is left (facing forward)
|
|
16344
|
-
* - +Z is forward
|
|
16329
|
+
@copydoc IPositionComponent::SetPosition()
|
|
16345
16330
|
*/
|
|
16346
16331
|
setPosition(value) {
|
|
16347
16332
|
Module.ccall("csp_multiplayer_FiducialMarkerSpaceComponent_SetPosition_void_Vector3RC", "void", ["number", "number"], [this.pointer, value.pointer]);
|
|
16348
16333
|
}
|
|
16349
16334
|
/**
|
|
16350
|
-
|
|
16351
|
-
* NOTE: The coordinate system respects the following conventions:
|
|
16352
|
-
* - Right handed coordinate system
|
|
16353
|
-
* - Positive rotation is counterclockwise
|
|
16354
|
-
* - The geographic North is along the positive Z axis (+Z) at an orientation of 0 degrees.
|
|
16355
|
-
* - North: +Z
|
|
16356
|
-
* - East: -X
|
|
16357
|
-
* - South: -Z
|
|
16358
|
-
* - West: +X
|
|
16335
|
+
@copydoc IRotationComponent::GetRotation()
|
|
16359
16336
|
*/
|
|
16360
16337
|
getRotation() {
|
|
16361
16338
|
var _ret = Module._malloc(8);
|
|
@@ -16365,28 +16342,13 @@ export class CSPFoundation {
|
|
|
16365
16342
|
return _nPtr;
|
|
16366
16343
|
}
|
|
16367
16344
|
/**
|
|
16368
|
-
|
|
16369
|
-
* NOTE: The coordinate system respects the following conventions:
|
|
16370
|
-
* - Right handed coordinate system
|
|
16371
|
-
* - Positive rotation is counterclockwise
|
|
16372
|
-
* - The geographic North is along the positive Z axis (+Z) at an orientation of 0 degrees.
|
|
16373
|
-
* - North: +Z
|
|
16374
|
-
* - East: -X
|
|
16375
|
-
* - South: -Z
|
|
16376
|
-
* - West: +X
|
|
16377
|
-
* @param value - The quaternion in radians to use as new rotation of this component.
|
|
16345
|
+
@copydoc IRotationComponent::SetRotation()
|
|
16378
16346
|
*/
|
|
16379
16347
|
setRotation(value) {
|
|
16380
16348
|
Module.ccall("csp_multiplayer_FiducialMarkerSpaceComponent_SetRotation_void_Vector4RC", "void", ["number", "number"], [this.pointer, value.pointer]);
|
|
16381
16349
|
}
|
|
16382
16350
|
/**
|
|
16383
|
-
|
|
16384
|
-
* NOTE: The coordinate system used follows the glTF 2.0 specification.
|
|
16385
|
-
* - Right handed coordinate system
|
|
16386
|
-
* - +Y is UP
|
|
16387
|
-
* - +X is left (facing forward)
|
|
16388
|
-
* - +Z is forward
|
|
16389
|
-
* @return The 3D scale as vector (left, up, forward).
|
|
16351
|
+
@copydoc IScaleComponent::GetScale()
|
|
16390
16352
|
*/
|
|
16391
16353
|
getScale() {
|
|
16392
16354
|
var _ret = Module._malloc(8);
|
|
@@ -16396,18 +16358,29 @@ export class CSPFoundation {
|
|
|
16396
16358
|
return _nPtr;
|
|
16397
16359
|
}
|
|
16398
16360
|
/**
|
|
16399
|
-
|
|
16400
|
-
* @param value - The new value expressed as vector (left, up, forward).
|
|
16401
|
-
* NOTE: The coordinate system used follows the glTF 2.0 specification.
|
|
16402
|
-
* - Right handed coordinate system
|
|
16403
|
-
* - +Y is UP
|
|
16404
|
-
* - +X is left (facing forward)
|
|
16405
|
-
* - +Z is forward
|
|
16361
|
+
@copydoc IScaleComponent::SetScale()
|
|
16406
16362
|
*/
|
|
16407
16363
|
setScale(value) {
|
|
16408
16364
|
Module.ccall("csp_multiplayer_FiducialMarkerSpaceComponent_SetScale_void_Vector3RC", "void", ["number", "number"], [this.pointer, value.pointer]);
|
|
16409
16365
|
}
|
|
16410
16366
|
/**
|
|
16367
|
+
@copydoc ITransformComponent::GetTransform()
|
|
16368
|
+
*/
|
|
16369
|
+
getTransform() {
|
|
16370
|
+
var _ret = Module._malloc(8);
|
|
16371
|
+
Module.ccall("csp_multiplayer_FiducialMarkerSpaceComponent_GetTransformC_SpaceTransform", "void", ["number", "number"], [_ret, this.pointer]);
|
|
16372
|
+
var _nPtr = new Multiplayer.SpaceTransform(getNativePointer(_ret));
|
|
16373
|
+
Module._free(_ret);
|
|
16374
|
+
return _nPtr;
|
|
16375
|
+
}
|
|
16376
|
+
/**
|
|
16377
|
+
@copydoc ITransformComonent::SetTransform()
|
|
16378
|
+
*/
|
|
16379
|
+
setTransform(value) {
|
|
16380
|
+
Module.ccall("csp_multiplayer_FiducialMarkerSpaceComponent_SetTransform_void_SpaceTransformRC", "void", ["number", "number"], [this.pointer, value.pointer]);
|
|
16381
|
+
}
|
|
16382
|
+
/**
|
|
16383
|
+
@}
|
|
16411
16384
|
* \addtogroup IVisibleComponent
|
|
16412
16385
|
@{
|
|
16413
16386
|
@copydoc IVisibleComponent::GetIsVisible()
|
|
@@ -16484,13 +16457,9 @@ export class CSPFoundation {
|
|
|
16484
16457
|
Module.ccall("csp_multiplayer_FogSpaceComponent_SetFogMode_void_FogMode", "void", ["number", "number"], [this.pointer, value]);
|
|
16485
16458
|
}
|
|
16486
16459
|
/**
|
|
16487
|
-
*
|
|
16488
|
-
|
|
16489
|
-
|
|
16490
|
-
* - +Y is UP
|
|
16491
|
-
* - +X is left (facing forward)
|
|
16492
|
-
* - +Z is forward
|
|
16493
|
-
* @return The 3D position as vector (left, up, forward) in meters.
|
|
16460
|
+
* \addtogroup ITransformComponent
|
|
16461
|
+
@{
|
|
16462
|
+
@copydoc IPositionComponent::GetPosition()
|
|
16494
16463
|
*/
|
|
16495
16464
|
getPosition() {
|
|
16496
16465
|
var _ret = Module._malloc(8);
|
|
@@ -16500,26 +16469,13 @@ export class CSPFoundation {
|
|
|
16500
16469
|
return _nPtr;
|
|
16501
16470
|
}
|
|
16502
16471
|
/**
|
|
16503
|
-
|
|
16504
|
-
* NOTE: The coordinate system used follows the glTF 2.0 specification, in meters.
|
|
16505
|
-
* - Right handed coordinate system
|
|
16506
|
-
* - +Y is UP
|
|
16507
|
-
* - +X is left (facing forward)
|
|
16508
|
-
* - +Z is forward
|
|
16472
|
+
@copydoc IPositionComponent::SetPosition()
|
|
16509
16473
|
*/
|
|
16510
16474
|
setPosition(value) {
|
|
16511
16475
|
Module.ccall("csp_multiplayer_FogSpaceComponent_SetPosition_void_Vector3RC", "void", ["number", "number"], [this.pointer, value.pointer]);
|
|
16512
16476
|
}
|
|
16513
16477
|
/**
|
|
16514
|
-
|
|
16515
|
-
* NOTE: The coordinate system respects the following conventions:
|
|
16516
|
-
* - Right handed coordinate system
|
|
16517
|
-
* - Positive rotation is counterclockwise
|
|
16518
|
-
* - The geographic North is along the positive Z axis (+Z) at an orientation of 0 degrees.
|
|
16519
|
-
* - North: +Z
|
|
16520
|
-
* - East: -X
|
|
16521
|
-
* - South: -Z
|
|
16522
|
-
* - West: +X
|
|
16478
|
+
@copydoc IRotationComponent::GetRotation()
|
|
16523
16479
|
*/
|
|
16524
16480
|
getRotation() {
|
|
16525
16481
|
var _ret = Module._malloc(8);
|
|
@@ -16529,28 +16485,13 @@ export class CSPFoundation {
|
|
|
16529
16485
|
return _nPtr;
|
|
16530
16486
|
}
|
|
16531
16487
|
/**
|
|
16532
|
-
|
|
16533
|
-
* NOTE: The coordinate system respects the following conventions:
|
|
16534
|
-
* - Right handed coordinate system
|
|
16535
|
-
* - Positive rotation is counterclockwise
|
|
16536
|
-
* - The geographic North is along the positive Z axis (+Z) at an orientation of 0 degrees.
|
|
16537
|
-
* - North: +Z
|
|
16538
|
-
* - East: -X
|
|
16539
|
-
* - South: -Z
|
|
16540
|
-
* - West: +X
|
|
16541
|
-
* @param value - The quaternion in radians to use as new rotation of this component.
|
|
16488
|
+
@copydoc IRotationComponent::SetRotation()
|
|
16542
16489
|
*/
|
|
16543
16490
|
setRotation(value) {
|
|
16544
16491
|
Module.ccall("csp_multiplayer_FogSpaceComponent_SetRotation_void_Vector4RC", "void", ["number", "number"], [this.pointer, value.pointer]);
|
|
16545
16492
|
}
|
|
16546
16493
|
/**
|
|
16547
|
-
|
|
16548
|
-
* NOTE: The coordinate system used follows the glTF 2.0 specification.
|
|
16549
|
-
* - Right handed coordinate system
|
|
16550
|
-
* - +Y is UP
|
|
16551
|
-
* - +X is left (facing forward)
|
|
16552
|
-
* - +Z is forward
|
|
16553
|
-
* @return The 3D scale as vector (left, up, forward).
|
|
16494
|
+
@copydoc IScaleComponent::GetScale()
|
|
16554
16495
|
*/
|
|
16555
16496
|
getScale() {
|
|
16556
16497
|
var _ret = Module._malloc(8);
|
|
@@ -16560,18 +16501,29 @@ export class CSPFoundation {
|
|
|
16560
16501
|
return _nPtr;
|
|
16561
16502
|
}
|
|
16562
16503
|
/**
|
|
16563
|
-
|
|
16564
|
-
* @param value - The new value expressed as vector (left, up, forward).
|
|
16565
|
-
* NOTE: The coordinate system used follows the glTF 2.0 specification.
|
|
16566
|
-
* - Right handed coordinate system
|
|
16567
|
-
* - +Y is UP
|
|
16568
|
-
* - +X is left (facing forward)
|
|
16569
|
-
* - +Z is forward
|
|
16504
|
+
@copydoc IScaleComponent::SetScale()
|
|
16570
16505
|
*/
|
|
16571
16506
|
setScale(value) {
|
|
16572
16507
|
Module.ccall("csp_multiplayer_FogSpaceComponent_SetScale_void_Vector3RC", "void", ["number", "number"], [this.pointer, value.pointer]);
|
|
16573
16508
|
}
|
|
16574
16509
|
/**
|
|
16510
|
+
@copydoc ITransformComponent::GetTransform()
|
|
16511
|
+
*/
|
|
16512
|
+
getTransform() {
|
|
16513
|
+
var _ret = Module._malloc(8);
|
|
16514
|
+
Module.ccall("csp_multiplayer_FogSpaceComponent_GetTransformC_SpaceTransform", "void", ["number", "number"], [_ret, this.pointer]);
|
|
16515
|
+
var _nPtr = new Multiplayer.SpaceTransform(getNativePointer(_ret));
|
|
16516
|
+
Module._free(_ret);
|
|
16517
|
+
return _nPtr;
|
|
16518
|
+
}
|
|
16519
|
+
/**
|
|
16520
|
+
@copydoc ITransformComonent::SetTransform()
|
|
16521
|
+
*/
|
|
16522
|
+
setTransform(value) {
|
|
16523
|
+
Module.ccall("csp_multiplayer_FogSpaceComponent_SetTransform_void_SpaceTransformRC", "void", ["number", "number"], [this.pointer, value.pointer]);
|
|
16524
|
+
}
|
|
16525
|
+
/**
|
|
16526
|
+
@}
|
|
16575
16527
|
* @description Get start sistance
|
|
16576
16528
|
* Note: Distance from camera that the fog will start.
|
|
16577
16529
|
* Note: 0 = this property has no effect.
|
|
@@ -16841,13 +16793,9 @@ export class CSPFoundation {
|
|
|
16841
16793
|
Module.ccall("csp_multiplayer_ImageSpaceComponent_SetAssetCollectionId_void_StringRC", "void", ["number", "string"], [this.pointer, value]);
|
|
16842
16794
|
}
|
|
16843
16795
|
/**
|
|
16844
|
-
*
|
|
16845
|
-
|
|
16846
|
-
|
|
16847
|
-
* - +Y is UP
|
|
16848
|
-
* - +X is left (facing forward)
|
|
16849
|
-
* - +Z is forward
|
|
16850
|
-
* @return The 3D position as vector (left, up, forward) in meters.
|
|
16796
|
+
* \addtogroup ITransformComponent
|
|
16797
|
+
@{
|
|
16798
|
+
@copydoc IPositionComponent::GetPosition()
|
|
16851
16799
|
*/
|
|
16852
16800
|
getPosition() {
|
|
16853
16801
|
var _ret = Module._malloc(8);
|
|
@@ -16857,26 +16805,13 @@ export class CSPFoundation {
|
|
|
16857
16805
|
return _nPtr;
|
|
16858
16806
|
}
|
|
16859
16807
|
/**
|
|
16860
|
-
|
|
16861
|
-
* NOTE: The coordinate system used follows the glTF 2.0 specification, in meters.
|
|
16862
|
-
* - Right handed coordinate system
|
|
16863
|
-
* - +Y is UP
|
|
16864
|
-
* - +X is left (facing forward)
|
|
16865
|
-
* - +Z is forward
|
|
16808
|
+
@copydoc IPositionComponent::SetPosition()
|
|
16866
16809
|
*/
|
|
16867
16810
|
setPosition(value) {
|
|
16868
16811
|
Module.ccall("csp_multiplayer_ImageSpaceComponent_SetPosition_void_Vector3RC", "void", ["number", "number"], [this.pointer, value.pointer]);
|
|
16869
16812
|
}
|
|
16870
16813
|
/**
|
|
16871
|
-
|
|
16872
|
-
* NOTE: The coordinate system respects the following conventions:
|
|
16873
|
-
* - Right handed coordinate system
|
|
16874
|
-
* - Positive rotation is counterclockwise
|
|
16875
|
-
* - The geographic North is along the positive Z axis (+Z) at an orientation of 0 degrees.
|
|
16876
|
-
* - North: +Z
|
|
16877
|
-
* - East: -X
|
|
16878
|
-
* - South: -Z
|
|
16879
|
-
* - West: +X
|
|
16814
|
+
@copydoc IRotationComponent::GetRotation()
|
|
16880
16815
|
*/
|
|
16881
16816
|
getRotation() {
|
|
16882
16817
|
var _ret = Module._malloc(8);
|
|
@@ -16886,28 +16821,13 @@ export class CSPFoundation {
|
|
|
16886
16821
|
return _nPtr;
|
|
16887
16822
|
}
|
|
16888
16823
|
/**
|
|
16889
|
-
|
|
16890
|
-
* NOTE: The coordinate system respects the following conventions:
|
|
16891
|
-
* - Right handed coordinate system
|
|
16892
|
-
* - Positive rotation is counterclockwise
|
|
16893
|
-
* - The geographic North is along the positive Z axis (+Z) at an orientation of 0 degrees.
|
|
16894
|
-
* - North: +Z
|
|
16895
|
-
* - East: -X
|
|
16896
|
-
* - South: -Z
|
|
16897
|
-
* - West: +X
|
|
16898
|
-
* @param value - The quaternion in radians to use as new rotation of this component.
|
|
16824
|
+
@copydoc IRotationComponent::SetRotation()
|
|
16899
16825
|
*/
|
|
16900
16826
|
setRotation(value) {
|
|
16901
16827
|
Module.ccall("csp_multiplayer_ImageSpaceComponent_SetRotation_void_Vector4RC", "void", ["number", "number"], [this.pointer, value.pointer]);
|
|
16902
16828
|
}
|
|
16903
16829
|
/**
|
|
16904
|
-
|
|
16905
|
-
* NOTE: The coordinate system used follows the glTF 2.0 specification.
|
|
16906
|
-
* - Right handed coordinate system
|
|
16907
|
-
* - +Y is UP
|
|
16908
|
-
* - +X is left (facing forward)
|
|
16909
|
-
* - +Z is forward
|
|
16910
|
-
* @return The 3D scale as vector (left, up, forward).
|
|
16830
|
+
@copydoc IScaleComponent::GetScale()
|
|
16911
16831
|
*/
|
|
16912
16832
|
getScale() {
|
|
16913
16833
|
var _ret = Module._malloc(8);
|
|
@@ -16917,18 +16837,29 @@ export class CSPFoundation {
|
|
|
16917
16837
|
return _nPtr;
|
|
16918
16838
|
}
|
|
16919
16839
|
/**
|
|
16920
|
-
|
|
16921
|
-
* @param value - The new value expressed as vector (left, up, forward).
|
|
16922
|
-
* NOTE: The coordinate system used follows the glTF 2.0 specification.
|
|
16923
|
-
* - Right handed coordinate system
|
|
16924
|
-
* - +Y is UP
|
|
16925
|
-
* - +X is left (facing forward)
|
|
16926
|
-
* - +Z is forward
|
|
16840
|
+
@copydoc IScaleComponent::SetScale()
|
|
16927
16841
|
*/
|
|
16928
16842
|
setScale(value) {
|
|
16929
16843
|
Module.ccall("csp_multiplayer_ImageSpaceComponent_SetScale_void_Vector3RC", "void", ["number", "number"], [this.pointer, value.pointer]);
|
|
16930
16844
|
}
|
|
16931
16845
|
/**
|
|
16846
|
+
@copydoc ITransformComponent::GetTransform()
|
|
16847
|
+
*/
|
|
16848
|
+
getTransform() {
|
|
16849
|
+
var _ret = Module._malloc(8);
|
|
16850
|
+
Module.ccall("csp_multiplayer_ImageSpaceComponent_GetTransformC_SpaceTransform", "void", ["number", "number"], [_ret, this.pointer]);
|
|
16851
|
+
var _nPtr = new Multiplayer.SpaceTransform(getNativePointer(_ret));
|
|
16852
|
+
Module._free(_ret);
|
|
16853
|
+
return _nPtr;
|
|
16854
|
+
}
|
|
16855
|
+
/**
|
|
16856
|
+
@copydoc ITransformComonent::SetTransform()
|
|
16857
|
+
*/
|
|
16858
|
+
setTransform(value) {
|
|
16859
|
+
Module.ccall("csp_multiplayer_ImageSpaceComponent_SetTransform_void_SpaceTransformRC", "void", ["number", "number"], [this.pointer, value.pointer]);
|
|
16860
|
+
}
|
|
16861
|
+
/**
|
|
16862
|
+
@}
|
|
16932
16863
|
* @description Gets the billboard mode used by this image component.
|
|
16933
16864
|
* @return The billboard mode used by this image component.
|
|
16934
16865
|
*/
|
|
@@ -17151,13 +17082,9 @@ export class CSPFoundation {
|
|
|
17151
17082
|
Module.ccall("csp_multiplayer_LightSpaceComponent_SetOuterConeAngle_void_float", "void", ["number", "number"], [this.pointer, value]);
|
|
17152
17083
|
}
|
|
17153
17084
|
/**
|
|
17154
|
-
*
|
|
17155
|
-
|
|
17156
|
-
|
|
17157
|
-
* - +Y is UP
|
|
17158
|
-
* - +X is left (facing forward)
|
|
17159
|
-
* - +Z is forward
|
|
17160
|
-
* @return The 3D position as vector (left, up, forward) in meters.
|
|
17085
|
+
* \addtogroup IPositionComponent
|
|
17086
|
+
@{
|
|
17087
|
+
@copydoc IPositionComponent::GetPosition()
|
|
17161
17088
|
*/
|
|
17162
17089
|
getPosition() {
|
|
17163
17090
|
var _ret = Module._malloc(8);
|
|
@@ -17167,26 +17094,16 @@ export class CSPFoundation {
|
|
|
17167
17094
|
return _nPtr;
|
|
17168
17095
|
}
|
|
17169
17096
|
/**
|
|
17170
|
-
|
|
17171
|
-
* NOTE: The coordinate system used follows the glTF 2.0 specification, in meters.
|
|
17172
|
-
* - Right handed coordinate system
|
|
17173
|
-
* - +Y is UP
|
|
17174
|
-
* - +X is left (facing forward)
|
|
17175
|
-
* - +Z is forward
|
|
17097
|
+
@copydoc IPositionComponent::SetPosition()
|
|
17176
17098
|
*/
|
|
17177
17099
|
setPosition(value) {
|
|
17178
17100
|
Module.ccall("csp_multiplayer_LightSpaceComponent_SetPosition_void_Vector3RC", "void", ["number", "number"], [this.pointer, value.pointer]);
|
|
17179
17101
|
}
|
|
17180
17102
|
/**
|
|
17181
|
-
|
|
17182
|
-
*
|
|
17183
|
-
|
|
17184
|
-
|
|
17185
|
-
* - The geographic North is along the positive Z axis (+Z) at an orientation of 0 degrees.
|
|
17186
|
-
* - North: +Z
|
|
17187
|
-
* - East: -X
|
|
17188
|
-
* - South: -Z
|
|
17189
|
-
* - West: +X
|
|
17103
|
+
@}
|
|
17104
|
+
* \addtogroup IRotationComponent
|
|
17105
|
+
@{
|
|
17106
|
+
@copydoc IRotationComponent::GetRotation()
|
|
17190
17107
|
*/
|
|
17191
17108
|
getRotation() {
|
|
17192
17109
|
var _ret = Module._malloc(8);
|
|
@@ -17196,21 +17113,13 @@ export class CSPFoundation {
|
|
|
17196
17113
|
return _nPtr;
|
|
17197
17114
|
}
|
|
17198
17115
|
/**
|
|
17199
|
-
|
|
17200
|
-
* NOTE: The coordinate system respects the following conventions:
|
|
17201
|
-
* - Right handed coordinate system
|
|
17202
|
-
* - Positive rotation is counterclockwise
|
|
17203
|
-
* - The geographic North is along the positive Z axis (+Z) at an orientation of 0 degrees.
|
|
17204
|
-
* - North: +Z
|
|
17205
|
-
* - East: -X
|
|
17206
|
-
* - South: -Z
|
|
17207
|
-
* - West: +X
|
|
17208
|
-
* @param value - The quaternion in radians to use as new rotation of this component.
|
|
17116
|
+
@copydoc IRotationComponent::SetRotation()
|
|
17209
17117
|
*/
|
|
17210
17118
|
setRotation(value) {
|
|
17211
17119
|
Module.ccall("csp_multiplayer_LightSpaceComponent_SetRotation_void_Vector4RC", "void", ["number", "number"], [this.pointer, value.pointer]);
|
|
17212
17120
|
}
|
|
17213
17121
|
/**
|
|
17122
|
+
@}
|
|
17214
17123
|
* @description Gets the ID of the asset used for the light cookie of this light component.
|
|
17215
17124
|
* @return The ID of the asset used for the light cookie of this light component.
|
|
17216
17125
|
*/
|
|
@@ -17360,13 +17269,9 @@ export class CSPFoundation {
|
|
|
17360
17269
|
Module.ccall("csp_multiplayer_PortalSpaceComponent_SetSpaceId_void_StringRC", "void", ["number", "string"], [this.pointer, value]);
|
|
17361
17270
|
}
|
|
17362
17271
|
/**
|
|
17363
|
-
*
|
|
17364
|
-
|
|
17365
|
-
|
|
17366
|
-
* - +Y is UP
|
|
17367
|
-
* - +X is left (facing forward)
|
|
17368
|
-
* - +Z is forward
|
|
17369
|
-
* @return The 3D position as vector (left, up, forward) in meters.
|
|
17272
|
+
* \addtogroup IPositionComponent
|
|
17273
|
+
@{
|
|
17274
|
+
@copydoc IPositionComponent::GetPosition()
|
|
17370
17275
|
*/
|
|
17371
17276
|
getPosition() {
|
|
17372
17277
|
var _ret = Module._malloc(8);
|
|
@@ -17376,17 +17281,13 @@ export class CSPFoundation {
|
|
|
17376
17281
|
return _nPtr;
|
|
17377
17282
|
}
|
|
17378
17283
|
/**
|
|
17379
|
-
|
|
17380
|
-
* NOTE: The coordinate system used follows the glTF 2.0 specification, in meters.
|
|
17381
|
-
* - Right handed coordinate system
|
|
17382
|
-
* - +Y is UP
|
|
17383
|
-
* - +X is left (facing forward)
|
|
17384
|
-
* - +Z is forward
|
|
17284
|
+
@copydoc IPositionComponent::SetPosition()
|
|
17385
17285
|
*/
|
|
17386
17286
|
setPosition(value) {
|
|
17387
17287
|
Module.ccall("csp_multiplayer_PortalSpaceComponent_SetPosition_void_Vector3RC", "void", ["number", "number"], [this.pointer, value.pointer]);
|
|
17388
17288
|
}
|
|
17389
17289
|
/**
|
|
17290
|
+
@}
|
|
17390
17291
|
* @description Gets the radius of this portal.
|
|
17391
17292
|
* @return The radius of this portal.
|
|
17392
17293
|
*/
|
|
@@ -17533,7 +17434,9 @@ export class CSPFoundation {
|
|
|
17533
17434
|
Module.ccall("csp_multiplayer_ReflectionSpaceComponent_SetAssetCollectionId_void_StringRC", "void", ["number", "string"], [this.pointer, value]);
|
|
17534
17435
|
}
|
|
17535
17436
|
/**
|
|
17536
|
-
*
|
|
17437
|
+
* \addtogroup IPositionComponent
|
|
17438
|
+
@{
|
|
17439
|
+
@copydoc IPositionComponent::GetPosition()
|
|
17537
17440
|
*/
|
|
17538
17441
|
getPosition() {
|
|
17539
17442
|
var _ret = Module._malloc(8);
|
|
@@ -17543,26 +17446,16 @@ export class CSPFoundation {
|
|
|
17543
17446
|
return _nPtr;
|
|
17544
17447
|
}
|
|
17545
17448
|
/**
|
|
17546
|
-
|
|
17547
|
-
* @param value - Position of the Reflection Component.
|
|
17449
|
+
@copydoc IPositionComponent::SetPosition()
|
|
17548
17450
|
*/
|
|
17549
17451
|
setPosition(value) {
|
|
17550
17452
|
Module.ccall("csp_multiplayer_ReflectionSpaceComponent_SetPosition_void_Vector3RC", "void", ["number", "number"], [this.pointer, value.pointer]);
|
|
17551
17453
|
}
|
|
17552
17454
|
/**
|
|
17553
|
-
|
|
17554
|
-
*
|
|
17555
|
-
|
|
17556
|
-
|
|
17557
|
-
var _ret = Module._malloc(8);
|
|
17558
|
-
Module.ccall("csp_multiplayer_ReflectionSpaceComponent_GetRotationC_Vector4RC", "void", ["number", "number"], [_ret, this.pointer]);
|
|
17559
|
-
var _nPtr = new Common.Vector4(getNativePointer(_ret));
|
|
17560
|
-
Module._free(_ret);
|
|
17561
|
-
return _nPtr;
|
|
17562
|
-
}
|
|
17563
|
-
/**
|
|
17564
|
-
* @description Scale of the Reflection components spatial extents over which the reflection should apply.
|
|
17565
|
-
* UnitBox/Sphere * Scale == Spatial Extents.
|
|
17455
|
+
@}
|
|
17456
|
+
* \addtogroup IScaleComponent
|
|
17457
|
+
@{
|
|
17458
|
+
@copydoc IScaleComponent::GetScale()
|
|
17566
17459
|
*/
|
|
17567
17460
|
getScale() {
|
|
17568
17461
|
var _ret = Module._malloc(8);
|
|
@@ -17572,14 +17465,13 @@ export class CSPFoundation {
|
|
|
17572
17465
|
return _nPtr;
|
|
17573
17466
|
}
|
|
17574
17467
|
/**
|
|
17575
|
-
|
|
17576
|
-
* @param value - Scale extents of the Reflection Component.
|
|
17577
|
-
* UnitBox/Sphere * Scale == Spatial Extents.
|
|
17468
|
+
@copydoc IScaleComponent::SetScale()
|
|
17578
17469
|
*/
|
|
17579
17470
|
setScale(value) {
|
|
17580
17471
|
Module.ccall("csp_multiplayer_ReflectionSpaceComponent_SetScale_void_Vector3RC", "void", ["number", "number"], [this.pointer, value.pointer]);
|
|
17581
17472
|
}
|
|
17582
17473
|
/**
|
|
17474
|
+
@}
|
|
17583
17475
|
* @description Get the reflection shape enum value.
|
|
17584
17476
|
* ReflectionShape.UnitBox: Projects a texture in a planar fashion from all six directions (like an inward facing cube).
|
|
17585
17477
|
* ReflectionShape.UnitSphere: Warps the texture into a spherical shape and projects it onto a surface.
|
|
@@ -17796,6 +17688,9 @@ export class CSPFoundation {
|
|
|
17796
17688
|
var _nPtr = getNativePointer(_ptr);
|
|
17797
17689
|
return new StaticModelSpaceComponent(_nPtr);
|
|
17798
17690
|
}
|
|
17691
|
+
/** @deprecated
|
|
17692
|
+
Due to the introduction of LODs it doesn't make sense to set a specific asset anymore
|
|
17693
|
+
*/
|
|
17799
17694
|
getExternalResourceAssetId() {
|
|
17800
17695
|
let _result = Module.ccall("csp_multiplayer_StaticModelSpaceComponent_GetExternalResourceAssetIdC_StringRC", "number", ["number"], [this.pointer]);
|
|
17801
17696
|
const _resultString = Module.UTF8ToString(_result);
|
|
@@ -17803,6 +17698,9 @@ export class CSPFoundation {
|
|
|
17803
17698
|
_result = _resultString;
|
|
17804
17699
|
return _result;
|
|
17805
17700
|
}
|
|
17701
|
+
/** @deprecated
|
|
17702
|
+
Due to the introduction of LODs it doesn't make sense to set a specific asset anymore
|
|
17703
|
+
*/
|
|
17806
17704
|
setExternalResourceAssetId(value) {
|
|
17807
17705
|
Module.ccall("csp_multiplayer_StaticModelSpaceComponent_SetExternalResourceAssetId_void_StringRC", "void", ["number", "string"], [this.pointer, value]);
|
|
17808
17706
|
}
|
|
@@ -18064,13 +17962,9 @@ export class CSPFoundation {
|
|
|
18064
17962
|
Module.ccall("csp_multiplayer_VideoPlayerSpaceComponent_SetAssetCollectionId_void_StringRC", "void", ["number", "string"], [this.pointer, value]);
|
|
18065
17963
|
}
|
|
18066
17964
|
/**
|
|
18067
|
-
*
|
|
18068
|
-
|
|
18069
|
-
|
|
18070
|
-
* - +Y is UP
|
|
18071
|
-
* - +X is left (facing forward)
|
|
18072
|
-
* - +Z is forward
|
|
18073
|
-
* @return The 3D position as vector (left, up, forward) in meters.
|
|
17965
|
+
* \addtogroup ITransformComponent
|
|
17966
|
+
@{
|
|
17967
|
+
@copydoc IPositionComponent::GetPosition()
|
|
18074
17968
|
*/
|
|
18075
17969
|
getPosition() {
|
|
18076
17970
|
var _ret = Module._malloc(8);
|
|
@@ -18080,26 +17974,13 @@ export class CSPFoundation {
|
|
|
18080
17974
|
return _nPtr;
|
|
18081
17975
|
}
|
|
18082
17976
|
/**
|
|
18083
|
-
|
|
18084
|
-
* NOTE: The coordinate system used follows the glTF 2.0 specification, in meters.
|
|
18085
|
-
* - Right handed coordinate system
|
|
18086
|
-
* - +Y is UP
|
|
18087
|
-
* - +X is left (facing forward)
|
|
18088
|
-
* - +Z is forward
|
|
17977
|
+
@copydoc IPositionComponent::SetPosition()
|
|
18089
17978
|
*/
|
|
18090
17979
|
setPosition(value) {
|
|
18091
17980
|
Module.ccall("csp_multiplayer_VideoPlayerSpaceComponent_SetPosition_void_Vector3RC", "void", ["number", "number"], [this.pointer, value.pointer]);
|
|
18092
17981
|
}
|
|
18093
17982
|
/**
|
|
18094
|
-
|
|
18095
|
-
* NOTE: The coordinate system respects the following conventions:
|
|
18096
|
-
* - Right handed coordinate system
|
|
18097
|
-
* - Positive rotation is counterclockwise
|
|
18098
|
-
* - The geographic North is along the positive Z axis (+Z) at an orientation of 0 degrees.
|
|
18099
|
-
* - North: +Z
|
|
18100
|
-
* - East: -X
|
|
18101
|
-
* - South: -Z
|
|
18102
|
-
* - West: +X
|
|
17983
|
+
@copydoc IRotationComponent::GetRotation()
|
|
18103
17984
|
*/
|
|
18104
17985
|
getRotation() {
|
|
18105
17986
|
var _ret = Module._malloc(8);
|
|
@@ -18109,28 +17990,13 @@ export class CSPFoundation {
|
|
|
18109
17990
|
return _nPtr;
|
|
18110
17991
|
}
|
|
18111
17992
|
/**
|
|
18112
|
-
|
|
18113
|
-
* NOTE: The coordinate system respects the following conventions:
|
|
18114
|
-
* - Right handed coordinate system
|
|
18115
|
-
* - Positive rotation is counterclockwise
|
|
18116
|
-
* - The geographic North is along the positive Z axis (+Z) at an orientation of 0 degrees.
|
|
18117
|
-
* - North: +Z
|
|
18118
|
-
* - East: -X
|
|
18119
|
-
* - South: -Z
|
|
18120
|
-
* - West: +X
|
|
18121
|
-
* @param value - The quaternion in radians to use as new rotation of this component.
|
|
17993
|
+
@copydoc IRotationComponent::SetRotation()
|
|
18122
17994
|
*/
|
|
18123
17995
|
setRotation(value) {
|
|
18124
17996
|
Module.ccall("csp_multiplayer_VideoPlayerSpaceComponent_SetRotation_void_Vector4RC", "void", ["number", "number"], [this.pointer, value.pointer]);
|
|
18125
17997
|
}
|
|
18126
17998
|
/**
|
|
18127
|
-
|
|
18128
|
-
* NOTE: The coordinate system used follows the glTF 2.0 specification.
|
|
18129
|
-
* - Right handed coordinate system
|
|
18130
|
-
* - +Y is UP
|
|
18131
|
-
* - +X is left (facing forward)
|
|
18132
|
-
* - +Z is forward
|
|
18133
|
-
* @return The 3D scale as vector (left, up, forward).
|
|
17999
|
+
@copydoc IScaleComponent::GetScale()
|
|
18134
18000
|
*/
|
|
18135
18001
|
getScale() {
|
|
18136
18002
|
var _ret = Module._malloc(8);
|
|
@@ -18140,18 +18006,29 @@ export class CSPFoundation {
|
|
|
18140
18006
|
return _nPtr;
|
|
18141
18007
|
}
|
|
18142
18008
|
/**
|
|
18143
|
-
|
|
18144
|
-
* @param value - The new value expressed as vector (left, up, forward).
|
|
18145
|
-
* NOTE: The coordinate system used follows the glTF 2.0 specification.
|
|
18146
|
-
* - Right handed coordinate system
|
|
18147
|
-
* - +Y is UP
|
|
18148
|
-
* - +X is left (facing forward)
|
|
18149
|
-
* - +Z is forward
|
|
18009
|
+
@copydoc IScaleComponent::SetScale()
|
|
18150
18010
|
*/
|
|
18151
18011
|
setScale(value) {
|
|
18152
18012
|
Module.ccall("csp_multiplayer_VideoPlayerSpaceComponent_SetScale_void_Vector3RC", "void", ["number", "number"], [this.pointer, value.pointer]);
|
|
18153
18013
|
}
|
|
18154
18014
|
/**
|
|
18015
|
+
@copydoc ITransformComponent::GetTransform()
|
|
18016
|
+
*/
|
|
18017
|
+
getTransform() {
|
|
18018
|
+
var _ret = Module._malloc(8);
|
|
18019
|
+
Module.ccall("csp_multiplayer_VideoPlayerSpaceComponent_GetTransformC_SpaceTransform", "void", ["number", "number"], [_ret, this.pointer]);
|
|
18020
|
+
var _nPtr = new Multiplayer.SpaceTransform(getNativePointer(_ret));
|
|
18021
|
+
Module._free(_ret);
|
|
18022
|
+
return _nPtr;
|
|
18023
|
+
}
|
|
18024
|
+
/**
|
|
18025
|
+
@copydoc ITransformComonent::SetTransform()
|
|
18026
|
+
*/
|
|
18027
|
+
setTransform(value) {
|
|
18028
|
+
Module.ccall("csp_multiplayer_VideoPlayerSpaceComponent_SetTransform_void_SpaceTransformRC", "void", ["number", "number"], [this.pointer, value.pointer]);
|
|
18029
|
+
}
|
|
18030
|
+
/**
|
|
18031
|
+
@}
|
|
18155
18032
|
* @description Checks if the playback state of this video player needs to be shared with other users through replication.
|
|
18156
18033
|
* @return True if the playback state of the video needs to be shared among all users, false otherwise.
|
|
18157
18034
|
*/
|
|
@@ -18858,6 +18735,9 @@ export class CSPFoundation {
|
|
|
18858
18735
|
_result = _resultString;
|
|
18859
18736
|
return _result;
|
|
18860
18737
|
}
|
|
18738
|
+
setUri(value) {
|
|
18739
|
+
Module.ccall("csp_systems_UriResult_SetUri_void_StringRC", "void", ["number", "string"], [this.pointer, value]);
|
|
18740
|
+
}
|
|
18861
18741
|
delete() {
|
|
18862
18742
|
if (this.ownsPointer && !this.disposed) {
|
|
18863
18743
|
Module.ccall("csp_systems_UriResult_Dtor", "void", ["number"], [this.pointer]);
|
|
@@ -20642,24 +20522,6 @@ export class CSPFoundation {
|
|
|
20642
20522
|
const nativeClassWrapper = baseInstance;
|
|
20643
20523
|
return new Systems.MaintenanceInfoResult(new NativePointer(nativeClassWrapper.pointer, nativeClassWrapper.ownsPointer));
|
|
20644
20524
|
}
|
|
20645
|
-
static create() {
|
|
20646
|
-
var _ptr = Module._malloc(8);
|
|
20647
|
-
Module.ccall("csp_systems_MaintenanceInfoResult_Ctor", "void", ["number"], [_ptr]);
|
|
20648
|
-
var _nPtr = getNativePointer(_ptr);
|
|
20649
|
-
return new MaintenanceInfoResult(_nPtr);
|
|
20650
|
-
}
|
|
20651
|
-
static create_arg1(arg1) {
|
|
20652
|
-
var _ptr = Module._malloc(8);
|
|
20653
|
-
Module.ccall("csp_systems_MaintenanceInfoResult_Ctor_voidP", "void", ["number", "void"], [_ptr, arg1]);
|
|
20654
|
-
var _nPtr = getNativePointer(_ptr);
|
|
20655
|
-
return new MaintenanceInfoResult(_nPtr);
|
|
20656
|
-
}
|
|
20657
|
-
static create_resCode_httpResCode(resCode, httpResCode) {
|
|
20658
|
-
var _ptr = Module._malloc(8);
|
|
20659
|
-
Module.ccall("csp_systems_MaintenanceInfoResult_Ctor_EResultCode_uint16_t", "void", ["number", "number", "number"], [_ptr, resCode, httpResCode]);
|
|
20660
|
-
var _nPtr = getNativePointer(_ptr);
|
|
20661
|
-
return new MaintenanceInfoResult(_nPtr);
|
|
20662
|
-
}
|
|
20663
20525
|
/**
|
|
20664
20526
|
* @description Retrieves response data from the Maintenance Window Server
|
|
20665
20527
|
* @return Return all maintenance information available in date order
|
|
@@ -21166,6 +21028,42 @@ export class CSPFoundation {
|
|
|
21166
21028
|
}
|
|
21167
21029
|
Systems.SettingsCollectionResult = SettingsCollectionResult;
|
|
21168
21030
|
})(Systems || (Systems = {}));
|
|
21031
|
+
(function (Systems) {
|
|
21032
|
+
/**
|
|
21033
|
+
* @description A result handler that is used to notify a user of an error while passing a String value.
|
|
21034
|
+
*/
|
|
21035
|
+
class AvatarInfoResult extends Systems.ResultBase {
|
|
21036
|
+
/** @internal */
|
|
21037
|
+
constructor(pointer) {
|
|
21038
|
+
super(pointer);
|
|
21039
|
+
}
|
|
21040
|
+
static fromResultBase(baseInstance) {
|
|
21041
|
+
const nativeClassWrapper = baseInstance;
|
|
21042
|
+
return new Systems.AvatarInfoResult(new NativePointer(nativeClassWrapper.pointer, nativeClassWrapper.ownsPointer));
|
|
21043
|
+
}
|
|
21044
|
+
/**
|
|
21045
|
+
* @description A getter which returns the String passed via the result.
|
|
21046
|
+
*/
|
|
21047
|
+
getAvatarType() {
|
|
21048
|
+
let _result = Module.ccall("csp_systems_AvatarInfoResult_GetAvatarTypeC_AvatarType", "number", ["number"], [this.pointer]);
|
|
21049
|
+
return _result;
|
|
21050
|
+
}
|
|
21051
|
+
getAvatarIdentifier() {
|
|
21052
|
+
var _ret = Module._malloc(8);
|
|
21053
|
+
Module.ccall("csp_systems_AvatarInfoResult_GetAvatarIdentifierC_VariantRC", "void", ["number", "number"], [_ret, this.pointer]);
|
|
21054
|
+
var _nPtr = new Common.Variant(getNativePointer(_ret));
|
|
21055
|
+
Module._free(_ret);
|
|
21056
|
+
return _nPtr;
|
|
21057
|
+
}
|
|
21058
|
+
delete() {
|
|
21059
|
+
if (this.ownsPointer && !this.disposed) {
|
|
21060
|
+
Module.ccall("csp_systems_AvatarInfoResult_Dtor", "void", ["number"], [this.pointer]);
|
|
21061
|
+
this.disposed = true;
|
|
21062
|
+
}
|
|
21063
|
+
}
|
|
21064
|
+
}
|
|
21065
|
+
Systems.AvatarInfoResult = AvatarInfoResult;
|
|
21066
|
+
})(Systems || (Systems = {}));
|
|
21169
21067
|
(function (Systems) {
|
|
21170
21068
|
/**
|
|
21171
21069
|
@ingroup Settings System
|
|
@@ -21523,6 +21421,56 @@ export class CSPFoundation {
|
|
|
21523
21421
|
Module.ccall("csp_systems_SettingsSystem_UpdateAvatarPortraitWithBuffer_void_StringRC_BufferAssetDataSourceRC_NullResultCallback", "void", ["number", "string", "number", "number", "number"], [this.pointer, userId, newAvatarPortrait.pointer, _callbackPtr, 0]);
|
|
21524
21422
|
return _promise;
|
|
21525
21423
|
}
|
|
21424
|
+
/**
|
|
21425
|
+
* @description Sets the avatar type and identifier for a user.
|
|
21426
|
+
* @param inUserId - The ID of the user to set avatar info for.
|
|
21427
|
+
* @param inType - The type of avatar (predefined, Ready Player Me, or custom).
|
|
21428
|
+
* @param inIdentifier - A value used to identify or locate the avatar. Differs depending on the value of InType.
|
|
21429
|
+
* @param callback - Callback to call when task finishes.
|
|
21430
|
+
*/
|
|
21431
|
+
async setAvatarInfo(userId, type, identifier) {
|
|
21432
|
+
var _resolve;
|
|
21433
|
+
var _promise = new Promise((_r) => {
|
|
21434
|
+
_resolve = _r;
|
|
21435
|
+
});
|
|
21436
|
+
var _callbackPtr;
|
|
21437
|
+
var _callback = (_stateObject__, result) => {
|
|
21438
|
+
var _resultPtr = getNativePointer(result);
|
|
21439
|
+
var _resultInstance = new Systems.NullResult(_resultPtr);
|
|
21440
|
+
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
21441
|
+
return;
|
|
21442
|
+
}
|
|
21443
|
+
_resolve(_resultInstance);
|
|
21444
|
+
Module.removeFunction(_callbackPtr);
|
|
21445
|
+
};
|
|
21446
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
21447
|
+
Module.ccall("csp_systems_SettingsSystem_SetAvatarInfo_void_StringRC_AvatarType_VariantRC_NullResultCallback", "void", ["number", "string", "number", "number", "number", "number"], [this.pointer, userId, type, identifier.pointer, _callbackPtr, 0]);
|
|
21448
|
+
return _promise;
|
|
21449
|
+
}
|
|
21450
|
+
/**
|
|
21451
|
+
* @description Retrieves the avatar type and identifier for a user.
|
|
21452
|
+
* @param inUserId - The ID of the user to get avatar info for.
|
|
21453
|
+
* @param callback - Callback to call when task finishes.
|
|
21454
|
+
*/
|
|
21455
|
+
async getAvatarInfo(userId) {
|
|
21456
|
+
var _resolve;
|
|
21457
|
+
var _promise = new Promise((_r) => {
|
|
21458
|
+
_resolve = _r;
|
|
21459
|
+
});
|
|
21460
|
+
var _callbackPtr;
|
|
21461
|
+
var _callback = (_stateObject__, result) => {
|
|
21462
|
+
var _resultPtr = getNativePointer(result);
|
|
21463
|
+
var _resultInstance = new Systems.AvatarInfoResult(_resultPtr);
|
|
21464
|
+
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
21465
|
+
return;
|
|
21466
|
+
}
|
|
21467
|
+
_resolve(_resultInstance);
|
|
21468
|
+
Module.removeFunction(_callbackPtr);
|
|
21469
|
+
};
|
|
21470
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
21471
|
+
Module.ccall("csp_systems_SettingsSystem_GetAvatarInfo_void_StringRC_AvatarInfoResultCallback", "void", ["number", "string", "number", "number"], [this.pointer, userId, _callbackPtr, 0]);
|
|
21472
|
+
return _promise;
|
|
21473
|
+
}
|
|
21526
21474
|
}
|
|
21527
21475
|
Systems.SettingsSystem = SettingsSystem;
|
|
21528
21476
|
})(Systems || (Systems = {}));
|
|
@@ -24157,14 +24105,13 @@ export class CSPFoundation {
|
|
|
24157
24105
|
return _promise;
|
|
24158
24106
|
}
|
|
24159
24107
|
/**
|
|
24160
|
-
* @description
|
|
24161
|
-
* The
|
|
24162
|
-
*
|
|
24163
|
-
* @param
|
|
24164
|
-
* @param loginToken - Token to be used for authenticating
|
|
24108
|
+
* @description Resume a previous session for the associated user ID using a refresh token
|
|
24109
|
+
* The refresh token can be obtained after registering a callback with `SetNewLoginTokenReceivedCallback` and logging in regularly.
|
|
24110
|
+
* @param userId - User ID for the previous session
|
|
24111
|
+
* @param refreshToken - Refresh token to be used for refreshing the authentication token
|
|
24165
24112
|
* @param callback - Callback when asynchronous task finishes
|
|
24166
24113
|
*/
|
|
24167
|
-
async
|
|
24114
|
+
async refreshSession(userId, refreshToken) {
|
|
24168
24115
|
var _resolve;
|
|
24169
24116
|
var _promise = new Promise((_r) => {
|
|
24170
24117
|
_resolve = _r;
|
|
@@ -24180,7 +24127,7 @@ export class CSPFoundation {
|
|
|
24180
24127
|
Module.removeFunction(_callbackPtr);
|
|
24181
24128
|
};
|
|
24182
24129
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
24183
|
-
Module.ccall("
|
|
24130
|
+
Module.ccall("csp_systems_UserSystem_RefreshSession_void_StringRC_StringRC_LoginStateResultCallback", "void", ["number", "string", "string", "number", "number"], [this.pointer, userId, refreshToken, _callbackPtr, 0]);
|
|
24184
24131
|
return _promise;
|
|
24185
24132
|
}
|
|
24186
24133
|
/**
|
|
@@ -24505,7 +24452,7 @@ export class CSPFoundation {
|
|
|
24505
24452
|
return _promise;
|
|
24506
24453
|
}
|
|
24507
24454
|
/**
|
|
24508
|
-
* @description Delete the user.
|
|
24455
|
+
* @description Delete the user. Note that you need permission to be able to delete the user (You can delete the user you are logged in as).
|
|
24509
24456
|
* @param userId - Id of the user that will be deleted
|
|
24510
24457
|
* @param callback - Callback when asynchronous task finishes
|
|
24511
24458
|
*/
|