connected-spaces-platform.web 4.17.0 → 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 +59 -33
- package/Debug/ConnectedSpacesPlatform_WASM.wasm +0 -0
- package/Debug/ConnectedSpacesPlatform_WASM.wasm.debug.wasm +0 -0
- package/README.md +47 -50
- package/Release/ConnectedSpacesPlatform_WASM.js +1 -1
- package/Release/ConnectedSpacesPlatform_WASM.wasm +0 -0
- package/connectedspacesplatform.d.ts +304 -440
- package/connectedspacesplatform.js +465 -488
- package/connectedspacesplatform.js.map +1 -1
- package/connectedspacesplatform.ts +766 -620
- package/package.json +1 -1
|
@@ -374,6 +374,14 @@ function csp_multiplayer_ConnectionStateFactory(
|
|
|
374
374
|
ProxyClassFactories["csp_multiplayer_ConnectionState"] =
|
|
375
375
|
csp_multiplayer_ConnectionStateFactory;
|
|
376
376
|
|
|
377
|
+
function csp_multiplayer_ErrorCodeFactory(
|
|
378
|
+
nativePointer: NativePointer,
|
|
379
|
+
): Multiplayer.ErrorCode {
|
|
380
|
+
return nativePointer.pointer as Multiplayer.ErrorCode;
|
|
381
|
+
}
|
|
382
|
+
ProxyClassFactories["csp_multiplayer_ErrorCode"] =
|
|
383
|
+
csp_multiplayer_ErrorCodeFactory;
|
|
384
|
+
|
|
377
385
|
function csp_multiplayer_ReplicatedValueTypeFactory(
|
|
378
386
|
nativePointer: NativePointer,
|
|
379
387
|
): Multiplayer.ReplicatedValueType {
|
|
@@ -808,6 +816,13 @@ function csp_systems_TierNamesFactory(
|
|
|
808
816
|
}
|
|
809
817
|
ProxyClassFactories["csp_systems_TierNames"] = csp_systems_TierNamesFactory;
|
|
810
818
|
|
|
819
|
+
function csp_systems_AvatarTypeFactory(
|
|
820
|
+
nativePointer: NativePointer,
|
|
821
|
+
): Systems.AvatarType {
|
|
822
|
+
return nativePointer.pointer as Systems.AvatarType;
|
|
823
|
+
}
|
|
824
|
+
ProxyClassFactories["csp_systems_AvatarType"] = csp_systems_AvatarTypeFactory;
|
|
825
|
+
|
|
811
826
|
function csp_systems_SpaceAttributesFactory(
|
|
812
827
|
nativePointer: NativePointer,
|
|
813
828
|
): Systems.SpaceAttributes {
|
|
@@ -976,14 +991,6 @@ function csp_multiplayer_ReplicatedValueFactory(
|
|
|
976
991
|
ProxyClassFactories["csp_multiplayer_ReplicatedValue"] =
|
|
977
992
|
csp_multiplayer_ReplicatedValueFactory;
|
|
978
993
|
|
|
979
|
-
function csp_multiplayer_PropertyUpdateInfoFactory(
|
|
980
|
-
nativePointer: NativePointer,
|
|
981
|
-
): NativeClassWrapper {
|
|
982
|
-
return new Multiplayer.PropertyUpdateInfo(nativePointer);
|
|
983
|
-
}
|
|
984
|
-
ProxyClassFactories["csp_multiplayer_PropertyUpdateInfo"] =
|
|
985
|
-
csp_multiplayer_PropertyUpdateInfoFactory;
|
|
986
|
-
|
|
987
994
|
function csp_multiplayer_ComponentUpdateInfoFactory(
|
|
988
995
|
nativePointer: NativePointer,
|
|
989
996
|
): NativeClassWrapper {
|
|
@@ -1898,6 +1905,14 @@ function csp_systems_SettingsCollectionResultFactory(
|
|
|
1898
1905
|
ProxyClassFactories["csp_systems_SettingsCollectionResult"] =
|
|
1899
1906
|
csp_systems_SettingsCollectionResultFactory;
|
|
1900
1907
|
|
|
1908
|
+
function csp_systems_AvatarInfoResultFactory(
|
|
1909
|
+
nativePointer: NativePointer,
|
|
1910
|
+
): NativeClassWrapper {
|
|
1911
|
+
return new Systems.AvatarInfoResult(nativePointer);
|
|
1912
|
+
}
|
|
1913
|
+
ProxyClassFactories["csp_systems_AvatarInfoResult"] =
|
|
1914
|
+
csp_systems_AvatarInfoResultFactory;
|
|
1915
|
+
|
|
1901
1916
|
function csp_systems_SettingsSystemFactory(
|
|
1902
1917
|
nativePointer: NativePointer,
|
|
1903
1918
|
): NativeClassWrapper {
|
|
@@ -2721,7 +2736,7 @@ export namespace Multiplayer {
|
|
|
2721
2736
|
|
|
2722
2737
|
export namespace Multiplayer {
|
|
2723
2738
|
/**
|
|
2724
|
-
* @description Enum used to specify the current state of the
|
|
2739
|
+
* @description Enum used to specify the current state of the multiplayer connection.
|
|
2725
2740
|
*/
|
|
2726
2741
|
export enum ConnectionState {
|
|
2727
2742
|
Connecting,
|
|
@@ -2731,6 +2746,19 @@ export namespace Multiplayer {
|
|
|
2731
2746
|
}
|
|
2732
2747
|
}
|
|
2733
2748
|
|
|
2749
|
+
export namespace Multiplayer {
|
|
2750
|
+
/**
|
|
2751
|
+
* @description Enum used to indicate the failure state of a multiplayer request.
|
|
2752
|
+
*/
|
|
2753
|
+
export enum ErrorCode {
|
|
2754
|
+
None,
|
|
2755
|
+
Unknown,
|
|
2756
|
+
NotConnected,
|
|
2757
|
+
AlreadyConnected,
|
|
2758
|
+
SpaceUserLimitExceeded,
|
|
2759
|
+
}
|
|
2760
|
+
}
|
|
2761
|
+
|
|
2734
2762
|
export namespace Multiplayer {
|
|
2735
2763
|
/**
|
|
2736
2764
|
* @description Enum representing the type of a replicated value.
|
|
@@ -2760,7 +2788,13 @@ export namespace Multiplayer {
|
|
|
2760
2788
|
|
|
2761
2789
|
export namespace Multiplayer {
|
|
2762
2790
|
/**
|
|
2763
|
-
* @description Enum used to
|
|
2791
|
+
* @description This Enum should be used to determine what kind of operation the component update represents.
|
|
2792
|
+
* Update means properties on the component have updated, all need to be checked as we do not provide reference of specific property updates.
|
|
2793
|
+
* Add means the component is newly added, clients should ensure that this triggers appropriate instantiation of wrapping objects.
|
|
2794
|
+
* All properties for the component should be included.
|
|
2795
|
+
* 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
|
|
2796
|
+
* recieved. Any wrapping data objects should be deleted when this is recieved, and clients should cease updating this component as any call would
|
|
2797
|
+
* fail. The CSP representation of the component has been removed at this point.
|
|
2764
2798
|
*/
|
|
2765
2799
|
export enum ComponentUpdateType {
|
|
2766
2800
|
Update,
|
|
@@ -2770,6 +2804,11 @@ export namespace Multiplayer {
|
|
|
2770
2804
|
}
|
|
2771
2805
|
|
|
2772
2806
|
export namespace Multiplayer {
|
|
2807
|
+
/**
|
|
2808
|
+
* @description Enum used to specify what part of a SpaceEntity was updated when deserialising.
|
|
2809
|
+
* Use this to determine which parts of an entity to copy values from when an update occurs.
|
|
2810
|
+
* It is a bitwise flag enum, so values are additive, the value may represent several flags.
|
|
2811
|
+
*/
|
|
2773
2812
|
export enum SpaceEntityUpdateFlags {
|
|
2774
2813
|
UPDATE_FLAGS_NAME = 1,
|
|
2775
2814
|
UPDATE_FLAGS_POSITION = 2,
|
|
@@ -3228,7 +3267,7 @@ export namespace Multiplayer {
|
|
|
3228
3267
|
ReflectionAssetId,
|
|
3229
3268
|
AssetCollectionId,
|
|
3230
3269
|
Position,
|
|
3231
|
-
|
|
3270
|
+
Rotation_NOT_USED,
|
|
3232
3271
|
Scale,
|
|
3233
3272
|
ReflectionShape,
|
|
3234
3273
|
ThirdPartyComponentRef,
|
|
@@ -3425,6 +3464,7 @@ export namespace Systems {
|
|
|
3425
3464
|
ShopifyConnectionBroken,
|
|
3426
3465
|
ShopifyInvalidStoreName,
|
|
3427
3466
|
UserShopifyLimitReached,
|
|
3467
|
+
UserTokenRefreshFailed,
|
|
3428
3468
|
}
|
|
3429
3469
|
}
|
|
3430
3470
|
|
|
@@ -3537,6 +3577,18 @@ export namespace Systems {
|
|
|
3537
3577
|
}
|
|
3538
3578
|
}
|
|
3539
3579
|
|
|
3580
|
+
export namespace Systems {
|
|
3581
|
+
/**
|
|
3582
|
+
* @description Used to specify the type of the user's avatar
|
|
3583
|
+
*/
|
|
3584
|
+
export enum AvatarType {
|
|
3585
|
+
None,
|
|
3586
|
+
Premade,
|
|
3587
|
+
ReadyPlayerMe,
|
|
3588
|
+
Custom,
|
|
3589
|
+
}
|
|
3590
|
+
}
|
|
3591
|
+
|
|
3540
3592
|
export namespace Systems {
|
|
3541
3593
|
export enum SpaceAttributes {
|
|
3542
3594
|
None = 0,
|
|
@@ -4613,26 +4665,6 @@ export class CSPFoundation {
|
|
|
4613
4665
|
return _result;
|
|
4614
4666
|
}
|
|
4615
4667
|
|
|
4616
|
-
/**
|
|
4617
|
-
* @description Gets the EntitySystemVersion number.
|
|
4618
|
-
* This represents the system used to parse data for Entities,
|
|
4619
|
-
* and is used to prevent conflicting entity data versions from being used together where we cannot parse both.
|
|
4620
|
-
* This is currently unused.
|
|
4621
|
-
* @return The system version number, a manually incremented counter that changes when significant breaking changes occur in the entity
|
|
4622
|
-
* parsing systems
|
|
4623
|
-
*/
|
|
4624
|
-
|
|
4625
|
-
static getEntitySystemVersion(): number {
|
|
4626
|
-
let _result = Module.ccall(
|
|
4627
|
-
"csp_CSPFoundation_GetEntitySystemVersion_int32_t",
|
|
4628
|
-
"number",
|
|
4629
|
-
[],
|
|
4630
|
-
[],
|
|
4631
|
-
);
|
|
4632
|
-
|
|
4633
|
-
return _result;
|
|
4634
|
-
}
|
|
4635
|
-
|
|
4636
4668
|
/**
|
|
4637
4669
|
* @description Unique identifier for the current device.
|
|
4638
4670
|
* Used internally by certain user authentication endpoints.
|
|
@@ -21420,19 +21452,19 @@ export namespace Multiplayer {
|
|
|
21420
21452
|
|
|
21421
21453
|
/**
|
|
21422
21454
|
* @description Start the connection and register to start receiving updates from the server.
|
|
21423
|
-
* @param callback - A callback with
|
|
21455
|
+
* @param callback - A callback with failure state.
|
|
21424
21456
|
*/
|
|
21425
21457
|
|
|
21426
|
-
async connect(): Promise<
|
|
21458
|
+
async connect(): Promise<Multiplayer.ErrorCode> {
|
|
21427
21459
|
var _resolve;
|
|
21428
21460
|
|
|
21429
|
-
var _promise = new Promise<
|
|
21461
|
+
var _promise = new Promise<Multiplayer.ErrorCode>((_r) => {
|
|
21430
21462
|
_resolve = _r;
|
|
21431
21463
|
});
|
|
21432
21464
|
|
|
21433
21465
|
var _callbackPtr: number;
|
|
21434
21466
|
var _callback = (_stateObject__: number, arg1) => {
|
|
21435
|
-
_resolve(
|
|
21467
|
+
_resolve(arg1);
|
|
21436
21468
|
|
|
21437
21469
|
Module.removeFunction(_callbackPtr);
|
|
21438
21470
|
};
|
|
@@ -21440,7 +21472,7 @@ export namespace Multiplayer {
|
|
|
21440
21472
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
21441
21473
|
|
|
21442
21474
|
Module.ccall(
|
|
21443
|
-
"
|
|
21475
|
+
"csp_multiplayer_MultiplayerConnection_Connect_void_ErrorCodeCallbackHandler",
|
|
21444
21476
|
"void",
|
|
21445
21477
|
["number", "number", "number"],
|
|
21446
21478
|
[this.pointer, _callbackPtr, 0],
|
|
@@ -21451,19 +21483,19 @@ export namespace Multiplayer {
|
|
|
21451
21483
|
|
|
21452
21484
|
/**
|
|
21453
21485
|
* @description End the multiplayer connection.
|
|
21454
|
-
* @param callback - A callback with
|
|
21486
|
+
* @param callback - A callback with failure state.
|
|
21455
21487
|
*/
|
|
21456
21488
|
|
|
21457
|
-
async disconnect(): Promise<
|
|
21489
|
+
async disconnect(): Promise<Multiplayer.ErrorCode> {
|
|
21458
21490
|
var _resolve;
|
|
21459
21491
|
|
|
21460
|
-
var _promise = new Promise<
|
|
21492
|
+
var _promise = new Promise<Multiplayer.ErrorCode>((_r) => {
|
|
21461
21493
|
_resolve = _r;
|
|
21462
21494
|
});
|
|
21463
21495
|
|
|
21464
21496
|
var _callbackPtr: number;
|
|
21465
21497
|
var _callback = (_stateObject__: number, arg1) => {
|
|
21466
|
-
_resolve(
|
|
21498
|
+
_resolve(arg1);
|
|
21467
21499
|
|
|
21468
21500
|
Module.removeFunction(_callbackPtr);
|
|
21469
21501
|
};
|
|
@@ -21471,7 +21503,7 @@ export namespace Multiplayer {
|
|
|
21471
21503
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
21472
21504
|
|
|
21473
21505
|
Module.ccall(
|
|
21474
|
-
"
|
|
21506
|
+
"csp_multiplayer_MultiplayerConnection_Disconnect_void_ErrorCodeCallbackHandler",
|
|
21475
21507
|
"void",
|
|
21476
21508
|
["number", "number", "number"],
|
|
21477
21509
|
[this.pointer, _callbackPtr, 0],
|
|
@@ -21482,19 +21514,19 @@ export namespace Multiplayer {
|
|
|
21482
21514
|
|
|
21483
21515
|
/**
|
|
21484
21516
|
* @description Initialise the connection and get initial entity data from the server.
|
|
21485
|
-
* @param callback - A callback with
|
|
21517
|
+
* @param callback - A callback with failure state.
|
|
21486
21518
|
*/
|
|
21487
21519
|
|
|
21488
|
-
async initialiseConnection(): Promise<
|
|
21520
|
+
async initialiseConnection(): Promise<Multiplayer.ErrorCode> {
|
|
21489
21521
|
var _resolve;
|
|
21490
21522
|
|
|
21491
|
-
var _promise = new Promise<
|
|
21523
|
+
var _promise = new Promise<Multiplayer.ErrorCode>((_r) => {
|
|
21492
21524
|
_resolve = _r;
|
|
21493
21525
|
});
|
|
21494
21526
|
|
|
21495
21527
|
var _callbackPtr: number;
|
|
21496
21528
|
var _callback = (_stateObject__: number, arg1) => {
|
|
21497
|
-
_resolve(
|
|
21529
|
+
_resolve(arg1);
|
|
21498
21530
|
|
|
21499
21531
|
Module.removeFunction(_callbackPtr);
|
|
21500
21532
|
};
|
|
@@ -21502,7 +21534,7 @@ export namespace Multiplayer {
|
|
|
21502
21534
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
21503
21535
|
|
|
21504
21536
|
Module.ccall(
|
|
21505
|
-
"
|
|
21537
|
+
"csp_multiplayer_MultiplayerConnection_InitialiseConnection_void_ErrorCodeCallbackHandler",
|
|
21506
21538
|
"void",
|
|
21507
21539
|
["number", "number", "number"],
|
|
21508
21540
|
[this.pointer, _callbackPtr, 0],
|
|
@@ -21515,22 +21547,22 @@ export namespace Multiplayer {
|
|
|
21515
21547
|
* @description Sends a network event by EventName to all currently connected clients.
|
|
21516
21548
|
* @param eventName - The identifying name for the event.
|
|
21517
21549
|
* @param args - An array of arguments (ReplicatedValue) to be passed as part of the event payload.
|
|
21518
|
-
* @param callback - A
|
|
21550
|
+
* @param callback - A callback with failure state.
|
|
21519
21551
|
*/
|
|
21520
21552
|
|
|
21521
21553
|
async sendNetworkEvent(
|
|
21522
21554
|
eventName: string,
|
|
21523
21555
|
args: Common.Array<Multiplayer.ReplicatedValue>,
|
|
21524
|
-
): Promise<
|
|
21556
|
+
): Promise<Multiplayer.ErrorCode> {
|
|
21525
21557
|
var _resolve;
|
|
21526
21558
|
|
|
21527
|
-
var _promise = new Promise<
|
|
21559
|
+
var _promise = new Promise<Multiplayer.ErrorCode>((_r) => {
|
|
21528
21560
|
_resolve = _r;
|
|
21529
21561
|
});
|
|
21530
21562
|
|
|
21531
21563
|
var _callbackPtr: number;
|
|
21532
21564
|
var _callback = (_stateObject__: number, arg1) => {
|
|
21533
|
-
_resolve(
|
|
21565
|
+
_resolve(arg1);
|
|
21534
21566
|
|
|
21535
21567
|
Module.removeFunction(_callbackPtr);
|
|
21536
21568
|
};
|
|
@@ -21538,7 +21570,7 @@ export namespace Multiplayer {
|
|
|
21538
21570
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
21539
21571
|
|
|
21540
21572
|
Module.ccall(
|
|
21541
|
-
"
|
|
21573
|
+
"csp_multiplayer_MultiplayerConnection_SendNetworkEvent_void_StringRC_ArrayRC_ErrorCodeCallbackHandler",
|
|
21542
21574
|
"void",
|
|
21543
21575
|
["number", "string", "number", "number", "number"],
|
|
21544
21576
|
[this.pointer, eventName, args.pointer, _callbackPtr, 0],
|
|
@@ -21552,23 +21584,23 @@ export namespace Multiplayer {
|
|
|
21552
21584
|
* @param eventName - The identifying name for the event.
|
|
21553
21585
|
* @param args - An array of arguments (ReplicatedValue) to be passed as part of the event payload.
|
|
21554
21586
|
* @param targetClientId - The client ID to send the event to.
|
|
21555
|
-
* @param callback - A
|
|
21587
|
+
* @param callback - A callback with failure state.
|
|
21556
21588
|
*/
|
|
21557
21589
|
|
|
21558
21590
|
async sendNetworkEventToClient(
|
|
21559
21591
|
eventName: string,
|
|
21560
21592
|
args: Common.Array<Multiplayer.ReplicatedValue>,
|
|
21561
21593
|
targetClientId: bigint,
|
|
21562
|
-
): Promise<
|
|
21594
|
+
): Promise<Multiplayer.ErrorCode> {
|
|
21563
21595
|
var _resolve;
|
|
21564
21596
|
|
|
21565
|
-
var _promise = new Promise<
|
|
21597
|
+
var _promise = new Promise<Multiplayer.ErrorCode>((_r) => {
|
|
21566
21598
|
_resolve = _r;
|
|
21567
21599
|
});
|
|
21568
21600
|
|
|
21569
21601
|
var _callbackPtr: number;
|
|
21570
21602
|
var _callback = (_stateObject__: number, arg1) => {
|
|
21571
|
-
_resolve(
|
|
21603
|
+
_resolve(arg1);
|
|
21572
21604
|
|
|
21573
21605
|
Module.removeFunction(_callbackPtr);
|
|
21574
21606
|
};
|
|
@@ -21576,7 +21608,7 @@ export namespace Multiplayer {
|
|
|
21576
21608
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
21577
21609
|
|
|
21578
21610
|
Module.ccall(
|
|
21579
|
-
"
|
|
21611
|
+
"csp_multiplayer_MultiplayerConnection_SendNetworkEventToClient_void_StringRC_ArrayRC_uint64_t_ErrorCodeCallbackHandler",
|
|
21580
21612
|
"void",
|
|
21581
21613
|
["number", "string", "number", "bigint", "number", "number"],
|
|
21582
21614
|
[
|
|
@@ -21598,6 +21630,13 @@ export namespace Multiplayer {
|
|
|
21598
21630
|
*/
|
|
21599
21631
|
setDisconnectionCallback(callback: (arg1: string) => void) {
|
|
21600
21632
|
var _callback = (_stateObject__: number, arg1) => {
|
|
21633
|
+
{
|
|
21634
|
+
const _stringValue = Module.UTF8ToString(arg1);
|
|
21635
|
+
free(arg1);
|
|
21636
|
+
|
|
21637
|
+
arg1 = _stringValue;
|
|
21638
|
+
}
|
|
21639
|
+
|
|
21601
21640
|
callback(arg1);
|
|
21602
21641
|
};
|
|
21603
21642
|
|
|
@@ -21617,6 +21656,13 @@ export namespace Multiplayer {
|
|
|
21617
21656
|
*/
|
|
21618
21657
|
setConnectionCallback(callback: (arg1: string) => void) {
|
|
21619
21658
|
var _callback = (_stateObject__: number, arg1) => {
|
|
21659
|
+
{
|
|
21660
|
+
const _stringValue = Module.UTF8ToString(arg1);
|
|
21661
|
+
free(arg1);
|
|
21662
|
+
|
|
21663
|
+
arg1 = _stringValue;
|
|
21664
|
+
}
|
|
21665
|
+
|
|
21620
21666
|
callback(arg1);
|
|
21621
21667
|
};
|
|
21622
21668
|
|
|
@@ -21632,11 +21678,18 @@ export namespace Multiplayer {
|
|
|
21632
21678
|
|
|
21633
21679
|
/**
|
|
21634
21680
|
* @description Sets a callback for a network interruption event.
|
|
21635
|
-
*
|
|
21636
|
-
*
|
|
21681
|
+
* Connection isn't recoverable after this point and Disconnect should be called.
|
|
21682
|
+
* @param callback - The callback for network interruption, contains a string showing failure.
|
|
21637
21683
|
*/
|
|
21638
21684
|
setNetworkInterruptionCallback(callback: (arg1: string) => void) {
|
|
21639
21685
|
var _callback = (_stateObject__: number, arg1) => {
|
|
21686
|
+
{
|
|
21687
|
+
const _stringValue = Module.UTF8ToString(arg1);
|
|
21688
|
+
free(arg1);
|
|
21689
|
+
|
|
21690
|
+
arg1 = _stringValue;
|
|
21691
|
+
}
|
|
21692
|
+
|
|
21640
21693
|
callback(arg1);
|
|
21641
21694
|
};
|
|
21642
21695
|
|
|
@@ -21850,25 +21903,25 @@ export namespace Multiplayer {
|
|
|
21850
21903
|
}
|
|
21851
21904
|
|
|
21852
21905
|
/**
|
|
21853
|
-
* @description Sets the Self Messaging flag for this client.
|
|
21854
|
-
*
|
|
21855
|
-
|
|
21906
|
+
* @description Sets the Self Messaging flag for this client.
|
|
21907
|
+
* This allows a client to declare that it wishes to recieve every patch and object message it sends.
|
|
21908
|
+
@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!
|
|
21856
21909
|
* @param allowSelfMessaging - True to allow and false to disallow.
|
|
21857
|
-
* @param callback -
|
|
21910
|
+
* @param callback - A callback with failure state.
|
|
21858
21911
|
*/
|
|
21859
21912
|
|
|
21860
21913
|
async setAllowSelfMessagingFlag(
|
|
21861
21914
|
allowSelfMessaging: boolean,
|
|
21862
|
-
): Promise<
|
|
21915
|
+
): Promise<Multiplayer.ErrorCode> {
|
|
21863
21916
|
var _resolve;
|
|
21864
21917
|
|
|
21865
|
-
var _promise = new Promise<
|
|
21918
|
+
var _promise = new Promise<Multiplayer.ErrorCode>((_r) => {
|
|
21866
21919
|
_resolve = _r;
|
|
21867
21920
|
});
|
|
21868
21921
|
|
|
21869
21922
|
var _callbackPtr: number;
|
|
21870
21923
|
var _callback = (_stateObject__: number, arg1) => {
|
|
21871
|
-
_resolve(
|
|
21924
|
+
_resolve(arg1);
|
|
21872
21925
|
|
|
21873
21926
|
Module.removeFunction(_callbackPtr);
|
|
21874
21927
|
};
|
|
@@ -21876,7 +21929,7 @@ export namespace Multiplayer {
|
|
|
21876
21929
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
21877
21930
|
|
|
21878
21931
|
Module.ccall(
|
|
21879
|
-
"
|
|
21932
|
+
"csp_multiplayer_MultiplayerConnection_SetAllowSelfMessagingFlag_void_boolC_ErrorCodeCallbackHandler",
|
|
21880
21933
|
"void",
|
|
21881
21934
|
["number", "boolean", "number", "number"],
|
|
21882
21935
|
[this.pointer, allowSelfMessaging, _callbackPtr, 0],
|
|
@@ -22303,90 +22356,6 @@ export namespace Multiplayer {
|
|
|
22303
22356
|
}
|
|
22304
22357
|
}
|
|
22305
22358
|
|
|
22306
|
-
export namespace Multiplayer {
|
|
22307
|
-
export class PropertyUpdateInfo
|
|
22308
|
-
extends NativeClassWrapper
|
|
22309
|
-
implements INativeResource
|
|
22310
|
-
{
|
|
22311
|
-
/** @internal */
|
|
22312
|
-
constructor(pointer: NativePointer) {
|
|
22313
|
-
super(pointer);
|
|
22314
|
-
}
|
|
22315
|
-
|
|
22316
|
-
static create(): PropertyUpdateInfo {
|
|
22317
|
-
var _ptr = Module._malloc(8);
|
|
22318
|
-
Module.ccall(
|
|
22319
|
-
"csp_multiplayer_PropertyUpdateInfo_Ctor",
|
|
22320
|
-
"void",
|
|
22321
|
-
["number"],
|
|
22322
|
-
[_ptr],
|
|
22323
|
-
);
|
|
22324
|
-
var _nPtr = getNativePointer(_ptr);
|
|
22325
|
-
|
|
22326
|
-
return new PropertyUpdateInfo(_nPtr);
|
|
22327
|
-
}
|
|
22328
|
-
|
|
22329
|
-
delete(): void {
|
|
22330
|
-
if (this.ownsPointer && !this.disposed) {
|
|
22331
|
-
Module.ccall(
|
|
22332
|
-
"csp_multiplayer_PropertyUpdateInfo_Dtor",
|
|
22333
|
-
"void",
|
|
22334
|
-
["number"],
|
|
22335
|
-
[this.pointer],
|
|
22336
|
-
);
|
|
22337
|
-
|
|
22338
|
-
this.disposed = true;
|
|
22339
|
-
}
|
|
22340
|
-
}
|
|
22341
|
-
|
|
22342
|
-
get propertyId(): number {
|
|
22343
|
-
let _result = Module.ccall(
|
|
22344
|
-
"csp_multiplayer_PropertyUpdateInfo__Get_PropertyId",
|
|
22345
|
-
"number",
|
|
22346
|
-
["number"],
|
|
22347
|
-
[this.pointer],
|
|
22348
|
-
);
|
|
22349
|
-
|
|
22350
|
-
const _unfixedValue = _result;
|
|
22351
|
-
let _fixedValue =
|
|
22352
|
-
_unfixedValue < 0 ? _unfixedValue + 2 ** 32 : _unfixedValue;
|
|
22353
|
-
|
|
22354
|
-
_result = _fixedValue;
|
|
22355
|
-
|
|
22356
|
-
return _result;
|
|
22357
|
-
}
|
|
22358
|
-
|
|
22359
|
-
set propertyId(value: number) {
|
|
22360
|
-
Module.ccall(
|
|
22361
|
-
"csp_multiplayer_PropertyUpdateInfo__Set_PropertyId",
|
|
22362
|
-
"void",
|
|
22363
|
-
["number", "number"],
|
|
22364
|
-
[this.pointer, value],
|
|
22365
|
-
);
|
|
22366
|
-
}
|
|
22367
|
-
|
|
22368
|
-
get updateType(): Multiplayer.ComponentUpdateType {
|
|
22369
|
-
let _result = Module.ccall(
|
|
22370
|
-
"csp_multiplayer_PropertyUpdateInfo__Get_UpdateType",
|
|
22371
|
-
"number",
|
|
22372
|
-
["number"],
|
|
22373
|
-
[this.pointer],
|
|
22374
|
-
);
|
|
22375
|
-
|
|
22376
|
-
return _result;
|
|
22377
|
-
}
|
|
22378
|
-
|
|
22379
|
-
set updateType(value: Multiplayer.ComponentUpdateType) {
|
|
22380
|
-
Module.ccall(
|
|
22381
|
-
"csp_multiplayer_PropertyUpdateInfo__Set_UpdateType",
|
|
22382
|
-
"void",
|
|
22383
|
-
["number", "number"],
|
|
22384
|
-
[this.pointer, value],
|
|
22385
|
-
);
|
|
22386
|
-
}
|
|
22387
|
-
}
|
|
22388
|
-
}
|
|
22389
|
-
|
|
22390
22359
|
export namespace Multiplayer {
|
|
22391
22360
|
/**
|
|
22392
22361
|
* @description Info class that specifies a type of update and the ID of a component the update is applied to.
|
|
@@ -22908,6 +22877,7 @@ export namespace Multiplayer {
|
|
|
22908
22877
|
* @description Set a callback to be executed when a patch message is received for this Entity. Only one callback can be set.
|
|
22909
22878
|
* @param callback - Contains the SpaceEntity that updated, a set of flags to tell which parts updated
|
|
22910
22879
|
* and an array of information to tell which components updated.
|
|
22880
|
+
* When this callback is recieved, the flags and arrays should be used to determine which properties have updated data.
|
|
22911
22881
|
*/
|
|
22912
22882
|
setUpdateCallback(
|
|
22913
22883
|
callback: (
|
|
@@ -28566,6 +28536,13 @@ export namespace Systems {
|
|
|
28566
28536
|
*/
|
|
28567
28537
|
setLogCallback(callback: (arg1: string) => void) {
|
|
28568
28538
|
var _callback = (_stateObject__: number, arg1) => {
|
|
28539
|
+
{
|
|
28540
|
+
const _stringValue = Module.UTF8ToString(arg1);
|
|
28541
|
+
free(arg1);
|
|
28542
|
+
|
|
28543
|
+
arg1 = _stringValue;
|
|
28544
|
+
}
|
|
28545
|
+
|
|
28569
28546
|
callback(arg1);
|
|
28570
28547
|
};
|
|
28571
28548
|
|
|
@@ -28585,6 +28562,13 @@ export namespace Systems {
|
|
|
28585
28562
|
*/
|
|
28586
28563
|
setEventCallback(callback: (arg1: string) => void) {
|
|
28587
28564
|
var _callback = (_stateObject__: number, arg1) => {
|
|
28565
|
+
{
|
|
28566
|
+
const _stringValue = Module.UTF8ToString(arg1);
|
|
28567
|
+
free(arg1);
|
|
28568
|
+
|
|
28569
|
+
arg1 = _stringValue;
|
|
28570
|
+
}
|
|
28571
|
+
|
|
28588
28572
|
callback(arg1);
|
|
28589
28573
|
};
|
|
28590
28574
|
|
|
@@ -28604,6 +28588,13 @@ export namespace Systems {
|
|
|
28604
28588
|
*/
|
|
28605
28589
|
setBeginMarkerCallback(callback: (arg1: string) => void) {
|
|
28606
28590
|
var _callback = (_stateObject__: number, arg1) => {
|
|
28591
|
+
{
|
|
28592
|
+
const _stringValue = Module.UTF8ToString(arg1);
|
|
28593
|
+
free(arg1);
|
|
28594
|
+
|
|
28595
|
+
arg1 = _stringValue;
|
|
28596
|
+
}
|
|
28597
|
+
|
|
28607
28598
|
callback(arg1);
|
|
28608
28599
|
};
|
|
28609
28600
|
|
|
@@ -28681,6 +28672,61 @@ export namespace Systems {
|
|
|
28681
28672
|
return _result;
|
|
28682
28673
|
}
|
|
28683
28674
|
|
|
28675
|
+
/**
|
|
28676
|
+
* @description Log a message at a specific verbosity level.
|
|
28677
|
+
* @param level - The level to log this message at.
|
|
28678
|
+
* @param inMessage - The message to be logged.
|
|
28679
|
+
*/
|
|
28680
|
+
|
|
28681
|
+
logMsg(level: Systems.LogLevel, message: string): void {
|
|
28682
|
+
Module.ccall(
|
|
28683
|
+
"csp_systems_LogSystem_LogMsg_void_LogLevelC_StringRC",
|
|
28684
|
+
"void",
|
|
28685
|
+
["number", "number", "string"],
|
|
28686
|
+
[this.pointer, level, message],
|
|
28687
|
+
);
|
|
28688
|
+
}
|
|
28689
|
+
|
|
28690
|
+
/**
|
|
28691
|
+
* @description Log an event.
|
|
28692
|
+
* @param inEvent - The event to be logged.
|
|
28693
|
+
*/
|
|
28694
|
+
|
|
28695
|
+
logEvent(event: string): void {
|
|
28696
|
+
Module.ccall(
|
|
28697
|
+
"csp_systems_LogSystem_LogEvent_void_StringRC",
|
|
28698
|
+
"void",
|
|
28699
|
+
["number", "string"],
|
|
28700
|
+
[this.pointer, event],
|
|
28701
|
+
);
|
|
28702
|
+
}
|
|
28703
|
+
|
|
28704
|
+
/**
|
|
28705
|
+
* @description Specify a 'Marker' event which can be used to communicate a certain process occurring, usually for debugging.
|
|
28706
|
+
*/
|
|
28707
|
+
|
|
28708
|
+
beginMarker(marker: string): void {
|
|
28709
|
+
Module.ccall(
|
|
28710
|
+
"csp_systems_LogSystem_BeginMarker_void_StringRC",
|
|
28711
|
+
"void",
|
|
28712
|
+
["number", "string"],
|
|
28713
|
+
[this.pointer, marker],
|
|
28714
|
+
);
|
|
28715
|
+
}
|
|
28716
|
+
|
|
28717
|
+
/**
|
|
28718
|
+
* @description End a 'Marker' event.
|
|
28719
|
+
*/
|
|
28720
|
+
|
|
28721
|
+
endMarker(): void {
|
|
28722
|
+
Module.ccall(
|
|
28723
|
+
"csp_systems_LogSystem_EndMarker_void",
|
|
28724
|
+
"void",
|
|
28725
|
+
["number"],
|
|
28726
|
+
[this.pointer],
|
|
28727
|
+
);
|
|
28728
|
+
}
|
|
28729
|
+
|
|
28684
28730
|
/**
|
|
28685
28731
|
* @description Clears all logging callbacks.
|
|
28686
28732
|
*/
|
|
@@ -31960,6 +32006,10 @@ export namespace Multiplayer {
|
|
|
31960
32006
|
return new AnimatedModelSpaceComponent(_nPtr);
|
|
31961
32007
|
}
|
|
31962
32008
|
|
|
32009
|
+
/** @deprecated
|
|
32010
|
+
Due to the introduction of LODs it doesn't make sense to set a specific asset anymore
|
|
32011
|
+
*/
|
|
32012
|
+
|
|
31963
32013
|
getExternalResourceAssetId(): string {
|
|
31964
32014
|
let _result = Module.ccall(
|
|
31965
32015
|
"csp_multiplayer_AnimatedModelSpaceComponent_GetExternalResourceAssetIdC_StringRC",
|
|
@@ -31976,6 +32026,10 @@ export namespace Multiplayer {
|
|
|
31976
32026
|
return _result;
|
|
31977
32027
|
}
|
|
31978
32028
|
|
|
32029
|
+
/** @deprecated
|
|
32030
|
+
Due to the introduction of LODs it doesn't make sense to set a specific asset anymore
|
|
32031
|
+
*/
|
|
32032
|
+
|
|
31979
32033
|
setExternalResourceAssetId(value: string): void {
|
|
31980
32034
|
Module.ccall(
|
|
31981
32035
|
"csp_multiplayer_AnimatedModelSpaceComponent_SetExternalResourceAssetId_void_StringRC",
|
|
@@ -32393,6 +32447,7 @@ export namespace Multiplayer {
|
|
|
32393
32447
|
extends Multiplayer.ComponentBase
|
|
32394
32448
|
implements
|
|
32395
32449
|
Multiplayer.IEnableableComponent,
|
|
32450
|
+
Multiplayer.IPositionComponent,
|
|
32396
32451
|
Multiplayer.IThirdPartyComponentRef,
|
|
32397
32452
|
INativeResource
|
|
32398
32453
|
{
|
|
@@ -32431,13 +32486,9 @@ export namespace Multiplayer {
|
|
|
32431
32486
|
}
|
|
32432
32487
|
|
|
32433
32488
|
/**
|
|
32434
|
-
*
|
|
32435
|
-
|
|
32436
|
-
|
|
32437
|
-
* - +Y is UP
|
|
32438
|
-
* - +X is left (facing forward)
|
|
32439
|
-
* - +Z is forward
|
|
32440
|
-
* @return The 3D position as vector (left, up, forward) in meters.
|
|
32489
|
+
* \addtogroup IPositionComponent
|
|
32490
|
+
@{
|
|
32491
|
+
@copydoc IPositionComponent::GetPosition()
|
|
32441
32492
|
*/
|
|
32442
32493
|
|
|
32443
32494
|
getPosition(): Common.Vector3 {
|
|
@@ -32456,12 +32507,7 @@ export namespace Multiplayer {
|
|
|
32456
32507
|
}
|
|
32457
32508
|
|
|
32458
32509
|
/**
|
|
32459
|
-
|
|
32460
|
-
* NOTE: The coordinate system used follows the glTF 2.0 specification, in meters.
|
|
32461
|
-
* - Right handed coordinate system
|
|
32462
|
-
* - +Y is UP
|
|
32463
|
-
* - +X is left (facing forward)
|
|
32464
|
-
* - +Z is forward
|
|
32510
|
+
@copydoc IPositionComponent::SetPosition()
|
|
32465
32511
|
*/
|
|
32466
32512
|
|
|
32467
32513
|
setPosition(value: Common.Vector3): void {
|
|
@@ -32474,7 +32520,8 @@ export namespace Multiplayer {
|
|
|
32474
32520
|
}
|
|
32475
32521
|
|
|
32476
32522
|
/**
|
|
32477
|
-
|
|
32523
|
+
@}
|
|
32524
|
+
* @description Gets the current playback state of the audio of this audio component.
|
|
32478
32525
|
* @return The current playback state of the audio of this audio component.
|
|
32479
32526
|
*/
|
|
32480
32527
|
|
|
@@ -33446,6 +33493,7 @@ export namespace Multiplayer {
|
|
|
33446
33493
|
extends Multiplayer.ComponentBase
|
|
33447
33494
|
implements
|
|
33448
33495
|
Multiplayer.IEnableableComponent,
|
|
33496
|
+
Multiplayer.ITransformComponent,
|
|
33449
33497
|
Multiplayer.IVisibleComponent,
|
|
33450
33498
|
INativeResource
|
|
33451
33499
|
{
|
|
@@ -33595,13 +33643,9 @@ export namespace Multiplayer {
|
|
|
33595
33643
|
}
|
|
33596
33644
|
|
|
33597
33645
|
/**
|
|
33598
|
-
*
|
|
33599
|
-
|
|
33600
|
-
|
|
33601
|
-
* - +Y is UP
|
|
33602
|
-
* - +X is left (facing forward)
|
|
33603
|
-
* - +Z is forward
|
|
33604
|
-
* @return The 3D position as vector (left, up, forward) in meters.
|
|
33646
|
+
* \addtogroup ITransformComponent
|
|
33647
|
+
@{
|
|
33648
|
+
@copydoc IPositionComponent::GetPosition()
|
|
33605
33649
|
*/
|
|
33606
33650
|
|
|
33607
33651
|
getPosition(): Common.Vector3 {
|
|
@@ -33620,12 +33664,7 @@ export namespace Multiplayer {
|
|
|
33620
33664
|
}
|
|
33621
33665
|
|
|
33622
33666
|
/**
|
|
33623
|
-
|
|
33624
|
-
* NOTE: The coordinate system used follows the glTF 2.0 specification, in meters.
|
|
33625
|
-
* - Right handed coordinate system
|
|
33626
|
-
* - +Y is UP
|
|
33627
|
-
* - +X is left (facing forward)
|
|
33628
|
-
* - +Z is forward
|
|
33667
|
+
@copydoc IPositionComponent::SetPosition()
|
|
33629
33668
|
*/
|
|
33630
33669
|
|
|
33631
33670
|
setPosition(value: Common.Vector3): void {
|
|
@@ -33638,15 +33677,7 @@ export namespace Multiplayer {
|
|
|
33638
33677
|
}
|
|
33639
33678
|
|
|
33640
33679
|
/**
|
|
33641
|
-
|
|
33642
|
-
* NOTE: The coordinate system respects the following conventions:
|
|
33643
|
-
* - Right handed coordinate system
|
|
33644
|
-
* - Positive rotation is counterclockwise
|
|
33645
|
-
* - The geographic North is along the positive Z axis (+Z) at an orientation of 0 degrees.
|
|
33646
|
-
* - North: +Z
|
|
33647
|
-
* - East: -X
|
|
33648
|
-
* - South: -Z
|
|
33649
|
-
* - West: +X
|
|
33680
|
+
@copydoc IRotationComponent::GetRotation()
|
|
33650
33681
|
*/
|
|
33651
33682
|
|
|
33652
33683
|
getRotation(): Common.Vector4 {
|
|
@@ -33665,16 +33696,7 @@ export namespace Multiplayer {
|
|
|
33665
33696
|
}
|
|
33666
33697
|
|
|
33667
33698
|
/**
|
|
33668
|
-
|
|
33669
|
-
* NOTE: The coordinate system respects the following conventions:
|
|
33670
|
-
* - Right handed coordinate system
|
|
33671
|
-
* - Positive rotation is counterclockwise
|
|
33672
|
-
* - The geographic North is along the positive Z axis (+Z) at an orientation of 0 degrees.
|
|
33673
|
-
* - North: +Z
|
|
33674
|
-
* - East: -X
|
|
33675
|
-
* - South: -Z
|
|
33676
|
-
* - West: +X
|
|
33677
|
-
* @param value - The quaternion in radians to use as new rotation of this component.
|
|
33699
|
+
@copydoc IRotationComponent::SetRotation()
|
|
33678
33700
|
*/
|
|
33679
33701
|
|
|
33680
33702
|
setRotation(value: Common.Vector4): void {
|
|
@@ -33687,13 +33709,7 @@ export namespace Multiplayer {
|
|
|
33687
33709
|
}
|
|
33688
33710
|
|
|
33689
33711
|
/**
|
|
33690
|
-
|
|
33691
|
-
* NOTE: The coordinate system used follows the glTF 2.0 specification.
|
|
33692
|
-
* - Right handed coordinate system
|
|
33693
|
-
* - +Y is UP
|
|
33694
|
-
* - +X is left (facing forward)
|
|
33695
|
-
* - +Z is forward
|
|
33696
|
-
* @return The 3D scale as vector (left, up, forward).
|
|
33712
|
+
@copydoc IScaleComponent::GetScale()
|
|
33697
33713
|
*/
|
|
33698
33714
|
|
|
33699
33715
|
getScale(): Common.Vector3 {
|
|
@@ -33712,13 +33728,7 @@ export namespace Multiplayer {
|
|
|
33712
33728
|
}
|
|
33713
33729
|
|
|
33714
33730
|
/**
|
|
33715
|
-
|
|
33716
|
-
* @param value - The new value expressed as vector (left, up, forward).
|
|
33717
|
-
* NOTE: The coordinate system used follows the glTF 2.0 specification.
|
|
33718
|
-
* - Right handed coordinate system
|
|
33719
|
-
* - +Y is UP
|
|
33720
|
-
* - +X is left (facing forward)
|
|
33721
|
-
* - +Z is forward
|
|
33731
|
+
@copydoc IScaleComponent::SetScale()
|
|
33722
33732
|
*/
|
|
33723
33733
|
|
|
33724
33734
|
setScale(value: Common.Vector3): void {
|
|
@@ -33731,6 +33741,38 @@ export namespace Multiplayer {
|
|
|
33731
33741
|
}
|
|
33732
33742
|
|
|
33733
33743
|
/**
|
|
33744
|
+
@copydoc ITransformComponent::GetTransform()
|
|
33745
|
+
*/
|
|
33746
|
+
|
|
33747
|
+
getTransform(): Multiplayer.SpaceTransform {
|
|
33748
|
+
var _ret = Module._malloc(8);
|
|
33749
|
+
|
|
33750
|
+
Module.ccall(
|
|
33751
|
+
"csp_multiplayer_ButtonSpaceComponent_GetTransformC_SpaceTransform",
|
|
33752
|
+
"void",
|
|
33753
|
+
["number", "number"],
|
|
33754
|
+
[_ret, this.pointer],
|
|
33755
|
+
);
|
|
33756
|
+
var _nPtr = new Multiplayer.SpaceTransform(getNativePointer(_ret));
|
|
33757
|
+
Module._free(_ret);
|
|
33758
|
+
return _nPtr;
|
|
33759
|
+
}
|
|
33760
|
+
|
|
33761
|
+
/**
|
|
33762
|
+
@copydoc ITransformComonent::SetTransform()
|
|
33763
|
+
*/
|
|
33764
|
+
|
|
33765
|
+
setTransform(value: Multiplayer.SpaceTransform): void {
|
|
33766
|
+
Module.ccall(
|
|
33767
|
+
"csp_multiplayer_ButtonSpaceComponent_SetTransform_void_SpaceTransformRC",
|
|
33768
|
+
"void",
|
|
33769
|
+
["number", "number"],
|
|
33770
|
+
[this.pointer, value.pointer],
|
|
33771
|
+
);
|
|
33772
|
+
}
|
|
33773
|
+
|
|
33774
|
+
/**
|
|
33775
|
+
@}
|
|
33734
33776
|
* \addtogroup IClickableComponent
|
|
33735
33777
|
@{
|
|
33736
33778
|
@copydoc IClickableComponent::GetIsEnabled()
|
|
@@ -33841,7 +33883,10 @@ export namespace Multiplayer {
|
|
|
33841
33883
|
*/
|
|
33842
33884
|
export class CollisionSpaceComponent
|
|
33843
33885
|
extends Multiplayer.ComponentBase
|
|
33844
|
-
implements
|
|
33886
|
+
implements
|
|
33887
|
+
Multiplayer.IThirdPartyComponentRef,
|
|
33888
|
+
Multiplayer.ITransformComponent,
|
|
33889
|
+
INativeResource
|
|
33845
33890
|
{
|
|
33846
33891
|
/** @internal */
|
|
33847
33892
|
constructor(pointer: NativePointer) {
|
|
@@ -33880,13 +33925,9 @@ export namespace Multiplayer {
|
|
|
33880
33925
|
}
|
|
33881
33926
|
|
|
33882
33927
|
/**
|
|
33883
|
-
*
|
|
33884
|
-
|
|
33885
|
-
|
|
33886
|
-
* - +Y is UP
|
|
33887
|
-
* - +X is left (facing forward)
|
|
33888
|
-
* - +Z is forward
|
|
33889
|
-
* @return The 3D position as vector (left, up, forward) in meters.
|
|
33928
|
+
* \addtogroup ITransformComponent
|
|
33929
|
+
@{
|
|
33930
|
+
@copydoc IPositionComponent::GetPosition()
|
|
33890
33931
|
*/
|
|
33891
33932
|
|
|
33892
33933
|
getPosition(): Common.Vector3 {
|
|
@@ -33905,12 +33946,7 @@ export namespace Multiplayer {
|
|
|
33905
33946
|
}
|
|
33906
33947
|
|
|
33907
33948
|
/**
|
|
33908
|
-
|
|
33909
|
-
* NOTE: The coordinate system used follows the glTF 2.0 specification, in meters.
|
|
33910
|
-
* - Right handed coordinate system
|
|
33911
|
-
* - +Y is UP
|
|
33912
|
-
* - +X is left (facing forward)
|
|
33913
|
-
* - +Z is forward
|
|
33949
|
+
@copydoc IPositionComponent::SetPosition()
|
|
33914
33950
|
*/
|
|
33915
33951
|
|
|
33916
33952
|
setPosition(value: Common.Vector3): void {
|
|
@@ -33923,15 +33959,7 @@ export namespace Multiplayer {
|
|
|
33923
33959
|
}
|
|
33924
33960
|
|
|
33925
33961
|
/**
|
|
33926
|
-
|
|
33927
|
-
* NOTE: The coordinate system respects the following conventions:
|
|
33928
|
-
* - Right handed coordinate system
|
|
33929
|
-
* - Positive rotation is counterclockwise
|
|
33930
|
-
* - The geographic North is along the positive Z axis (+Z) at an orientation of 0 degrees.
|
|
33931
|
-
* - North: +Z
|
|
33932
|
-
* - East: -X
|
|
33933
|
-
* - South: -Z
|
|
33934
|
-
* - West: +X
|
|
33962
|
+
@copydoc IRotationComponent::GetRotation()
|
|
33935
33963
|
*/
|
|
33936
33964
|
|
|
33937
33965
|
getRotation(): Common.Vector4 {
|
|
@@ -33950,16 +33978,7 @@ export namespace Multiplayer {
|
|
|
33950
33978
|
}
|
|
33951
33979
|
|
|
33952
33980
|
/**
|
|
33953
|
-
|
|
33954
|
-
* NOTE: The coordinate system respects the following conventions:
|
|
33955
|
-
* - Right handed coordinate system
|
|
33956
|
-
* - Positive rotation is counterclockwise
|
|
33957
|
-
* - The geographic North is along the positive Z axis (+Z) at an orientation of 0 degrees.
|
|
33958
|
-
* - North: +Z
|
|
33959
|
-
* - East: -X
|
|
33960
|
-
* - South: -Z
|
|
33961
|
-
* - West: +X
|
|
33962
|
-
* @param value - The quaternion in radians to use as new rotation of this component.
|
|
33981
|
+
@copydoc IRotationComponent::SetRotation()
|
|
33963
33982
|
*/
|
|
33964
33983
|
|
|
33965
33984
|
setRotation(value: Common.Vector4): void {
|
|
@@ -33972,13 +33991,7 @@ export namespace Multiplayer {
|
|
|
33972
33991
|
}
|
|
33973
33992
|
|
|
33974
33993
|
/**
|
|
33975
|
-
|
|
33976
|
-
* NOTE: The coordinate system used follows the glTF 2.0 specification.
|
|
33977
|
-
* - Right handed coordinate system
|
|
33978
|
-
* - +Y is UP
|
|
33979
|
-
* - +X is left (facing forward)
|
|
33980
|
-
* - +Z is forward
|
|
33981
|
-
* @return The 3D scale as vector (left, up, forward).
|
|
33994
|
+
@copydoc IScaleComponent::GetScale()
|
|
33982
33995
|
*/
|
|
33983
33996
|
|
|
33984
33997
|
getScale(): Common.Vector3 {
|
|
@@ -33997,13 +34010,7 @@ export namespace Multiplayer {
|
|
|
33997
34010
|
}
|
|
33998
34011
|
|
|
33999
34012
|
/**
|
|
34000
|
-
|
|
34001
|
-
* @param value - The new value expressed as vector (left, up, forward).
|
|
34002
|
-
* NOTE: The coordinate system used follows the glTF 2.0 specification.
|
|
34003
|
-
* - Right handed coordinate system
|
|
34004
|
-
* - +Y is UP
|
|
34005
|
-
* - +X is left (facing forward)
|
|
34006
|
-
* - +Z is forward
|
|
34013
|
+
@copydoc IScaleComponent::SetScale()
|
|
34007
34014
|
*/
|
|
34008
34015
|
|
|
34009
34016
|
setScale(value: Common.Vector3): void {
|
|
@@ -34016,7 +34023,39 @@ export namespace Multiplayer {
|
|
|
34016
34023
|
}
|
|
34017
34024
|
|
|
34018
34025
|
/**
|
|
34019
|
-
|
|
34026
|
+
@copydoc ITransformComponent::GetTransform()
|
|
34027
|
+
*/
|
|
34028
|
+
|
|
34029
|
+
getTransform(): Multiplayer.SpaceTransform {
|
|
34030
|
+
var _ret = Module._malloc(8);
|
|
34031
|
+
|
|
34032
|
+
Module.ccall(
|
|
34033
|
+
"csp_multiplayer_CollisionSpaceComponent_GetTransformC_SpaceTransform",
|
|
34034
|
+
"void",
|
|
34035
|
+
["number", "number"],
|
|
34036
|
+
[_ret, this.pointer],
|
|
34037
|
+
);
|
|
34038
|
+
var _nPtr = new Multiplayer.SpaceTransform(getNativePointer(_ret));
|
|
34039
|
+
Module._free(_ret);
|
|
34040
|
+
return _nPtr;
|
|
34041
|
+
}
|
|
34042
|
+
|
|
34043
|
+
/**
|
|
34044
|
+
@copydoc ITransformComonent::SetTransform()
|
|
34045
|
+
*/
|
|
34046
|
+
|
|
34047
|
+
setTransform(value: Multiplayer.SpaceTransform): void {
|
|
34048
|
+
Module.ccall(
|
|
34049
|
+
"csp_multiplayer_CollisionSpaceComponent_SetTransform_void_SpaceTransformRC",
|
|
34050
|
+
"void",
|
|
34051
|
+
["number", "number"],
|
|
34052
|
+
[this.pointer, value.pointer],
|
|
34053
|
+
);
|
|
34054
|
+
}
|
|
34055
|
+
|
|
34056
|
+
/**
|
|
34057
|
+
@}
|
|
34058
|
+
* @description Gets the collision shape used by this collision component.
|
|
34020
34059
|
* @return The colllision shape used by this collision component.
|
|
34021
34060
|
*/
|
|
34022
34061
|
|
|
@@ -34328,7 +34367,10 @@ export namespace Multiplayer {
|
|
|
34328
34367
|
*/
|
|
34329
34368
|
export class ConversationSpaceComponent
|
|
34330
34369
|
extends Multiplayer.ComponentBase
|
|
34331
|
-
implements
|
|
34370
|
+
implements
|
|
34371
|
+
Multiplayer.IPositionComponent,
|
|
34372
|
+
Multiplayer.IRotationComponent,
|
|
34373
|
+
INativeResource
|
|
34332
34374
|
{
|
|
34333
34375
|
/** @internal */
|
|
34334
34376
|
constructor(pointer: NativePointer) {
|
|
@@ -34765,7 +34807,9 @@ export namespace Multiplayer {
|
|
|
34765
34807
|
}
|
|
34766
34808
|
|
|
34767
34809
|
/**
|
|
34768
|
-
*
|
|
34810
|
+
* \addtogroup IPositionComponent
|
|
34811
|
+
@{
|
|
34812
|
+
@copydoc IPositionComponent::GetPosition()
|
|
34769
34813
|
*/
|
|
34770
34814
|
|
|
34771
34815
|
getPosition(): Common.Vector3 {
|
|
@@ -34784,8 +34828,7 @@ export namespace Multiplayer {
|
|
|
34784
34828
|
}
|
|
34785
34829
|
|
|
34786
34830
|
/**
|
|
34787
|
-
|
|
34788
|
-
* @param value - - The new 3D position assigned to the origin of this component.
|
|
34831
|
+
@copydoc IPositionComponent::SetPosition()
|
|
34789
34832
|
*/
|
|
34790
34833
|
|
|
34791
34834
|
setPosition(value: Common.Vector3): void {
|
|
@@ -34798,7 +34841,10 @@ export namespace Multiplayer {
|
|
|
34798
34841
|
}
|
|
34799
34842
|
|
|
34800
34843
|
/**
|
|
34801
|
-
|
|
34844
|
+
@}
|
|
34845
|
+
* \addtogroup IRotationComponent
|
|
34846
|
+
@{
|
|
34847
|
+
@copydoc IRotationComponent::GetRotation()
|
|
34802
34848
|
*/
|
|
34803
34849
|
|
|
34804
34850
|
getRotation(): Common.Vector4 {
|
|
@@ -34817,8 +34863,7 @@ export namespace Multiplayer {
|
|
|
34817
34863
|
}
|
|
34818
34864
|
|
|
34819
34865
|
/**
|
|
34820
|
-
|
|
34821
|
-
* @param value - - The new rotation assigned to the origin of this component.
|
|
34866
|
+
@copydoc IRotationComponent::SetRotation()
|
|
34822
34867
|
*/
|
|
34823
34868
|
|
|
34824
34869
|
setRotation(value: Common.Vector4): void {
|
|
@@ -34830,6 +34875,10 @@ export namespace Multiplayer {
|
|
|
34830
34875
|
);
|
|
34831
34876
|
}
|
|
34832
34877
|
|
|
34878
|
+
/**
|
|
34879
|
+
@}
|
|
34880
|
+
*/
|
|
34881
|
+
|
|
34833
34882
|
getIsVisible(): boolean {
|
|
34834
34883
|
let _result = Module.ccall(
|
|
34835
34884
|
"csp_multiplayer_ConversationSpaceComponent_GetIsVisibleC_bool",
|
|
@@ -35235,7 +35284,7 @@ export namespace Multiplayer {
|
|
|
35235
35284
|
*/
|
|
35236
35285
|
export class ECommerceSpaceComponent
|
|
35237
35286
|
extends Multiplayer.ComponentBase
|
|
35238
|
-
implements INativeResource
|
|
35287
|
+
implements Multiplayer.IPositionComponent, INativeResource
|
|
35239
35288
|
{
|
|
35240
35289
|
/** @internal */
|
|
35241
35290
|
constructor(pointer: NativePointer) {
|
|
@@ -35274,13 +35323,9 @@ export namespace Multiplayer {
|
|
|
35274
35323
|
}
|
|
35275
35324
|
|
|
35276
35325
|
/**
|
|
35277
|
-
*
|
|
35278
|
-
|
|
35279
|
-
|
|
35280
|
-
* - +Y is UP
|
|
35281
|
-
* - +X is left (facing forward)
|
|
35282
|
-
* - +Z is forward
|
|
35283
|
-
* @return The 3D position as vector (left, up, forward) in meters.
|
|
35326
|
+
* \addtogroup ITransformComponent
|
|
35327
|
+
@{
|
|
35328
|
+
@copydoc IPositionComponent::GetPosition()
|
|
35284
35329
|
*/
|
|
35285
35330
|
|
|
35286
35331
|
getPosition(): Common.Vector3 {
|
|
@@ -35299,12 +35344,7 @@ export namespace Multiplayer {
|
|
|
35299
35344
|
}
|
|
35300
35345
|
|
|
35301
35346
|
/**
|
|
35302
|
-
|
|
35303
|
-
* NOTE: The coordinate system used follows the glTF 2.0 specification, in meters.
|
|
35304
|
-
* - Right handed coordinate system
|
|
35305
|
-
* - +Y is UP
|
|
35306
|
-
* - +X is left (facing forward)
|
|
35307
|
-
* - +Z is forward
|
|
35347
|
+
@copydoc IPositionComponent::SetPosition()
|
|
35308
35348
|
*/
|
|
35309
35349
|
|
|
35310
35350
|
setPosition(value: Common.Vector3): void {
|
|
@@ -35317,7 +35357,8 @@ export namespace Multiplayer {
|
|
|
35317
35357
|
}
|
|
35318
35358
|
|
|
35319
35359
|
/**
|
|
35320
|
-
|
|
35360
|
+
@}
|
|
35361
|
+
* @description Gets the product ID associated with the ECommerce component.
|
|
35321
35362
|
* @return The product ID associated with the ECommerce component.
|
|
35322
35363
|
*/
|
|
35323
35364
|
|
|
@@ -35376,6 +35417,7 @@ export namespace Multiplayer {
|
|
|
35376
35417
|
extends Multiplayer.ComponentBase
|
|
35377
35418
|
implements
|
|
35378
35419
|
Multiplayer.IEnableableComponent,
|
|
35420
|
+
Multiplayer.ITransformComponent,
|
|
35379
35421
|
Multiplayer.IVisibleComponent,
|
|
35380
35422
|
INativeResource
|
|
35381
35423
|
{
|
|
@@ -35484,7 +35526,9 @@ export namespace Multiplayer {
|
|
|
35484
35526
|
}
|
|
35485
35527
|
|
|
35486
35528
|
/**
|
|
35487
|
-
*
|
|
35529
|
+
* \addtogroup ITransformComponent
|
|
35530
|
+
@{
|
|
35531
|
+
@copydoc IPositionComponent::GetPosition()
|
|
35488
35532
|
*/
|
|
35489
35533
|
|
|
35490
35534
|
getPosition(): Common.Vector3 {
|
|
@@ -35503,8 +35547,7 @@ export namespace Multiplayer {
|
|
|
35503
35547
|
}
|
|
35504
35548
|
|
|
35505
35549
|
/**
|
|
35506
|
-
|
|
35507
|
-
* @param value - - The new 3D position assigned to the origin of this component.
|
|
35550
|
+
@copydoc IPositionComponent::SetPosition()
|
|
35508
35551
|
*/
|
|
35509
35552
|
|
|
35510
35553
|
setPosition(value: Common.Vector3): void {
|
|
@@ -35517,7 +35560,7 @@ export namespace Multiplayer {
|
|
|
35517
35560
|
}
|
|
35518
35561
|
|
|
35519
35562
|
/**
|
|
35520
|
-
|
|
35563
|
+
@copydoc IRotationComponent::GetRotation()
|
|
35521
35564
|
*/
|
|
35522
35565
|
|
|
35523
35566
|
getRotation(): Common.Vector4 {
|
|
@@ -35536,8 +35579,7 @@ export namespace Multiplayer {
|
|
|
35536
35579
|
}
|
|
35537
35580
|
|
|
35538
35581
|
/**
|
|
35539
|
-
|
|
35540
|
-
* @param value - - The new rotation assigned to the origin of this component.
|
|
35582
|
+
@copydoc IRotationComponent::SetRotation()
|
|
35541
35583
|
*/
|
|
35542
35584
|
|
|
35543
35585
|
setRotation(value: Common.Vector4): void {
|
|
@@ -35550,7 +35592,7 @@ export namespace Multiplayer {
|
|
|
35550
35592
|
}
|
|
35551
35593
|
|
|
35552
35594
|
/**
|
|
35553
|
-
|
|
35595
|
+
@copydoc IScaleComponent::GetScale()
|
|
35554
35596
|
*/
|
|
35555
35597
|
|
|
35556
35598
|
getScale(): Common.Vector3 {
|
|
@@ -35569,8 +35611,7 @@ export namespace Multiplayer {
|
|
|
35569
35611
|
}
|
|
35570
35612
|
|
|
35571
35613
|
/**
|
|
35572
|
-
|
|
35573
|
-
* @param value - - The new 3D scale assigned to this component.
|
|
35614
|
+
@copydoc IScaleComponent::SetScale()
|
|
35574
35615
|
*/
|
|
35575
35616
|
|
|
35576
35617
|
setScale(value: Common.Vector3): void {
|
|
@@ -35583,7 +35624,39 @@ export namespace Multiplayer {
|
|
|
35583
35624
|
}
|
|
35584
35625
|
|
|
35585
35626
|
/**
|
|
35586
|
-
|
|
35627
|
+
@copydoc ITransformComponent::GetTransform()
|
|
35628
|
+
*/
|
|
35629
|
+
|
|
35630
|
+
getTransform(): Multiplayer.SpaceTransform {
|
|
35631
|
+
var _ret = Module._malloc(8);
|
|
35632
|
+
|
|
35633
|
+
Module.ccall(
|
|
35634
|
+
"csp_multiplayer_ExternalLinkSpaceComponent_GetTransformC_SpaceTransform",
|
|
35635
|
+
"void",
|
|
35636
|
+
["number", "number"],
|
|
35637
|
+
[_ret, this.pointer],
|
|
35638
|
+
);
|
|
35639
|
+
var _nPtr = new Multiplayer.SpaceTransform(getNativePointer(_ret));
|
|
35640
|
+
Module._free(_ret);
|
|
35641
|
+
return _nPtr;
|
|
35642
|
+
}
|
|
35643
|
+
|
|
35644
|
+
/**
|
|
35645
|
+
@copydoc ITransformComonent::SetTransform()
|
|
35646
|
+
*/
|
|
35647
|
+
|
|
35648
|
+
setTransform(value: Multiplayer.SpaceTransform): void {
|
|
35649
|
+
Module.ccall(
|
|
35650
|
+
"csp_multiplayer_ExternalLinkSpaceComponent_SetTransform_void_SpaceTransformRC",
|
|
35651
|
+
"void",
|
|
35652
|
+
["number", "number"],
|
|
35653
|
+
[this.pointer, value.pointer],
|
|
35654
|
+
);
|
|
35655
|
+
}
|
|
35656
|
+
|
|
35657
|
+
/**
|
|
35658
|
+
@}
|
|
35659
|
+
* @description Gets the text that will be displayed by the component as hyperlink to the URL it redirects to.
|
|
35587
35660
|
*/
|
|
35588
35661
|
|
|
35589
35662
|
getDisplayText(): string {
|
|
@@ -35727,7 +35800,10 @@ export namespace Multiplayer {
|
|
|
35727
35800
|
*/
|
|
35728
35801
|
export class FiducialMarkerSpaceComponent
|
|
35729
35802
|
extends Multiplayer.ComponentBase
|
|
35730
|
-
implements
|
|
35803
|
+
implements
|
|
35804
|
+
Multiplayer.ITransformComponent,
|
|
35805
|
+
Multiplayer.IVisibleComponent,
|
|
35806
|
+
INativeResource
|
|
35731
35807
|
{
|
|
35732
35808
|
/** @internal */
|
|
35733
35809
|
constructor(pointer: NativePointer) {
|
|
@@ -35873,13 +35949,9 @@ export namespace Multiplayer {
|
|
|
35873
35949
|
}
|
|
35874
35950
|
|
|
35875
35951
|
/**
|
|
35876
|
-
*
|
|
35877
|
-
|
|
35878
|
-
|
|
35879
|
-
* - +Y is UP
|
|
35880
|
-
* - +X is left (facing forward)
|
|
35881
|
-
* - +Z is forward
|
|
35882
|
-
* @return The 3D position as vector (left, up, forward) in meters.
|
|
35952
|
+
* \addtogroup ITransformComponent
|
|
35953
|
+
@{
|
|
35954
|
+
@copydoc IPositionComponent::GetPosition()
|
|
35883
35955
|
*/
|
|
35884
35956
|
|
|
35885
35957
|
getPosition(): Common.Vector3 {
|
|
@@ -35898,12 +35970,7 @@ export namespace Multiplayer {
|
|
|
35898
35970
|
}
|
|
35899
35971
|
|
|
35900
35972
|
/**
|
|
35901
|
-
|
|
35902
|
-
* NOTE: The coordinate system used follows the glTF 2.0 specification, in meters.
|
|
35903
|
-
* - Right handed coordinate system
|
|
35904
|
-
* - +Y is UP
|
|
35905
|
-
* - +X is left (facing forward)
|
|
35906
|
-
* - +Z is forward
|
|
35973
|
+
@copydoc IPositionComponent::SetPosition()
|
|
35907
35974
|
*/
|
|
35908
35975
|
|
|
35909
35976
|
setPosition(value: Common.Vector3): void {
|
|
@@ -35916,15 +35983,7 @@ export namespace Multiplayer {
|
|
|
35916
35983
|
}
|
|
35917
35984
|
|
|
35918
35985
|
/**
|
|
35919
|
-
|
|
35920
|
-
* NOTE: The coordinate system respects the following conventions:
|
|
35921
|
-
* - Right handed coordinate system
|
|
35922
|
-
* - Positive rotation is counterclockwise
|
|
35923
|
-
* - The geographic North is along the positive Z axis (+Z) at an orientation of 0 degrees.
|
|
35924
|
-
* - North: +Z
|
|
35925
|
-
* - East: -X
|
|
35926
|
-
* - South: -Z
|
|
35927
|
-
* - West: +X
|
|
35986
|
+
@copydoc IRotationComponent::GetRotation()
|
|
35928
35987
|
*/
|
|
35929
35988
|
|
|
35930
35989
|
getRotation(): Common.Vector4 {
|
|
@@ -35943,16 +36002,7 @@ export namespace Multiplayer {
|
|
|
35943
36002
|
}
|
|
35944
36003
|
|
|
35945
36004
|
/**
|
|
35946
|
-
|
|
35947
|
-
* NOTE: The coordinate system respects the following conventions:
|
|
35948
|
-
* - Right handed coordinate system
|
|
35949
|
-
* - Positive rotation is counterclockwise
|
|
35950
|
-
* - The geographic North is along the positive Z axis (+Z) at an orientation of 0 degrees.
|
|
35951
|
-
* - North: +Z
|
|
35952
|
-
* - East: -X
|
|
35953
|
-
* - South: -Z
|
|
35954
|
-
* - West: +X
|
|
35955
|
-
* @param value - The quaternion in radians to use as new rotation of this component.
|
|
36005
|
+
@copydoc IRotationComponent::SetRotation()
|
|
35956
36006
|
*/
|
|
35957
36007
|
|
|
35958
36008
|
setRotation(value: Common.Vector4): void {
|
|
@@ -35965,13 +36015,7 @@ export namespace Multiplayer {
|
|
|
35965
36015
|
}
|
|
35966
36016
|
|
|
35967
36017
|
/**
|
|
35968
|
-
|
|
35969
|
-
* NOTE: The coordinate system used follows the glTF 2.0 specification.
|
|
35970
|
-
* - Right handed coordinate system
|
|
35971
|
-
* - +Y is UP
|
|
35972
|
-
* - +X is left (facing forward)
|
|
35973
|
-
* - +Z is forward
|
|
35974
|
-
* @return The 3D scale as vector (left, up, forward).
|
|
36018
|
+
@copydoc IScaleComponent::GetScale()
|
|
35975
36019
|
*/
|
|
35976
36020
|
|
|
35977
36021
|
getScale(): Common.Vector3 {
|
|
@@ -35990,13 +36034,7 @@ export namespace Multiplayer {
|
|
|
35990
36034
|
}
|
|
35991
36035
|
|
|
35992
36036
|
/**
|
|
35993
|
-
|
|
35994
|
-
* @param value - The new value expressed as vector (left, up, forward).
|
|
35995
|
-
* NOTE: The coordinate system used follows the glTF 2.0 specification.
|
|
35996
|
-
* - Right handed coordinate system
|
|
35997
|
-
* - +Y is UP
|
|
35998
|
-
* - +X is left (facing forward)
|
|
35999
|
-
* - +Z is forward
|
|
36037
|
+
@copydoc IScaleComponent::SetScale()
|
|
36000
36038
|
*/
|
|
36001
36039
|
|
|
36002
36040
|
setScale(value: Common.Vector3): void {
|
|
@@ -36009,6 +36047,38 @@ export namespace Multiplayer {
|
|
|
36009
36047
|
}
|
|
36010
36048
|
|
|
36011
36049
|
/**
|
|
36050
|
+
@copydoc ITransformComponent::GetTransform()
|
|
36051
|
+
*/
|
|
36052
|
+
|
|
36053
|
+
getTransform(): Multiplayer.SpaceTransform {
|
|
36054
|
+
var _ret = Module._malloc(8);
|
|
36055
|
+
|
|
36056
|
+
Module.ccall(
|
|
36057
|
+
"csp_multiplayer_FiducialMarkerSpaceComponent_GetTransformC_SpaceTransform",
|
|
36058
|
+
"void",
|
|
36059
|
+
["number", "number"],
|
|
36060
|
+
[_ret, this.pointer],
|
|
36061
|
+
);
|
|
36062
|
+
var _nPtr = new Multiplayer.SpaceTransform(getNativePointer(_ret));
|
|
36063
|
+
Module._free(_ret);
|
|
36064
|
+
return _nPtr;
|
|
36065
|
+
}
|
|
36066
|
+
|
|
36067
|
+
/**
|
|
36068
|
+
@copydoc ITransformComonent::SetTransform()
|
|
36069
|
+
*/
|
|
36070
|
+
|
|
36071
|
+
setTransform(value: Multiplayer.SpaceTransform): void {
|
|
36072
|
+
Module.ccall(
|
|
36073
|
+
"csp_multiplayer_FiducialMarkerSpaceComponent_SetTransform_void_SpaceTransformRC",
|
|
36074
|
+
"void",
|
|
36075
|
+
["number", "number"],
|
|
36076
|
+
[this.pointer, value.pointer],
|
|
36077
|
+
);
|
|
36078
|
+
}
|
|
36079
|
+
|
|
36080
|
+
/**
|
|
36081
|
+
@}
|
|
36012
36082
|
* \addtogroup IVisibleComponent
|
|
36013
36083
|
@{
|
|
36014
36084
|
@copydoc IVisibleComponent::GetIsVisible()
|
|
@@ -36089,8 +36159,9 @@ export namespace Multiplayer {
|
|
|
36089
36159
|
export class FogSpaceComponent
|
|
36090
36160
|
extends Multiplayer.ComponentBase
|
|
36091
36161
|
implements
|
|
36092
|
-
Multiplayer.IVisibleComponent,
|
|
36093
36162
|
Multiplayer.IThirdPartyComponentRef,
|
|
36163
|
+
Multiplayer.ITransformComponent,
|
|
36164
|
+
Multiplayer.IVisibleComponent,
|
|
36094
36165
|
INativeResource
|
|
36095
36166
|
{
|
|
36096
36167
|
/** @internal */
|
|
@@ -36158,13 +36229,9 @@ export namespace Multiplayer {
|
|
|
36158
36229
|
}
|
|
36159
36230
|
|
|
36160
36231
|
/**
|
|
36161
|
-
*
|
|
36162
|
-
|
|
36163
|
-
|
|
36164
|
-
* - +Y is UP
|
|
36165
|
-
* - +X is left (facing forward)
|
|
36166
|
-
* - +Z is forward
|
|
36167
|
-
* @return The 3D position as vector (left, up, forward) in meters.
|
|
36232
|
+
* \addtogroup ITransformComponent
|
|
36233
|
+
@{
|
|
36234
|
+
@copydoc IPositionComponent::GetPosition()
|
|
36168
36235
|
*/
|
|
36169
36236
|
|
|
36170
36237
|
getPosition(): Common.Vector3 {
|
|
@@ -36183,12 +36250,7 @@ export namespace Multiplayer {
|
|
|
36183
36250
|
}
|
|
36184
36251
|
|
|
36185
36252
|
/**
|
|
36186
|
-
|
|
36187
|
-
* NOTE: The coordinate system used follows the glTF 2.0 specification, in meters.
|
|
36188
|
-
* - Right handed coordinate system
|
|
36189
|
-
* - +Y is UP
|
|
36190
|
-
* - +X is left (facing forward)
|
|
36191
|
-
* - +Z is forward
|
|
36253
|
+
@copydoc IPositionComponent::SetPosition()
|
|
36192
36254
|
*/
|
|
36193
36255
|
|
|
36194
36256
|
setPosition(value: Common.Vector3): void {
|
|
@@ -36201,15 +36263,7 @@ export namespace Multiplayer {
|
|
|
36201
36263
|
}
|
|
36202
36264
|
|
|
36203
36265
|
/**
|
|
36204
|
-
|
|
36205
|
-
* NOTE: The coordinate system respects the following conventions:
|
|
36206
|
-
* - Right handed coordinate system
|
|
36207
|
-
* - Positive rotation is counterclockwise
|
|
36208
|
-
* - The geographic North is along the positive Z axis (+Z) at an orientation of 0 degrees.
|
|
36209
|
-
* - North: +Z
|
|
36210
|
-
* - East: -X
|
|
36211
|
-
* - South: -Z
|
|
36212
|
-
* - West: +X
|
|
36266
|
+
@copydoc IRotationComponent::GetRotation()
|
|
36213
36267
|
*/
|
|
36214
36268
|
|
|
36215
36269
|
getRotation(): Common.Vector4 {
|
|
@@ -36228,16 +36282,7 @@ export namespace Multiplayer {
|
|
|
36228
36282
|
}
|
|
36229
36283
|
|
|
36230
36284
|
/**
|
|
36231
|
-
|
|
36232
|
-
* NOTE: The coordinate system respects the following conventions:
|
|
36233
|
-
* - Right handed coordinate system
|
|
36234
|
-
* - Positive rotation is counterclockwise
|
|
36235
|
-
* - The geographic North is along the positive Z axis (+Z) at an orientation of 0 degrees.
|
|
36236
|
-
* - North: +Z
|
|
36237
|
-
* - East: -X
|
|
36238
|
-
* - South: -Z
|
|
36239
|
-
* - West: +X
|
|
36240
|
-
* @param value - The quaternion in radians to use as new rotation of this component.
|
|
36285
|
+
@copydoc IRotationComponent::SetRotation()
|
|
36241
36286
|
*/
|
|
36242
36287
|
|
|
36243
36288
|
setRotation(value: Common.Vector4): void {
|
|
@@ -36250,13 +36295,7 @@ export namespace Multiplayer {
|
|
|
36250
36295
|
}
|
|
36251
36296
|
|
|
36252
36297
|
/**
|
|
36253
|
-
|
|
36254
|
-
* NOTE: The coordinate system used follows the glTF 2.0 specification.
|
|
36255
|
-
* - Right handed coordinate system
|
|
36256
|
-
* - +Y is UP
|
|
36257
|
-
* - +X is left (facing forward)
|
|
36258
|
-
* - +Z is forward
|
|
36259
|
-
* @return The 3D scale as vector (left, up, forward).
|
|
36298
|
+
@copydoc IScaleComponent::GetScale()
|
|
36260
36299
|
*/
|
|
36261
36300
|
|
|
36262
36301
|
getScale(): Common.Vector3 {
|
|
@@ -36275,13 +36314,7 @@ export namespace Multiplayer {
|
|
|
36275
36314
|
}
|
|
36276
36315
|
|
|
36277
36316
|
/**
|
|
36278
|
-
|
|
36279
|
-
* @param value - The new value expressed as vector (left, up, forward).
|
|
36280
|
-
* NOTE: The coordinate system used follows the glTF 2.0 specification.
|
|
36281
|
-
* - Right handed coordinate system
|
|
36282
|
-
* - +Y is UP
|
|
36283
|
-
* - +X is left (facing forward)
|
|
36284
|
-
* - +Z is forward
|
|
36317
|
+
@copydoc IScaleComponent::SetScale()
|
|
36285
36318
|
*/
|
|
36286
36319
|
|
|
36287
36320
|
setScale(value: Common.Vector3): void {
|
|
@@ -36294,9 +36327,41 @@ export namespace Multiplayer {
|
|
|
36294
36327
|
}
|
|
36295
36328
|
|
|
36296
36329
|
/**
|
|
36297
|
-
|
|
36298
|
-
|
|
36299
|
-
|
|
36330
|
+
@copydoc ITransformComponent::GetTransform()
|
|
36331
|
+
*/
|
|
36332
|
+
|
|
36333
|
+
getTransform(): Multiplayer.SpaceTransform {
|
|
36334
|
+
var _ret = Module._malloc(8);
|
|
36335
|
+
|
|
36336
|
+
Module.ccall(
|
|
36337
|
+
"csp_multiplayer_FogSpaceComponent_GetTransformC_SpaceTransform",
|
|
36338
|
+
"void",
|
|
36339
|
+
["number", "number"],
|
|
36340
|
+
[_ret, this.pointer],
|
|
36341
|
+
);
|
|
36342
|
+
var _nPtr = new Multiplayer.SpaceTransform(getNativePointer(_ret));
|
|
36343
|
+
Module._free(_ret);
|
|
36344
|
+
return _nPtr;
|
|
36345
|
+
}
|
|
36346
|
+
|
|
36347
|
+
/**
|
|
36348
|
+
@copydoc ITransformComonent::SetTransform()
|
|
36349
|
+
*/
|
|
36350
|
+
|
|
36351
|
+
setTransform(value: Multiplayer.SpaceTransform): void {
|
|
36352
|
+
Module.ccall(
|
|
36353
|
+
"csp_multiplayer_FogSpaceComponent_SetTransform_void_SpaceTransformRC",
|
|
36354
|
+
"void",
|
|
36355
|
+
["number", "number"],
|
|
36356
|
+
[this.pointer, value.pointer],
|
|
36357
|
+
);
|
|
36358
|
+
}
|
|
36359
|
+
|
|
36360
|
+
/**
|
|
36361
|
+
@}
|
|
36362
|
+
* @description Get start sistance
|
|
36363
|
+
* Note: Distance from camera that the fog will start.
|
|
36364
|
+
* Note: 0 = this property has no effect.
|
|
36300
36365
|
* @return Current start distance
|
|
36301
36366
|
*/
|
|
36302
36367
|
|
|
@@ -36653,7 +36718,10 @@ export namespace Multiplayer {
|
|
|
36653
36718
|
*/
|
|
36654
36719
|
export class ImageSpaceComponent
|
|
36655
36720
|
extends Multiplayer.ComponentBase
|
|
36656
|
-
implements
|
|
36721
|
+
implements
|
|
36722
|
+
Multiplayer.ITransformComponent,
|
|
36723
|
+
Multiplayer.IVisibleComponent,
|
|
36724
|
+
INativeResource
|
|
36657
36725
|
{
|
|
36658
36726
|
/** @internal */
|
|
36659
36727
|
constructor(pointer: NativePointer) {
|
|
@@ -36797,13 +36865,9 @@ export namespace Multiplayer {
|
|
|
36797
36865
|
}
|
|
36798
36866
|
|
|
36799
36867
|
/**
|
|
36800
|
-
*
|
|
36801
|
-
|
|
36802
|
-
|
|
36803
|
-
* - +Y is UP
|
|
36804
|
-
* - +X is left (facing forward)
|
|
36805
|
-
* - +Z is forward
|
|
36806
|
-
* @return The 3D position as vector (left, up, forward) in meters.
|
|
36868
|
+
* \addtogroup ITransformComponent
|
|
36869
|
+
@{
|
|
36870
|
+
@copydoc IPositionComponent::GetPosition()
|
|
36807
36871
|
*/
|
|
36808
36872
|
|
|
36809
36873
|
getPosition(): Common.Vector3 {
|
|
@@ -36822,12 +36886,7 @@ export namespace Multiplayer {
|
|
|
36822
36886
|
}
|
|
36823
36887
|
|
|
36824
36888
|
/**
|
|
36825
|
-
|
|
36826
|
-
* NOTE: The coordinate system used follows the glTF 2.0 specification, in meters.
|
|
36827
|
-
* - Right handed coordinate system
|
|
36828
|
-
* - +Y is UP
|
|
36829
|
-
* - +X is left (facing forward)
|
|
36830
|
-
* - +Z is forward
|
|
36889
|
+
@copydoc IPositionComponent::SetPosition()
|
|
36831
36890
|
*/
|
|
36832
36891
|
|
|
36833
36892
|
setPosition(value: Common.Vector3): void {
|
|
@@ -36840,15 +36899,7 @@ export namespace Multiplayer {
|
|
|
36840
36899
|
}
|
|
36841
36900
|
|
|
36842
36901
|
/**
|
|
36843
|
-
|
|
36844
|
-
* NOTE: The coordinate system respects the following conventions:
|
|
36845
|
-
* - Right handed coordinate system
|
|
36846
|
-
* - Positive rotation is counterclockwise
|
|
36847
|
-
* - The geographic North is along the positive Z axis (+Z) at an orientation of 0 degrees.
|
|
36848
|
-
* - North: +Z
|
|
36849
|
-
* - East: -X
|
|
36850
|
-
* - South: -Z
|
|
36851
|
-
* - West: +X
|
|
36902
|
+
@copydoc IRotationComponent::GetRotation()
|
|
36852
36903
|
*/
|
|
36853
36904
|
|
|
36854
36905
|
getRotation(): Common.Vector4 {
|
|
@@ -36867,16 +36918,7 @@ export namespace Multiplayer {
|
|
|
36867
36918
|
}
|
|
36868
36919
|
|
|
36869
36920
|
/**
|
|
36870
|
-
|
|
36871
|
-
* NOTE: The coordinate system respects the following conventions:
|
|
36872
|
-
* - Right handed coordinate system
|
|
36873
|
-
* - Positive rotation is counterclockwise
|
|
36874
|
-
* - The geographic North is along the positive Z axis (+Z) at an orientation of 0 degrees.
|
|
36875
|
-
* - North: +Z
|
|
36876
|
-
* - East: -X
|
|
36877
|
-
* - South: -Z
|
|
36878
|
-
* - West: +X
|
|
36879
|
-
* @param value - The quaternion in radians to use as new rotation of this component.
|
|
36921
|
+
@copydoc IRotationComponent::SetRotation()
|
|
36880
36922
|
*/
|
|
36881
36923
|
|
|
36882
36924
|
setRotation(value: Common.Vector4): void {
|
|
@@ -36889,13 +36931,7 @@ export namespace Multiplayer {
|
|
|
36889
36931
|
}
|
|
36890
36932
|
|
|
36891
36933
|
/**
|
|
36892
|
-
|
|
36893
|
-
* NOTE: The coordinate system used follows the glTF 2.0 specification.
|
|
36894
|
-
* - Right handed coordinate system
|
|
36895
|
-
* - +Y is UP
|
|
36896
|
-
* - +X is left (facing forward)
|
|
36897
|
-
* - +Z is forward
|
|
36898
|
-
* @return The 3D scale as vector (left, up, forward).
|
|
36934
|
+
@copydoc IScaleComponent::GetScale()
|
|
36899
36935
|
*/
|
|
36900
36936
|
|
|
36901
36937
|
getScale(): Common.Vector3 {
|
|
@@ -36914,13 +36950,7 @@ export namespace Multiplayer {
|
|
|
36914
36950
|
}
|
|
36915
36951
|
|
|
36916
36952
|
/**
|
|
36917
|
-
|
|
36918
|
-
* @param value - The new value expressed as vector (left, up, forward).
|
|
36919
|
-
* NOTE: The coordinate system used follows the glTF 2.0 specification.
|
|
36920
|
-
* - Right handed coordinate system
|
|
36921
|
-
* - +Y is UP
|
|
36922
|
-
* - +X is left (facing forward)
|
|
36923
|
-
* - +Z is forward
|
|
36953
|
+
@copydoc IScaleComponent::SetScale()
|
|
36924
36954
|
*/
|
|
36925
36955
|
|
|
36926
36956
|
setScale(value: Common.Vector3): void {
|
|
@@ -36933,7 +36963,39 @@ export namespace Multiplayer {
|
|
|
36933
36963
|
}
|
|
36934
36964
|
|
|
36935
36965
|
/**
|
|
36936
|
-
|
|
36966
|
+
@copydoc ITransformComponent::GetTransform()
|
|
36967
|
+
*/
|
|
36968
|
+
|
|
36969
|
+
getTransform(): Multiplayer.SpaceTransform {
|
|
36970
|
+
var _ret = Module._malloc(8);
|
|
36971
|
+
|
|
36972
|
+
Module.ccall(
|
|
36973
|
+
"csp_multiplayer_ImageSpaceComponent_GetTransformC_SpaceTransform",
|
|
36974
|
+
"void",
|
|
36975
|
+
["number", "number"],
|
|
36976
|
+
[_ret, this.pointer],
|
|
36977
|
+
);
|
|
36978
|
+
var _nPtr = new Multiplayer.SpaceTransform(getNativePointer(_ret));
|
|
36979
|
+
Module._free(_ret);
|
|
36980
|
+
return _nPtr;
|
|
36981
|
+
}
|
|
36982
|
+
|
|
36983
|
+
/**
|
|
36984
|
+
@copydoc ITransformComonent::SetTransform()
|
|
36985
|
+
*/
|
|
36986
|
+
|
|
36987
|
+
setTransform(value: Multiplayer.SpaceTransform): void {
|
|
36988
|
+
Module.ccall(
|
|
36989
|
+
"csp_multiplayer_ImageSpaceComponent_SetTransform_void_SpaceTransformRC",
|
|
36990
|
+
"void",
|
|
36991
|
+
["number", "number"],
|
|
36992
|
+
[this.pointer, value.pointer],
|
|
36993
|
+
);
|
|
36994
|
+
}
|
|
36995
|
+
|
|
36996
|
+
/**
|
|
36997
|
+
@}
|
|
36998
|
+
* @description Gets the billboard mode used by this image component.
|
|
36937
36999
|
* @return The billboard mode used by this image component.
|
|
36938
37000
|
*/
|
|
36939
37001
|
|
|
@@ -37103,8 +37165,10 @@ export namespace Multiplayer {
|
|
|
37103
37165
|
export class LightSpaceComponent
|
|
37104
37166
|
extends Multiplayer.ComponentBase
|
|
37105
37167
|
implements
|
|
37106
|
-
Multiplayer.
|
|
37168
|
+
Multiplayer.IPositionComponent,
|
|
37169
|
+
Multiplayer.IRotationComponent,
|
|
37107
37170
|
Multiplayer.IThirdPartyComponentRef,
|
|
37171
|
+
Multiplayer.IVisibleComponent,
|
|
37108
37172
|
INativeResource
|
|
37109
37173
|
{
|
|
37110
37174
|
/** @internal */
|
|
@@ -37368,13 +37432,9 @@ export namespace Multiplayer {
|
|
|
37368
37432
|
}
|
|
37369
37433
|
|
|
37370
37434
|
/**
|
|
37371
|
-
*
|
|
37372
|
-
|
|
37373
|
-
|
|
37374
|
-
* - +Y is UP
|
|
37375
|
-
* - +X is left (facing forward)
|
|
37376
|
-
* - +Z is forward
|
|
37377
|
-
* @return The 3D position as vector (left, up, forward) in meters.
|
|
37435
|
+
* \addtogroup IPositionComponent
|
|
37436
|
+
@{
|
|
37437
|
+
@copydoc IPositionComponent::GetPosition()
|
|
37378
37438
|
*/
|
|
37379
37439
|
|
|
37380
37440
|
getPosition(): Common.Vector3 {
|
|
@@ -37393,12 +37453,7 @@ export namespace Multiplayer {
|
|
|
37393
37453
|
}
|
|
37394
37454
|
|
|
37395
37455
|
/**
|
|
37396
|
-
|
|
37397
|
-
* NOTE: The coordinate system used follows the glTF 2.0 specification, in meters.
|
|
37398
|
-
* - Right handed coordinate system
|
|
37399
|
-
* - +Y is UP
|
|
37400
|
-
* - +X is left (facing forward)
|
|
37401
|
-
* - +Z is forward
|
|
37456
|
+
@copydoc IPositionComponent::SetPosition()
|
|
37402
37457
|
*/
|
|
37403
37458
|
|
|
37404
37459
|
setPosition(value: Common.Vector3): void {
|
|
@@ -37411,15 +37466,10 @@ export namespace Multiplayer {
|
|
|
37411
37466
|
}
|
|
37412
37467
|
|
|
37413
37468
|
/**
|
|
37414
|
-
|
|
37415
|
-
*
|
|
37416
|
-
|
|
37417
|
-
|
|
37418
|
-
* - The geographic North is along the positive Z axis (+Z) at an orientation of 0 degrees.
|
|
37419
|
-
* - North: +Z
|
|
37420
|
-
* - East: -X
|
|
37421
|
-
* - South: -Z
|
|
37422
|
-
* - West: +X
|
|
37469
|
+
@}
|
|
37470
|
+
* \addtogroup IRotationComponent
|
|
37471
|
+
@{
|
|
37472
|
+
@copydoc IRotationComponent::GetRotation()
|
|
37423
37473
|
*/
|
|
37424
37474
|
|
|
37425
37475
|
getRotation(): Common.Vector4 {
|
|
@@ -37438,16 +37488,7 @@ export namespace Multiplayer {
|
|
|
37438
37488
|
}
|
|
37439
37489
|
|
|
37440
37490
|
/**
|
|
37441
|
-
|
|
37442
|
-
* NOTE: The coordinate system respects the following conventions:
|
|
37443
|
-
* - Right handed coordinate system
|
|
37444
|
-
* - Positive rotation is counterclockwise
|
|
37445
|
-
* - The geographic North is along the positive Z axis (+Z) at an orientation of 0 degrees.
|
|
37446
|
-
* - North: +Z
|
|
37447
|
-
* - East: -X
|
|
37448
|
-
* - South: -Z
|
|
37449
|
-
* - West: +X
|
|
37450
|
-
* @param value - The quaternion in radians to use as new rotation of this component.
|
|
37491
|
+
@copydoc IRotationComponent::SetRotation()
|
|
37451
37492
|
*/
|
|
37452
37493
|
|
|
37453
37494
|
setRotation(value: Common.Vector4): void {
|
|
@@ -37460,7 +37501,8 @@ export namespace Multiplayer {
|
|
|
37460
37501
|
}
|
|
37461
37502
|
|
|
37462
37503
|
/**
|
|
37463
|
-
|
|
37504
|
+
@}
|
|
37505
|
+
* @description Gets the ID of the asset used for the light cookie of this light component.
|
|
37464
37506
|
* @return The ID of the asset used for the light cookie of this light component.
|
|
37465
37507
|
*/
|
|
37466
37508
|
|
|
@@ -37671,7 +37713,10 @@ export namespace Multiplayer {
|
|
|
37671
37713
|
export namespace Multiplayer {
|
|
37672
37714
|
export class PortalSpaceComponent
|
|
37673
37715
|
extends Multiplayer.ComponentBase
|
|
37674
|
-
implements
|
|
37716
|
+
implements
|
|
37717
|
+
Multiplayer.IEnableableComponent,
|
|
37718
|
+
Multiplayer.IPositionComponent,
|
|
37719
|
+
INativeResource
|
|
37675
37720
|
{
|
|
37676
37721
|
/** @internal */
|
|
37677
37722
|
constructor(pointer: NativePointer) {
|
|
@@ -37749,13 +37794,9 @@ export namespace Multiplayer {
|
|
|
37749
37794
|
}
|
|
37750
37795
|
|
|
37751
37796
|
/**
|
|
37752
|
-
*
|
|
37753
|
-
|
|
37754
|
-
|
|
37755
|
-
* - +Y is UP
|
|
37756
|
-
* - +X is left (facing forward)
|
|
37757
|
-
* - +Z is forward
|
|
37758
|
-
* @return The 3D position as vector (left, up, forward) in meters.
|
|
37797
|
+
* \addtogroup IPositionComponent
|
|
37798
|
+
@{
|
|
37799
|
+
@copydoc IPositionComponent::GetPosition()
|
|
37759
37800
|
*/
|
|
37760
37801
|
|
|
37761
37802
|
getPosition(): Common.Vector3 {
|
|
@@ -37774,12 +37815,7 @@ export namespace Multiplayer {
|
|
|
37774
37815
|
}
|
|
37775
37816
|
|
|
37776
37817
|
/**
|
|
37777
|
-
|
|
37778
|
-
* NOTE: The coordinate system used follows the glTF 2.0 specification, in meters.
|
|
37779
|
-
* - Right handed coordinate system
|
|
37780
|
-
* - +Y is UP
|
|
37781
|
-
* - +X is left (facing forward)
|
|
37782
|
-
* - +Z is forward
|
|
37818
|
+
@copydoc IPositionComponent::SetPosition()
|
|
37783
37819
|
*/
|
|
37784
37820
|
|
|
37785
37821
|
setPosition(value: Common.Vector3): void {
|
|
@@ -37792,7 +37828,8 @@ export namespace Multiplayer {
|
|
|
37792
37828
|
}
|
|
37793
37829
|
|
|
37794
37830
|
/**
|
|
37795
|
-
|
|
37831
|
+
@}
|
|
37832
|
+
* @description Gets the radius of this portal.
|
|
37796
37833
|
* @return The radius of this portal.
|
|
37797
37834
|
*/
|
|
37798
37835
|
|
|
@@ -37917,7 +37954,11 @@ export namespace Multiplayer {
|
|
|
37917
37954
|
*/
|
|
37918
37955
|
export class ReflectionSpaceComponent
|
|
37919
37956
|
extends Multiplayer.ComponentBase
|
|
37920
|
-
implements
|
|
37957
|
+
implements
|
|
37958
|
+
Multiplayer.IPositionComponent,
|
|
37959
|
+
Multiplayer.IScaleComponent,
|
|
37960
|
+
Multiplayer.IThirdPartyComponentRef,
|
|
37961
|
+
INativeResource
|
|
37921
37962
|
{
|
|
37922
37963
|
/** @internal */
|
|
37923
37964
|
constructor(pointer: NativePointer) {
|
|
@@ -38062,7 +38103,9 @@ export namespace Multiplayer {
|
|
|
38062
38103
|
}
|
|
38063
38104
|
|
|
38064
38105
|
/**
|
|
38065
|
-
*
|
|
38106
|
+
* \addtogroup IPositionComponent
|
|
38107
|
+
@{
|
|
38108
|
+
@copydoc IPositionComponent::GetPosition()
|
|
38066
38109
|
*/
|
|
38067
38110
|
|
|
38068
38111
|
getPosition(): Common.Vector3 {
|
|
@@ -38081,8 +38124,7 @@ export namespace Multiplayer {
|
|
|
38081
38124
|
}
|
|
38082
38125
|
|
|
38083
38126
|
/**
|
|
38084
|
-
|
|
38085
|
-
* @param value - Position of the Reflection Component.
|
|
38127
|
+
@copydoc IPositionComponent::SetPosition()
|
|
38086
38128
|
*/
|
|
38087
38129
|
|
|
38088
38130
|
setPosition(value: Common.Vector3): void {
|
|
@@ -38095,28 +38137,10 @@ export namespace Multiplayer {
|
|
|
38095
38137
|
}
|
|
38096
38138
|
|
|
38097
38139
|
/**
|
|
38098
|
-
|
|
38099
|
-
*
|
|
38100
|
-
|
|
38101
|
-
|
|
38102
|
-
getRotation(): Common.Vector4 {
|
|
38103
|
-
var _ret = Module._malloc(8);
|
|
38104
|
-
|
|
38105
|
-
Module.ccall(
|
|
38106
|
-
"csp_multiplayer_ReflectionSpaceComponent_GetRotationC_Vector4RC",
|
|
38107
|
-
"void",
|
|
38108
|
-
["number", "number"],
|
|
38109
|
-
[_ret, this.pointer],
|
|
38110
|
-
);
|
|
38111
|
-
var _nPtr = new Common.Vector4(getNativePointer(_ret));
|
|
38112
|
-
Module._free(_ret);
|
|
38113
|
-
|
|
38114
|
-
return _nPtr;
|
|
38115
|
-
}
|
|
38116
|
-
|
|
38117
|
-
/**
|
|
38118
|
-
* @description Scale of the Reflection components spatial extents over which the reflection should apply.
|
|
38119
|
-
* UnitBox/Sphere * Scale == Spatial Extents.
|
|
38140
|
+
@}
|
|
38141
|
+
* \addtogroup IScaleComponent
|
|
38142
|
+
@{
|
|
38143
|
+
@copydoc IScaleComponent::GetScale()
|
|
38120
38144
|
*/
|
|
38121
38145
|
|
|
38122
38146
|
getScale(): Common.Vector3 {
|
|
@@ -38135,9 +38159,7 @@ export namespace Multiplayer {
|
|
|
38135
38159
|
}
|
|
38136
38160
|
|
|
38137
38161
|
/**
|
|
38138
|
-
|
|
38139
|
-
* @param value - Scale extents of the Reflection Component.
|
|
38140
|
-
* UnitBox/Sphere * Scale == Spatial Extents.
|
|
38162
|
+
@copydoc IScaleComponent::SetScale()
|
|
38141
38163
|
*/
|
|
38142
38164
|
|
|
38143
38165
|
setScale(value: Common.Vector3): void {
|
|
@@ -38150,9 +38172,10 @@ export namespace Multiplayer {
|
|
|
38150
38172
|
}
|
|
38151
38173
|
|
|
38152
38174
|
/**
|
|
38153
|
-
|
|
38154
|
-
*
|
|
38155
|
-
* ReflectionShape.
|
|
38175
|
+
@}
|
|
38176
|
+
* @description Get the reflection shape enum value.
|
|
38177
|
+
* ReflectionShape.UnitBox: Projects a texture in a planar fashion from all six directions (like an inward facing cube).
|
|
38178
|
+
* ReflectionShape.UnitSphere: Warps the texture into a spherical shape and projects it onto a surface.
|
|
38156
38179
|
* @return Enum specifying whether the captured reflections are box projected (UnitCube) or spherical projected (UnitSphere).
|
|
38157
38180
|
*/
|
|
38158
38181
|
|
|
@@ -38518,11 +38541,11 @@ export namespace Multiplayer {
|
|
|
38518
38541
|
export class StaticModelSpaceComponent
|
|
38519
38542
|
extends Multiplayer.ComponentBase
|
|
38520
38543
|
implements
|
|
38521
|
-
Multiplayer.ITransformComponent,
|
|
38522
|
-
Multiplayer.IVisibleComponent,
|
|
38523
38544
|
Multiplayer.IExternalResourceComponent,
|
|
38524
|
-
Multiplayer.IThirdPartyComponentRef,
|
|
38525
38545
|
Multiplayer.IShadowCasterComponent,
|
|
38546
|
+
Multiplayer.IThirdPartyComponentRef,
|
|
38547
|
+
Multiplayer.ITransformComponent,
|
|
38548
|
+
Multiplayer.IVisibleComponent,
|
|
38526
38549
|
INativeResource
|
|
38527
38550
|
{
|
|
38528
38551
|
/** @internal */
|
|
@@ -38561,6 +38584,10 @@ export namespace Multiplayer {
|
|
|
38561
38584
|
return new StaticModelSpaceComponent(_nPtr);
|
|
38562
38585
|
}
|
|
38563
38586
|
|
|
38587
|
+
/** @deprecated
|
|
38588
|
+
Due to the introduction of LODs it doesn't make sense to set a specific asset anymore
|
|
38589
|
+
*/
|
|
38590
|
+
|
|
38564
38591
|
getExternalResourceAssetId(): string {
|
|
38565
38592
|
let _result = Module.ccall(
|
|
38566
38593
|
"csp_multiplayer_StaticModelSpaceComponent_GetExternalResourceAssetIdC_StringRC",
|
|
@@ -38577,6 +38604,10 @@ export namespace Multiplayer {
|
|
|
38577
38604
|
return _result;
|
|
38578
38605
|
}
|
|
38579
38606
|
|
|
38607
|
+
/** @deprecated
|
|
38608
|
+
Due to the introduction of LODs it doesn't make sense to set a specific asset anymore
|
|
38609
|
+
*/
|
|
38610
|
+
|
|
38580
38611
|
setExternalResourceAssetId(value: string): void {
|
|
38581
38612
|
Module.ccall(
|
|
38582
38613
|
"csp_multiplayer_StaticModelSpaceComponent_SetExternalResourceAssetId_void_StringRC",
|
|
@@ -38901,8 +38932,9 @@ export namespace Multiplayer {
|
|
|
38901
38932
|
export class VideoPlayerSpaceComponent
|
|
38902
38933
|
extends Multiplayer.ComponentBase
|
|
38903
38934
|
implements
|
|
38904
|
-
Multiplayer.IVisibleComponent,
|
|
38905
38935
|
Multiplayer.IEnableableComponent,
|
|
38936
|
+
Multiplayer.ITransformComponent,
|
|
38937
|
+
Multiplayer.IVisibleComponent,
|
|
38906
38938
|
INativeResource
|
|
38907
38939
|
{
|
|
38908
38940
|
/** @internal */
|
|
@@ -39084,13 +39116,9 @@ export namespace Multiplayer {
|
|
|
39084
39116
|
}
|
|
39085
39117
|
|
|
39086
39118
|
/**
|
|
39087
|
-
*
|
|
39088
|
-
|
|
39089
|
-
|
|
39090
|
-
* - +Y is UP
|
|
39091
|
-
* - +X is left (facing forward)
|
|
39092
|
-
* - +Z is forward
|
|
39093
|
-
* @return The 3D position as vector (left, up, forward) in meters.
|
|
39119
|
+
* \addtogroup ITransformComponent
|
|
39120
|
+
@{
|
|
39121
|
+
@copydoc IPositionComponent::GetPosition()
|
|
39094
39122
|
*/
|
|
39095
39123
|
|
|
39096
39124
|
getPosition(): Common.Vector3 {
|
|
@@ -39109,12 +39137,7 @@ export namespace Multiplayer {
|
|
|
39109
39137
|
}
|
|
39110
39138
|
|
|
39111
39139
|
/**
|
|
39112
|
-
|
|
39113
|
-
* NOTE: The coordinate system used follows the glTF 2.0 specification, in meters.
|
|
39114
|
-
* - Right handed coordinate system
|
|
39115
|
-
* - +Y is UP
|
|
39116
|
-
* - +X is left (facing forward)
|
|
39117
|
-
* - +Z is forward
|
|
39140
|
+
@copydoc IPositionComponent::SetPosition()
|
|
39118
39141
|
*/
|
|
39119
39142
|
|
|
39120
39143
|
setPosition(value: Common.Vector3): void {
|
|
@@ -39127,15 +39150,7 @@ export namespace Multiplayer {
|
|
|
39127
39150
|
}
|
|
39128
39151
|
|
|
39129
39152
|
/**
|
|
39130
|
-
|
|
39131
|
-
* NOTE: The coordinate system respects the following conventions:
|
|
39132
|
-
* - Right handed coordinate system
|
|
39133
|
-
* - Positive rotation is counterclockwise
|
|
39134
|
-
* - The geographic North is along the positive Z axis (+Z) at an orientation of 0 degrees.
|
|
39135
|
-
* - North: +Z
|
|
39136
|
-
* - East: -X
|
|
39137
|
-
* - South: -Z
|
|
39138
|
-
* - West: +X
|
|
39153
|
+
@copydoc IRotationComponent::GetRotation()
|
|
39139
39154
|
*/
|
|
39140
39155
|
|
|
39141
39156
|
getRotation(): Common.Vector4 {
|
|
@@ -39154,16 +39169,7 @@ export namespace Multiplayer {
|
|
|
39154
39169
|
}
|
|
39155
39170
|
|
|
39156
39171
|
/**
|
|
39157
|
-
|
|
39158
|
-
* NOTE: The coordinate system respects the following conventions:
|
|
39159
|
-
* - Right handed coordinate system
|
|
39160
|
-
* - Positive rotation is counterclockwise
|
|
39161
|
-
* - The geographic North is along the positive Z axis (+Z) at an orientation of 0 degrees.
|
|
39162
|
-
* - North: +Z
|
|
39163
|
-
* - East: -X
|
|
39164
|
-
* - South: -Z
|
|
39165
|
-
* - West: +X
|
|
39166
|
-
* @param value - The quaternion in radians to use as new rotation of this component.
|
|
39172
|
+
@copydoc IRotationComponent::SetRotation()
|
|
39167
39173
|
*/
|
|
39168
39174
|
|
|
39169
39175
|
setRotation(value: Common.Vector4): void {
|
|
@@ -39176,13 +39182,7 @@ export namespace Multiplayer {
|
|
|
39176
39182
|
}
|
|
39177
39183
|
|
|
39178
39184
|
/**
|
|
39179
|
-
|
|
39180
|
-
* NOTE: The coordinate system used follows the glTF 2.0 specification.
|
|
39181
|
-
* - Right handed coordinate system
|
|
39182
|
-
* - +Y is UP
|
|
39183
|
-
* - +X is left (facing forward)
|
|
39184
|
-
* - +Z is forward
|
|
39185
|
-
* @return The 3D scale as vector (left, up, forward).
|
|
39185
|
+
@copydoc IScaleComponent::GetScale()
|
|
39186
39186
|
*/
|
|
39187
39187
|
|
|
39188
39188
|
getScale(): Common.Vector3 {
|
|
@@ -39201,13 +39201,7 @@ export namespace Multiplayer {
|
|
|
39201
39201
|
}
|
|
39202
39202
|
|
|
39203
39203
|
/**
|
|
39204
|
-
|
|
39205
|
-
* @param value - The new value expressed as vector (left, up, forward).
|
|
39206
|
-
* NOTE: The coordinate system used follows the glTF 2.0 specification.
|
|
39207
|
-
* - Right handed coordinate system
|
|
39208
|
-
* - +Y is UP
|
|
39209
|
-
* - +X is left (facing forward)
|
|
39210
|
-
* - +Z is forward
|
|
39204
|
+
@copydoc IScaleComponent::SetScale()
|
|
39211
39205
|
*/
|
|
39212
39206
|
|
|
39213
39207
|
setScale(value: Common.Vector3): void {
|
|
@@ -39220,7 +39214,39 @@ export namespace Multiplayer {
|
|
|
39220
39214
|
}
|
|
39221
39215
|
|
|
39222
39216
|
/**
|
|
39223
|
-
|
|
39217
|
+
@copydoc ITransformComponent::GetTransform()
|
|
39218
|
+
*/
|
|
39219
|
+
|
|
39220
|
+
getTransform(): Multiplayer.SpaceTransform {
|
|
39221
|
+
var _ret = Module._malloc(8);
|
|
39222
|
+
|
|
39223
|
+
Module.ccall(
|
|
39224
|
+
"csp_multiplayer_VideoPlayerSpaceComponent_GetTransformC_SpaceTransform",
|
|
39225
|
+
"void",
|
|
39226
|
+
["number", "number"],
|
|
39227
|
+
[_ret, this.pointer],
|
|
39228
|
+
);
|
|
39229
|
+
var _nPtr = new Multiplayer.SpaceTransform(getNativePointer(_ret));
|
|
39230
|
+
Module._free(_ret);
|
|
39231
|
+
return _nPtr;
|
|
39232
|
+
}
|
|
39233
|
+
|
|
39234
|
+
/**
|
|
39235
|
+
@copydoc ITransformComonent::SetTransform()
|
|
39236
|
+
*/
|
|
39237
|
+
|
|
39238
|
+
setTransform(value: Multiplayer.SpaceTransform): void {
|
|
39239
|
+
Module.ccall(
|
|
39240
|
+
"csp_multiplayer_VideoPlayerSpaceComponent_SetTransform_void_SpaceTransformRC",
|
|
39241
|
+
"void",
|
|
39242
|
+
["number", "number"],
|
|
39243
|
+
[this.pointer, value.pointer],
|
|
39244
|
+
);
|
|
39245
|
+
}
|
|
39246
|
+
|
|
39247
|
+
/**
|
|
39248
|
+
@}
|
|
39249
|
+
* @description Checks if the playback state of this video player needs to be shared with other users through replication.
|
|
39224
39250
|
* @return True if the playback state of the video needs to be shared among all users, false otherwise.
|
|
39225
39251
|
*/
|
|
39226
39252
|
|
|
@@ -40588,6 +40614,15 @@ export namespace Systems {
|
|
|
40588
40614
|
return _result;
|
|
40589
40615
|
}
|
|
40590
40616
|
|
|
40617
|
+
setUri(value: string): void {
|
|
40618
|
+
Module.ccall(
|
|
40619
|
+
"csp_systems_UriResult_SetUri_void_StringRC",
|
|
40620
|
+
"void",
|
|
40621
|
+
["number", "string"],
|
|
40622
|
+
[this.pointer, value],
|
|
40623
|
+
);
|
|
40624
|
+
}
|
|
40625
|
+
|
|
40591
40626
|
delete(): void {
|
|
40592
40627
|
if (this.ownsPointer && !this.disposed) {
|
|
40593
40628
|
Module.ccall(
|
|
@@ -43585,48 +43620,6 @@ export namespace Systems {
|
|
|
43585
43620
|
);
|
|
43586
43621
|
}
|
|
43587
43622
|
|
|
43588
|
-
static create(): MaintenanceInfoResult {
|
|
43589
|
-
var _ptr = Module._malloc(8);
|
|
43590
|
-
Module.ccall(
|
|
43591
|
-
"csp_systems_MaintenanceInfoResult_Ctor",
|
|
43592
|
-
"void",
|
|
43593
|
-
["number"],
|
|
43594
|
-
[_ptr],
|
|
43595
|
-
);
|
|
43596
|
-
var _nPtr = getNativePointer(_ptr);
|
|
43597
|
-
|
|
43598
|
-
return new MaintenanceInfoResult(_nPtr);
|
|
43599
|
-
}
|
|
43600
|
-
|
|
43601
|
-
static create_arg1(arg1: number): MaintenanceInfoResult {
|
|
43602
|
-
var _ptr = Module._malloc(8);
|
|
43603
|
-
Module.ccall(
|
|
43604
|
-
"csp_systems_MaintenanceInfoResult_Ctor_voidP",
|
|
43605
|
-
"void",
|
|
43606
|
-
["number", "void"],
|
|
43607
|
-
[_ptr, arg1],
|
|
43608
|
-
);
|
|
43609
|
-
var _nPtr = getNativePointer(_ptr);
|
|
43610
|
-
|
|
43611
|
-
return new MaintenanceInfoResult(_nPtr);
|
|
43612
|
-
}
|
|
43613
|
-
|
|
43614
|
-
static create_resCode_httpResCode(
|
|
43615
|
-
resCode: Systems.EResultCode,
|
|
43616
|
-
httpResCode: number,
|
|
43617
|
-
): MaintenanceInfoResult {
|
|
43618
|
-
var _ptr = Module._malloc(8);
|
|
43619
|
-
Module.ccall(
|
|
43620
|
-
"csp_systems_MaintenanceInfoResult_Ctor_EResultCode_uint16_t",
|
|
43621
|
-
"void",
|
|
43622
|
-
["number", "number", "number"],
|
|
43623
|
-
[_ptr, resCode, httpResCode],
|
|
43624
|
-
);
|
|
43625
|
-
var _nPtr = getNativePointer(_ptr);
|
|
43626
|
-
|
|
43627
|
-
return new MaintenanceInfoResult(_nPtr);
|
|
43628
|
-
}
|
|
43629
|
-
|
|
43630
43623
|
/**
|
|
43631
43624
|
* @description Retrieves response data from the Maintenance Window Server
|
|
43632
43625
|
* @return Return all maintenance information available in date order
|
|
@@ -44513,6 +44506,76 @@ export namespace Systems {
|
|
|
44513
44506
|
}
|
|
44514
44507
|
}
|
|
44515
44508
|
|
|
44509
|
+
export namespace Systems {
|
|
44510
|
+
/**
|
|
44511
|
+
* @description A result handler that is used to notify a user of an error while passing a String value.
|
|
44512
|
+
*/
|
|
44513
|
+
export class AvatarInfoResult
|
|
44514
|
+
extends Systems.ResultBase
|
|
44515
|
+
implements INativeResource
|
|
44516
|
+
{
|
|
44517
|
+
/** @internal */
|
|
44518
|
+
constructor(pointer: NativePointer) {
|
|
44519
|
+
super(pointer);
|
|
44520
|
+
}
|
|
44521
|
+
|
|
44522
|
+
static fromResultBase(
|
|
44523
|
+
baseInstance: Systems.ResultBase,
|
|
44524
|
+
): Systems.AvatarInfoResult {
|
|
44525
|
+
const nativeClassWrapper = baseInstance as unknown as NativeClassWrapper;
|
|
44526
|
+
return new Systems.AvatarInfoResult(
|
|
44527
|
+
new NativePointer(
|
|
44528
|
+
nativeClassWrapper.pointer,
|
|
44529
|
+
nativeClassWrapper.ownsPointer,
|
|
44530
|
+
),
|
|
44531
|
+
);
|
|
44532
|
+
}
|
|
44533
|
+
|
|
44534
|
+
/**
|
|
44535
|
+
* @description A getter which returns the String passed via the result.
|
|
44536
|
+
*/
|
|
44537
|
+
|
|
44538
|
+
getAvatarType(): Systems.AvatarType {
|
|
44539
|
+
let _result = Module.ccall(
|
|
44540
|
+
"csp_systems_AvatarInfoResult_GetAvatarTypeC_AvatarType",
|
|
44541
|
+
"number",
|
|
44542
|
+
["number"],
|
|
44543
|
+
[this.pointer],
|
|
44544
|
+
);
|
|
44545
|
+
|
|
44546
|
+
return _result;
|
|
44547
|
+
}
|
|
44548
|
+
|
|
44549
|
+
getAvatarIdentifier(): Common.Variant {
|
|
44550
|
+
var _ret = Module._malloc(8);
|
|
44551
|
+
|
|
44552
|
+
Module.ccall(
|
|
44553
|
+
"csp_systems_AvatarInfoResult_GetAvatarIdentifierC_VariantRC",
|
|
44554
|
+
"void",
|
|
44555
|
+
["number", "number"],
|
|
44556
|
+
[_ret, this.pointer],
|
|
44557
|
+
);
|
|
44558
|
+
var _nPtr = new Common.Variant(getNativePointer(_ret));
|
|
44559
|
+
Module._free(_ret);
|
|
44560
|
+
|
|
44561
|
+
return _nPtr;
|
|
44562
|
+
}
|
|
44563
|
+
|
|
44564
|
+
delete(): void {
|
|
44565
|
+
if (this.ownsPointer && !this.disposed) {
|
|
44566
|
+
Module.ccall(
|
|
44567
|
+
"csp_systems_AvatarInfoResult_Dtor",
|
|
44568
|
+
"void",
|
|
44569
|
+
["number"],
|
|
44570
|
+
[this.pointer],
|
|
44571
|
+
);
|
|
44572
|
+
|
|
44573
|
+
this.disposed = true;
|
|
44574
|
+
}
|
|
44575
|
+
}
|
|
44576
|
+
}
|
|
44577
|
+
}
|
|
44578
|
+
|
|
44516
44579
|
export namespace Systems {
|
|
44517
44580
|
/**
|
|
44518
44581
|
@ingroup Settings System
|
|
@@ -45113,6 +45176,90 @@ export namespace Systems {
|
|
|
45113
45176
|
|
|
45114
45177
|
return _promise;
|
|
45115
45178
|
}
|
|
45179
|
+
|
|
45180
|
+
/**
|
|
45181
|
+
* @description Sets the avatar type and identifier for a user.
|
|
45182
|
+
* @param inUserId - The ID of the user to set avatar info for.
|
|
45183
|
+
* @param inType - The type of avatar (predefined, Ready Player Me, or custom).
|
|
45184
|
+
* @param inIdentifier - A value used to identify or locate the avatar. Differs depending on the value of InType.
|
|
45185
|
+
* @param callback - Callback to call when task finishes.
|
|
45186
|
+
*/
|
|
45187
|
+
|
|
45188
|
+
async setAvatarInfo(
|
|
45189
|
+
userId: string,
|
|
45190
|
+
type: Systems.AvatarType,
|
|
45191
|
+
identifier: Common.Variant,
|
|
45192
|
+
): Promise<Systems.NullResult> {
|
|
45193
|
+
var _resolve;
|
|
45194
|
+
|
|
45195
|
+
var _promise = new Promise<Systems.NullResult>((_r) => {
|
|
45196
|
+
_resolve = _r;
|
|
45197
|
+
});
|
|
45198
|
+
|
|
45199
|
+
var _callbackPtr: number;
|
|
45200
|
+
var _callback = (_stateObject__: number, result) => {
|
|
45201
|
+
var _resultPtr = getNativePointer(result);
|
|
45202
|
+
var _resultInstance = new Systems.NullResult(_resultPtr);
|
|
45203
|
+
|
|
45204
|
+
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
45205
|
+
return;
|
|
45206
|
+
}
|
|
45207
|
+
|
|
45208
|
+
_resolve(_resultInstance);
|
|
45209
|
+
|
|
45210
|
+
Module.removeFunction(_callbackPtr);
|
|
45211
|
+
};
|
|
45212
|
+
|
|
45213
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
45214
|
+
|
|
45215
|
+
Module.ccall(
|
|
45216
|
+
"csp_systems_SettingsSystem_SetAvatarInfo_void_StringRC_AvatarType_VariantRC_NullResultCallback",
|
|
45217
|
+
"void",
|
|
45218
|
+
["number", "string", "number", "number", "number", "number"],
|
|
45219
|
+
[this.pointer, userId, type, identifier.pointer, _callbackPtr, 0],
|
|
45220
|
+
);
|
|
45221
|
+
|
|
45222
|
+
return _promise;
|
|
45223
|
+
}
|
|
45224
|
+
|
|
45225
|
+
/**
|
|
45226
|
+
* @description Retrieves the avatar type and identifier for a user.
|
|
45227
|
+
* @param inUserId - The ID of the user to get avatar info for.
|
|
45228
|
+
* @param callback - Callback to call when task finishes.
|
|
45229
|
+
*/
|
|
45230
|
+
|
|
45231
|
+
async getAvatarInfo(userId: string): Promise<Systems.AvatarInfoResult> {
|
|
45232
|
+
var _resolve;
|
|
45233
|
+
|
|
45234
|
+
var _promise = new Promise<Systems.AvatarInfoResult>((_r) => {
|
|
45235
|
+
_resolve = _r;
|
|
45236
|
+
});
|
|
45237
|
+
|
|
45238
|
+
var _callbackPtr: number;
|
|
45239
|
+
var _callback = (_stateObject__: number, result) => {
|
|
45240
|
+
var _resultPtr = getNativePointer(result);
|
|
45241
|
+
var _resultInstance = new Systems.AvatarInfoResult(_resultPtr);
|
|
45242
|
+
|
|
45243
|
+
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
45244
|
+
return;
|
|
45245
|
+
}
|
|
45246
|
+
|
|
45247
|
+
_resolve(_resultInstance);
|
|
45248
|
+
|
|
45249
|
+
Module.removeFunction(_callbackPtr);
|
|
45250
|
+
};
|
|
45251
|
+
|
|
45252
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
45253
|
+
|
|
45254
|
+
Module.ccall(
|
|
45255
|
+
"csp_systems_SettingsSystem_GetAvatarInfo_void_StringRC_AvatarInfoResultCallback",
|
|
45256
|
+
"void",
|
|
45257
|
+
["number", "string", "number", "number"],
|
|
45258
|
+
[this.pointer, userId, _callbackPtr, 0],
|
|
45259
|
+
);
|
|
45260
|
+
|
|
45261
|
+
return _promise;
|
|
45262
|
+
}
|
|
45116
45263
|
}
|
|
45117
45264
|
}
|
|
45118
45265
|
|
|
@@ -49661,17 +49808,16 @@ export namespace Systems {
|
|
|
49661
49808
|
}
|
|
49662
49809
|
|
|
49663
49810
|
/**
|
|
49664
|
-
* @description
|
|
49665
|
-
* The
|
|
49666
|
-
*
|
|
49667
|
-
* @param
|
|
49668
|
-
* @param loginToken - Token to be used for authenticating
|
|
49811
|
+
* @description Resume a previous session for the associated user ID using a refresh token
|
|
49812
|
+
* The refresh token can be obtained after registering a callback with `SetNewLoginTokenReceivedCallback` and logging in regularly.
|
|
49813
|
+
* @param userId - User ID for the previous session
|
|
49814
|
+
* @param refreshToken - Refresh token to be used for refreshing the authentication token
|
|
49669
49815
|
* @param callback - Callback when asynchronous task finishes
|
|
49670
49816
|
*/
|
|
49671
49817
|
|
|
49672
|
-
async
|
|
49818
|
+
async refreshSession(
|
|
49673
49819
|
userId: string,
|
|
49674
|
-
|
|
49820
|
+
refreshToken: string,
|
|
49675
49821
|
): Promise<Systems.LoginStateResult> {
|
|
49676
49822
|
var _resolve;
|
|
49677
49823
|
|
|
@@ -49696,10 +49842,10 @@ export namespace Systems {
|
|
|
49696
49842
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
49697
49843
|
|
|
49698
49844
|
Module.ccall(
|
|
49699
|
-
"
|
|
49845
|
+
"csp_systems_UserSystem_RefreshSession_void_StringRC_StringRC_LoginStateResultCallback",
|
|
49700
49846
|
"void",
|
|
49701
49847
|
["number", "string", "string", "number", "number"],
|
|
49702
|
-
[this.pointer, userId,
|
|
49848
|
+
[this.pointer, userId, refreshToken, _callbackPtr, 0],
|
|
49703
49849
|
);
|
|
49704
49850
|
|
|
49705
49851
|
return _promise;
|
|
@@ -50234,7 +50380,7 @@ export namespace Systems {
|
|
|
50234
50380
|
}
|
|
50235
50381
|
|
|
50236
50382
|
/**
|
|
50237
|
-
* @description Delete the user.
|
|
50383
|
+
* @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).
|
|
50238
50384
|
* @param userId - Id of the user that will be deleted
|
|
50239
50385
|
* @param callback - Callback when asynchronous task finishes
|
|
50240
50386
|
*/
|
|
@@ -50602,7 +50748,7 @@ export namespace Systems {
|
|
|
50602
50748
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
50603
50749
|
|
|
50604
50750
|
Module.ccall(
|
|
50605
|
-
"
|
|
50751
|
+
"csp_systems_UserSystem_GetCheckoutSessionUrl_void_TierNames_CheckoutSessionUrlResultCallback",
|
|
50606
50752
|
"void",
|
|
50607
50753
|
["number", "number", "number", "number"],
|
|
50608
50754
|
[this.pointer, tier, _callbackPtr, 0],
|