@dcl/sdk 7.0.0-3229738194.commit-4629198 → 7.0.0-3244103998.commit-74d3f83
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/ecs7/index.d.ts +153 -153
- package/dist/ecs7/index.js +182 -197
- package/dist/ecs7/index.min.js +1 -1
- package/dist/ecs7/index.min.js.map +1 -1
- package/dist/ecs7/proto-definitions/README.md +3 -3
- package/dist/ecs7/proto-definitions/{Animator.proto → animator.proto} +3 -2
- package/dist/ecs7/proto-definitions/{AudioSource.proto → audio_source.proto} +3 -2
- package/dist/ecs7/proto-definitions/{AudioStream.proto → audio_stream.proto} +3 -2
- package/dist/ecs7/proto-definitions/avatar_attach.proto +19 -0
- package/dist/ecs7/proto-definitions/avatar_modifier_area.proto +19 -0
- package/dist/ecs7/proto-definitions/{AvatarShape.proto → avatar_shape.proto} +7 -6
- package/dist/ecs7/proto-definitions/{Billboard.proto → billboard.proto} +3 -2
- package/dist/ecs7/proto-definitions/camera_mode.proto +10 -0
- package/dist/ecs7/proto-definitions/camera_mode_area.proto +14 -0
- package/dist/ecs7/proto-definitions/common/camera_type.proto +8 -0
- package/dist/ecs7/proto-definitions/common/id.proto +1 -0
- package/dist/ecs7/proto-definitions/common/input_action.proto +20 -0
- package/dist/ecs7/proto-definitions/common/texts.proto +14 -0
- package/dist/ecs7/proto-definitions/{GltfContainer.proto → gltf_container.proto} +3 -2
- package/dist/ecs7/proto-definitions/material.proto +59 -0
- package/dist/ecs7/proto-definitions/mesh_collider.proto +35 -0
- package/dist/ecs7/proto-definitions/{MeshRenderer.proto → mesh_renderer.proto} +3 -2
- package/dist/ecs7/proto-definitions/nft_shape.proto +40 -0
- package/dist/ecs7/proto-definitions/pointer_events.proto +31 -0
- package/dist/ecs7/proto-definitions/{PointerEventsResult.proto → pointer_events_result.proto} +10 -7
- package/dist/ecs7/proto-definitions/pointer_lock.proto +9 -0
- package/dist/ecs7/proto-definitions/raycast.proto +21 -0
- package/dist/ecs7/proto-definitions/raycast_result.proto +25 -0
- package/dist/ecs7/proto-definitions/{TextShape.proto → text_shape.proto} +13 -11
- package/dist/ecs7/proto-definitions/ui_background.proto +11 -0
- package/dist/ecs7/proto-definitions/ui_text.proto +17 -0
- package/dist/ecs7/proto-definitions/{UiTransform.proto → ui_transform.proto} +50 -49
- package/dist/ecs7/proto-definitions/visibility_component.proto +9 -0
- package/dist/playground/snippets/cube-spawner.ts +3 -3
- package/dist/playground/snippets/material.ts +1 -1
- package/dist/playground/snippets/pointer-events.ts +6 -6
- package/dist/playground/snippets/raycast-hit-many.ts +1 -1
- package/dist/playground/snippets/raycast-hit-oscilator.ts +1 -1
- package/dist/playground/snippets/raycast-hit.ts +1 -1
- package/dist/playground/snippets/ui.tsx +3 -3
- package/package.json +4 -4
- package/types/ecs7/index.d.ts +153 -153
- package/types/rpc-modules/CommunicationsController/index.d.ts +1 -1
- package/types/rpc-modules/DevTools/index.d.ts +1 -1
- package/types/rpc-modules/{EngineAPI → EngineApi}/index.d.ts +24 -24
- package/types/rpc-modules/{EnvironmentAPI → EnvironmentApi}/index.d.ts +3 -3
- package/types/rpc-modules/EthereumController/index.d.ts +1 -1
- package/types/rpc-modules/{ExperimentalAPI → ExperimentalApi}/index.d.ts +2 -2
- package/types/rpc-modules/ParcelIdentity/index.d.ts +2 -2
- package/types/rpc-modules/Permissions/index.d.ts +6 -6
- package/types/rpc-modules/Players/index.d.ts +3 -3
- package/types/rpc-modules/PortableExperiences/index.d.ts +1 -1
- package/types/rpc-modules/RestrictedActions/index.d.ts +1 -1
- package/types/rpc-modules/SignedFetch/index.d.ts +1 -1
- package/types/rpc-modules/SocialController/index.d.ts +1 -1
- package/types/rpc-modules/UserActionModule/index.d.ts +1 -1
- package/types/rpc-modules/UserIdentity/index.d.ts +3 -3
- package/types/tsconfig.ecs7.json +3 -3
- package/dist/ecs7/proto-definitions/AvatarAttach.proto +0 -16
- package/dist/ecs7/proto-definitions/AvatarModifierArea.proto +0 -16
- package/dist/ecs7/proto-definitions/CameraMode.proto +0 -9
- package/dist/ecs7/proto-definitions/CameraModeArea.proto +0 -11
- package/dist/ecs7/proto-definitions/Material.proto +0 -59
- package/dist/ecs7/proto-definitions/MeshCollider.proto +0 -35
- package/dist/ecs7/proto-definitions/NFTShape.proto +0 -38
- package/dist/ecs7/proto-definitions/PointerEvents.proto +0 -28
- package/dist/ecs7/proto-definitions/PointerLock.proto +0 -8
- package/dist/ecs7/proto-definitions/Raycast.proto +0 -19
- package/dist/ecs7/proto-definitions/RaycastResult.proto +0 -24
- package/dist/ecs7/proto-definitions/UiBackground.proto +0 -10
- package/dist/ecs7/proto-definitions/UiText.proto +0 -25
- package/dist/ecs7/proto-definitions/VisibilityComponent.proto +0 -8
- package/dist/ecs7/proto-definitions/common/ActionButton.proto +0 -18
- package/dist/ecs7/proto-definitions/common/CameraModeValue.proto +0 -6
- package/dist/ecs7/proto-definitions/common/Color3.proto +0 -8
- package/dist/ecs7/proto-definitions/common/Color4.proto +0 -8
- package/dist/ecs7/proto-definitions/common/Vector3.proto +0 -7
- package/types/rpc-modules/SceneStateStorageController/index.d.ts +0 -90
package/dist/ecs7/index.d.ts
CHANGED
@@ -1,49 +1,31 @@
|
|
1
1
|
/// <reference types="@dcl/posix" />
|
2
2
|
|
3
|
-
declare const enum ActionButton {
|
4
|
-
POINTER = 0,
|
5
|
-
PRIMARY = 1,
|
6
|
-
SECONDARY = 2,
|
7
|
-
ANY = 3,
|
8
|
-
FORWARD = 4,
|
9
|
-
BACKWARD = 5,
|
10
|
-
RIGHT = 6,
|
11
|
-
LEFT = 7,
|
12
|
-
JUMP = 8,
|
13
|
-
WALK = 9,
|
14
|
-
ACTION_3 = 10,
|
15
|
-
ACTION_4 = 11,
|
16
|
-
ACTION_5 = 12,
|
17
|
-
ACTION_6 = 13,
|
18
|
-
UNRECOGNIZED = -1
|
19
|
-
}
|
20
|
-
|
21
3
|
/** @public */
|
22
4
|
export declare const Animator: ComponentDefinition<ISchema<PBAnimator>, PBAnimator>;
|
23
5
|
|
24
6
|
/** @public */
|
25
7
|
export declare const AudioSource: ComponentDefinition<ISchema<PBAudioSource>, PBAudioSource>;
|
26
8
|
|
27
|
-
declare const enum
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
9
|
+
declare const enum AvatarAnchorPointType {
|
10
|
+
AAPT_POSITION = 0,
|
11
|
+
AAPT_NAME_TAG = 1,
|
12
|
+
AAPT_LEFT_HAND = 2,
|
13
|
+
AAPT_RIGHT_HAND = 3,
|
32
14
|
UNRECOGNIZED = -1
|
33
15
|
}
|
34
16
|
|
35
17
|
/** @public */
|
36
18
|
export declare const AvatarAttach: ComponentDefinition<ISchema<PBAvatarAttach>, PBAvatarAttach>;
|
37
19
|
|
38
|
-
declare const enum AvatarModifier {
|
39
|
-
HIDE_AVATARS = 0,
|
40
|
-
DISABLE_PASSPORTS = 1,
|
41
|
-
UNRECOGNIZED = -1
|
42
|
-
}
|
43
|
-
|
44
20
|
/** @public */
|
45
21
|
export declare const AvatarModifierArea: ComponentDefinition<ISchema<PBAvatarModifierArea>, PBAvatarModifierArea>;
|
46
22
|
|
23
|
+
declare const enum AvatarModifierType {
|
24
|
+
AMT_HIDE_AVATARS = 0,
|
25
|
+
AMT_DISABLE_PASSPORTS = 1,
|
26
|
+
UNRECOGNIZED = -1
|
27
|
+
}
|
28
|
+
|
47
29
|
/** @public */
|
48
30
|
export declare const AvatarShape: ComponentDefinition<ISchema<PBAvatarShape>, PBAvatarShape>;
|
49
31
|
|
@@ -61,16 +43,16 @@ export declare const CameraMode: ComponentDefinition<ISchema<PBCameraMode>, PBCa
|
|
61
43
|
/** @public */
|
62
44
|
export declare const CameraModeArea: ComponentDefinition<ISchema<PBCameraModeArea>, PBCameraModeArea>;
|
63
45
|
|
64
|
-
declare const enum
|
65
|
-
|
66
|
-
|
46
|
+
declare const enum CameraType {
|
47
|
+
CT_FIRST_PERSON = 0,
|
48
|
+
CT_THIRD_PERSON = 1,
|
67
49
|
UNRECOGNIZED = -1
|
68
50
|
}
|
69
51
|
|
70
52
|
export declare const enum ColliderLayer {
|
71
|
-
|
72
|
-
|
73
|
-
|
53
|
+
CL_NONE = 0,
|
54
|
+
CL_POINTER = 1,
|
55
|
+
CL_PHYSICS = 2,
|
74
56
|
UNRECOGNIZED = -1
|
75
57
|
}
|
76
58
|
|
@@ -242,7 +224,7 @@ export declare namespace Components {
|
|
242
224
|
/** @public */
|
243
225
|
const MeshRenderer: ComponentDefinition<ISchema<PBMeshRenderer>, Partial<PBMeshRenderer>>;
|
244
226
|
/** @public */
|
245
|
-
const
|
227
|
+
const NftShape: ComponentDefinition<ISchema<PBNftShape>, PBNftShape>;
|
246
228
|
/** @public */
|
247
229
|
const PointerEvents: ComponentDefinition<ISchema<PBPointerEvents>, PBPointerEvents>;
|
248
230
|
/** @public */
|
@@ -468,7 +450,7 @@ declare function defineSdkComponents(engine: PreEngine): {
|
|
468
450
|
CameraModeArea: ComponentDefinition<ISchema<PBCameraModeArea>, PBCameraModeArea>;
|
469
451
|
GltfContainer: ComponentDefinition<ISchema<PBGltfContainer>, PBGltfContainer>;
|
470
452
|
Material: ComponentDefinition<ISchema<PBMaterial>, PBMaterial>;
|
471
|
-
|
453
|
+
NftShape: ComponentDefinition<ISchema<PBNftShape>, PBNftShape>;
|
472
454
|
PointerEvents: ComponentDefinition<ISchema<PBPointerEvents>, PBPointerEvents>;
|
473
455
|
PointerEventsResult: ComponentDefinition<ISchema<PBPointerEventsResult>, PBPointerEventsResult>;
|
474
456
|
PointerLock: ComponentDefinition<ISchema<PBPointerLock>, PBPointerLock>;
|
@@ -515,19 +497,12 @@ declare type ExcludeUndefined<T> = {
|
|
515
497
|
[P in keyof T]: undefined extends T[P] ? never : P;
|
516
498
|
}[keyof T];
|
517
499
|
|
518
|
-
declare const enum FilterMode {
|
519
|
-
Point = 0,
|
520
|
-
Bilinear = 1,
|
521
|
-
Trilinear = 2,
|
522
|
-
UNRECOGNIZED = -1
|
523
|
-
}
|
524
|
-
|
525
500
|
/** @public */
|
526
501
|
declare type FloatArray = number[];
|
527
502
|
|
528
503
|
declare const enum Font {
|
529
|
-
|
530
|
-
|
504
|
+
F_LIBERATION_SANS = 0,
|
505
|
+
F_SANS_SERIF = 1,
|
531
506
|
UNRECOGNIZED = -1
|
532
507
|
}
|
533
508
|
|
@@ -674,6 +649,24 @@ declare type IncludeUndefined<T> = {
|
|
674
649
|
[P in keyof T]: undefined extends T[P] ? P : never;
|
675
650
|
}[keyof T];
|
676
651
|
|
652
|
+
declare const enum InputAction {
|
653
|
+
IA_POINTER = 0,
|
654
|
+
IA_PRIMARY = 1,
|
655
|
+
IA_SECONDARY = 2,
|
656
|
+
IA_ANY = 3,
|
657
|
+
IA_FORWARD = 4,
|
658
|
+
IA_BACKWARD = 5,
|
659
|
+
IA_RIGHT = 6,
|
660
|
+
IA_LEFT = 7,
|
661
|
+
IA_JUMP = 8,
|
662
|
+
IA_WALK = 9,
|
663
|
+
IA_ACTION_3 = 10,
|
664
|
+
IA_ACTION_4 = 11,
|
665
|
+
IA_ACTION_5 = 12,
|
666
|
+
IA_ACTION_6 = 13,
|
667
|
+
UNRECOGNIZED = -1
|
668
|
+
}
|
669
|
+
|
677
670
|
/**
|
678
671
|
* @public
|
679
672
|
*/
|
@@ -695,9 +688,9 @@ export declare type ISchema<T = any> = {
|
|
695
688
|
* @param pointerEventType
|
696
689
|
* @returns
|
697
690
|
*/
|
698
|
-
export declare function isPointerEventActive(entity: Entity, actionButton:
|
691
|
+
export declare function isPointerEventActive(entity: Entity, actionButton: InputAction, pointerEventType: PointerEventType): boolean;
|
699
692
|
|
700
|
-
export declare function isPointerEventActiveGenerator(engine: IEngine): (entity: Entity, actionButton:
|
693
|
+
export declare function isPointerEventActiveGenerator(engine: IEngine): (entity: Entity, actionButton: InputAction, pointerEventType: PointerEventType) => boolean;
|
701
694
|
|
702
695
|
export declare const log: (...a: any[]) => void;
|
703
696
|
|
@@ -723,6 +716,15 @@ export declare function makeCollisionMask(...layers: ColliderLayer[]): number;
|
|
723
716
|
/** @public */
|
724
717
|
export declare const Material: ComponentDefinition<ISchema<PBMaterial>, PBMaterial>;
|
725
718
|
|
719
|
+
declare const enum MaterialTransparencyMode {
|
720
|
+
MTM_OPAQUE = 0,
|
721
|
+
MTM_ALPHA_TEST = 1,
|
722
|
+
MTM_ALPHA_BLEND = 2,
|
723
|
+
MTM_ALPHA_TEST_AND_ALPHA_BLEND = 3,
|
724
|
+
MTM_AUTO = 4,
|
725
|
+
UNRECOGNIZED = -1
|
726
|
+
}
|
727
|
+
|
726
728
|
/**
|
727
729
|
* Class used to store matrix data (4x4)
|
728
730
|
* @public
|
@@ -1474,8 +1476,35 @@ export declare class MessageBus {
|
|
1474
1476
|
private flush;
|
1475
1477
|
}
|
1476
1478
|
|
1479
|
+
declare const enum NftFrameType {
|
1480
|
+
NFT_CLASSIC = 0,
|
1481
|
+
NFT_BAROQUE_ORNAMENT = 1,
|
1482
|
+
NFT_DIAMOND_ORNAMENT = 2,
|
1483
|
+
NFT_MINIMAL_WIDE = 3,
|
1484
|
+
NFT_MINIMAL_GREY = 4,
|
1485
|
+
NFT_BLOCKY = 5,
|
1486
|
+
NFT_GOLD_EDGES = 6,
|
1487
|
+
NFT_GOLD_CARVED = 7,
|
1488
|
+
NFT_GOLD_WIDE = 8,
|
1489
|
+
NFT_GOLD_ROUNDED = 9,
|
1490
|
+
NFT_METAL_MEDIUM = 10,
|
1491
|
+
NFT_METAL_WIDE = 11,
|
1492
|
+
NFT_METAL_SLIM = 12,
|
1493
|
+
NFT_METAL_ROUNDED = 13,
|
1494
|
+
NFT_PINS = 14,
|
1495
|
+
NFT_MINIMAL_BLACK = 15,
|
1496
|
+
NFT_MINIMAL_WHITE = 16,
|
1497
|
+
NFT_TAPE = 17,
|
1498
|
+
NFT_WOOD_SLIM = 18,
|
1499
|
+
NFT_WOOD_WIDE = 19,
|
1500
|
+
NFT_WOOD_TWIGS = 20,
|
1501
|
+
NFT_CANVAS = 21,
|
1502
|
+
NFT_NONE = 22,
|
1503
|
+
UNRECOGNIZED = -1
|
1504
|
+
}
|
1505
|
+
|
1477
1506
|
/** @public */
|
1478
|
-
export declare const
|
1507
|
+
export declare const NftShape: ComponentDefinition<ISchema<PBNftShape>, PBNftShape>;
|
1479
1508
|
|
1480
1509
|
/**
|
1481
1510
|
* The Observable class is a simple implementation of the Observable pattern.
|
@@ -1814,13 +1843,13 @@ declare interface PBAudioSource {
|
|
1814
1843
|
|
1815
1844
|
declare interface PBAvatarAttach {
|
1816
1845
|
avatarId: string;
|
1817
|
-
anchorPointId:
|
1846
|
+
anchorPointId: AvatarAnchorPointType;
|
1818
1847
|
}
|
1819
1848
|
|
1820
1849
|
declare interface PBAvatarModifierArea {
|
1821
1850
|
area: Vector3_2 | undefined;
|
1822
1851
|
excludeIds: string[];
|
1823
|
-
modifiers:
|
1852
|
+
modifiers: AvatarModifierType[];
|
1824
1853
|
}
|
1825
1854
|
|
1826
1855
|
declare interface PBAvatarShape {
|
@@ -1829,11 +1858,11 @@ declare interface PBAvatarShape {
|
|
1829
1858
|
name?: string | undefined;
|
1830
1859
|
/** default = urn:decentraland:off-chain:base-avatars:BaseFemale */
|
1831
1860
|
bodyShape?: string | undefined;
|
1832
|
-
/** default = Color3(R = 0.6f, G = 0.462f, B = 0.356f) */
|
1861
|
+
/** default = decentraland.common.Color3(R = 0.6f, G = 0.462f, B = 0.356f) */
|
1833
1862
|
skinColor?: Color3 | undefined;
|
1834
|
-
/** default = Color3(R = 0.283f, G = 0.142f, B = 0f) */
|
1863
|
+
/** default = decentraland.common.Color3(R = 0.283f, G = 0.142f, B = 0f) */
|
1835
1864
|
hairColor?: Color3 | undefined;
|
1836
|
-
/** default = Color3(R = 0.6f, G = 0.462f, B = 0.356f) */
|
1865
|
+
/** default = decentraland.common.Color3(R = 0.6f, G = 0.462f, B = 0.356f) */
|
1837
1866
|
eyeColor?: Color3 | undefined;
|
1838
1867
|
expressionTriggerId?: string | undefined;
|
1839
1868
|
/** default = timestamp */
|
@@ -1863,12 +1892,12 @@ declare interface PBBillboard {
|
|
1863
1892
|
}
|
1864
1893
|
|
1865
1894
|
declare interface PBCameraMode {
|
1866
|
-
mode:
|
1895
|
+
mode: CameraType;
|
1867
1896
|
}
|
1868
1897
|
|
1869
1898
|
declare interface PBCameraModeArea {
|
1870
1899
|
area: Vector3_2 | undefined;
|
1871
|
-
mode:
|
1900
|
+
mode: CameraType;
|
1872
1901
|
}
|
1873
1902
|
|
1874
1903
|
declare interface PBGltfContainer {
|
@@ -1896,7 +1925,7 @@ declare interface PBMaterial {
|
|
1896
1925
|
/** default = white; */
|
1897
1926
|
reflectivityColor?: Color3 | undefined;
|
1898
1927
|
/** default = TransparencyMode.Auto */
|
1899
|
-
transparencyMode?:
|
1928
|
+
transparencyMode?: MaterialTransparencyMode | undefined;
|
1900
1929
|
/** default = 0.5 */
|
1901
1930
|
metallic?: number | undefined;
|
1902
1931
|
/** default = 0.5 */
|
@@ -1916,7 +1945,7 @@ declare interface PBMaterial_Texture {
|
|
1916
1945
|
/** default = TextureWrapMode.Clamp */
|
1917
1946
|
wrapMode?: TextureWrapMode | undefined;
|
1918
1947
|
/** default = FilterMode.Bilinear */
|
1919
|
-
filterMode?:
|
1948
|
+
filterMode?: TextureFilterMode | undefined;
|
1920
1949
|
}
|
1921
1950
|
|
1922
1951
|
declare interface PBMeshCollider {
|
@@ -1969,41 +1998,14 @@ declare interface PBMeshRenderer_PlaneMesh {
|
|
1969
1998
|
declare interface PBMeshRenderer_SphereMesh {
|
1970
1999
|
}
|
1971
2000
|
|
1972
|
-
declare interface
|
2001
|
+
declare interface PBNftShape {
|
1973
2002
|
src: string;
|
1974
2003
|
/** default = PictureFrameStyle.Classic */
|
1975
|
-
style?:
|
1976
|
-
/** default = Color3(0.6404918, 0.611472, 0.8584906) */
|
2004
|
+
style?: NftFrameType | undefined;
|
2005
|
+
/** default = decentraland.common.Color3(0.6404918, 0.611472, 0.8584906) */
|
1977
2006
|
color?: Color3 | undefined;
|
1978
2007
|
}
|
1979
2008
|
|
1980
|
-
declare const enum PBNFTShape_PictureFrameStyle {
|
1981
|
-
Classic = 0,
|
1982
|
-
Baroque_Ornament = 1,
|
1983
|
-
Diamond_Ornament = 2,
|
1984
|
-
Minimal_Wide = 3,
|
1985
|
-
Minimal_Grey = 4,
|
1986
|
-
Blocky = 5,
|
1987
|
-
Gold_Edges = 6,
|
1988
|
-
Gold_Carved = 7,
|
1989
|
-
Gold_Wide = 8,
|
1990
|
-
Gold_Rounded = 9,
|
1991
|
-
Metal_Medium = 10,
|
1992
|
-
Metal_Wide = 11,
|
1993
|
-
Metal_Slim = 12,
|
1994
|
-
Metal_Rounded = 13,
|
1995
|
-
Pins = 14,
|
1996
|
-
Minimal_Black = 15,
|
1997
|
-
Minimal_White = 16,
|
1998
|
-
Tape = 17,
|
1999
|
-
Wood_Slim = 18,
|
2000
|
-
Wood_Wide = 19,
|
2001
|
-
Wood_Twigs = 20,
|
2002
|
-
Canvas = 21,
|
2003
|
-
None = 22,
|
2004
|
-
UNRECOGNIZED = -1
|
2005
|
-
}
|
2006
|
-
|
2007
2009
|
declare interface PBPointerEvents {
|
2008
2010
|
pointerEvents: PBPointerEvents_Entry[];
|
2009
2011
|
}
|
@@ -2014,8 +2016,8 @@ declare interface PBPointerEvents_Entry {
|
|
2014
2016
|
}
|
2015
2017
|
|
2016
2018
|
declare interface PBPointerEvents_Info {
|
2017
|
-
/** default=
|
2018
|
-
button?:
|
2019
|
+
/** default=InputAction.ANY */
|
2020
|
+
button?: InputAction | undefined;
|
2019
2021
|
/** default='Interact' */
|
2020
2022
|
hoverText?: string | undefined;
|
2021
2023
|
/** default=10 */
|
@@ -2033,7 +2035,7 @@ declare interface PBPointerEventsResult {
|
|
2033
2035
|
/** this message represents a pointer event, used both for UP and DOWN actions */
|
2034
2036
|
declare interface PBPointerEventsResult_PointerCommand {
|
2035
2037
|
/** identifier of the input */
|
2036
|
-
button:
|
2038
|
+
button: InputAction;
|
2037
2039
|
hit: RaycastHit | undefined;
|
2038
2040
|
state: PointerEventType;
|
2039
2041
|
/** could be a Lamport timestamp */
|
@@ -2108,7 +2110,7 @@ declare interface PBUiText {
|
|
2108
2110
|
/** default=(1.0,1.0,1.0) */
|
2109
2111
|
color?: Color3 | undefined;
|
2110
2112
|
/** default='center' */
|
2111
|
-
textAlign?:
|
2113
|
+
textAlign?: TextAlignMode | undefined;
|
2112
2114
|
/** default=0 */
|
2113
2115
|
font?: Font | undefined;
|
2114
2116
|
/** default=10 */
|
@@ -2306,10 +2308,10 @@ export declare const PointerEvents: ComponentDefinition<ISchema<PBPointerEvents>
|
|
2306
2308
|
export declare const PointerEventsResult: ComponentDefinition<ISchema<PBPointerEventsResult>, PBPointerEventsResult>;
|
2307
2309
|
|
2308
2310
|
declare const enum PointerEventType {
|
2309
|
-
|
2310
|
-
|
2311
|
-
|
2312
|
-
|
2311
|
+
PET_UP = 0,
|
2312
|
+
PET_DOWN = 1,
|
2313
|
+
PET_HOVER_ENTER = 2,
|
2314
|
+
PET_HOVER_LEAVE = 3,
|
2313
2315
|
UNRECOGNIZED = -1
|
2314
2316
|
}
|
2315
2317
|
|
@@ -2547,8 +2549,8 @@ declare interface RaycastHit {
|
|
2547
2549
|
}
|
2548
2550
|
|
2549
2551
|
declare const enum RaycastQueryType {
|
2550
|
-
|
2551
|
-
|
2552
|
+
RQT_HIT_FIRST = 0,
|
2553
|
+
RQT_QUERY_ALL = 1,
|
2552
2554
|
UNRECOGNIZED = -1
|
2553
2555
|
}
|
2554
2556
|
|
@@ -2621,21 +2623,28 @@ export declare interface Spec {
|
|
2621
2623
|
*/
|
2622
2624
|
export declare type SystemFn = (dt: number) => void;
|
2623
2625
|
|
2624
|
-
declare const enum
|
2625
|
-
|
2626
|
-
|
2627
|
-
|
2626
|
+
declare const enum TextAlignMode {
|
2627
|
+
TAM_CENTER = 0,
|
2628
|
+
TAM_LEFT = 1,
|
2629
|
+
TAM_RIGHT = 2,
|
2628
2630
|
UNRECOGNIZED = -1
|
2629
2631
|
}
|
2630
2632
|
|
2631
2633
|
/** @public */
|
2632
2634
|
export declare const TextShape: ComponentDefinition<ISchema<PBTextShape>, PBTextShape>;
|
2633
2635
|
|
2636
|
+
declare const enum TextureFilterMode {
|
2637
|
+
TFM_POINT = 0,
|
2638
|
+
TFM_BILINEAR = 1,
|
2639
|
+
TFM_TRILINEAR = 2,
|
2640
|
+
UNRECOGNIZED = -1
|
2641
|
+
}
|
2642
|
+
|
2634
2643
|
declare const enum TextureWrapMode {
|
2635
|
-
|
2636
|
-
|
2637
|
-
|
2638
|
-
|
2644
|
+
TWM_REPEAT = 0,
|
2645
|
+
TWM_CLAMP = 1,
|
2646
|
+
TWM_MIRROR = 2,
|
2647
|
+
TWM_MIRROR_ONCE = 3,
|
2639
2648
|
UNRECOGNIZED = -1
|
2640
2649
|
}
|
2641
2650
|
|
@@ -2667,15 +2676,6 @@ declare type TransformType = {
|
|
2667
2676
|
parent?: Entity;
|
2668
2677
|
};
|
2669
2678
|
|
2670
|
-
declare const enum TransparencyMode {
|
2671
|
-
Opaque = 0,
|
2672
|
-
AlphaTest = 1,
|
2673
|
-
AlphaBlend = 2,
|
2674
|
-
AlphaTestAndAlphaBlend = 3,
|
2675
|
-
Auto = 4,
|
2676
|
-
UNRECOGNIZED = -1
|
2677
|
-
}
|
2678
|
-
|
2679
2679
|
export declare type Transport = {
|
2680
2680
|
type: string;
|
2681
2681
|
send(message: Uint8Array): void;
|
@@ -3267,9 +3267,9 @@ export declare const VisibilityComponent: ComponentDefinition<ISchema<PBVisibili
|
|
3267
3267
|
* @param actionButton
|
3268
3268
|
* @returns true if the entity was clicked in the last tick-update
|
3269
3269
|
*/
|
3270
|
-
export declare function wasEntityClicked(entity: Entity, actionButton:
|
3270
|
+
export declare function wasEntityClicked(entity: Entity, actionButton: InputAction): boolean;
|
3271
3271
|
|
3272
|
-
export declare function wasEntityClickedGenerator(engine: IEngine): (entity: Entity, actionButton:
|
3272
|
+
export declare function wasEntityClickedGenerator(engine: IEngine): (entity: Entity, actionButton: InputAction) => boolean;
|
3273
3273
|
|
3274
3274
|
declare namespace WireMessage {
|
3275
3275
|
enum Enum {
|
@@ -3296,74 +3296,74 @@ declare namespace WireMessage {
|
|
3296
3296
|
}
|
3297
3297
|
|
3298
3298
|
declare const enum YGAlign {
|
3299
|
-
|
3300
|
-
|
3301
|
-
|
3302
|
-
|
3303
|
-
|
3304
|
-
|
3305
|
-
|
3306
|
-
|
3299
|
+
YGA_AUTO = 0,
|
3300
|
+
YGA_FLEX_START = 1,
|
3301
|
+
YGA_CENTER = 2,
|
3302
|
+
YGA_FLEX_END = 3,
|
3303
|
+
YGA_STRETCH = 4,
|
3304
|
+
YGA_BASELINE = 5,
|
3305
|
+
YGA_SPACE_BETWEEN = 6,
|
3306
|
+
YGA_SPACE_AROUND = 7,
|
3307
3307
|
UNRECOGNIZED = -1
|
3308
3308
|
}
|
3309
3309
|
|
3310
3310
|
declare const enum YGDirection {
|
3311
|
-
|
3312
|
-
|
3313
|
-
|
3311
|
+
YGD_INHERIT = 0,
|
3312
|
+
YGD_LTR = 1,
|
3313
|
+
YGD_RTL = 2,
|
3314
3314
|
UNRECOGNIZED = -1
|
3315
3315
|
}
|
3316
3316
|
|
3317
3317
|
declare const enum YGDisplay {
|
3318
|
-
|
3319
|
-
|
3318
|
+
YGD_FLEX = 0,
|
3319
|
+
YGD_NONE = 1,
|
3320
3320
|
UNRECOGNIZED = -1
|
3321
3321
|
}
|
3322
3322
|
|
3323
3323
|
declare const enum YGFlexDirection {
|
3324
|
-
|
3325
|
-
|
3326
|
-
|
3327
|
-
|
3324
|
+
YGFD_COLUMN = 0,
|
3325
|
+
YGFD_COLUMN_REVERSE = 1,
|
3326
|
+
YGFD_ROW = 2,
|
3327
|
+
YGFD_ROW_REVERSE = 3,
|
3328
3328
|
UNRECOGNIZED = -1
|
3329
3329
|
}
|
3330
3330
|
|
3331
3331
|
declare const enum YGJustify {
|
3332
|
-
|
3333
|
-
|
3334
|
-
|
3335
|
-
|
3336
|
-
|
3337
|
-
|
3332
|
+
YGJ_FLEX_START = 0,
|
3333
|
+
YGJ_CENTER = 1,
|
3334
|
+
YGJ_FLEX_END = 2,
|
3335
|
+
YGJ_SPACE_BETWEEN = 3,
|
3336
|
+
YGJ_SPACE_AROUND = 4,
|
3337
|
+
YGJ_SPACE_EVENLY = 5,
|
3338
3338
|
UNRECOGNIZED = -1
|
3339
3339
|
}
|
3340
3340
|
|
3341
3341
|
declare const enum YGOverflow {
|
3342
|
-
|
3343
|
-
|
3344
|
-
|
3342
|
+
YGO_VISIBLE = 0,
|
3343
|
+
YGO_HIDDEN = 1,
|
3344
|
+
YGO_SCROLL = 2,
|
3345
3345
|
UNRECOGNIZED = -1
|
3346
3346
|
}
|
3347
3347
|
|
3348
3348
|
declare const enum YGPositionType {
|
3349
|
-
|
3350
|
-
|
3351
|
-
|
3349
|
+
YGPT_STATIC = 0,
|
3350
|
+
YGPT_RELATIVE = 1,
|
3351
|
+
YGPT_ABSOLUTE = 2,
|
3352
3352
|
UNRECOGNIZED = -1
|
3353
3353
|
}
|
3354
3354
|
|
3355
3355
|
declare const enum YGUnit {
|
3356
|
-
|
3357
|
-
|
3358
|
-
|
3359
|
-
|
3356
|
+
YGU_UNDEFINED = 0,
|
3357
|
+
YGU_POINT = 1,
|
3358
|
+
YGU_PERCENT = 2,
|
3359
|
+
YGU_AUTO = 3,
|
3360
3360
|
UNRECOGNIZED = -1
|
3361
3361
|
}
|
3362
3362
|
|
3363
3363
|
declare const enum YGWrap {
|
3364
|
-
|
3365
|
-
|
3366
|
-
|
3364
|
+
YGW_NO_WRAP = 0,
|
3365
|
+
YGW_WRAP = 1,
|
3366
|
+
YGW_WRAP_REVERSE = 2,
|
3367
3367
|
UNRECOGNIZED = -1
|
3368
3368
|
}
|
3369
3369
|
|