connected-spaces-platform.web 5.18.0 → 5.20.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 +95 -73
- package/Debug/ConnectedSpacesPlatform_WASM.wasm +0 -0
- package/Debug/ConnectedSpacesPlatform_WASM.wasm.debug.wasm +0 -0
- package/README.md +1 -1
- package/Release/ConnectedSpacesPlatform_WASM.js +1 -1
- package/Release/ConnectedSpacesPlatform_WASM.wasm +0 -0
- package/connectedspacesplatform.d.ts +191 -128
- package/connectedspacesplatform.js +429 -280
- package/connectedspacesplatform.js.map +1 -1
- package/connectedspacesplatform.ts +803 -519
- package/package.json +1 -1
|
@@ -260,11 +260,10 @@ function NumberFactory(nativePointer) {
|
|
|
260
260
|
return nativePointer.pointer;
|
|
261
261
|
}
|
|
262
262
|
ProxyClassFactories["Number"] = NumberFactory;
|
|
263
|
-
function
|
|
263
|
+
function csp_common_ELoginStateFactory(nativePointer) {
|
|
264
264
|
return nativePointer.pointer;
|
|
265
265
|
}
|
|
266
|
-
ProxyClassFactories["
|
|
267
|
-
csp_systems_EThirdPartyPlatformFactory;
|
|
266
|
+
ProxyClassFactories["csp_common_ELoginState"] = csp_common_ELoginStateFactory;
|
|
268
267
|
function csp_web_EResponseCodesFactory(nativePointer) {
|
|
269
268
|
return nativePointer.pointer;
|
|
270
269
|
}
|
|
@@ -274,6 +273,11 @@ function csp_multiplayer_ErrorCodeFactory(nativePointer) {
|
|
|
274
273
|
}
|
|
275
274
|
ProxyClassFactories["csp_multiplayer_ErrorCode"] =
|
|
276
275
|
csp_multiplayer_ErrorCodeFactory;
|
|
276
|
+
function csp_systems_EThirdPartyPlatformFactory(nativePointer) {
|
|
277
|
+
return nativePointer.pointer;
|
|
278
|
+
}
|
|
279
|
+
ProxyClassFactories["csp_systems_EThirdPartyPlatform"] =
|
|
280
|
+
csp_systems_EThirdPartyPlatformFactory;
|
|
277
281
|
function csp_systems_EResultCodeFactory(nativePointer) {
|
|
278
282
|
return nativePointer.pointer;
|
|
279
283
|
}
|
|
@@ -321,6 +325,11 @@ function csp_multiplayer_ConnectionStateFactory(nativePointer) {
|
|
|
321
325
|
}
|
|
322
326
|
ProxyClassFactories["csp_multiplayer_ConnectionState"] =
|
|
323
327
|
csp_multiplayer_ConnectionStateFactory;
|
|
328
|
+
function csp_multiplayer_MultiplayerHubMethodFactory(nativePointer) {
|
|
329
|
+
return nativePointer.pointer;
|
|
330
|
+
}
|
|
331
|
+
ProxyClassFactories["csp_multiplayer_MultiplayerHubMethod"] =
|
|
332
|
+
csp_multiplayer_MultiplayerHubMethodFactory;
|
|
324
333
|
function csp_multiplayer_ReplicatedValueTypeFactory(nativePointer) {
|
|
325
334
|
return nativePointer.pointer;
|
|
326
335
|
}
|
|
@@ -648,15 +657,15 @@ function csp_systems_EPointOfInterestTypeFactory(nativePointer) {
|
|
|
648
657
|
}
|
|
649
658
|
ProxyClassFactories["csp_systems_EPointOfInterestType"] =
|
|
650
659
|
csp_systems_EPointOfInterestTypeFactory;
|
|
651
|
-
function csp_systems_ELoginStateFactory(nativePointer) {
|
|
652
|
-
return nativePointer.pointer;
|
|
653
|
-
}
|
|
654
|
-
ProxyClassFactories["csp_systems_ELoginState"] = csp_systems_ELoginStateFactory;
|
|
655
660
|
function csp_systems_EThirdPartyAuthenticationProvidersFactory(nativePointer) {
|
|
656
661
|
return nativePointer.pointer;
|
|
657
662
|
}
|
|
658
663
|
ProxyClassFactories["csp_systems_EThirdPartyAuthenticationProviders"] =
|
|
659
664
|
csp_systems_EThirdPartyAuthenticationProvidersFactory;
|
|
665
|
+
function csp_ServiceDefinitionFactory(nativePointer) {
|
|
666
|
+
return new ServiceDefinition(nativePointer);
|
|
667
|
+
}
|
|
668
|
+
ProxyClassFactories["csp_ServiceDefinition"] = csp_ServiceDefinitionFactory;
|
|
660
669
|
function csp_EndpointURIsFactory(nativePointer) {
|
|
661
670
|
return new EndpointURIs(nativePointer);
|
|
662
671
|
}
|
|
@@ -670,6 +679,10 @@ function csp_common_CancellationTokenFactory(nativePointer) {
|
|
|
670
679
|
}
|
|
671
680
|
ProxyClassFactories["csp_common_CancellationToken"] =
|
|
672
681
|
csp_common_CancellationTokenFactory;
|
|
682
|
+
function csp_common_LoginStateFactory(nativePointer) {
|
|
683
|
+
return new Common.LoginState(nativePointer);
|
|
684
|
+
}
|
|
685
|
+
ProxyClassFactories["csp_common_LoginState"] = csp_common_LoginStateFactory;
|
|
673
686
|
function csp_common_MimeTypesFactory(nativePointer) {
|
|
674
687
|
return new Common.MimeTypes(nativePointer);
|
|
675
688
|
}
|
|
@@ -700,6 +713,16 @@ function csp_common_Vector4Factory(nativePointer) {
|
|
|
700
713
|
return new Common.Vector4(nativePointer);
|
|
701
714
|
}
|
|
702
715
|
ProxyClassFactories["csp_common_Vector4"] = csp_common_Vector4Factory;
|
|
716
|
+
function csp_common_InvalidInterfaceUseErrorFactory(nativePointer) {
|
|
717
|
+
return new Common.InvalidInterfaceUseError(nativePointer);
|
|
718
|
+
}
|
|
719
|
+
ProxyClassFactories["csp_common_InvalidInterfaceUseError"] =
|
|
720
|
+
csp_common_InvalidInterfaceUseErrorFactory;
|
|
721
|
+
function csp_common_IJSScriptRunnerFactory(nativePointer) {
|
|
722
|
+
return new Common.IJSScriptRunner(nativePointer);
|
|
723
|
+
}
|
|
724
|
+
ProxyClassFactories["csp_common_IJSScriptRunner"] =
|
|
725
|
+
csp_common_IJSScriptRunnerFactory;
|
|
703
726
|
function csp_common_IRealtimeEngineFactory(nativePointer) {
|
|
704
727
|
return new Common.IRealtimeEngine(nativePointer);
|
|
705
728
|
}
|
|
@@ -948,11 +971,6 @@ function csp_systems_FeatureQuotaInfoFactory(nativePointer) {
|
|
|
948
971
|
}
|
|
949
972
|
ProxyClassFactories["csp_systems_FeatureQuotaInfo"] =
|
|
950
973
|
csp_systems_FeatureQuotaInfoFactory;
|
|
951
|
-
function csp_systems_ScriptSystemFactory(nativePointer) {
|
|
952
|
-
return new Systems.ScriptSystem(nativePointer);
|
|
953
|
-
}
|
|
954
|
-
ProxyClassFactories["csp_systems_ScriptSystem"] =
|
|
955
|
-
csp_systems_ScriptSystemFactory;
|
|
956
974
|
function csp_systems_SequenceFactory(nativePointer) {
|
|
957
975
|
return new Systems.Sequence(nativePointer);
|
|
958
976
|
}
|
|
@@ -1017,10 +1035,6 @@ function csp_systems_OlyRotationFactory(nativePointer) {
|
|
|
1017
1035
|
return new Systems.OlyRotation(nativePointer);
|
|
1018
1036
|
}
|
|
1019
1037
|
ProxyClassFactories["csp_systems_OlyRotation"] = csp_systems_OlyRotationFactory;
|
|
1020
|
-
function csp_systems_LoginStateFactory(nativePointer) {
|
|
1021
|
-
return new Systems.LoginState(nativePointer);
|
|
1022
|
-
}
|
|
1023
|
-
ProxyClassFactories["csp_systems_LoginState"] = csp_systems_LoginStateFactory;
|
|
1024
1038
|
function csp_systems_LoginTokenInfoFactory(nativePointer) {
|
|
1025
1039
|
return new Systems.LoginTokenInfo(nativePointer);
|
|
1026
1040
|
}
|
|
@@ -1420,6 +1434,11 @@ function csp_systems_QuotaSystemFactory(nativePointer) {
|
|
|
1420
1434
|
return new Systems.QuotaSystem(nativePointer);
|
|
1421
1435
|
}
|
|
1422
1436
|
ProxyClassFactories["csp_systems_QuotaSystem"] = csp_systems_QuotaSystemFactory;
|
|
1437
|
+
function csp_systems_ScriptSystemFactory(nativePointer) {
|
|
1438
|
+
return new Systems.ScriptSystem(nativePointer);
|
|
1439
|
+
}
|
|
1440
|
+
ProxyClassFactories["csp_systems_ScriptSystem"] =
|
|
1441
|
+
csp_systems_ScriptSystemFactory;
|
|
1423
1442
|
function csp_systems_SequenceResultFactory(nativePointer) {
|
|
1424
1443
|
return new Systems.SequenceResult(nativePointer);
|
|
1425
1444
|
}
|
|
@@ -1838,20 +1857,21 @@ function csp_common_Map_String_csp_common_Array_StringFactory(nativePointer) {
|
|
|
1838
1857
|
}
|
|
1839
1858
|
ProxyClassFactories["csp_common_Map_String_csp_common_Array_String"] =
|
|
1840
1859
|
csp_common_Map_String_csp_common_Array_StringFactory;
|
|
1841
|
-
export var
|
|
1842
|
-
(function (
|
|
1860
|
+
export var Common;
|
|
1861
|
+
(function (Common) {
|
|
1843
1862
|
/**
|
|
1844
|
-
* @description Enum
|
|
1845
|
-
* NONE indicates that the asset will work on any platform.
|
|
1846
|
-
* Any other value indicates it will only work with this platform.
|
|
1863
|
+
* @description Enum which represents possible login states of a CSP client.
|
|
1847
1864
|
*/
|
|
1848
|
-
let
|
|
1849
|
-
(function (
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1865
|
+
let ELoginState;
|
|
1866
|
+
(function (ELoginState) {
|
|
1867
|
+
ELoginState[ELoginState["LoginThirdPartyProviderDetailsRequested"] = 0] = "LoginThirdPartyProviderDetailsRequested";
|
|
1868
|
+
ELoginState[ELoginState["LoginRequested"] = 1] = "LoginRequested";
|
|
1869
|
+
ELoginState[ELoginState["LoggedIn"] = 2] = "LoggedIn";
|
|
1870
|
+
ELoginState[ELoginState["LogoutRequested"] = 3] = "LogoutRequested";
|
|
1871
|
+
ELoginState[ELoginState["LoggedOut"] = 4] = "LoggedOut";
|
|
1872
|
+
ELoginState[ELoginState["Error"] = 5] = "Error";
|
|
1873
|
+
})(ELoginState = Common.ELoginState || (Common.ELoginState = {}));
|
|
1874
|
+
})(Common || (Common = {}));
|
|
1855
1875
|
export var Web;
|
|
1856
1876
|
(function (Web) {
|
|
1857
1877
|
/**
|
|
@@ -1937,6 +1957,19 @@ export var Multiplayer;
|
|
|
1937
1957
|
ErrorCode[ErrorCode["SpaceUserLimitExceeded"] = 4] = "SpaceUserLimitExceeded";
|
|
1938
1958
|
})(ErrorCode = Multiplayer.ErrorCode || (Multiplayer.ErrorCode = {}));
|
|
1939
1959
|
})(Multiplayer || (Multiplayer = {}));
|
|
1960
|
+
export var Systems;
|
|
1961
|
+
(function (Systems) {
|
|
1962
|
+
/**
|
|
1963
|
+
* @description Indicates special handling for any thirdparty platform
|
|
1964
|
+
* NOTE: We may remove this soon, as it's deceptive implying these are the only platforms we support.
|
|
1965
|
+
*/
|
|
1966
|
+
let EThirdPartyPlatform;
|
|
1967
|
+
(function (EThirdPartyPlatform) {
|
|
1968
|
+
EThirdPartyPlatform[EThirdPartyPlatform["NONE"] = 0] = "NONE";
|
|
1969
|
+
EThirdPartyPlatform[EThirdPartyPlatform["UNREAL"] = 1] = "UNREAL";
|
|
1970
|
+
EThirdPartyPlatform[EThirdPartyPlatform["UNITY"] = 2] = "UNITY";
|
|
1971
|
+
})(EThirdPartyPlatform = Systems.EThirdPartyPlatform || (Systems.EThirdPartyPlatform = {}));
|
|
1972
|
+
})(Systems || (Systems = {}));
|
|
1940
1973
|
(function (Systems) {
|
|
1941
1974
|
/**
|
|
1942
1975
|
* @description Code to indicate the result of a request.
|
|
@@ -1992,7 +2025,6 @@ export var Multiplayer;
|
|
|
1992
2025
|
ERequestFailureReason[ERequestFailureReason["InvalidSequenceKey"] = 35] = "InvalidSequenceKey";
|
|
1993
2026
|
})(ERequestFailureReason = Systems.ERequestFailureReason || (Systems.ERequestFailureReason = {}));
|
|
1994
2027
|
})(Systems || (Systems = {}));
|
|
1995
|
-
export var Common;
|
|
1996
2028
|
(function (Common) {
|
|
1997
2029
|
/**
|
|
1998
2030
|
* @description enum for representing a type stored by a csp::common::Variant.
|
|
@@ -2121,6 +2153,28 @@ export var Common;
|
|
|
2121
2153
|
ConnectionState[ConnectionState["Disconnected"] = 3] = "Disconnected";
|
|
2122
2154
|
})(ConnectionState = Multiplayer.ConnectionState || (Multiplayer.ConnectionState = {}));
|
|
2123
2155
|
})(Multiplayer || (Multiplayer = {}));
|
|
2156
|
+
(function (Multiplayer) {
|
|
2157
|
+
/**
|
|
2158
|
+
* @description Enum used to specify the SignalR method to invoke in the multiplayer connection.
|
|
2159
|
+
*/
|
|
2160
|
+
let MultiplayerHubMethod;
|
|
2161
|
+
(function (MultiplayerHubMethod) {
|
|
2162
|
+
MultiplayerHubMethod[MultiplayerHubMethod["DELETE_OBJECTS"] = 0] = "DELETE_OBJECTS";
|
|
2163
|
+
MultiplayerHubMethod[MultiplayerHubMethod["GENERATE_OBJECT_IDS"] = 1] = "GENERATE_OBJECT_IDS";
|
|
2164
|
+
MultiplayerHubMethod[MultiplayerHubMethod["GET_CLIENT_ID"] = 2] = "GET_CLIENT_ID";
|
|
2165
|
+
MultiplayerHubMethod[MultiplayerHubMethod["PAGE_SCOPED_OBJECTS"] = 3] = "PAGE_SCOPED_OBJECTS";
|
|
2166
|
+
MultiplayerHubMethod[MultiplayerHubMethod["RESET_SCOPES"] = 4] = "RESET_SCOPES";
|
|
2167
|
+
MultiplayerHubMethod[MultiplayerHubMethod["SEND_EVENT_MESSAGE"] = 5] = "SEND_EVENT_MESSAGE";
|
|
2168
|
+
MultiplayerHubMethod[MultiplayerHubMethod["SEND_OBJECT_MESSAGE"] = 6] = "SEND_OBJECT_MESSAGE";
|
|
2169
|
+
MultiplayerHubMethod[MultiplayerHubMethod["SEND_OBJECT_NOT_FOUND"] = 7] = "SEND_OBJECT_NOT_FOUND";
|
|
2170
|
+
MultiplayerHubMethod[MultiplayerHubMethod["SEND_OBJECT_PATCH"] = 8] = "SEND_OBJECT_PATCH";
|
|
2171
|
+
MultiplayerHubMethod[MultiplayerHubMethod["SEND_OBJECT_PATCHES"] = 9] = "SEND_OBJECT_PATCHES";
|
|
2172
|
+
MultiplayerHubMethod[MultiplayerHubMethod["SET_ALLOW_SELF_MESSAGING"] = 10] = "SET_ALLOW_SELF_MESSAGING";
|
|
2173
|
+
MultiplayerHubMethod[MultiplayerHubMethod["SET_SCOPES"] = 11] = "SET_SCOPES";
|
|
2174
|
+
MultiplayerHubMethod[MultiplayerHubMethod["START_LISTENING"] = 12] = "START_LISTENING";
|
|
2175
|
+
MultiplayerHubMethod[MultiplayerHubMethod["STOP_LISTENING"] = 13] = "STOP_LISTENING";
|
|
2176
|
+
})(MultiplayerHubMethod = Multiplayer.MultiplayerHubMethod || (Multiplayer.MultiplayerHubMethod = {}));
|
|
2177
|
+
})(Multiplayer || (Multiplayer = {}));
|
|
2124
2178
|
(function (Multiplayer) {
|
|
2125
2179
|
/**
|
|
2126
2180
|
* @description Enum representing the type of a replicated value.
|
|
@@ -3088,17 +3142,6 @@ export var Common;
|
|
|
3088
3142
|
EPointOfInterestType[EPointOfInterestType["SPACE"] = 1] = "SPACE";
|
|
3089
3143
|
})(EPointOfInterestType = Systems.EPointOfInterestType || (Systems.EPointOfInterestType = {}));
|
|
3090
3144
|
})(Systems || (Systems = {}));
|
|
3091
|
-
(function (Systems) {
|
|
3092
|
-
let ELoginState;
|
|
3093
|
-
(function (ELoginState) {
|
|
3094
|
-
ELoginState[ELoginState["LoginThirdPartyProviderDetailsRequested"] = 0] = "LoginThirdPartyProviderDetailsRequested";
|
|
3095
|
-
ELoginState[ELoginState["LoginRequested"] = 1] = "LoginRequested";
|
|
3096
|
-
ELoginState[ELoginState["LoggedIn"] = 2] = "LoggedIn";
|
|
3097
|
-
ELoginState[ELoginState["LogoutRequested"] = 3] = "LogoutRequested";
|
|
3098
|
-
ELoginState[ELoginState["LoggedOut"] = 4] = "LoggedOut";
|
|
3099
|
-
ELoginState[ELoginState["Error"] = 5] = "Error";
|
|
3100
|
-
})(ELoginState = Systems.ELoginState || (Systems.ELoginState = {}));
|
|
3101
|
-
})(Systems || (Systems = {}));
|
|
3102
3145
|
(function (Systems) {
|
|
3103
3146
|
/**
|
|
3104
3147
|
* @description FDN supported Authentication Providers, the ones that can be used are the ones above Num
|
|
@@ -3114,6 +3157,59 @@ export var Common;
|
|
|
3114
3157
|
EThirdPartyAuthenticationProviders[EThirdPartyAuthenticationProviders["Invalid"] = 3] = "Invalid";
|
|
3115
3158
|
})(EThirdPartyAuthenticationProviders = Systems.EThirdPartyAuthenticationProviders || (Systems.EThirdPartyAuthenticationProviders = {}));
|
|
3116
3159
|
})(Systems || (Systems = {}));
|
|
3160
|
+
/**
|
|
3161
|
+
* @description Represents definition for identifying and versioning an external service endpoint..
|
|
3162
|
+
*/
|
|
3163
|
+
export class ServiceDefinition extends NativeClassWrapper {
|
|
3164
|
+
/** @internal */
|
|
3165
|
+
constructor(pointer) {
|
|
3166
|
+
super(pointer);
|
|
3167
|
+
}
|
|
3168
|
+
static create() {
|
|
3169
|
+
var _ptr = Module._malloc(8);
|
|
3170
|
+
Module.ccall("csp_ServiceDefinition_Ctor", "void", ["number"], [_ptr]);
|
|
3171
|
+
var _nPtr = getNativePointer(_ptr);
|
|
3172
|
+
return new ServiceDefinition(_nPtr);
|
|
3173
|
+
}
|
|
3174
|
+
static create_uRI_version(uRI, version) {
|
|
3175
|
+
var _ptr = Module._malloc(8);
|
|
3176
|
+
Module.ccall("csp_ServiceDefinition_Ctor_StringRC_uint32_tC", "void", ["number", "string", "number"], [_ptr, uRI, version]);
|
|
3177
|
+
var _nPtr = getNativePointer(_ptr);
|
|
3178
|
+
return new ServiceDefinition(_nPtr);
|
|
3179
|
+
}
|
|
3180
|
+
/**
|
|
3181
|
+
* @description Gets the URI for the service endpoint.
|
|
3182
|
+
* @return URI of the service endpoint.
|
|
3183
|
+
*/
|
|
3184
|
+
getURI() {
|
|
3185
|
+
let _result = Module.ccall("csp_ServiceDefinition_GetURIC_String", "number", ["number"], [this.pointer]);
|
|
3186
|
+
const _resultString = Module.UTF8ToString(_result);
|
|
3187
|
+
free(_result);
|
|
3188
|
+
_result = _resultString;
|
|
3189
|
+
return _result;
|
|
3190
|
+
}
|
|
3191
|
+
/**
|
|
3192
|
+
* @description Sets the URI for the service endpoint.
|
|
3193
|
+
* @param inURI - URI for service endpoint.
|
|
3194
|
+
*/
|
|
3195
|
+
setURI(uRI) {
|
|
3196
|
+
Module.ccall("csp_ServiceDefinition_SetURI_void_StringRC", "void", ["number", "string"], [this.pointer, uRI]);
|
|
3197
|
+
}
|
|
3198
|
+
/**
|
|
3199
|
+
* @description Gets the current version of the service endpoint.
|
|
3200
|
+
* @return Representing the current version of the service endpoint.
|
|
3201
|
+
*/
|
|
3202
|
+
getVersion() {
|
|
3203
|
+
let _result = Module.ccall("csp_ServiceDefinition_GetVersionC_int32_t", "number", ["number"], [this.pointer]);
|
|
3204
|
+
return _result;
|
|
3205
|
+
}
|
|
3206
|
+
delete() {
|
|
3207
|
+
if (this.ownsPointer && !this.disposed) {
|
|
3208
|
+
Module.ccall("csp_ServiceDefinition_Dtor", "void", ["number"], [this.pointer]);
|
|
3209
|
+
this.disposed = true;
|
|
3210
|
+
}
|
|
3211
|
+
}
|
|
3212
|
+
}
|
|
3117
3213
|
/**
|
|
3118
3214
|
* @description Holds supported endpoint uris used by Foundation.
|
|
3119
3215
|
*/
|
|
@@ -3134,54 +3230,68 @@ export class EndpointURIs extends NativeClassWrapper {
|
|
|
3134
3230
|
this.disposed = true;
|
|
3135
3231
|
}
|
|
3136
3232
|
}
|
|
3137
|
-
get
|
|
3138
|
-
|
|
3139
|
-
|
|
3233
|
+
get userService() {
|
|
3234
|
+
const _ptr = Module._malloc(8);
|
|
3235
|
+
Module.ccall("csp_EndpointURIs__Get_UserService", "void", ["number", "number"], [_ptr, this.pointer]);
|
|
3236
|
+
const _nPtr = getNativePointer(_ptr);
|
|
3237
|
+
return new ServiceDefinition(_nPtr);
|
|
3140
3238
|
}
|
|
3141
|
-
set
|
|
3142
|
-
Module.ccall("
|
|
3239
|
+
set userService(value) {
|
|
3240
|
+
Module.ccall("csp_EndpointURIs__Set_UserService", "void", ["number", "number"], [this.pointer, value.pointer]);
|
|
3143
3241
|
}
|
|
3144
|
-
get
|
|
3145
|
-
|
|
3146
|
-
|
|
3242
|
+
get prototypeService() {
|
|
3243
|
+
const _ptr = Module._malloc(8);
|
|
3244
|
+
Module.ccall("csp_EndpointURIs__Get_PrototypeService", "void", ["number", "number"], [_ptr, this.pointer]);
|
|
3245
|
+
const _nPtr = getNativePointer(_ptr);
|
|
3246
|
+
return new ServiceDefinition(_nPtr);
|
|
3147
3247
|
}
|
|
3148
|
-
set
|
|
3149
|
-
Module.ccall("
|
|
3248
|
+
set prototypeService(value) {
|
|
3249
|
+
Module.ccall("csp_EndpointURIs__Set_PrototypeService", "void", ["number", "number"], [this.pointer, value.pointer]);
|
|
3150
3250
|
}
|
|
3151
|
-
get
|
|
3152
|
-
|
|
3153
|
-
|
|
3251
|
+
get spatialDataService() {
|
|
3252
|
+
const _ptr = Module._malloc(8);
|
|
3253
|
+
Module.ccall("csp_EndpointURIs__Get_SpatialDataService", "void", ["number", "number"], [_ptr, this.pointer]);
|
|
3254
|
+
const _nPtr = getNativePointer(_ptr);
|
|
3255
|
+
return new ServiceDefinition(_nPtr);
|
|
3154
3256
|
}
|
|
3155
|
-
set
|
|
3156
|
-
Module.ccall("
|
|
3257
|
+
set spatialDataService(value) {
|
|
3258
|
+
Module.ccall("csp_EndpointURIs__Set_SpatialDataService", "void", ["number", "number"], [this.pointer, value.pointer]);
|
|
3157
3259
|
}
|
|
3158
|
-
get
|
|
3159
|
-
|
|
3160
|
-
|
|
3260
|
+
get multiplayerService() {
|
|
3261
|
+
const _ptr = Module._malloc(8);
|
|
3262
|
+
Module.ccall("csp_EndpointURIs__Get_MultiplayerService", "void", ["number", "number"], [_ptr, this.pointer]);
|
|
3263
|
+
const _nPtr = getNativePointer(_ptr);
|
|
3264
|
+
return new ServiceDefinition(_nPtr);
|
|
3161
3265
|
}
|
|
3162
|
-
set
|
|
3163
|
-
Module.ccall("
|
|
3266
|
+
set multiplayerService(value) {
|
|
3267
|
+
Module.ccall("csp_EndpointURIs__Set_MultiplayerService", "void", ["number", "number"], [this.pointer, value.pointer]);
|
|
3164
3268
|
}
|
|
3165
|
-
get
|
|
3166
|
-
|
|
3167
|
-
|
|
3269
|
+
get aggregationService() {
|
|
3270
|
+
const _ptr = Module._malloc(8);
|
|
3271
|
+
Module.ccall("csp_EndpointURIs__Get_AggregationService", "void", ["number", "number"], [_ptr, this.pointer]);
|
|
3272
|
+
const _nPtr = getNativePointer(_ptr);
|
|
3273
|
+
return new ServiceDefinition(_nPtr);
|
|
3168
3274
|
}
|
|
3169
|
-
set
|
|
3170
|
-
Module.ccall("
|
|
3275
|
+
set aggregationService(value) {
|
|
3276
|
+
Module.ccall("csp_EndpointURIs__Set_AggregationService", "void", ["number", "number"], [this.pointer, value.pointer]);
|
|
3171
3277
|
}
|
|
3172
|
-
get
|
|
3173
|
-
|
|
3174
|
-
|
|
3278
|
+
get trackingService() {
|
|
3279
|
+
const _ptr = Module._malloc(8);
|
|
3280
|
+
Module.ccall("csp_EndpointURIs__Get_TrackingService", "void", ["number", "number"], [_ptr, this.pointer]);
|
|
3281
|
+
const _nPtr = getNativePointer(_ptr);
|
|
3282
|
+
return new ServiceDefinition(_nPtr);
|
|
3175
3283
|
}
|
|
3176
|
-
set
|
|
3177
|
-
Module.ccall("
|
|
3284
|
+
set trackingService(value) {
|
|
3285
|
+
Module.ccall("csp_EndpointURIs__Set_TrackingService", "void", ["number", "number"], [this.pointer, value.pointer]);
|
|
3178
3286
|
}
|
|
3179
|
-
get
|
|
3180
|
-
|
|
3181
|
-
|
|
3287
|
+
get maintenanceWindow() {
|
|
3288
|
+
const _ptr = Module._malloc(8);
|
|
3289
|
+
Module.ccall("csp_EndpointURIs__Get_MaintenanceWindow", "void", ["number", "number"], [_ptr, this.pointer]);
|
|
3290
|
+
const _nPtr = getNativePointer(_ptr);
|
|
3291
|
+
return new ServiceDefinition(_nPtr);
|
|
3182
3292
|
}
|
|
3183
|
-
set
|
|
3184
|
-
Module.ccall("
|
|
3293
|
+
set maintenanceWindow(value) {
|
|
3294
|
+
Module.ccall("csp_EndpointURIs__Set_MaintenanceWindow", "void", ["number", "number"], [this.pointer, value.pointer]);
|
|
3185
3295
|
}
|
|
3186
3296
|
}
|
|
3187
3297
|
/**
|
|
@@ -3455,6 +3565,80 @@ export class CSPFoundation {
|
|
|
3455
3565
|
}
|
|
3456
3566
|
Common.CancellationToken = CancellationToken;
|
|
3457
3567
|
})(Common || (Common = {}));
|
|
3568
|
+
(function (Common) {
|
|
3569
|
+
/**
|
|
3570
|
+
* @description Data structure representing the user login state, including detection of access token expiry
|
|
3571
|
+
*/
|
|
3572
|
+
class LoginState extends NativeClassWrapper {
|
|
3573
|
+
/** @internal */
|
|
3574
|
+
constructor(pointer) {
|
|
3575
|
+
super(pointer);
|
|
3576
|
+
}
|
|
3577
|
+
static create() {
|
|
3578
|
+
var _ptr = Module._malloc(8);
|
|
3579
|
+
Module.ccall("csp_common_LoginState_Ctor", "void", ["number"], [_ptr]);
|
|
3580
|
+
var _nPtr = getNativePointer(_ptr);
|
|
3581
|
+
return new LoginState(_nPtr);
|
|
3582
|
+
}
|
|
3583
|
+
delete() {
|
|
3584
|
+
if (this.ownsPointer && !this.disposed) {
|
|
3585
|
+
Module.ccall("csp_common_LoginState_Dtor", "void", ["number"], [this.pointer]);
|
|
3586
|
+
this.disposed = true;
|
|
3587
|
+
}
|
|
3588
|
+
}
|
|
3589
|
+
static create_otherState(otherState) {
|
|
3590
|
+
var _ptr = Module._malloc(8);
|
|
3591
|
+
Module.ccall("csp_common_LoginState_Ctor_LoginStateRC", "void", ["number", "number"], [_ptr, otherState.pointer]);
|
|
3592
|
+
var _nPtr = getNativePointer(_ptr);
|
|
3593
|
+
return new LoginState(_nPtr);
|
|
3594
|
+
}
|
|
3595
|
+
// operator=
|
|
3596
|
+
/**
|
|
3597
|
+
* @description Check if the access token for the login is expired.
|
|
3598
|
+
* @return Is the token expired.
|
|
3599
|
+
*/
|
|
3600
|
+
refreshNeeded() {
|
|
3601
|
+
let _result = Module.ccall("csp_common_LoginState_RefreshNeededC_bool", "boolean", ["number"], [this.pointer]);
|
|
3602
|
+
return _result;
|
|
3603
|
+
}
|
|
3604
|
+
get state() {
|
|
3605
|
+
let _result = Module.ccall("csp_common_LoginState__Get_State", "number", ["number"], [this.pointer]);
|
|
3606
|
+
return _result;
|
|
3607
|
+
}
|
|
3608
|
+
set state(value) {
|
|
3609
|
+
Module.ccall("csp_common_LoginState__Set_State", "void", ["number", "number"], [this.pointer, value]);
|
|
3610
|
+
}
|
|
3611
|
+
get accessToken() {
|
|
3612
|
+
let _result = Module.ccall("csp_common_LoginState__Get_AccessToken", "string", ["number"], [this.pointer]);
|
|
3613
|
+
return _result;
|
|
3614
|
+
}
|
|
3615
|
+
set accessToken(value) {
|
|
3616
|
+
Module.ccall("csp_common_LoginState__Set_AccessToken", "void", ["number", "string"], [this.pointer, value]);
|
|
3617
|
+
}
|
|
3618
|
+
get refreshToken() {
|
|
3619
|
+
let _result = Module.ccall("csp_common_LoginState__Get_RefreshToken", "string", ["number"], [this.pointer]);
|
|
3620
|
+
return _result;
|
|
3621
|
+
}
|
|
3622
|
+
set refreshToken(value) {
|
|
3623
|
+
Module.ccall("csp_common_LoginState__Set_RefreshToken", "void", ["number", "string"], [this.pointer, value]);
|
|
3624
|
+
}
|
|
3625
|
+
get userId() {
|
|
3626
|
+
let _result = Module.ccall("csp_common_LoginState__Get_UserId", "string", ["number"], [this.pointer]);
|
|
3627
|
+
return _result;
|
|
3628
|
+
}
|
|
3629
|
+
set userId(value) {
|
|
3630
|
+
Module.ccall("csp_common_LoginState__Set_UserId", "void", ["number", "string"], [this.pointer, value]);
|
|
3631
|
+
}
|
|
3632
|
+
get deviceId() {
|
|
3633
|
+
let _result = Module.ccall("csp_common_LoginState__Get_DeviceId", "string", ["number"], [this.pointer]);
|
|
3634
|
+
return _result;
|
|
3635
|
+
}
|
|
3636
|
+
set deviceId(value) {
|
|
3637
|
+
Module.ccall("csp_common_LoginState__Set_DeviceId", "void", ["number", "string"], [this.pointer, value]);
|
|
3638
|
+
}
|
|
3639
|
+
}
|
|
3640
|
+
Common.LoginState = LoginState;
|
|
3641
|
+
})(Common || (Common = {}));
|
|
3458
3642
|
(function (Common) {
|
|
3459
3643
|
/**
|
|
3460
3644
|
* @description Holds all valid mime types.
|
|
@@ -9370,6 +9554,58 @@ export class CSPFoundation {
|
|
|
9370
9554
|
}
|
|
9371
9555
|
Common.Vector4 = Vector4;
|
|
9372
9556
|
})(Common || (Common = {}));
|
|
9557
|
+
(function (Common) {
|
|
9558
|
+
class InvalidInterfaceUseError extends NativeClassWrapper {
|
|
9559
|
+
/** @internal */
|
|
9560
|
+
constructor(pointer) {
|
|
9561
|
+
super(pointer);
|
|
9562
|
+
}
|
|
9563
|
+
static create_msg(msg) {
|
|
9564
|
+
var _ptr = Module._malloc(8);
|
|
9565
|
+
Module.ccall("csp_common_InvalidInterfaceUseError_Ctor_StringRC", "void", ["number", "string"], [_ptr, msg]);
|
|
9566
|
+
var _nPtr = getNativePointer(_ptr);
|
|
9567
|
+
return new InvalidInterfaceUseError(_nPtr);
|
|
9568
|
+
}
|
|
9569
|
+
delete() {
|
|
9570
|
+
if (this.ownsPointer && !this.disposed) {
|
|
9571
|
+
Module.ccall("csp_common_InvalidInterfaceUseError_Dtor", "void", ["number"], [this.pointer]);
|
|
9572
|
+
this.disposed = true;
|
|
9573
|
+
}
|
|
9574
|
+
}
|
|
9575
|
+
get msg() {
|
|
9576
|
+
let _result = Module.ccall("csp_common_InvalidInterfaceUseError__Get_msg", "string", ["number"], [this.pointer]);
|
|
9577
|
+
return _result;
|
|
9578
|
+
}
|
|
9579
|
+
set msg(value) {
|
|
9580
|
+
Module.ccall("csp_common_InvalidInterfaceUseError__Set_msg", "void", ["number", "string"], [this.pointer, value]);
|
|
9581
|
+
}
|
|
9582
|
+
}
|
|
9583
|
+
Common.InvalidInterfaceUseError = InvalidInterfaceUseError;
|
|
9584
|
+
})(Common || (Common = {}));
|
|
9585
|
+
(function (Common) {
|
|
9586
|
+
class IJSScriptRunner extends NativeClassWrapper {
|
|
9587
|
+
/** @internal */
|
|
9588
|
+
constructor(pointer) {
|
|
9589
|
+
super(pointer);
|
|
9590
|
+
}
|
|
9591
|
+
/**
|
|
9592
|
+
* @description Virtual destructor.
|
|
9593
|
+
*/
|
|
9594
|
+
delete() {
|
|
9595
|
+
if (this.ownsPointer && !this.disposed) {
|
|
9596
|
+
Module.ccall("csp_common_IJSScriptRunner_Dtor", "void", ["number"], [this.pointer]);
|
|
9597
|
+
this.disposed = true;
|
|
9598
|
+
}
|
|
9599
|
+
}
|
|
9600
|
+
runScript(contextId, scriptText) {
|
|
9601
|
+
assert(contextId >= Limits.INT64_MIN);
|
|
9602
|
+
assert(contextId <= Limits.INT64_MAX);
|
|
9603
|
+
let _result = Module.ccall("csp_common_IJSScriptRunner_RunScript_bool_int64_t_StringRC", "boolean", ["number", "bigint", "string"], [this.pointer, contextId, scriptText]);
|
|
9604
|
+
return _result;
|
|
9605
|
+
}
|
|
9606
|
+
}
|
|
9607
|
+
Common.IJSScriptRunner = IJSScriptRunner;
|
|
9608
|
+
})(Common || (Common = {}));
|
|
9373
9609
|
(function (Common) {
|
|
9374
9610
|
class IRealtimeEngine extends NativeClassWrapper {
|
|
9375
9611
|
/** @internal */
|
|
@@ -10764,9 +11000,9 @@ export class CSPFoundation {
|
|
|
10764
11000
|
/**
|
|
10765
11001
|
* @description Creates a SpaceEntity instance using the space entity system provided.
|
|
10766
11002
|
*/
|
|
10767
|
-
static
|
|
11003
|
+
static create_entitySystem_scriptRunner_logSystem(entitySystem, scriptRunner, logSystem) {
|
|
10768
11004
|
var _ptr = Module._malloc(8);
|
|
10769
|
-
Module.ccall("
|
|
11005
|
+
Module.ccall("csp_multiplayer_SpaceEntity_Ctor_SpaceEntitySystemP_IJSScriptRunnerR_LogSystemP", "void", ["number", "number", "number", "number"], [_ptr, entitySystem.pointer, scriptRunner.pointer, logSystem.pointer]);
|
|
10770
11006
|
var _nPtr = getNativePointer(_ptr);
|
|
10771
11007
|
return new SpaceEntity(_nPtr);
|
|
10772
11008
|
}
|
|
@@ -11280,7 +11516,7 @@ export class CSPFoundation {
|
|
|
11280
11516
|
* @param callback - EntityCreatedCallback A callback that executes when the creation is complete,
|
|
11281
11517
|
* which contains a pointer to the new SpaceEntity so that it can be used on the local client.
|
|
11282
11518
|
*/
|
|
11283
|
-
async createAvatar(name, spaceTransform, isVisible, state, avatarId, avatarPlayMode) {
|
|
11519
|
+
async createAvatar(name, loginState, spaceTransform, isVisible, state, avatarId, avatarPlayMode) {
|
|
11284
11520
|
var _resolve;
|
|
11285
11521
|
var _promise = new Promise((_r) => {
|
|
11286
11522
|
_resolve = _r;
|
|
@@ -11293,10 +11529,11 @@ export class CSPFoundation {
|
|
|
11293
11529
|
Module.removeFunction(_callbackPtr);
|
|
11294
11530
|
};
|
|
11295
11531
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
11296
|
-
Module.ccall("
|
|
11532
|
+
Module.ccall("csp_multiplayer_SpaceEntitySystem_CreateAvatar_void_StringRC_LoginStateRC_SpaceTransformRC_bool_AvatarState_StringRC_AvatarPlayMode_EntityCreatedCallback", "void", [
|
|
11297
11533
|
"number",
|
|
11298
11534
|
"string",
|
|
11299
11535
|
"number",
|
|
11536
|
+
"number",
|
|
11300
11537
|
"boolean",
|
|
11301
11538
|
"number",
|
|
11302
11539
|
"string",
|
|
@@ -11306,6 +11543,7 @@ export class CSPFoundation {
|
|
|
11306
11543
|
], [
|
|
11307
11544
|
this.pointer,
|
|
11308
11545
|
name,
|
|
11546
|
+
loginState.pointer,
|
|
11309
11547
|
spaceTransform.pointer,
|
|
11310
11548
|
isVisible,
|
|
11311
11549
|
state,
|
|
@@ -14384,54 +14622,6 @@ export class CSPFoundation {
|
|
|
14384
14622
|
}
|
|
14385
14623
|
Systems.FeatureQuotaInfo = FeatureQuotaInfo;
|
|
14386
14624
|
})(Systems || (Systems = {}));
|
|
14387
|
-
(function (Systems) {
|
|
14388
|
-
/**
|
|
14389
|
-
* @description A JavaScript based scripting system that can be used to create advanced behaviours and interactions between entities in spaces.
|
|
14390
|
-
*/
|
|
14391
|
-
class ScriptSystem extends NativeClassWrapper {
|
|
14392
|
-
/** @internal */
|
|
14393
|
-
constructor(pointer) {
|
|
14394
|
-
super(pointer);
|
|
14395
|
-
}
|
|
14396
|
-
/**
|
|
14397
|
-
* @description Starts up the JavaScript runtime context.
|
|
14398
|
-
*/
|
|
14399
|
-
initialise() {
|
|
14400
|
-
Module.ccall("csp_systems_ScriptSystem_Initialise_void", "void", ["number"], [this.pointer]);
|
|
14401
|
-
}
|
|
14402
|
-
/**
|
|
14403
|
-
* @description Shuts down and deletes the JavaScript runtime context.
|
|
14404
|
-
*/
|
|
14405
|
-
shutdown() {
|
|
14406
|
-
Module.ccall("csp_systems_ScriptSystem_Shutdown_void", "void", ["number"], [this.pointer]);
|
|
14407
|
-
}
|
|
14408
|
-
/**
|
|
14409
|
-
* @description Attempts to execute a script in a given context.
|
|
14410
|
-
* @param contextId - The context in which to run the script. If the provided context does not exist, the script run will fail.
|
|
14411
|
-
* @param scriptText - The script to execute.
|
|
14412
|
-
* @return A boolean representing success running the script.
|
|
14413
|
-
*/
|
|
14414
|
-
runScript(contextId, scriptText) {
|
|
14415
|
-
assert(contextId >= Limits.INT64_MIN);
|
|
14416
|
-
assert(contextId <= Limits.INT64_MAX);
|
|
14417
|
-
let _result = Module.ccall("csp_systems_ScriptSystem_RunScript_bool_int64_t_StringRC", "boolean", ["number", "bigint", "string"], [this.pointer, contextId, scriptText]);
|
|
14418
|
-
return _result;
|
|
14419
|
-
}
|
|
14420
|
-
/**
|
|
14421
|
-
* @description Attempts to execute a script from a given file path in the given context.
|
|
14422
|
-
* @param contextId - The context in which to run the script. If the provided context does not exist, the script run will fail.
|
|
14423
|
-
* @param scriptFilePath - The file path of the script to execute.
|
|
14424
|
-
* @return A boolean representing success running the script.
|
|
14425
|
-
*/
|
|
14426
|
-
runScriptFile(contextId, scriptFilePath) {
|
|
14427
|
-
assert(contextId >= Limits.INT64_MIN);
|
|
14428
|
-
assert(contextId <= Limits.INT64_MAX);
|
|
14429
|
-
let _result = Module.ccall("csp_systems_ScriptSystem_RunScriptFile_bool_int64_t_StringRC", "boolean", ["number", "bigint", "string"], [this.pointer, contextId, scriptFilePath]);
|
|
14430
|
-
return _result;
|
|
14431
|
-
}
|
|
14432
|
-
}
|
|
14433
|
-
Systems.ScriptSystem = ScriptSystem;
|
|
14434
|
-
})(Systems || (Systems = {}));
|
|
14435
14625
|
(function (Systems) {
|
|
14436
14626
|
/**
|
|
14437
14627
|
@ingroup Sequence System
|
|
@@ -15350,80 +15540,6 @@ export class CSPFoundation {
|
|
|
15350
15540
|
}
|
|
15351
15541
|
Systems.OlyRotation = OlyRotation;
|
|
15352
15542
|
})(Systems || (Systems = {}));
|
|
15353
|
-
(function (Systems) {
|
|
15354
|
-
/**
|
|
15355
|
-
* @description Data structure representing the user login state, including detection of access token expiry
|
|
15356
|
-
*/
|
|
15357
|
-
class LoginState extends NativeClassWrapper {
|
|
15358
|
-
/** @internal */
|
|
15359
|
-
constructor(pointer) {
|
|
15360
|
-
super(pointer);
|
|
15361
|
-
}
|
|
15362
|
-
static create() {
|
|
15363
|
-
var _ptr = Module._malloc(8);
|
|
15364
|
-
Module.ccall("csp_systems_LoginState_Ctor", "void", ["number"], [_ptr]);
|
|
15365
|
-
var _nPtr = getNativePointer(_ptr);
|
|
15366
|
-
return new LoginState(_nPtr);
|
|
15367
|
-
}
|
|
15368
|
-
delete() {
|
|
15369
|
-
if (this.ownsPointer && !this.disposed) {
|
|
15370
|
-
Module.ccall("csp_systems_LoginState_Dtor", "void", ["number"], [this.pointer]);
|
|
15371
|
-
this.disposed = true;
|
|
15372
|
-
}
|
|
15373
|
-
}
|
|
15374
|
-
static create_otherState(otherState) {
|
|
15375
|
-
var _ptr = Module._malloc(8);
|
|
15376
|
-
Module.ccall("csp_systems_LoginState_Ctor_LoginStateRC", "void", ["number", "number"], [_ptr, otherState.pointer]);
|
|
15377
|
-
var _nPtr = getNativePointer(_ptr);
|
|
15378
|
-
return new LoginState(_nPtr);
|
|
15379
|
-
}
|
|
15380
|
-
// operator=
|
|
15381
|
-
/**
|
|
15382
|
-
* @description Check if the access token for the login is expired.
|
|
15383
|
-
* @return Is the token expired.
|
|
15384
|
-
*/
|
|
15385
|
-
refreshNeeded() {
|
|
15386
|
-
let _result = Module.ccall("csp_systems_LoginState_RefreshNeededC_bool", "boolean", ["number"], [this.pointer]);
|
|
15387
|
-
return _result;
|
|
15388
|
-
}
|
|
15389
|
-
get state() {
|
|
15390
|
-
let _result = Module.ccall("csp_systems_LoginState__Get_State", "number", ["number"], [this.pointer]);
|
|
15391
|
-
return _result;
|
|
15392
|
-
}
|
|
15393
|
-
set state(value) {
|
|
15394
|
-
Module.ccall("csp_systems_LoginState__Set_State", "void", ["number", "number"], [this.pointer, value]);
|
|
15395
|
-
}
|
|
15396
|
-
get accessToken() {
|
|
15397
|
-
let _result = Module.ccall("csp_systems_LoginState__Get_AccessToken", "string", ["number"], [this.pointer]);
|
|
15398
|
-
return _result;
|
|
15399
|
-
}
|
|
15400
|
-
set accessToken(value) {
|
|
15401
|
-
Module.ccall("csp_systems_LoginState__Set_AccessToken", "void", ["number", "string"], [this.pointer, value]);
|
|
15402
|
-
}
|
|
15403
|
-
get refreshToken() {
|
|
15404
|
-
let _result = Module.ccall("csp_systems_LoginState__Get_RefreshToken", "string", ["number"], [this.pointer]);
|
|
15405
|
-
return _result;
|
|
15406
|
-
}
|
|
15407
|
-
set refreshToken(value) {
|
|
15408
|
-
Module.ccall("csp_systems_LoginState__Set_RefreshToken", "void", ["number", "string"], [this.pointer, value]);
|
|
15409
|
-
}
|
|
15410
|
-
get userId() {
|
|
15411
|
-
let _result = Module.ccall("csp_systems_LoginState__Get_UserId", "string", ["number"], [this.pointer]);
|
|
15412
|
-
return _result;
|
|
15413
|
-
}
|
|
15414
|
-
set userId(value) {
|
|
15415
|
-
Module.ccall("csp_systems_LoginState__Set_UserId", "void", ["number", "string"], [this.pointer, value]);
|
|
15416
|
-
}
|
|
15417
|
-
get deviceId() {
|
|
15418
|
-
let _result = Module.ccall("csp_systems_LoginState__Get_DeviceId", "string", ["number"], [this.pointer]);
|
|
15419
|
-
return _result;
|
|
15420
|
-
}
|
|
15421
|
-
set deviceId(value) {
|
|
15422
|
-
Module.ccall("csp_systems_LoginState__Set_DeviceId", "void", ["number", "string"], [this.pointer, value]);
|
|
15423
|
-
}
|
|
15424
|
-
}
|
|
15425
|
-
Systems.LoginState = LoginState;
|
|
15426
|
-
})(Systems || (Systems = {}));
|
|
15427
15543
|
(function (Systems) {
|
|
15428
15544
|
/**
|
|
15429
15545
|
* @description Data for access and refresh tokens, and their expiry times.
|
|
@@ -15765,9 +15881,9 @@ export class CSPFoundation {
|
|
|
15765
15881
|
* @description Constructs the animated model space component, and associates it with the specified Parent space entity.
|
|
15766
15882
|
* @param parent - The Space entity that owns this component.
|
|
15767
15883
|
*/
|
|
15768
|
-
static
|
|
15884
|
+
static create_logSystem_parent(logSystem, parent) {
|
|
15769
15885
|
var _ptr = Module._malloc(8);
|
|
15770
|
-
Module.ccall("
|
|
15886
|
+
Module.ccall("csp_multiplayer_AnimatedModelSpaceComponent_Ctor_LogSystemP_SpaceEntityP", "void", ["number", "number", "number"], [_ptr, logSystem.pointer, parent.pointer]);
|
|
15771
15887
|
var _nPtr = getNativePointer(_ptr);
|
|
15772
15888
|
return new AnimatedModelSpaceComponent(_nPtr);
|
|
15773
15889
|
}
|
|
@@ -16041,9 +16157,9 @@ export class CSPFoundation {
|
|
|
16041
16157
|
* @description Constructs the audio space component, and associates it with the specified Parent space entity.
|
|
16042
16158
|
* @param parent - The Space entity that owns this component.
|
|
16043
16159
|
*/
|
|
16044
|
-
static
|
|
16160
|
+
static create_logSystem_parent(logSystem, parent) {
|
|
16045
16161
|
var _ptr = Module._malloc(8);
|
|
16046
|
-
Module.ccall("
|
|
16162
|
+
Module.ccall("csp_multiplayer_AudioSpaceComponent_Ctor_LogSystemP_SpaceEntityP", "void", ["number", "number", "number"], [_ptr, logSystem.pointer, parent.pointer]);
|
|
16047
16163
|
var _nPtr = getNativePointer(_ptr);
|
|
16048
16164
|
return new AudioSpaceComponent(_nPtr);
|
|
16049
16165
|
}
|
|
@@ -16270,9 +16386,9 @@ export class CSPFoundation {
|
|
|
16270
16386
|
* @description Constructs the avatar space component, and associates it with the specified Parent space entity.
|
|
16271
16387
|
* @param parent - The Space entity that owns this component.
|
|
16272
16388
|
*/
|
|
16273
|
-
static
|
|
16389
|
+
static create_logSystem_parent(logSystem, parent) {
|
|
16274
16390
|
var _ptr = Module._malloc(8);
|
|
16275
|
-
Module.ccall("
|
|
16391
|
+
Module.ccall("csp_multiplayer_AvatarSpaceComponent_Ctor_LogSystemP_SpaceEntityP", "void", ["number", "number", "number"], [_ptr, logSystem.pointer, parent.pointer]);
|
|
16276
16392
|
var _nPtr = getNativePointer(_ptr);
|
|
16277
16393
|
return new AvatarSpaceComponent(_nPtr);
|
|
16278
16394
|
}
|
|
@@ -16644,9 +16760,9 @@ export class CSPFoundation {
|
|
|
16644
16760
|
* @description Constructs the button space component, and associates it with the specified Parent space entity.
|
|
16645
16761
|
* @param parent - The Space entity that owns this component.
|
|
16646
16762
|
*/
|
|
16647
|
-
static
|
|
16763
|
+
static create_logSystem_parent(logSystem, parent) {
|
|
16648
16764
|
var _ptr = Module._malloc(8);
|
|
16649
|
-
Module.ccall("
|
|
16765
|
+
Module.ccall("csp_multiplayer_ButtonSpaceComponent_Ctor_LogSystemP_SpaceEntityP", "void", ["number", "number", "number"], [_ptr, logSystem.pointer, parent.pointer]);
|
|
16650
16766
|
var _nPtr = getNativePointer(_ptr);
|
|
16651
16767
|
return new ButtonSpaceComponent(_nPtr);
|
|
16652
16768
|
}
|
|
@@ -16846,9 +16962,9 @@ export class CSPFoundation {
|
|
|
16846
16962
|
* @description Constructs the CinematicCamera space component, and associates it with the specified Parent space entity.
|
|
16847
16963
|
* @param parent - The Space entity that owns this component.
|
|
16848
16964
|
*/
|
|
16849
|
-
static
|
|
16965
|
+
static create_logSystem_parent(logSystem, parent) {
|
|
16850
16966
|
var _ptr = Module._malloc(8);
|
|
16851
|
-
Module.ccall("
|
|
16967
|
+
Module.ccall("csp_multiplayer_CinematicCameraSpaceComponent_Ctor_LogSystemP_SpaceEntityP", "void", ["number", "number", "number"], [_ptr, logSystem.pointer, parent.pointer]);
|
|
16852
16968
|
var _nPtr = getNativePointer(_ptr);
|
|
16853
16969
|
return new CinematicCameraSpaceComponent(_nPtr);
|
|
16854
16970
|
}
|
|
@@ -17124,9 +17240,9 @@ export class CSPFoundation {
|
|
|
17124
17240
|
* @description Constructs the collision space component, and associates it with the specified Parent space entity.
|
|
17125
17241
|
* @param parent - The Space entity that owns this component.
|
|
17126
17242
|
*/
|
|
17127
|
-
static
|
|
17243
|
+
static create_logSystem_parent(logSystem, parent) {
|
|
17128
17244
|
var _ptr = Module._malloc(8);
|
|
17129
|
-
Module.ccall("
|
|
17245
|
+
Module.ccall("csp_multiplayer_CollisionSpaceComponent_Ctor_LogSystemP_SpaceEntityP", "void", ["number", "number", "number"], [_ptr, logSystem.pointer, parent.pointer]);
|
|
17130
17246
|
var _nPtr = getNativePointer(_ptr);
|
|
17131
17247
|
return new CollisionSpaceComponent(_nPtr);
|
|
17132
17248
|
}
|
|
@@ -17380,9 +17496,9 @@ export class CSPFoundation {
|
|
|
17380
17496
|
* @param parent - The Space entity that owns this component. This will also register the component to the entity.
|
|
17381
17497
|
@pre Parent must not be null.
|
|
17382
17498
|
*/
|
|
17383
|
-
static
|
|
17499
|
+
static create_logSystem_parent(logSystem, parent) {
|
|
17384
17500
|
var _ptr = Module._malloc(8);
|
|
17385
|
-
Module.ccall("
|
|
17501
|
+
Module.ccall("csp_multiplayer_ConversationSpaceComponent_Ctor_LogSystemP_SpaceEntityP", "void", ["number", "number", "number"], [_ptr, logSystem.pointer, parent.pointer]);
|
|
17386
17502
|
var _nPtr = getNativePointer(_ptr);
|
|
17387
17503
|
return new ConversationSpaceComponent(_nPtr);
|
|
17388
17504
|
}
|
|
@@ -18052,9 +18168,9 @@ export class CSPFoundation {
|
|
|
18052
18168
|
* @description Constructs the custom space component, and associates it with the specified Parent space entity.
|
|
18053
18169
|
* @param parent - The Space entity that owns this component.
|
|
18054
18170
|
*/
|
|
18055
|
-
static
|
|
18171
|
+
static create_logSystem_parent(logSystem, parent) {
|
|
18056
18172
|
var _ptr = Module._malloc(8);
|
|
18057
|
-
Module.ccall("
|
|
18173
|
+
Module.ccall("csp_multiplayer_CustomSpaceComponent_Ctor_LogSystemP_SpaceEntityP", "void", ["number", "number", "number"], [_ptr, logSystem.pointer, parent.pointer]);
|
|
18058
18174
|
var _nPtr = getNativePointer(_ptr);
|
|
18059
18175
|
return new CustomSpaceComponent(_nPtr);
|
|
18060
18176
|
}
|
|
@@ -18170,9 +18286,9 @@ export class CSPFoundation {
|
|
|
18170
18286
|
* @description Constructs the ECommerce space component, and associates it with the specified Parent space entity.
|
|
18171
18287
|
* @param parent - The Space entity that owns this component.
|
|
18172
18288
|
*/
|
|
18173
|
-
static
|
|
18289
|
+
static create_logSystem_parent(logSystem, parent) {
|
|
18174
18290
|
var _ptr = Module._malloc(8);
|
|
18175
|
-
Module.ccall("
|
|
18291
|
+
Module.ccall("csp_multiplayer_ECommerceSpaceComponent_Ctor_LogSystemP_SpaceEntityP", "void", ["number", "number", "number"], [_ptr, logSystem.pointer, parent.pointer]);
|
|
18176
18292
|
var _nPtr = getNativePointer(_ptr);
|
|
18177
18293
|
return new ECommerceSpaceComponent(_nPtr);
|
|
18178
18294
|
}
|
|
@@ -18240,9 +18356,9 @@ export class CSPFoundation {
|
|
|
18240
18356
|
* @description Creates an external link component that can be added to an existing space entity.
|
|
18241
18357
|
* @param parent - - The space entity to which this new component will belong to.
|
|
18242
18358
|
*/
|
|
18243
|
-
static
|
|
18359
|
+
static create_logSystem_parent(logSystem, parent) {
|
|
18244
18360
|
var _ptr = Module._malloc(8);
|
|
18245
|
-
Module.ccall("
|
|
18361
|
+
Module.ccall("csp_multiplayer_ExternalLinkSpaceComponent_Ctor_LogSystemP_SpaceEntityP", "void", ["number", "number", "number"], [_ptr, logSystem.pointer, parent.pointer]);
|
|
18246
18362
|
var _nPtr = getNativePointer(_ptr);
|
|
18247
18363
|
return new ExternalLinkSpaceComponent(_nPtr);
|
|
18248
18364
|
}
|
|
@@ -18441,9 +18557,9 @@ export class CSPFoundation {
|
|
|
18441
18557
|
* @description Constructs the fiducial marker space component, and associates it with the specified Parent space entity.
|
|
18442
18558
|
* @param parent - The Space entity that owns this component.
|
|
18443
18559
|
*/
|
|
18444
|
-
static
|
|
18560
|
+
static create_logSystem_parent(logSystem, parent) {
|
|
18445
18561
|
var _ptr = Module._malloc(8);
|
|
18446
|
-
Module.ccall("
|
|
18562
|
+
Module.ccall("csp_multiplayer_FiducialMarkerSpaceComponent_Ctor_LogSystemP_SpaceEntityP", "void", ["number", "number", "number"], [_ptr, logSystem.pointer, parent.pointer]);
|
|
18447
18563
|
var _nPtr = getNativePointer(_ptr);
|
|
18448
18564
|
return new FiducialMarkerSpaceComponent(_nPtr);
|
|
18449
18565
|
}
|
|
@@ -18631,9 +18747,9 @@ export class CSPFoundation {
|
|
|
18631
18747
|
* @description Constructs the fog space component, and associates it with the specified Parent space entity.
|
|
18632
18748
|
* @param parent - The Space entity that owns this component.
|
|
18633
18749
|
*/
|
|
18634
|
-
static
|
|
18750
|
+
static create_logSystem_parent(logSystem, parent) {
|
|
18635
18751
|
var _ptr = Module._malloc(8);
|
|
18636
|
-
Module.ccall("
|
|
18752
|
+
Module.ccall("csp_multiplayer_FogSpaceComponent_Ctor_LogSystemP_SpaceEntityP", "void", ["number", "number", "number"], [_ptr, logSystem.pointer, parent.pointer]);
|
|
18637
18753
|
var _nPtr = getNativePointer(_ptr);
|
|
18638
18754
|
return new FogSpaceComponent(_nPtr);
|
|
18639
18755
|
}
|
|
@@ -18930,9 +19046,9 @@ export class CSPFoundation {
|
|
|
18930
19046
|
* @description Constructs the Gaussian Splat component, and associates it with the specified Parent space entity.
|
|
18931
19047
|
* @param parent - The Space entity that owns this component.
|
|
18932
19048
|
*/
|
|
18933
|
-
static
|
|
19049
|
+
static create_logSystem_parent(logSystem, parent) {
|
|
18934
19050
|
var _ptr = Module._malloc(8);
|
|
18935
|
-
Module.ccall("
|
|
19051
|
+
Module.ccall("csp_multiplayer_GaussianSplatSpaceComponent_Ctor_LogSystemP_SpaceEntityP", "void", ["number", "number", "number"], [_ptr, logSystem.pointer, parent.pointer]);
|
|
18936
19052
|
var _nPtr = getNativePointer(_ptr);
|
|
18937
19053
|
return new GaussianSplatSpaceComponent(_nPtr);
|
|
18938
19054
|
}
|
|
@@ -19138,9 +19254,9 @@ export class CSPFoundation {
|
|
|
19138
19254
|
* @description Constructs the Hotspot space component, and associates it with the specified Parent space entity.
|
|
19139
19255
|
* @param parent - The Space entity that owns this component.
|
|
19140
19256
|
*/
|
|
19141
|
-
static
|
|
19257
|
+
static create_logSystem_parent(logSystem, parent) {
|
|
19142
19258
|
var _ptr = Module._malloc(8);
|
|
19143
|
-
Module.ccall("
|
|
19259
|
+
Module.ccall("csp_multiplayer_HotspotSpaceComponent_Ctor_LogSystemP_SpaceEntityP", "void", ["number", "number", "number"], [_ptr, logSystem.pointer, parent.pointer]);
|
|
19144
19260
|
var _nPtr = getNativePointer(_ptr);
|
|
19145
19261
|
return new HotspotSpaceComponent(_nPtr);
|
|
19146
19262
|
}
|
|
@@ -19301,9 +19417,9 @@ export class CSPFoundation {
|
|
|
19301
19417
|
* @description Constructs the image space component, and associates it with the specified Parent space entity.
|
|
19302
19418
|
* @param parent - The Space entity that owns this component.
|
|
19303
19419
|
*/
|
|
19304
|
-
static
|
|
19420
|
+
static create_logSystem_parent(logSystem, parent) {
|
|
19305
19421
|
var _ptr = Module._malloc(8);
|
|
19306
|
-
Module.ccall("
|
|
19422
|
+
Module.ccall("csp_multiplayer_ImageSpaceComponent_Ctor_LogSystemP_SpaceEntityP", "void", ["number", "number", "number"], [_ptr, logSystem.pointer, parent.pointer]);
|
|
19307
19423
|
var _nPtr = getNativePointer(_ptr);
|
|
19308
19424
|
return new ImageSpaceComponent(_nPtr);
|
|
19309
19425
|
}
|
|
@@ -19537,9 +19653,9 @@ export class CSPFoundation {
|
|
|
19537
19653
|
* @description Constructs the light space component, and associates it with the specified Parent space entity.
|
|
19538
19654
|
* @param parent - The Space entity that owns this component.
|
|
19539
19655
|
*/
|
|
19540
|
-
static
|
|
19656
|
+
static create_logSystem_parent(logSystem, parent) {
|
|
19541
19657
|
var _ptr = Module._malloc(8);
|
|
19542
|
-
Module.ccall("
|
|
19658
|
+
Module.ccall("csp_multiplayer_LightSpaceComponent_Ctor_LogSystemP_SpaceEntityP", "void", ["number", "number", "number"], [_ptr, logSystem.pointer, parent.pointer]);
|
|
19543
19659
|
var _nPtr = getNativePointer(_ptr);
|
|
19544
19660
|
return new LightSpaceComponent(_nPtr);
|
|
19545
19661
|
}
|
|
@@ -19818,9 +19934,9 @@ export class CSPFoundation {
|
|
|
19818
19934
|
* @description Constructs the portal space component, and associates it with the specified Parent space entity.
|
|
19819
19935
|
* @param parent - The Space entity that owns this component.
|
|
19820
19936
|
*/
|
|
19821
|
-
static
|
|
19937
|
+
static create_logSystem_parent(logSystem, parent) {
|
|
19822
19938
|
var _ptr = Module._malloc(8);
|
|
19823
|
-
Module.ccall("
|
|
19939
|
+
Module.ccall("csp_multiplayer_PortalSpaceComponent_Ctor_LogSystemP_SpaceEntityP", "void", ["number", "number", "number"], [_ptr, logSystem.pointer, parent.pointer]);
|
|
19824
19940
|
var _nPtr = getNativePointer(_ptr);
|
|
19825
19941
|
return new PortalSpaceComponent(_nPtr);
|
|
19826
19942
|
}
|
|
@@ -19897,32 +20013,6 @@ export class CSPFoundation {
|
|
|
19897
20013
|
setIsEnabled(value) {
|
|
19898
20014
|
Module.ccall("csp_multiplayer_PortalSpaceComponent_SetIsEnabled_void_bool", "void", ["number", "boolean"], [this.pointer, value]);
|
|
19899
20015
|
}
|
|
19900
|
-
/**
|
|
19901
|
-
@}
|
|
19902
|
-
* @description Retrieves the space thumbnail information associated with the space.
|
|
19903
|
-
* If the space does not have a thumbnail associated with it the result callback will be successful, the
|
|
19904
|
-
* HTTP res code will be ResponseNotFound and the Uri field inside the UriResult will be empty.
|
|
19905
|
-
* @param callback - Callback when asynchronous task finishes
|
|
19906
|
-
*/
|
|
19907
|
-
async getSpaceThumbnail() {
|
|
19908
|
-
var _resolve;
|
|
19909
|
-
var _promise = new Promise((_r) => {
|
|
19910
|
-
_resolve = _r;
|
|
19911
|
-
});
|
|
19912
|
-
var _callbackPtr;
|
|
19913
|
-
var _callback = (_stateObject__, result) => {
|
|
19914
|
-
var _resultPtr = getNativePointer(result);
|
|
19915
|
-
var _resultInstance = new Systems.UriResult(_resultPtr);
|
|
19916
|
-
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
19917
|
-
return;
|
|
19918
|
-
}
|
|
19919
|
-
_resolve(_resultInstance);
|
|
19920
|
-
Module.removeFunction(_callbackPtr);
|
|
19921
|
-
};
|
|
19922
|
-
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
19923
|
-
Module.ccall("csp_multiplayer_PortalSpaceComponent_GetSpaceThumbnailC_void_UriResultCallback", "void", ["number", "number", "number"], [this.pointer, _callbackPtr, 0]);
|
|
19924
|
-
return _promise;
|
|
19925
|
-
}
|
|
19926
20016
|
delete() {
|
|
19927
20017
|
if (this.ownsPointer && !this.disposed) {
|
|
19928
20018
|
Module.ccall("csp_multiplayer_PortalSpaceComponent_Dtor", "void", ["number"], [this.pointer]);
|
|
@@ -19950,9 +20040,9 @@ export class CSPFoundation {
|
|
|
19950
20040
|
* @description Constructs the reflection component, and associates it with the specified Parent space entity.
|
|
19951
20041
|
* @param parent - The Space entity that owns this component.
|
|
19952
20042
|
*/
|
|
19953
|
-
static
|
|
20043
|
+
static create_logSystem_parent(logSystem, parent) {
|
|
19954
20044
|
var _ptr = Module._malloc(8);
|
|
19955
|
-
Module.ccall("
|
|
20045
|
+
Module.ccall("csp_multiplayer_ReflectionSpaceComponent_Ctor_LogSystemP_SpaceEntityP", "void", ["number", "number", "number"], [_ptr, logSystem.pointer, parent.pointer]);
|
|
19956
20046
|
var _nPtr = getNativePointer(_ptr);
|
|
19957
20047
|
return new ReflectionSpaceComponent(_nPtr);
|
|
19958
20048
|
}
|
|
@@ -20121,9 +20211,9 @@ export class CSPFoundation {
|
|
|
20121
20211
|
* @description Constructs the script space component, and associates it with the specified Parent space entity.
|
|
20122
20212
|
* @param parent - The Space entity that owns this component.
|
|
20123
20213
|
*/
|
|
20124
|
-
static
|
|
20214
|
+
static create_logSystem_parent(logSystem, parent) {
|
|
20125
20215
|
var _ptr = Module._malloc(8);
|
|
20126
|
-
Module.ccall("
|
|
20216
|
+
Module.ccall("csp_multiplayer_ScriptSpaceComponent_Ctor_LogSystemP_SpaceEntityP", "void", ["number", "number", "number"], [_ptr, logSystem.pointer, parent.pointer]);
|
|
20127
20217
|
var _nPtr = getNativePointer(_ptr);
|
|
20128
20218
|
return new ScriptSpaceComponent(_nPtr);
|
|
20129
20219
|
}
|
|
@@ -20200,9 +20290,9 @@ export class CSPFoundation {
|
|
|
20200
20290
|
* @description Constructs the spline space component, and associates it with the specified Parent space entity.
|
|
20201
20291
|
* @param parent - The Space entity that owns this component.
|
|
20202
20292
|
*/
|
|
20203
|
-
static
|
|
20293
|
+
static create_logSystem_parent(logSystem, parent) {
|
|
20204
20294
|
var _ptr = Module._malloc(8);
|
|
20205
|
-
Module.ccall("
|
|
20295
|
+
Module.ccall("csp_multiplayer_SplineSpaceComponent_Ctor_LogSystemP_SpaceEntityP", "void", ["number", "number", "number"], [_ptr, logSystem.pointer, parent.pointer]);
|
|
20206
20296
|
var _nPtr = getNativePointer(_ptr);
|
|
20207
20297
|
return new SplineSpaceComponent(_nPtr);
|
|
20208
20298
|
}
|
|
@@ -20270,9 +20360,9 @@ export class CSPFoundation {
|
|
|
20270
20360
|
* @description Constructs the static model space component, and associates it with the specified Parent space entity.
|
|
20271
20361
|
* @param parent - The Space entity that owns this component.
|
|
20272
20362
|
*/
|
|
20273
|
-
static
|
|
20363
|
+
static create_logSystem_parent(logSystem, parent) {
|
|
20274
20364
|
var _ptr = Module._malloc(8);
|
|
20275
|
-
Module.ccall("
|
|
20365
|
+
Module.ccall("csp_multiplayer_StaticModelSpaceComponent_Ctor_LogSystemP_SpaceEntityP", "void", ["number", "number", "number"], [_ptr, logSystem.pointer, parent.pointer]);
|
|
20276
20366
|
var _nPtr = getNativePointer(_ptr);
|
|
20277
20367
|
return new StaticModelSpaceComponent(_nPtr);
|
|
20278
20368
|
}
|
|
@@ -20498,9 +20588,9 @@ export class CSPFoundation {
|
|
|
20498
20588
|
* @description Constructs the text space component, and associates it with the specified Parent space entity.
|
|
20499
20589
|
* @param parent - The Space entity that owns this component.
|
|
20500
20590
|
*/
|
|
20501
|
-
static
|
|
20591
|
+
static create_logSystem_parent(logSystem, parent) {
|
|
20502
20592
|
var _ptr = Module._malloc(8);
|
|
20503
|
-
Module.ccall("
|
|
20593
|
+
Module.ccall("csp_multiplayer_TextSpaceComponent_Ctor_LogSystemP_SpaceEntityP", "void", ["number", "number", "number"], [_ptr, logSystem.pointer, parent.pointer]);
|
|
20504
20594
|
var _nPtr = getNativePointer(_ptr);
|
|
20505
20595
|
return new TextSpaceComponent(_nPtr);
|
|
20506
20596
|
}
|
|
@@ -20746,9 +20836,9 @@ export class CSPFoundation {
|
|
|
20746
20836
|
* @description Constructs the video player component, and associates it with the specified Parent space entity.
|
|
20747
20837
|
* @param parent - The Space entity that owns this component.
|
|
20748
20838
|
*/
|
|
20749
|
-
static
|
|
20839
|
+
static create_logSystem_parent(logSystem, parent) {
|
|
20750
20840
|
var _ptr = Module._malloc(8);
|
|
20751
|
-
Module.ccall("
|
|
20841
|
+
Module.ccall("csp_multiplayer_VideoPlayerSpaceComponent_Ctor_LogSystemP_SpaceEntityP", "void", ["number", "number", "number"], [_ptr, logSystem.pointer, parent.pointer]);
|
|
20752
20842
|
var _nPtr = getNativePointer(_ptr);
|
|
20753
20843
|
return new VideoPlayerSpaceComponent(_nPtr);
|
|
20754
20844
|
}
|
|
@@ -24495,9 +24585,15 @@ export class CSPFoundation {
|
|
|
24495
24585
|
const nativeClassWrapper = baseInstance;
|
|
24496
24586
|
return new Systems.HotspotSequenceSystem(new NativePointer(nativeClassWrapper.pointer, nativeClassWrapper.ownsPointer));
|
|
24497
24587
|
}
|
|
24498
|
-
static
|
|
24588
|
+
static create_sequenceSystem_spaceSystem_eventBus_logSystem(sequenceSystem, spaceSystem, eventBus, logSystem) {
|
|
24499
24589
|
var _ptr = Module._malloc(8);
|
|
24500
|
-
Module.ccall("
|
|
24590
|
+
Module.ccall("csp_systems_HotspotSequenceSystem_Ctor_SequenceSystemP_SpaceSystemP_EventBusP_LogSystemR", "void", ["number", "number", "number", "number", "number"], [
|
|
24591
|
+
_ptr,
|
|
24592
|
+
sequenceSystem.pointer,
|
|
24593
|
+
spaceSystem.pointer,
|
|
24594
|
+
eventBus.pointer,
|
|
24595
|
+
logSystem.pointer,
|
|
24596
|
+
]);
|
|
24501
24597
|
var _nPtr = getNativePointer(_ptr);
|
|
24502
24598
|
return new HotspotSequenceSystem(_nPtr);
|
|
24503
24599
|
}
|
|
@@ -24656,10 +24752,11 @@ export class CSPFoundation {
|
|
|
24656
24752
|
/**
|
|
24657
24753
|
* @description This will delete any groups which only contain this item
|
|
24658
24754
|
* For any groups which contanin the given item and additional items, it will just update the group by removing the given item.
|
|
24659
|
-
* @param
|
|
24755
|
+
* @param itemID - An item to update all sequences containing. Can be retrieved from a HotspotSpaceComponent via
|
|
24756
|
+
* HotspotSpaceComponent::GetUniqueComponentId
|
|
24660
24757
|
* @param callback - Callback to call when a response is received
|
|
24661
24758
|
*/
|
|
24662
|
-
async removeItemFromGroups(
|
|
24759
|
+
async removeItemFromGroups(itemID) {
|
|
24663
24760
|
var _resolve;
|
|
24664
24761
|
var _promise = new Promise((_r) => {
|
|
24665
24762
|
_resolve = _r;
|
|
@@ -24675,7 +24772,7 @@ export class CSPFoundation {
|
|
|
24675
24772
|
Module.removeFunction(_callbackPtr);
|
|
24676
24773
|
};
|
|
24677
24774
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
24678
|
-
Module.ccall("csp_systems_HotspotSequenceSystem_RemoveItemFromGroups_void_StringRC_NullResultCallback", "void", ["number", "string", "number", "number"], [this.pointer,
|
|
24775
|
+
Module.ccall("csp_systems_HotspotSequenceSystem_RemoveItemFromGroups_void_StringRC_NullResultCallback", "void", ["number", "string", "number", "number"], [this.pointer, itemID, _callbackPtr, 0]);
|
|
24679
24776
|
return _promise;
|
|
24680
24777
|
}
|
|
24681
24778
|
/**
|
|
@@ -25191,6 +25288,58 @@ export class CSPFoundation {
|
|
|
25191
25288
|
}
|
|
25192
25289
|
Systems.QuotaSystem = QuotaSystem;
|
|
25193
25290
|
})(Systems || (Systems = {}));
|
|
25291
|
+
(function (Systems) {
|
|
25292
|
+
/**
|
|
25293
|
+
* @description A JavaScript based scripting system that can be used to create advanced behaviours and interactions between entities in spaces.
|
|
25294
|
+
*/
|
|
25295
|
+
class ScriptSystem extends Common.IJSScriptRunner {
|
|
25296
|
+
/** @internal */
|
|
25297
|
+
constructor(pointer) {
|
|
25298
|
+
super(pointer);
|
|
25299
|
+
}
|
|
25300
|
+
static fromIJSScriptRunner(baseInstance) {
|
|
25301
|
+
const nativeClassWrapper = baseInstance;
|
|
25302
|
+
return new Systems.ScriptSystem(new NativePointer(nativeClassWrapper.pointer, nativeClassWrapper.ownsPointer));
|
|
25303
|
+
}
|
|
25304
|
+
/**
|
|
25305
|
+
* @description Starts up the JavaScript runtime context.
|
|
25306
|
+
*/
|
|
25307
|
+
initialise() {
|
|
25308
|
+
Module.ccall("csp_systems_ScriptSystem_Initialise_void", "void", ["number"], [this.pointer]);
|
|
25309
|
+
}
|
|
25310
|
+
/**
|
|
25311
|
+
* @description Shuts down and deletes the JavaScript runtime context.
|
|
25312
|
+
*/
|
|
25313
|
+
shutdown() {
|
|
25314
|
+
Module.ccall("csp_systems_ScriptSystem_Shutdown_void", "void", ["number"], [this.pointer]);
|
|
25315
|
+
}
|
|
25316
|
+
/**
|
|
25317
|
+
* @description Attempts to execute a script in a given context.
|
|
25318
|
+
* @param contextId - The context in which to run the script. If the provided context does not exist, the script run will fail.
|
|
25319
|
+
* @param scriptText - The script to execute.
|
|
25320
|
+
* @return A boolean representing success running the script.
|
|
25321
|
+
*/
|
|
25322
|
+
runScript(contextId, scriptText) {
|
|
25323
|
+
assert(contextId >= Limits.INT64_MIN);
|
|
25324
|
+
assert(contextId <= Limits.INT64_MAX);
|
|
25325
|
+
let _result = Module.ccall("csp_systems_ScriptSystem_RunScript_bool_int64_t_StringRC", "boolean", ["number", "bigint", "string"], [this.pointer, contextId, scriptText]);
|
|
25326
|
+
return _result;
|
|
25327
|
+
}
|
|
25328
|
+
/**
|
|
25329
|
+
* @description Attempts to execute a script from a given file path in the given context.
|
|
25330
|
+
* @param contextId - The context in which to run the script. If the provided context does not exist, the script run will fail.
|
|
25331
|
+
* @param scriptFilePath - The file path of the script to execute.
|
|
25332
|
+
* @return A boolean representing success running the script.
|
|
25333
|
+
*/
|
|
25334
|
+
runScriptFile(contextId, scriptFilePath) {
|
|
25335
|
+
assert(contextId >= Limits.INT64_MIN);
|
|
25336
|
+
assert(contextId <= Limits.INT64_MAX);
|
|
25337
|
+
let _result = Module.ccall("csp_systems_ScriptSystem_RunScriptFile_bool_int64_t_StringRC", "boolean", ["number", "bigint", "string"], [this.pointer, contextId, scriptFilePath]);
|
|
25338
|
+
return _result;
|
|
25339
|
+
}
|
|
25340
|
+
}
|
|
25341
|
+
Systems.ScriptSystem = ScriptSystem;
|
|
25342
|
+
})(Systems || (Systems = {}));
|
|
25194
25343
|
(function (Systems) {
|
|
25195
25344
|
/**
|
|
25196
25345
|
@ingroup Sequence System
|
|
@@ -28382,7 +28531,7 @@ export class CSPFoundation {
|
|
|
28382
28531
|
getLoginState() {
|
|
28383
28532
|
var _ret = Module._malloc(8);
|
|
28384
28533
|
Module.ccall("csp_systems_LoginStateResult_GetLoginStateC_LoginStateRC", "void", ["number", "number"], [_ret, this.pointer]);
|
|
28385
|
-
var _nPtr = new
|
|
28534
|
+
var _nPtr = new Common.LoginState(getNativePointer(_ret));
|
|
28386
28535
|
Module._free(_ret);
|
|
28387
28536
|
return _nPtr;
|
|
28388
28537
|
}
|
|
@@ -28632,7 +28781,7 @@ export class CSPFoundation {
|
|
|
28632
28781
|
getLoginState() {
|
|
28633
28782
|
var _ret = Module._malloc(8);
|
|
28634
28783
|
Module.ccall("csp_systems_UserSystem_GetLoginStateC_LoginStateRC", "void", ["number", "number"], [_ret, this.pointer]);
|
|
28635
|
-
var _nPtr = new
|
|
28784
|
+
var _nPtr = new Common.LoginState(getNativePointer(_ret));
|
|
28636
28785
|
Module._free(_ret);
|
|
28637
28786
|
return _nPtr;
|
|
28638
28787
|
}
|