@dcl/playground-assets 7.25.1-30365680769.commit-9c1b99d → 7.25.1-30391610123.commit-26cb925
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/dist/alpha.d.ts +114 -2
- package/dist/beta.d.ts +114 -2
- package/dist/index.bundled.d.ts +114 -2
- package/dist/index.js +6 -6
- package/dist/playground/sdk/apis.d.ts +37 -0
- package/dist/playground/sdk/dcl-sdk.package.json +2 -2
- package/dist/playground-assets.d.ts +114 -2
- package/etc/playground-assets.api.json +900 -1
- package/etc/playground-assets.api.md +54 -0
- package/package.json +4 -4
package/dist/alpha.d.ts
CHANGED
|
@@ -1447,6 +1447,7 @@ export declare const componentDefinitionByName: {
|
|
|
1447
1447
|
"core::RealmInfo": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRealmInfo>>;
|
|
1448
1448
|
"core::SkyboxTime": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBSkyboxTime>>;
|
|
1449
1449
|
"core::TextShape": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTextShape>>;
|
|
1450
|
+
"core::TouchScreenControls": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTouchScreenControls>>;
|
|
1450
1451
|
"core::TriggerArea": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTriggerArea>>;
|
|
1451
1452
|
"core::TriggerAreaResult": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBTriggerAreaResult>>;
|
|
1452
1453
|
"core::Tween": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTween>>;
|
|
@@ -1457,6 +1458,7 @@ export declare const componentDefinitionByName: {
|
|
|
1457
1458
|
"core::UiDropdown": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiDropdown>>;
|
|
1458
1459
|
"core::UiDropdownResult": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiDropdownResult>>;
|
|
1459
1460
|
"core::UiInput": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiInput>>;
|
|
1461
|
+
"core::UiInputBinding": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiInputBinding>>;
|
|
1460
1462
|
"core::UiInputResult": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiInputResult>>;
|
|
1461
1463
|
"core::UiText": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiText>>;
|
|
1462
1464
|
"core::UiTransform": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiTransform>>;
|
|
@@ -4821,8 +4823,9 @@ export declare namespace PBAvatarBase {
|
|
|
4821
4823
|
}
|
|
4822
4824
|
|
|
4823
4825
|
/**
|
|
4824
|
-
* AvatarEmoteCommand is a grow only value set,
|
|
4825
|
-
* avatar
|
|
4826
|
+
* AvatarEmoteCommand is a grow only value set, written by the explorer to report
|
|
4827
|
+
* avatar emote playback to the scene. It is appended to every player entity in the
|
|
4828
|
+
* scene (the local player and remote avatars alike).
|
|
4826
4829
|
*/
|
|
4827
4830
|
/**
|
|
4828
4831
|
* @public
|
|
@@ -6433,6 +6436,70 @@ export declare namespace PBTextShape {
|
|
|
6433
6436
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBTextShape;
|
|
6434
6437
|
}
|
|
6435
6438
|
|
|
6439
|
+
/**
|
|
6440
|
+
* The TouchScreenControls component lets a scene configure the native on-screen touch
|
|
6441
|
+
* controls (the mobile joystick + gamepad). It must be set on the RootEntity.
|
|
6442
|
+
*
|
|
6443
|
+
* By default every on-screen button is shown; list a button in `touch_inputs` with
|
|
6444
|
+
* `hide = true` to remove it (declutter). `main_action` picks which action the large
|
|
6445
|
+
* central button triggers, and `hide_joystick` removes the native virtual joystick. It is
|
|
6446
|
+
* a no-op on platforms without native on-screen controls (e.g. desktop).
|
|
6447
|
+
*
|
|
6448
|
+
* Accepted actions: only the on-screen gamepad actions map to a button — `IA_POINTER`,
|
|
6449
|
+
* `IA_PRIMARY`, `IA_SECONDARY`, `IA_JUMP`, and `IA_ACTION_3`..`IA_ACTION_6`. Any other
|
|
6450
|
+
* `InputAction` (movement actions, `IA_ANY`, `IA_MODIFIER`, or unknown/future values) is
|
|
6451
|
+
* ignored: a `TouchInput` entry naming a non-button action has no effect, and a `main_action`
|
|
6452
|
+
* that isn't a valid gamepad action falls back to the default central button (`IA_JUMP`).
|
|
6453
|
+
*/
|
|
6454
|
+
/**
|
|
6455
|
+
* @public
|
|
6456
|
+
*/
|
|
6457
|
+
export declare interface PBTouchScreenControls {
|
|
6458
|
+
touchInputs: PBTouchScreenControls_TouchInput[];
|
|
6459
|
+
/**
|
|
6460
|
+
* The large central button's action. Only the gamepad actions are valid:
|
|
6461
|
+
* jump / pointer / primary (E) / secondary (F) / action_3..action_6 (1/2/3/4).
|
|
6462
|
+
* When unset, the default central button (jump) is kept.
|
|
6463
|
+
*/
|
|
6464
|
+
mainAction?: InputAction | undefined;
|
|
6465
|
+
/** hide the native virtual joystick */
|
|
6466
|
+
hideJoystick: boolean;
|
|
6467
|
+
/** hide the on-screen crosshair / reticle */
|
|
6468
|
+
hideCrosshair: boolean;
|
|
6469
|
+
}
|
|
6470
|
+
|
|
6471
|
+
/**
|
|
6472
|
+
* @public
|
|
6473
|
+
*/
|
|
6474
|
+
export declare namespace PBTouchScreenControls {
|
|
6475
|
+
export function encode(message: PBTouchScreenControls, writer?: _m0.Writer): _m0.Writer;
|
|
6476
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBTouchScreenControls;
|
|
6477
|
+
}
|
|
6478
|
+
|
|
6479
|
+
/** Per-button configuration. A button not listed here keeps its default (shown). */
|
|
6480
|
+
/**
|
|
6481
|
+
* @public
|
|
6482
|
+
*/
|
|
6483
|
+
export declare interface PBTouchScreenControls_TouchInput {
|
|
6484
|
+
/** which on-screen button this configures */
|
|
6485
|
+
inputAction: InputAction;
|
|
6486
|
+
/** hide this button (default: shown) */
|
|
6487
|
+
hide: boolean;
|
|
6488
|
+
/**
|
|
6489
|
+
* Override the button glyph with this texture. For the jump button it replaces all
|
|
6490
|
+
* of its dynamic states (jump / double-jump / glide).
|
|
6491
|
+
*/
|
|
6492
|
+
icon?: TextureUnion | undefined;
|
|
6493
|
+
}
|
|
6494
|
+
|
|
6495
|
+
/**
|
|
6496
|
+
* @public
|
|
6497
|
+
*/
|
|
6498
|
+
export declare namespace PBTouchScreenControls_TouchInput {
|
|
6499
|
+
export function encode(message: PBTouchScreenControls_TouchInput, writer?: _m0.Writer): _m0.Writer;
|
|
6500
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBTouchScreenControls_TouchInput;
|
|
6501
|
+
}
|
|
6502
|
+
|
|
6436
6503
|
/**
|
|
6437
6504
|
* The PBTriggerArea component is used to raise collision triggering events (through the TriggerAreaResult component)
|
|
6438
6505
|
* when entities enter this component's defined area.
|
|
@@ -6721,6 +6788,42 @@ export declare namespace PBUiInput {
|
|
|
6721
6788
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBUiInput;
|
|
6722
6789
|
}
|
|
6723
6790
|
|
|
6791
|
+
/**
|
|
6792
|
+
* The UiInputBinding component binds a UI entity to one or more InputActions. While the
|
|
6793
|
+
* element is pressed (touch or pointer) the listed actions are held down, driving both
|
|
6794
|
+
* the local player input and scene InputAction listeners, just like the native on-screen
|
|
6795
|
+
* buttons. It is typically combined with PBTouchScreenControls to replace the native
|
|
6796
|
+
* controls with a custom touch UI.
|
|
6797
|
+
*
|
|
6798
|
+
* Release semantics: the held actions are released as soon as the press that started them
|
|
6799
|
+
* ends. A renderer MUST release all actions held by this binding when any of the following
|
|
6800
|
+
* happens: the press/touch is lifted or cancelled, the pointer/touch leaves the element
|
|
6801
|
+
* (loses press ownership), the actions list changes (the previous set is released before
|
|
6802
|
+
* the new set is applied), the component is removed or its actions list becomes empty, the
|
|
6803
|
+
* UI element is hidden, disabled or removed from the tree, or the scene unloads. In short,
|
|
6804
|
+
* no action may remain held once the element is no longer both present and actively pressed.
|
|
6805
|
+
*
|
|
6806
|
+
* Multi-touch: the binding is a single held state, not reference-counted per pointer. The
|
|
6807
|
+
* actions are held while the element is pressed and released when that press ends; a second
|
|
6808
|
+
* simultaneous press on the same element does not stack, and does not extend the hold past
|
|
6809
|
+
* the first release.
|
|
6810
|
+
*/
|
|
6811
|
+
/**
|
|
6812
|
+
* @public
|
|
6813
|
+
*/
|
|
6814
|
+
export declare interface PBUiInputBinding {
|
|
6815
|
+
/** the input actions fired while this element is pressed */
|
|
6816
|
+
actions: InputAction[];
|
|
6817
|
+
}
|
|
6818
|
+
|
|
6819
|
+
/**
|
|
6820
|
+
* @public
|
|
6821
|
+
*/
|
|
6822
|
+
export declare namespace PBUiInputBinding {
|
|
6823
|
+
export function encode(message: PBUiInputBinding, writer?: _m0.Writer): _m0.Writer;
|
|
6824
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBUiInputBinding;
|
|
6825
|
+
}
|
|
6826
|
+
|
|
6724
6827
|
/**
|
|
6725
6828
|
* @public
|
|
6726
6829
|
*/
|
|
@@ -6989,6 +7092,7 @@ export declare namespace PBVideoPlayer {
|
|
|
6989
7092
|
* an 'instant' transition (like using speed/time = 0)
|
|
6990
7093
|
* * The lookAtEntity defines to which entity the Camera has to look at constantly (independent from
|
|
6991
7094
|
* the holding entity transform).
|
|
7095
|
+
* * The fov defines the Field of View of the virtual camera
|
|
6992
7096
|
*/
|
|
6993
7097
|
/**
|
|
6994
7098
|
* @public
|
|
@@ -6996,6 +7100,8 @@ export declare namespace PBVideoPlayer {
|
|
|
6996
7100
|
export declare interface PBVirtualCamera {
|
|
6997
7101
|
defaultTransition?: CameraTransition | undefined;
|
|
6998
7102
|
lookAtEntity?: number | undefined;
|
|
7103
|
+
/** default: 60 */
|
|
7104
|
+
fov?: number | undefined;
|
|
6999
7105
|
}
|
|
7000
7106
|
|
|
7001
7107
|
/**
|
|
@@ -9021,6 +9127,9 @@ export declare const ToLinearSpace = 2.2;
|
|
|
9021
9127
|
*/
|
|
9022
9128
|
export declare type ToOptional<T> = OnlyOptionalUndefinedTypes<T> & OnlyNonUndefinedTypes<T>;
|
|
9023
9129
|
|
|
9130
|
+
/** @public */
|
|
9131
|
+
export declare const TouchScreenControls: LastWriteWinElementSetComponentDefinition<PBTouchScreenControls>;
|
|
9132
|
+
|
|
9024
9133
|
export declare const Transform: TransformComponentExtended;
|
|
9025
9134
|
|
|
9026
9135
|
/**
|
|
@@ -9467,6 +9576,9 @@ export declare type UiFontType = 'sans-serif' | 'serif' | 'monospace';
|
|
|
9467
9576
|
/** @public */
|
|
9468
9577
|
export declare const UiInput: LastWriteWinElementSetComponentDefinition<PBUiInput>;
|
|
9469
9578
|
|
|
9579
|
+
/** @public */
|
|
9580
|
+
export declare const UiInputBinding: LastWriteWinElementSetComponentDefinition<PBUiInputBinding>;
|
|
9581
|
+
|
|
9470
9582
|
/**
|
|
9471
9583
|
* @public
|
|
9472
9584
|
*/
|
package/dist/beta.d.ts
CHANGED
|
@@ -1447,6 +1447,7 @@ export declare const componentDefinitionByName: {
|
|
|
1447
1447
|
"core::RealmInfo": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRealmInfo>>;
|
|
1448
1448
|
"core::SkyboxTime": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBSkyboxTime>>;
|
|
1449
1449
|
"core::TextShape": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTextShape>>;
|
|
1450
|
+
"core::TouchScreenControls": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTouchScreenControls>>;
|
|
1450
1451
|
"core::TriggerArea": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTriggerArea>>;
|
|
1451
1452
|
"core::TriggerAreaResult": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBTriggerAreaResult>>;
|
|
1452
1453
|
"core::Tween": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTween>>;
|
|
@@ -1457,6 +1458,7 @@ export declare const componentDefinitionByName: {
|
|
|
1457
1458
|
"core::UiDropdown": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiDropdown>>;
|
|
1458
1459
|
"core::UiDropdownResult": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiDropdownResult>>;
|
|
1459
1460
|
"core::UiInput": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiInput>>;
|
|
1461
|
+
"core::UiInputBinding": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiInputBinding>>;
|
|
1460
1462
|
"core::UiInputResult": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiInputResult>>;
|
|
1461
1463
|
"core::UiText": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiText>>;
|
|
1462
1464
|
"core::UiTransform": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiTransform>>;
|
|
@@ -4793,8 +4795,9 @@ export declare namespace PBAvatarBase {
|
|
|
4793
4795
|
}
|
|
4794
4796
|
|
|
4795
4797
|
/**
|
|
4796
|
-
* AvatarEmoteCommand is a grow only value set,
|
|
4797
|
-
* avatar
|
|
4798
|
+
* AvatarEmoteCommand is a grow only value set, written by the explorer to report
|
|
4799
|
+
* avatar emote playback to the scene. It is appended to every player entity in the
|
|
4800
|
+
* scene (the local player and remote avatars alike).
|
|
4798
4801
|
*/
|
|
4799
4802
|
/**
|
|
4800
4803
|
* @public
|
|
@@ -6405,6 +6408,70 @@ export declare namespace PBTextShape {
|
|
|
6405
6408
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBTextShape;
|
|
6406
6409
|
}
|
|
6407
6410
|
|
|
6411
|
+
/**
|
|
6412
|
+
* The TouchScreenControls component lets a scene configure the native on-screen touch
|
|
6413
|
+
* controls (the mobile joystick + gamepad). It must be set on the RootEntity.
|
|
6414
|
+
*
|
|
6415
|
+
* By default every on-screen button is shown; list a button in `touch_inputs` with
|
|
6416
|
+
* `hide = true` to remove it (declutter). `main_action` picks which action the large
|
|
6417
|
+
* central button triggers, and `hide_joystick` removes the native virtual joystick. It is
|
|
6418
|
+
* a no-op on platforms without native on-screen controls (e.g. desktop).
|
|
6419
|
+
*
|
|
6420
|
+
* Accepted actions: only the on-screen gamepad actions map to a button — `IA_POINTER`,
|
|
6421
|
+
* `IA_PRIMARY`, `IA_SECONDARY`, `IA_JUMP`, and `IA_ACTION_3`..`IA_ACTION_6`. Any other
|
|
6422
|
+
* `InputAction` (movement actions, `IA_ANY`, `IA_MODIFIER`, or unknown/future values) is
|
|
6423
|
+
* ignored: a `TouchInput` entry naming a non-button action has no effect, and a `main_action`
|
|
6424
|
+
* that isn't a valid gamepad action falls back to the default central button (`IA_JUMP`).
|
|
6425
|
+
*/
|
|
6426
|
+
/**
|
|
6427
|
+
* @public
|
|
6428
|
+
*/
|
|
6429
|
+
export declare interface PBTouchScreenControls {
|
|
6430
|
+
touchInputs: PBTouchScreenControls_TouchInput[];
|
|
6431
|
+
/**
|
|
6432
|
+
* The large central button's action. Only the gamepad actions are valid:
|
|
6433
|
+
* jump / pointer / primary (E) / secondary (F) / action_3..action_6 (1/2/3/4).
|
|
6434
|
+
* When unset, the default central button (jump) is kept.
|
|
6435
|
+
*/
|
|
6436
|
+
mainAction?: InputAction | undefined;
|
|
6437
|
+
/** hide the native virtual joystick */
|
|
6438
|
+
hideJoystick: boolean;
|
|
6439
|
+
/** hide the on-screen crosshair / reticle */
|
|
6440
|
+
hideCrosshair: boolean;
|
|
6441
|
+
}
|
|
6442
|
+
|
|
6443
|
+
/**
|
|
6444
|
+
* @public
|
|
6445
|
+
*/
|
|
6446
|
+
export declare namespace PBTouchScreenControls {
|
|
6447
|
+
export function encode(message: PBTouchScreenControls, writer?: _m0.Writer): _m0.Writer;
|
|
6448
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBTouchScreenControls;
|
|
6449
|
+
}
|
|
6450
|
+
|
|
6451
|
+
/** Per-button configuration. A button not listed here keeps its default (shown). */
|
|
6452
|
+
/**
|
|
6453
|
+
* @public
|
|
6454
|
+
*/
|
|
6455
|
+
export declare interface PBTouchScreenControls_TouchInput {
|
|
6456
|
+
/** which on-screen button this configures */
|
|
6457
|
+
inputAction: InputAction;
|
|
6458
|
+
/** hide this button (default: shown) */
|
|
6459
|
+
hide: boolean;
|
|
6460
|
+
/**
|
|
6461
|
+
* Override the button glyph with this texture. For the jump button it replaces all
|
|
6462
|
+
* of its dynamic states (jump / double-jump / glide).
|
|
6463
|
+
*/
|
|
6464
|
+
icon?: TextureUnion | undefined;
|
|
6465
|
+
}
|
|
6466
|
+
|
|
6467
|
+
/**
|
|
6468
|
+
* @public
|
|
6469
|
+
*/
|
|
6470
|
+
export declare namespace PBTouchScreenControls_TouchInput {
|
|
6471
|
+
export function encode(message: PBTouchScreenControls_TouchInput, writer?: _m0.Writer): _m0.Writer;
|
|
6472
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBTouchScreenControls_TouchInput;
|
|
6473
|
+
}
|
|
6474
|
+
|
|
6408
6475
|
/**
|
|
6409
6476
|
* The PBTriggerArea component is used to raise collision triggering events (through the TriggerAreaResult component)
|
|
6410
6477
|
* when entities enter this component's defined area.
|
|
@@ -6693,6 +6760,42 @@ export declare namespace PBUiInput {
|
|
|
6693
6760
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBUiInput;
|
|
6694
6761
|
}
|
|
6695
6762
|
|
|
6763
|
+
/**
|
|
6764
|
+
* The UiInputBinding component binds a UI entity to one or more InputActions. While the
|
|
6765
|
+
* element is pressed (touch or pointer) the listed actions are held down, driving both
|
|
6766
|
+
* the local player input and scene InputAction listeners, just like the native on-screen
|
|
6767
|
+
* buttons. It is typically combined with PBTouchScreenControls to replace the native
|
|
6768
|
+
* controls with a custom touch UI.
|
|
6769
|
+
*
|
|
6770
|
+
* Release semantics: the held actions are released as soon as the press that started them
|
|
6771
|
+
* ends. A renderer MUST release all actions held by this binding when any of the following
|
|
6772
|
+
* happens: the press/touch is lifted or cancelled, the pointer/touch leaves the element
|
|
6773
|
+
* (loses press ownership), the actions list changes (the previous set is released before
|
|
6774
|
+
* the new set is applied), the component is removed or its actions list becomes empty, the
|
|
6775
|
+
* UI element is hidden, disabled or removed from the tree, or the scene unloads. In short,
|
|
6776
|
+
* no action may remain held once the element is no longer both present and actively pressed.
|
|
6777
|
+
*
|
|
6778
|
+
* Multi-touch: the binding is a single held state, not reference-counted per pointer. The
|
|
6779
|
+
* actions are held while the element is pressed and released when that press ends; a second
|
|
6780
|
+
* simultaneous press on the same element does not stack, and does not extend the hold past
|
|
6781
|
+
* the first release.
|
|
6782
|
+
*/
|
|
6783
|
+
/**
|
|
6784
|
+
* @public
|
|
6785
|
+
*/
|
|
6786
|
+
export declare interface PBUiInputBinding {
|
|
6787
|
+
/** the input actions fired while this element is pressed */
|
|
6788
|
+
actions: InputAction[];
|
|
6789
|
+
}
|
|
6790
|
+
|
|
6791
|
+
/**
|
|
6792
|
+
* @public
|
|
6793
|
+
*/
|
|
6794
|
+
export declare namespace PBUiInputBinding {
|
|
6795
|
+
export function encode(message: PBUiInputBinding, writer?: _m0.Writer): _m0.Writer;
|
|
6796
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBUiInputBinding;
|
|
6797
|
+
}
|
|
6798
|
+
|
|
6696
6799
|
/**
|
|
6697
6800
|
* @public
|
|
6698
6801
|
*/
|
|
@@ -6961,6 +7064,7 @@ export declare namespace PBVideoPlayer {
|
|
|
6961
7064
|
* an 'instant' transition (like using speed/time = 0)
|
|
6962
7065
|
* * The lookAtEntity defines to which entity the Camera has to look at constantly (independent from
|
|
6963
7066
|
* the holding entity transform).
|
|
7067
|
+
* * The fov defines the Field of View of the virtual camera
|
|
6964
7068
|
*/
|
|
6965
7069
|
/**
|
|
6966
7070
|
* @public
|
|
@@ -6968,6 +7072,8 @@ export declare namespace PBVideoPlayer {
|
|
|
6968
7072
|
export declare interface PBVirtualCamera {
|
|
6969
7073
|
defaultTransition?: CameraTransition | undefined;
|
|
6970
7074
|
lookAtEntity?: number | undefined;
|
|
7075
|
+
/** default: 60 */
|
|
7076
|
+
fov?: number | undefined;
|
|
6971
7077
|
}
|
|
6972
7078
|
|
|
6973
7079
|
/**
|
|
@@ -8988,6 +9094,9 @@ export declare const ToLinearSpace = 2.2;
|
|
|
8988
9094
|
*/
|
|
8989
9095
|
export declare type ToOptional<T> = OnlyOptionalUndefinedTypes<T> & OnlyNonUndefinedTypes<T>;
|
|
8990
9096
|
|
|
9097
|
+
/** @public */
|
|
9098
|
+
export declare const TouchScreenControls: LastWriteWinElementSetComponentDefinition<PBTouchScreenControls>;
|
|
9099
|
+
|
|
8991
9100
|
export declare const Transform: TransformComponentExtended;
|
|
8992
9101
|
|
|
8993
9102
|
/**
|
|
@@ -9434,6 +9543,9 @@ export declare type UiFontType = 'sans-serif' | 'serif' | 'monospace';
|
|
|
9434
9543
|
/** @public */
|
|
9435
9544
|
export declare const UiInput: LastWriteWinElementSetComponentDefinition<PBUiInput>;
|
|
9436
9545
|
|
|
9546
|
+
/** @public */
|
|
9547
|
+
export declare const UiInputBinding: LastWriteWinElementSetComponentDefinition<PBUiInputBinding>;
|
|
9548
|
+
|
|
9437
9549
|
/**
|
|
9438
9550
|
* @public
|
|
9439
9551
|
*/
|
package/dist/index.bundled.d.ts
CHANGED
|
@@ -1447,6 +1447,7 @@ export declare const componentDefinitionByName: {
|
|
|
1447
1447
|
"core::RealmInfo": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBRealmInfo>>;
|
|
1448
1448
|
"core::SkyboxTime": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBSkyboxTime>>;
|
|
1449
1449
|
"core::TextShape": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTextShape>>;
|
|
1450
|
+
"core::TouchScreenControls": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTouchScreenControls>>;
|
|
1450
1451
|
"core::TriggerArea": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTriggerArea>>;
|
|
1451
1452
|
"core::TriggerAreaResult": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBTriggerAreaResult>>;
|
|
1452
1453
|
"core::Tween": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBTween>>;
|
|
@@ -1457,6 +1458,7 @@ export declare const componentDefinitionByName: {
|
|
|
1457
1458
|
"core::UiDropdown": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiDropdown>>;
|
|
1458
1459
|
"core::UiDropdownResult": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiDropdownResult>>;
|
|
1459
1460
|
"core::UiInput": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiInput>>;
|
|
1461
|
+
"core::UiInputBinding": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiInputBinding>>;
|
|
1460
1462
|
"core::UiInputResult": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiInputResult>>;
|
|
1461
1463
|
"core::UiText": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiText>>;
|
|
1462
1464
|
"core::UiTransform": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiTransform>>;
|
|
@@ -4793,8 +4795,9 @@ export declare namespace PBAvatarBase {
|
|
|
4793
4795
|
}
|
|
4794
4796
|
|
|
4795
4797
|
/**
|
|
4796
|
-
* AvatarEmoteCommand is a grow only value set,
|
|
4797
|
-
* avatar
|
|
4798
|
+
* AvatarEmoteCommand is a grow only value set, written by the explorer to report
|
|
4799
|
+
* avatar emote playback to the scene. It is appended to every player entity in the
|
|
4800
|
+
* scene (the local player and remote avatars alike).
|
|
4798
4801
|
*/
|
|
4799
4802
|
/**
|
|
4800
4803
|
* @public
|
|
@@ -6405,6 +6408,70 @@ export declare namespace PBTextShape {
|
|
|
6405
6408
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBTextShape;
|
|
6406
6409
|
}
|
|
6407
6410
|
|
|
6411
|
+
/**
|
|
6412
|
+
* The TouchScreenControls component lets a scene configure the native on-screen touch
|
|
6413
|
+
* controls (the mobile joystick + gamepad). It must be set on the RootEntity.
|
|
6414
|
+
*
|
|
6415
|
+
* By default every on-screen button is shown; list a button in `touch_inputs` with
|
|
6416
|
+
* `hide = true` to remove it (declutter). `main_action` picks which action the large
|
|
6417
|
+
* central button triggers, and `hide_joystick` removes the native virtual joystick. It is
|
|
6418
|
+
* a no-op on platforms without native on-screen controls (e.g. desktop).
|
|
6419
|
+
*
|
|
6420
|
+
* Accepted actions: only the on-screen gamepad actions map to a button — `IA_POINTER`,
|
|
6421
|
+
* `IA_PRIMARY`, `IA_SECONDARY`, `IA_JUMP`, and `IA_ACTION_3`..`IA_ACTION_6`. Any other
|
|
6422
|
+
* `InputAction` (movement actions, `IA_ANY`, `IA_MODIFIER`, or unknown/future values) is
|
|
6423
|
+
* ignored: a `TouchInput` entry naming a non-button action has no effect, and a `main_action`
|
|
6424
|
+
* that isn't a valid gamepad action falls back to the default central button (`IA_JUMP`).
|
|
6425
|
+
*/
|
|
6426
|
+
/**
|
|
6427
|
+
* @public
|
|
6428
|
+
*/
|
|
6429
|
+
export declare interface PBTouchScreenControls {
|
|
6430
|
+
touchInputs: PBTouchScreenControls_TouchInput[];
|
|
6431
|
+
/**
|
|
6432
|
+
* The large central button's action. Only the gamepad actions are valid:
|
|
6433
|
+
* jump / pointer / primary (E) / secondary (F) / action_3..action_6 (1/2/3/4).
|
|
6434
|
+
* When unset, the default central button (jump) is kept.
|
|
6435
|
+
*/
|
|
6436
|
+
mainAction?: InputAction | undefined;
|
|
6437
|
+
/** hide the native virtual joystick */
|
|
6438
|
+
hideJoystick: boolean;
|
|
6439
|
+
/** hide the on-screen crosshair / reticle */
|
|
6440
|
+
hideCrosshair: boolean;
|
|
6441
|
+
}
|
|
6442
|
+
|
|
6443
|
+
/**
|
|
6444
|
+
* @public
|
|
6445
|
+
*/
|
|
6446
|
+
export declare namespace PBTouchScreenControls {
|
|
6447
|
+
export function encode(message: PBTouchScreenControls, writer?: _m0.Writer): _m0.Writer;
|
|
6448
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBTouchScreenControls;
|
|
6449
|
+
}
|
|
6450
|
+
|
|
6451
|
+
/** Per-button configuration. A button not listed here keeps its default (shown). */
|
|
6452
|
+
/**
|
|
6453
|
+
* @public
|
|
6454
|
+
*/
|
|
6455
|
+
export declare interface PBTouchScreenControls_TouchInput {
|
|
6456
|
+
/** which on-screen button this configures */
|
|
6457
|
+
inputAction: InputAction;
|
|
6458
|
+
/** hide this button (default: shown) */
|
|
6459
|
+
hide: boolean;
|
|
6460
|
+
/**
|
|
6461
|
+
* Override the button glyph with this texture. For the jump button it replaces all
|
|
6462
|
+
* of its dynamic states (jump / double-jump / glide).
|
|
6463
|
+
*/
|
|
6464
|
+
icon?: TextureUnion | undefined;
|
|
6465
|
+
}
|
|
6466
|
+
|
|
6467
|
+
/**
|
|
6468
|
+
* @public
|
|
6469
|
+
*/
|
|
6470
|
+
export declare namespace PBTouchScreenControls_TouchInput {
|
|
6471
|
+
export function encode(message: PBTouchScreenControls_TouchInput, writer?: _m0.Writer): _m0.Writer;
|
|
6472
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBTouchScreenControls_TouchInput;
|
|
6473
|
+
}
|
|
6474
|
+
|
|
6408
6475
|
/**
|
|
6409
6476
|
* The PBTriggerArea component is used to raise collision triggering events (through the TriggerAreaResult component)
|
|
6410
6477
|
* when entities enter this component's defined area.
|
|
@@ -6693,6 +6760,42 @@ export declare namespace PBUiInput {
|
|
|
6693
6760
|
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBUiInput;
|
|
6694
6761
|
}
|
|
6695
6762
|
|
|
6763
|
+
/**
|
|
6764
|
+
* The UiInputBinding component binds a UI entity to one or more InputActions. While the
|
|
6765
|
+
* element is pressed (touch or pointer) the listed actions are held down, driving both
|
|
6766
|
+
* the local player input and scene InputAction listeners, just like the native on-screen
|
|
6767
|
+
* buttons. It is typically combined with PBTouchScreenControls to replace the native
|
|
6768
|
+
* controls with a custom touch UI.
|
|
6769
|
+
*
|
|
6770
|
+
* Release semantics: the held actions are released as soon as the press that started them
|
|
6771
|
+
* ends. A renderer MUST release all actions held by this binding when any of the following
|
|
6772
|
+
* happens: the press/touch is lifted or cancelled, the pointer/touch leaves the element
|
|
6773
|
+
* (loses press ownership), the actions list changes (the previous set is released before
|
|
6774
|
+
* the new set is applied), the component is removed or its actions list becomes empty, the
|
|
6775
|
+
* UI element is hidden, disabled or removed from the tree, or the scene unloads. In short,
|
|
6776
|
+
* no action may remain held once the element is no longer both present and actively pressed.
|
|
6777
|
+
*
|
|
6778
|
+
* Multi-touch: the binding is a single held state, not reference-counted per pointer. The
|
|
6779
|
+
* actions are held while the element is pressed and released when that press ends; a second
|
|
6780
|
+
* simultaneous press on the same element does not stack, and does not extend the hold past
|
|
6781
|
+
* the first release.
|
|
6782
|
+
*/
|
|
6783
|
+
/**
|
|
6784
|
+
* @public
|
|
6785
|
+
*/
|
|
6786
|
+
export declare interface PBUiInputBinding {
|
|
6787
|
+
/** the input actions fired while this element is pressed */
|
|
6788
|
+
actions: InputAction[];
|
|
6789
|
+
}
|
|
6790
|
+
|
|
6791
|
+
/**
|
|
6792
|
+
* @public
|
|
6793
|
+
*/
|
|
6794
|
+
export declare namespace PBUiInputBinding {
|
|
6795
|
+
export function encode(message: PBUiInputBinding, writer?: _m0.Writer): _m0.Writer;
|
|
6796
|
+
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBUiInputBinding;
|
|
6797
|
+
}
|
|
6798
|
+
|
|
6696
6799
|
/**
|
|
6697
6800
|
* @public
|
|
6698
6801
|
*/
|
|
@@ -6961,6 +7064,7 @@ export declare namespace PBVideoPlayer {
|
|
|
6961
7064
|
* an 'instant' transition (like using speed/time = 0)
|
|
6962
7065
|
* * The lookAtEntity defines to which entity the Camera has to look at constantly (independent from
|
|
6963
7066
|
* the holding entity transform).
|
|
7067
|
+
* * The fov defines the Field of View of the virtual camera
|
|
6964
7068
|
*/
|
|
6965
7069
|
/**
|
|
6966
7070
|
* @public
|
|
@@ -6968,6 +7072,8 @@ export declare namespace PBVideoPlayer {
|
|
|
6968
7072
|
export declare interface PBVirtualCamera {
|
|
6969
7073
|
defaultTransition?: CameraTransition | undefined;
|
|
6970
7074
|
lookAtEntity?: number | undefined;
|
|
7075
|
+
/** default: 60 */
|
|
7076
|
+
fov?: number | undefined;
|
|
6971
7077
|
}
|
|
6972
7078
|
|
|
6973
7079
|
/**
|
|
@@ -8988,6 +9094,9 @@ export declare const ToLinearSpace = 2.2;
|
|
|
8988
9094
|
*/
|
|
8989
9095
|
export declare type ToOptional<T> = OnlyOptionalUndefinedTypes<T> & OnlyNonUndefinedTypes<T>;
|
|
8990
9096
|
|
|
9097
|
+
/** @public */
|
|
9098
|
+
export declare const TouchScreenControls: LastWriteWinElementSetComponentDefinition<PBTouchScreenControls>;
|
|
9099
|
+
|
|
8991
9100
|
export declare const Transform: TransformComponentExtended;
|
|
8992
9101
|
|
|
8993
9102
|
/**
|
|
@@ -9434,6 +9543,9 @@ export declare type UiFontType = 'sans-serif' | 'serif' | 'monospace';
|
|
|
9434
9543
|
/** @public */
|
|
9435
9544
|
export declare const UiInput: LastWriteWinElementSetComponentDefinition<PBUiInput>;
|
|
9436
9545
|
|
|
9546
|
+
/** @public */
|
|
9547
|
+
export declare const UiInputBinding: LastWriteWinElementSetComponentDefinition<PBUiInputBinding>;
|
|
9548
|
+
|
|
9437
9549
|
/**
|
|
9438
9550
|
* @public
|
|
9439
9551
|
*/
|