@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/types/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
|
declare const Animator: ComponentDefinition<ISchema<PBAnimator>, PBAnimator>;
|
23
5
|
|
24
6
|
/** @public */
|
25
7
|
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
|
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
|
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
|
declare const AvatarShape: ComponentDefinition<ISchema<PBAvatarShape>, PBAvatarShape>;
|
49
31
|
|
@@ -61,16 +43,16 @@ declare const CameraMode: ComponentDefinition<ISchema<PBCameraMode>, PBCameraMod
|
|
61
43
|
/** @public */
|
62
44
|
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
|
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 @@ 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 @@ declare type ISchema<T = any> = {
|
|
695
688
|
* @param pointerEventType
|
696
689
|
* @returns
|
697
690
|
*/
|
698
|
-
declare function isPointerEventActive(entity: Entity, actionButton:
|
691
|
+
declare function isPointerEventActive(entity: Entity, actionButton: InputAction, pointerEventType: PointerEventType): boolean;
|
699
692
|
|
700
|
-
declare function isPointerEventActiveGenerator(engine: IEngine): (entity: Entity, actionButton:
|
693
|
+
declare function isPointerEventActiveGenerator(engine: IEngine): (entity: Entity, actionButton: InputAction, pointerEventType: PointerEventType) => boolean;
|
701
694
|
|
702
695
|
declare const log: (...a: any[]) => void;
|
703
696
|
|
@@ -723,6 +716,15 @@ declare function makeCollisionMask(...layers: ColliderLayer[]): number;
|
|
723
716
|
/** @public */
|
724
717
|
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 @@ 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
|
-
declare const
|
1507
|
+
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 @@ declare const PointerEvents: ComponentDefinition<ISchema<PBPointerEvents>, PBPoi
|
|
2306
2308
|
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 @@ declare interface Spec {
|
|
2621
2623
|
*/
|
2622
2624
|
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
|
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
|
declare type Transport = {
|
2680
2680
|
type: string;
|
2681
2681
|
send(message: Uint8Array): void;
|
@@ -3267,9 +3267,9 @@ declare const VisibilityComponent: ComponentDefinition<ISchema<PBVisibilityCompo
|
|
3267
3267
|
* @param actionButton
|
3268
3268
|
* @returns true if the entity was clicked in the last tick-update
|
3269
3269
|
*/
|
3270
|
-
declare function wasEntityClicked(entity: Entity, actionButton:
|
3270
|
+
declare function wasEntityClicked(entity: Entity, actionButton: InputAction): boolean;
|
3271
3271
|
|
3272
|
-
declare function wasEntityClickedGenerator(engine: IEngine): (entity: Entity, actionButton:
|
3272
|
+
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
|
|
@@ -8,7 +8,7 @@ declare module "~system/CommunicationsController" {
|
|
8
8
|
|
9
9
|
// ########### BLOCK
|
10
10
|
|
11
|
-
// importtype { RealSendRequest, RealSendResponse } from "proto/kernel/apis/
|
11
|
+
// importtype { RealSendRequest, RealSendResponse } from "proto/decentraland/kernel/apis/communications_controller.gen";
|
12
12
|
export function send(body: RealSendRequest): Promise<RealSendResponse>;
|
13
13
|
|
14
14
|
}
|
@@ -9,7 +9,7 @@ declare module "~system/DevTools" {
|
|
9
9
|
|
10
10
|
// ########### BLOCK
|
11
11
|
|
12
|
-
// importtype { DevToolsBody, EventResponse } from "proto/kernel/apis/
|
12
|
+
// importtype { DevToolsBody, EventResponse } from "proto/decentraland/kernel/apis/dev_tools.gen";
|
13
13
|
export function event(body: DevToolsBody): Promise<EventResponse>;
|
14
14
|
|
15
15
|
}
|
@@ -1,35 +1,35 @@
|
|
1
|
-
declare module "~system/
|
1
|
+
declare module "~system/EngineApi" {
|
2
2
|
|
3
3
|
export enum QueryType {
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
4
|
+
QT_INVALID_QUERY_TYPE = 0,
|
5
|
+
QT_HIT_FIRST = 1,
|
6
|
+
QT_HIT_ALL = 2,
|
7
|
+
QT_HIT_FIRST_AVATAR = 3,
|
8
|
+
QT_HIT_ALL_AVATARS = 4,
|
9
9
|
UNRECOGNIZED = -1
|
10
10
|
}
|
11
11
|
export enum EAType {
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
12
|
+
EAT_INVALID_EA_TYPE = 0,
|
13
|
+
EAT_OPEN_EXTERNAL_URL = 1,
|
14
|
+
EAT_OPEN_NFT_DIALOG = 2,
|
15
|
+
EAT_CREATE_ENTITY = 3,
|
16
|
+
EAT_REMOVE_ENTITY = 4,
|
17
|
+
EAT_UPDATE_ENTITY_COMPONENT = 5,
|
18
|
+
EAT_ATTACH_ENTITY_COMPONENT = 6,
|
19
|
+
EAT_COMPONENT_REMOVED = 7,
|
20
|
+
EAT_SET_ENTITY_PARENT = 8,
|
21
|
+
EAT_QUERY = 9,
|
22
|
+
EAT_COMPONENT_CREATED = 10,
|
23
|
+
EAT_COMPONENT_DISPOSED = 11,
|
24
|
+
EAT_COMPONENT_UPDATED = 12,
|
25
|
+
EAT_INIT_MESSAGES_FINISHED = 13,
|
26
26
|
UNRECOGNIZED = -1
|
27
27
|
}
|
28
28
|
/** Events */
|
29
29
|
export enum EventDataType {
|
30
|
-
|
31
|
-
|
32
|
-
|
30
|
+
EDT_GENERIC = 0,
|
31
|
+
EDT_POSITION_CHANGED = 1,
|
32
|
+
EDT_ROTATION_CHANGED = 2,
|
33
33
|
UNRECOGNIZED = -1
|
34
34
|
}
|
35
35
|
export interface OpenExternalUrlBody {
|
@@ -152,7 +152,7 @@ declare module "~system/EngineAPI" {
|
|
152
152
|
|
153
153
|
// ########### BLOCK
|
154
154
|
|
155
|
-
// importtype { ManyEntityAction, SendBatchResponse, SubscribeRequest, SubscribeResponse, UnsubscribeRequest, UnsubscribeResponse } from "proto/kernel/apis/
|
155
|
+
// importtype { ManyEntityAction, SendBatchResponse, SubscribeRequest, SubscribeResponse, UnsubscribeRequest, UnsubscribeResponse } from "proto/decentraland/kernel/apis/engine_api.gen";
|
156
156
|
export function sendBatch(body: ManyEntityAction): Promise<SendBatchResponse>;
|
157
157
|
export function subscribe(body: SubscribeRequest): Promise<SubscribeResponse>;
|
158
158
|
export function unsubscribe(body: UnsubscribeRequest): Promise<UnsubscribeResponse>;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
declare module "~system/
|
1
|
+
declare module "~system/EnvironmentApi" {
|
2
2
|
|
3
3
|
export const protobufPackage = "decentraland.common";
|
4
4
|
export interface ContentMapping {
|
@@ -8,7 +8,7 @@ declare module "~system/EnvironmentAPI" {
|
|
8
8
|
|
9
9
|
// ########### BLOCK
|
10
10
|
|
11
|
-
// importtype { ContentMapping } from "proto/common/
|
11
|
+
// importtype { ContentMapping } from "proto/decentraland/common/content_mapping.gen";
|
12
12
|
export interface MinimalRunnableEntity {
|
13
13
|
content: ContentMapping[];
|
14
14
|
metadataJson: string;
|
@@ -69,7 +69,7 @@ declare module "~system/EnvironmentAPI" {
|
|
69
69
|
|
70
70
|
// ########### BLOCK
|
71
71
|
|
72
|
-
// importtype { GetBootstrapDataRequest, BootstrapDataResponse, IsPreviewModeRequest, PreviewModeResponse, GetPlatformRequest, GetPlatformResponse, AreUnsafeRequestAllowedRequest, AreUnsafeRequestAllowedResponse, GetCurrentRealmRequest, GetCurrentRealmResponse, GetExplorerConfigurationRequest, GetExplorerConfigurationResponse, GetDecentralandTimeRequest, GetDecentralandTimeResponse } from "proto/kernel/apis/
|
72
|
+
// importtype { GetBootstrapDataRequest, BootstrapDataResponse, IsPreviewModeRequest, PreviewModeResponse, GetPlatformRequest, GetPlatformResponse, AreUnsafeRequestAllowedRequest, AreUnsafeRequestAllowedResponse, GetCurrentRealmRequest, GetCurrentRealmResponse, GetExplorerConfigurationRequest, GetExplorerConfigurationResponse, GetDecentralandTimeRequest, GetDecentralandTimeResponse } from "proto/decentraland/kernel/apis/environment_api.gen";
|
73
73
|
export function getBootstrapData(body: GetBootstrapDataRequest): Promise<BootstrapDataResponse>;
|
74
74
|
export function isPreviewMode(body: IsPreviewModeRequest): Promise<PreviewModeResponse>;
|
75
75
|
export function getPlatform(body: GetPlatformRequest): Promise<GetPlatformResponse>;
|
@@ -50,7 +50,7 @@ declare module "~system/EthereumController" {
|
|
50
50
|
|
51
51
|
// ########### BLOCK
|
52
52
|
|
53
|
-
// importtype { RequirePaymentRequest, RequirePaymentResponse, SignMessageRequest, SignMessageResponse, ConvertMessageToObjectRequest, ConvertMessageToObjectResponse, SendAsyncRequest, SendAsyncResponse, GetUserAccountRequest, GetUserAccountResponse } from "proto/kernel/apis/
|
53
|
+
// importtype { RequirePaymentRequest, RequirePaymentResponse, SignMessageRequest, SignMessageResponse, ConvertMessageToObjectRequest, ConvertMessageToObjectResponse, SendAsyncRequest, SendAsyncResponse, GetUserAccountRequest, GetUserAccountResponse } from "proto/decentraland/kernel/apis/ethereum_controller.gen";
|
54
54
|
export function requirePayment(body: RequirePaymentRequest): Promise<RequirePaymentResponse>;
|
55
55
|
export function signMessage(body: SignMessageRequest): Promise<SignMessageResponse>;
|
56
56
|
export function convertMessageToObject(body: ConvertMessageToObjectRequest): Promise<ConvertMessageToObjectResponse>;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
declare module "~system/
|
1
|
+
declare module "~system/ExperimentalApi" {
|
2
2
|
|
3
3
|
export interface SendToRendererRequest {
|
4
4
|
data: Uint8Array;
|
@@ -13,7 +13,7 @@ declare module "~system/ExperimentalAPI" {
|
|
13
13
|
|
14
14
|
// ########### BLOCK
|
15
15
|
|
16
|
-
// importtype { SendToRendererRequest, SendToResponse, MessageFromRendererRequest, MessageFromRendererResponse } from "proto/kernel/apis/
|
16
|
+
// importtype { SendToRendererRequest, SendToResponse, MessageFromRendererRequest, MessageFromRendererResponse } from "proto/decentraland/kernel/apis/experimental_api.gen";
|
17
17
|
export function sendToRenderer(body: SendToRendererRequest): Promise<SendToResponse>;
|
18
18
|
export function messageFromRenderer(body: MessageFromRendererRequest): Promise<MessageFromRendererResponse>;
|
19
19
|
|