@dcl/sdk 7.0.0-3229738194.commit-4629198 → 7.0.0-3244243254.commit-d5804ee

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.
Files changed (78) hide show
  1. package/dist/ecs7/index.d.ts +148 -170
  2. package/dist/ecs7/index.js +177 -211
  3. package/dist/ecs7/index.min.js +1 -1
  4. package/dist/ecs7/index.min.js.map +1 -1
  5. package/dist/ecs7/proto-definitions/README.md +3 -3
  6. package/dist/ecs7/proto-definitions/{Animator.proto → animator.proto} +3 -2
  7. package/dist/ecs7/proto-definitions/{AudioSource.proto → audio_source.proto} +3 -2
  8. package/dist/ecs7/proto-definitions/{AudioStream.proto → audio_stream.proto} +3 -2
  9. package/dist/ecs7/proto-definitions/avatar_attach.proto +19 -0
  10. package/dist/ecs7/proto-definitions/avatar_modifier_area.proto +19 -0
  11. package/dist/ecs7/proto-definitions/{AvatarShape.proto → avatar_shape.proto} +7 -6
  12. package/dist/ecs7/proto-definitions/{Billboard.proto → billboard.proto} +3 -2
  13. package/dist/ecs7/proto-definitions/camera_mode.proto +10 -0
  14. package/dist/ecs7/proto-definitions/camera_mode_area.proto +14 -0
  15. package/dist/ecs7/proto-definitions/common/camera_type.proto +8 -0
  16. package/dist/ecs7/proto-definitions/common/id.proto +1 -0
  17. package/dist/ecs7/proto-definitions/common/input_action.proto +20 -0
  18. package/dist/ecs7/proto-definitions/common/texts.proto +14 -0
  19. package/dist/ecs7/proto-definitions/{GltfContainer.proto → gltf_container.proto} +3 -2
  20. package/dist/ecs7/proto-definitions/material.proto +59 -0
  21. package/dist/ecs7/proto-definitions/mesh_collider.proto +35 -0
  22. package/dist/ecs7/proto-definitions/{MeshRenderer.proto → mesh_renderer.proto} +3 -2
  23. package/dist/ecs7/proto-definitions/nft_shape.proto +40 -0
  24. package/dist/ecs7/proto-definitions/pointer_events.proto +31 -0
  25. package/dist/ecs7/proto-definitions/{PointerEventsResult.proto → pointer_events_result.proto} +10 -7
  26. package/dist/ecs7/proto-definitions/pointer_lock.proto +9 -0
  27. package/dist/ecs7/proto-definitions/raycast.proto +21 -0
  28. package/dist/ecs7/proto-definitions/raycast_result.proto +25 -0
  29. package/dist/ecs7/proto-definitions/{TextShape.proto → text_shape.proto} +13 -11
  30. package/dist/ecs7/proto-definitions/ui_background.proto +11 -0
  31. package/dist/ecs7/proto-definitions/ui_text.proto +17 -0
  32. package/dist/ecs7/proto-definitions/{UiTransform.proto → ui_transform.proto} +50 -49
  33. package/dist/ecs7/proto-definitions/visibility_component.proto +9 -0
  34. package/dist/playground/snippets/cube-spawner.ts +3 -3
  35. package/dist/playground/snippets/material.ts +1 -1
  36. package/dist/playground/snippets/pointer-events.ts +6 -6
  37. package/dist/playground/snippets/raycast-hit-many.ts +1 -1
  38. package/dist/playground/snippets/raycast-hit-oscilator.ts +1 -1
  39. package/dist/playground/snippets/raycast-hit.ts +1 -1
  40. package/dist/playground/snippets/ui.tsx +3 -3
  41. package/package.json +4 -4
  42. package/types/ecs7/index.d.ts +148 -170
  43. package/types/rpc-modules/CommunicationsController/index.d.ts +1 -1
  44. package/types/rpc-modules/DevTools/index.d.ts +1 -1
  45. package/types/rpc-modules/{EngineAPI → EngineApi}/index.d.ts +24 -24
  46. package/types/rpc-modules/{EnvironmentAPI → EnvironmentApi}/index.d.ts +3 -3
  47. package/types/rpc-modules/EthereumController/index.d.ts +1 -1
  48. package/types/rpc-modules/{ExperimentalAPI → ExperimentalApi}/index.d.ts +2 -2
  49. package/types/rpc-modules/ParcelIdentity/index.d.ts +2 -2
  50. package/types/rpc-modules/Permissions/index.d.ts +6 -6
  51. package/types/rpc-modules/Players/index.d.ts +3 -3
  52. package/types/rpc-modules/PortableExperiences/index.d.ts +1 -1
  53. package/types/rpc-modules/RestrictedActions/index.d.ts +1 -1
  54. package/types/rpc-modules/SignedFetch/index.d.ts +1 -1
  55. package/types/rpc-modules/SocialController/index.d.ts +1 -1
  56. package/types/rpc-modules/UserActionModule/index.d.ts +1 -1
  57. package/types/rpc-modules/UserIdentity/index.d.ts +3 -3
  58. package/types/tsconfig.ecs7.json +3 -3
  59. package/dist/ecs7/proto-definitions/AvatarAttach.proto +0 -16
  60. package/dist/ecs7/proto-definitions/AvatarModifierArea.proto +0 -16
  61. package/dist/ecs7/proto-definitions/CameraMode.proto +0 -9
  62. package/dist/ecs7/proto-definitions/CameraModeArea.proto +0 -11
  63. package/dist/ecs7/proto-definitions/Material.proto +0 -59
  64. package/dist/ecs7/proto-definitions/MeshCollider.proto +0 -35
  65. package/dist/ecs7/proto-definitions/NFTShape.proto +0 -38
  66. package/dist/ecs7/proto-definitions/PointerEvents.proto +0 -28
  67. package/dist/ecs7/proto-definitions/PointerLock.proto +0 -8
  68. package/dist/ecs7/proto-definitions/Raycast.proto +0 -19
  69. package/dist/ecs7/proto-definitions/RaycastResult.proto +0 -24
  70. package/dist/ecs7/proto-definitions/UiBackground.proto +0 -10
  71. package/dist/ecs7/proto-definitions/UiText.proto +0 -25
  72. package/dist/ecs7/proto-definitions/VisibilityComponent.proto +0 -8
  73. package/dist/ecs7/proto-definitions/common/ActionButton.proto +0 -18
  74. package/dist/ecs7/proto-definitions/common/CameraModeValue.proto +0 -6
  75. package/dist/ecs7/proto-definitions/common/Color3.proto +0 -8
  76. package/dist/ecs7/proto-definitions/common/Color4.proto +0 -8
  77. package/dist/ecs7/proto-definitions/common/Vector3.proto +0 -7
  78. package/types/rpc-modules/SceneStateStorageController/index.d.ts +0 -90
@@ -1,49 +1,29 @@
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 AvatarAnchorPoint {
28
- POSITION = 0,
29
- NAME_TAG = 1,
30
- LEFT_HAND = 2,
31
- RIGHT_HAND = 3,
32
- UNRECOGNIZED = -1
9
+ declare const enum AvatarAnchorPointType {
10
+ AAPT_POSITION = 0,
11
+ AAPT_NAME_TAG = 1,
12
+ AAPT_LEFT_HAND = 2,
13
+ AAPT_RIGHT_HAND = 3
33
14
  }
34
15
 
35
16
  /** @public */
36
17
  export declare const AvatarAttach: ComponentDefinition<ISchema<PBAvatarAttach>, PBAvatarAttach>;
37
18
 
38
- declare const enum AvatarModifier {
39
- HIDE_AVATARS = 0,
40
- DISABLE_PASSPORTS = 1,
41
- UNRECOGNIZED = -1
42
- }
43
-
44
19
  /** @public */
45
20
  export declare const AvatarModifierArea: ComponentDefinition<ISchema<PBAvatarModifierArea>, PBAvatarModifierArea>;
46
21
 
22
+ declare const enum AvatarModifierType {
23
+ AMT_HIDE_AVATARS = 0,
24
+ AMT_DISABLE_PASSPORTS = 1
25
+ }
26
+
47
27
  /** @public */
48
28
  export declare const AvatarShape: ComponentDefinition<ISchema<PBAvatarShape>, PBAvatarShape>;
49
29
 
@@ -61,17 +41,15 @@ export declare const CameraMode: ComponentDefinition<ISchema<PBCameraMode>, PBCa
61
41
  /** @public */
62
42
  export declare const CameraModeArea: ComponentDefinition<ISchema<PBCameraModeArea>, PBCameraModeArea>;
63
43
 
64
- declare const enum CameraModeValue {
65
- FIRST_PERSON = 0,
66
- THIRD_PERSON = 1,
67
- UNRECOGNIZED = -1
44
+ declare const enum CameraType {
45
+ CT_FIRST_PERSON = 0,
46
+ CT_THIRD_PERSON = 1
68
47
  }
69
48
 
70
49
  export declare const enum ColliderLayer {
71
- None = 0,
72
- Pointer = 1,
73
- Physics = 2,
74
- UNRECOGNIZED = -1
50
+ CL_NONE = 0,
51
+ CL_POINTER = 1,
52
+ CL_PHYSICS = 2
75
53
  }
76
54
 
77
55
  declare interface Color3 {
@@ -242,7 +220,7 @@ export declare namespace Components {
242
220
  /** @public */
243
221
  const MeshRenderer: ComponentDefinition<ISchema<PBMeshRenderer>, Partial<PBMeshRenderer>>;
244
222
  /** @public */
245
- const NFTShape: ComponentDefinition<ISchema<PBNFTShape>, PBNFTShape>;
223
+ const NftShape: ComponentDefinition<ISchema<PBNftShape>, PBNftShape>;
246
224
  /** @public */
247
225
  const PointerEvents: ComponentDefinition<ISchema<PBPointerEvents>, PBPointerEvents>;
248
226
  /** @public */
@@ -468,7 +446,7 @@ declare function defineSdkComponents(engine: PreEngine): {
468
446
  CameraModeArea: ComponentDefinition<ISchema<PBCameraModeArea>, PBCameraModeArea>;
469
447
  GltfContainer: ComponentDefinition<ISchema<PBGltfContainer>, PBGltfContainer>;
470
448
  Material: ComponentDefinition<ISchema<PBMaterial>, PBMaterial>;
471
- NFTShape: ComponentDefinition<ISchema<PBNFTShape>, PBNFTShape>;
449
+ NftShape: ComponentDefinition<ISchema<PBNftShape>, PBNftShape>;
472
450
  PointerEvents: ComponentDefinition<ISchema<PBPointerEvents>, PBPointerEvents>;
473
451
  PointerEventsResult: ComponentDefinition<ISchema<PBPointerEventsResult>, PBPointerEventsResult>;
474
452
  PointerLock: ComponentDefinition<ISchema<PBPointerLock>, PBPointerLock>;
@@ -515,20 +493,12 @@ declare type ExcludeUndefined<T> = {
515
493
  [P in keyof T]: undefined extends T[P] ? never : P;
516
494
  }[keyof T];
517
495
 
518
- declare const enum FilterMode {
519
- Point = 0,
520
- Bilinear = 1,
521
- Trilinear = 2,
522
- UNRECOGNIZED = -1
523
- }
524
-
525
496
  /** @public */
526
497
  declare type FloatArray = number[];
527
498
 
528
499
  declare const enum Font {
529
- LiberationSans = 0,
530
- SansSerif = 1,
531
- UNRECOGNIZED = -1
500
+ F_LIBERATION_SANS = 0,
501
+ F_SANS_SERIF = 1
532
502
  }
533
503
 
534
504
  /** @public */
@@ -674,6 +644,23 @@ declare type IncludeUndefined<T> = {
674
644
  [P in keyof T]: undefined extends T[P] ? P : never;
675
645
  }[keyof T];
676
646
 
647
+ declare const enum InputAction {
648
+ IA_POINTER = 0,
649
+ IA_PRIMARY = 1,
650
+ IA_SECONDARY = 2,
651
+ IA_ANY = 3,
652
+ IA_FORWARD = 4,
653
+ IA_BACKWARD = 5,
654
+ IA_RIGHT = 6,
655
+ IA_LEFT = 7,
656
+ IA_JUMP = 8,
657
+ IA_WALK = 9,
658
+ IA_ACTION_3 = 10,
659
+ IA_ACTION_4 = 11,
660
+ IA_ACTION_5 = 12,
661
+ IA_ACTION_6 = 13
662
+ }
663
+
677
664
  /**
678
665
  * @public
679
666
  */
@@ -695,9 +682,9 @@ export declare type ISchema<T = any> = {
695
682
  * @param pointerEventType
696
683
  * @returns
697
684
  */
698
- export declare function isPointerEventActive(entity: Entity, actionButton: ActionButton, pointerEventType: PointerEventType): boolean;
685
+ export declare function isPointerEventActive(entity: Entity, actionButton: InputAction, pointerEventType: PointerEventType): boolean;
699
686
 
700
- export declare function isPointerEventActiveGenerator(engine: IEngine): (entity: Entity, actionButton: ActionButton, pointerEventType: PointerEventType) => boolean;
687
+ export declare function isPointerEventActiveGenerator(engine: IEngine): (entity: Entity, actionButton: InputAction, pointerEventType: PointerEventType) => boolean;
701
688
 
702
689
  export declare const log: (...a: any[]) => void;
703
690
 
@@ -723,6 +710,14 @@ export declare function makeCollisionMask(...layers: ColliderLayer[]): number;
723
710
  /** @public */
724
711
  export declare const Material: ComponentDefinition<ISchema<PBMaterial>, PBMaterial>;
725
712
 
713
+ declare const enum MaterialTransparencyMode {
714
+ MTM_OPAQUE = 0,
715
+ MTM_ALPHA_TEST = 1,
716
+ MTM_ALPHA_BLEND = 2,
717
+ MTM_ALPHA_TEST_AND_ALPHA_BLEND = 3,
718
+ MTM_AUTO = 4
719
+ }
720
+
726
721
  /**
727
722
  * Class used to store matrix data (4x4)
728
723
  * @public
@@ -1474,8 +1469,34 @@ export declare class MessageBus {
1474
1469
  private flush;
1475
1470
  }
1476
1471
 
1472
+ declare const enum NftFrameType {
1473
+ NFT_CLASSIC = 0,
1474
+ NFT_BAROQUE_ORNAMENT = 1,
1475
+ NFT_DIAMOND_ORNAMENT = 2,
1476
+ NFT_MINIMAL_WIDE = 3,
1477
+ NFT_MINIMAL_GREY = 4,
1478
+ NFT_BLOCKY = 5,
1479
+ NFT_GOLD_EDGES = 6,
1480
+ NFT_GOLD_CARVED = 7,
1481
+ NFT_GOLD_WIDE = 8,
1482
+ NFT_GOLD_ROUNDED = 9,
1483
+ NFT_METAL_MEDIUM = 10,
1484
+ NFT_METAL_WIDE = 11,
1485
+ NFT_METAL_SLIM = 12,
1486
+ NFT_METAL_ROUNDED = 13,
1487
+ NFT_PINS = 14,
1488
+ NFT_MINIMAL_BLACK = 15,
1489
+ NFT_MINIMAL_WHITE = 16,
1490
+ NFT_TAPE = 17,
1491
+ NFT_WOOD_SLIM = 18,
1492
+ NFT_WOOD_WIDE = 19,
1493
+ NFT_WOOD_TWIGS = 20,
1494
+ NFT_CANVAS = 21,
1495
+ NFT_NONE = 22
1496
+ }
1497
+
1477
1498
  /** @public */
1478
- export declare const NFTShape: ComponentDefinition<ISchema<PBNFTShape>, PBNFTShape>;
1499
+ export declare const NftShape: ComponentDefinition<ISchema<PBNftShape>, PBNftShape>;
1479
1500
 
1480
1501
  /**
1481
1502
  * The Observable class is a simple implementation of the Observable pattern.
@@ -1814,13 +1835,13 @@ declare interface PBAudioSource {
1814
1835
 
1815
1836
  declare interface PBAvatarAttach {
1816
1837
  avatarId: string;
1817
- anchorPointId: AvatarAnchorPoint;
1838
+ anchorPointId: AvatarAnchorPointType;
1818
1839
  }
1819
1840
 
1820
1841
  declare interface PBAvatarModifierArea {
1821
1842
  area: Vector3_2 | undefined;
1822
1843
  excludeIds: string[];
1823
- modifiers: AvatarModifier[];
1844
+ modifiers: AvatarModifierType[];
1824
1845
  }
1825
1846
 
1826
1847
  declare interface PBAvatarShape {
@@ -1829,11 +1850,11 @@ declare interface PBAvatarShape {
1829
1850
  name?: string | undefined;
1830
1851
  /** default = urn:decentraland:off-chain:base-avatars:BaseFemale */
1831
1852
  bodyShape?: string | undefined;
1832
- /** default = Color3(R = 0.6f, G = 0.462f, B = 0.356f) */
1853
+ /** default = decentraland.common.Color3(R = 0.6f, G = 0.462f, B = 0.356f) */
1833
1854
  skinColor?: Color3 | undefined;
1834
- /** default = Color3(R = 0.283f, G = 0.142f, B = 0f) */
1855
+ /** default = decentraland.common.Color3(R = 0.283f, G = 0.142f, B = 0f) */
1835
1856
  hairColor?: Color3 | undefined;
1836
- /** default = Color3(R = 0.6f, G = 0.462f, B = 0.356f) */
1857
+ /** default = decentraland.common.Color3(R = 0.6f, G = 0.462f, B = 0.356f) */
1837
1858
  eyeColor?: Color3 | undefined;
1838
1859
  expressionTriggerId?: string | undefined;
1839
1860
  /** default = timestamp */
@@ -1863,12 +1884,12 @@ declare interface PBBillboard {
1863
1884
  }
1864
1885
 
1865
1886
  declare interface PBCameraMode {
1866
- mode: CameraModeValue;
1887
+ mode: CameraType;
1867
1888
  }
1868
1889
 
1869
1890
  declare interface PBCameraModeArea {
1870
1891
  area: Vector3_2 | undefined;
1871
- mode: CameraModeValue;
1892
+ mode: CameraType;
1872
1893
  }
1873
1894
 
1874
1895
  declare interface PBGltfContainer {
@@ -1896,7 +1917,7 @@ declare interface PBMaterial {
1896
1917
  /** default = white; */
1897
1918
  reflectivityColor?: Color3 | undefined;
1898
1919
  /** default = TransparencyMode.Auto */
1899
- transparencyMode?: TransparencyMode | undefined;
1920
+ transparencyMode?: MaterialTransparencyMode | undefined;
1900
1921
  /** default = 0.5 */
1901
1922
  metallic?: number | undefined;
1902
1923
  /** default = 0.5 */
@@ -1916,7 +1937,7 @@ declare interface PBMaterial_Texture {
1916
1937
  /** default = TextureWrapMode.Clamp */
1917
1938
  wrapMode?: TextureWrapMode | undefined;
1918
1939
  /** default = FilterMode.Bilinear */
1919
- filterMode?: FilterMode | undefined;
1940
+ filterMode?: TextureFilterMode | undefined;
1920
1941
  }
1921
1942
 
1922
1943
  declare interface PBMeshCollider {
@@ -1969,41 +1990,14 @@ declare interface PBMeshRenderer_PlaneMesh {
1969
1990
  declare interface PBMeshRenderer_SphereMesh {
1970
1991
  }
1971
1992
 
1972
- declare interface PBNFTShape {
1993
+ declare interface PBNftShape {
1973
1994
  src: string;
1974
1995
  /** default = PictureFrameStyle.Classic */
1975
- style?: PBNFTShape_PictureFrameStyle | undefined;
1976
- /** default = Color3(0.6404918, 0.611472, 0.8584906) */
1996
+ style?: NftFrameType | undefined;
1997
+ /** default = decentraland.common.Color3(0.6404918, 0.611472, 0.8584906) */
1977
1998
  color?: Color3 | undefined;
1978
1999
  }
1979
2000
 
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
2001
  declare interface PBPointerEvents {
2008
2002
  pointerEvents: PBPointerEvents_Entry[];
2009
2003
  }
@@ -2014,8 +2008,8 @@ declare interface PBPointerEvents_Entry {
2014
2008
  }
2015
2009
 
2016
2010
  declare interface PBPointerEvents_Info {
2017
- /** default=ActionButton.ANY */
2018
- button?: ActionButton | undefined;
2011
+ /** default=InputAction.ANY */
2012
+ button?: InputAction | undefined;
2019
2013
  /** default='Interact' */
2020
2014
  hoverText?: string | undefined;
2021
2015
  /** default=10 */
@@ -2033,7 +2027,7 @@ declare interface PBPointerEventsResult {
2033
2027
  /** this message represents a pointer event, used both for UP and DOWN actions */
2034
2028
  declare interface PBPointerEventsResult_PointerCommand {
2035
2029
  /** identifier of the input */
2036
- button: ActionButton;
2030
+ button: InputAction;
2037
2031
  hit: RaycastHit | undefined;
2038
2032
  state: PointerEventType;
2039
2033
  /** could be a Lamport timestamp */
@@ -2108,7 +2102,7 @@ declare interface PBUiText {
2108
2102
  /** default=(1.0,1.0,1.0) */
2109
2103
  color?: Color3 | undefined;
2110
2104
  /** default='center' */
2111
- textAlign?: TextAlign | undefined;
2105
+ textAlign?: TextAlignMode | undefined;
2112
2106
  /** default=0 */
2113
2107
  font?: Font | undefined;
2114
2108
  /** default=10 */
@@ -2306,11 +2300,10 @@ export declare const PointerEvents: ComponentDefinition<ISchema<PBPointerEvents>
2306
2300
  export declare const PointerEventsResult: ComponentDefinition<ISchema<PBPointerEventsResult>, PBPointerEventsResult>;
2307
2301
 
2308
2302
  declare const enum PointerEventType {
2309
- UP = 0,
2310
- DOWN = 1,
2311
- HOVER_ENTER = 2,
2312
- HOVER_LEAVE = 3,
2313
- UNRECOGNIZED = -1
2303
+ PET_UP = 0,
2304
+ PET_DOWN = 1,
2305
+ PET_HOVER_ENTER = 2,
2306
+ PET_HOVER_LEAVE = 3
2314
2307
  }
2315
2308
 
2316
2309
  /** @public */
@@ -2547,9 +2540,8 @@ declare interface RaycastHit {
2547
2540
  }
2548
2541
 
2549
2542
  declare const enum RaycastQueryType {
2550
- HIT_FIRST = 0,
2551
- QUERY_ALL = 1,
2552
- UNRECOGNIZED = -1
2543
+ RQT_HIT_FIRST = 0,
2544
+ RQT_QUERY_ALL = 1
2553
2545
  }
2554
2546
 
2555
2547
  /** @public */
@@ -2621,22 +2613,26 @@ export declare interface Spec {
2621
2613
  */
2622
2614
  export declare type SystemFn = (dt: number) => void;
2623
2615
 
2624
- declare const enum TextAlign {
2625
- Center = 0,
2626
- Left = 1,
2627
- Right = 2,
2628
- UNRECOGNIZED = -1
2616
+ declare const enum TextAlignMode {
2617
+ TAM_CENTER = 0,
2618
+ TAM_LEFT = 1,
2619
+ TAM_RIGHT = 2
2629
2620
  }
2630
2621
 
2631
2622
  /** @public */
2632
2623
  export declare const TextShape: ComponentDefinition<ISchema<PBTextShape>, PBTextShape>;
2633
2624
 
2625
+ declare const enum TextureFilterMode {
2626
+ TFM_POINT = 0,
2627
+ TFM_BILINEAR = 1,
2628
+ TFM_TRILINEAR = 2
2629
+ }
2630
+
2634
2631
  declare const enum TextureWrapMode {
2635
- Repeat = 0,
2636
- Clamp = 1,
2637
- Mirror = 2,
2638
- MirrorOnce = 3,
2639
- UNRECOGNIZED = -1
2632
+ TWM_REPEAT = 0,
2633
+ TWM_CLAMP = 1,
2634
+ TWM_MIRROR = 2,
2635
+ TWM_MIRROR_ONCE = 3
2640
2636
  }
2641
2637
 
2642
2638
  declare type ToOptional<T> = OnlyOptionalUndefinedTypes<T> & OnlyNonUndefinedTypes<T>;
@@ -2667,15 +2663,6 @@ declare type TransformType = {
2667
2663
  parent?: Entity;
2668
2664
  };
2669
2665
 
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
2666
  export declare type Transport = {
2680
2667
  type: string;
2681
2668
  send(message: Uint8Array): void;
@@ -3267,9 +3254,9 @@ export declare const VisibilityComponent: ComponentDefinition<ISchema<PBVisibili
3267
3254
  * @param actionButton
3268
3255
  * @returns true if the entity was clicked in the last tick-update
3269
3256
  */
3270
- export declare function wasEntityClicked(entity: Entity, actionButton: ActionButton): boolean;
3257
+ export declare function wasEntityClicked(entity: Entity, actionButton: InputAction): boolean;
3271
3258
 
3272
- export declare function wasEntityClickedGenerator(engine: IEngine): (entity: Entity, actionButton: ActionButton) => boolean;
3259
+ export declare function wasEntityClickedGenerator(engine: IEngine): (entity: Entity, actionButton: InputAction) => boolean;
3273
3260
 
3274
3261
  declare namespace WireMessage {
3275
3262
  enum Enum {
@@ -3296,75 +3283,66 @@ declare namespace WireMessage {
3296
3283
  }
3297
3284
 
3298
3285
  declare const enum YGAlign {
3299
- YGAlignAuto = 0,
3300
- YGAlignFlexStart = 1,
3301
- YGAlignCenter = 2,
3302
- YGAlignFlexEnd = 3,
3303
- YGAlignStretch = 4,
3304
- YGAlignBaseline = 5,
3305
- YGAlignSpaceBetween = 6,
3306
- YGAlignSpaceAround = 7,
3307
- UNRECOGNIZED = -1
3286
+ YGA_AUTO = 0,
3287
+ YGA_FLEX_START = 1,
3288
+ YGA_CENTER = 2,
3289
+ YGA_FLEX_END = 3,
3290
+ YGA_STRETCH = 4,
3291
+ YGA_BASELINE = 5,
3292
+ YGA_SPACE_BETWEEN = 6,
3293
+ YGA_SPACE_AROUND = 7
3308
3294
  }
3309
3295
 
3310
3296
  declare const enum YGDirection {
3311
- YGDirectionInherit = 0,
3312
- YGDirectionLTR = 1,
3313
- YGDirectionRTL = 2,
3314
- UNRECOGNIZED = -1
3297
+ YGD_INHERIT = 0,
3298
+ YGD_LTR = 1,
3299
+ YGD_RTL = 2
3315
3300
  }
3316
3301
 
3317
3302
  declare const enum YGDisplay {
3318
- YGDisplayFlex = 0,
3319
- YGDisplayNone = 1,
3320
- UNRECOGNIZED = -1
3303
+ YGD_FLEX = 0,
3304
+ YGD_NONE = 1
3321
3305
  }
3322
3306
 
3323
3307
  declare const enum YGFlexDirection {
3324
- YGFlexDirectionColumn = 0,
3325
- YGFlexDirectionColumnReverse = 1,
3326
- YGFlexDirectionRow = 2,
3327
- YGFlexDirectionRowReverse = 3,
3328
- UNRECOGNIZED = -1
3308
+ YGFD_COLUMN = 0,
3309
+ YGFD_COLUMN_REVERSE = 1,
3310
+ YGFD_ROW = 2,
3311
+ YGFD_ROW_REVERSE = 3
3329
3312
  }
3330
3313
 
3331
3314
  declare const enum YGJustify {
3332
- YGJustifyFlexStart = 0,
3333
- YGJustifyCenter = 1,
3334
- YGJustifyFlexEnd = 2,
3335
- YGJustifySpaceBetween = 3,
3336
- YGJustifySpaceAround = 4,
3337
- YGJustifySpaceEvenly = 5,
3338
- UNRECOGNIZED = -1
3315
+ YGJ_FLEX_START = 0,
3316
+ YGJ_CENTER = 1,
3317
+ YGJ_FLEX_END = 2,
3318
+ YGJ_SPACE_BETWEEN = 3,
3319
+ YGJ_SPACE_AROUND = 4,
3320
+ YGJ_SPACE_EVENLY = 5
3339
3321
  }
3340
3322
 
3341
3323
  declare const enum YGOverflow {
3342
- YGOverflowVisible = 0,
3343
- YGOverflowHidden = 1,
3344
- YGOverflowScroll = 2,
3345
- UNRECOGNIZED = -1
3324
+ YGO_VISIBLE = 0,
3325
+ YGO_HIDDEN = 1,
3326
+ YGO_SCROLL = 2
3346
3327
  }
3347
3328
 
3348
3329
  declare const enum YGPositionType {
3349
- YGPositionTypeStatic = 0,
3350
- YGPositionTypeRelative = 1,
3351
- YGPositionTypeAbsolute = 2,
3352
- UNRECOGNIZED = -1
3330
+ YGPT_STATIC = 0,
3331
+ YGPT_RELATIVE = 1,
3332
+ YGPT_ABSOLUTE = 2
3353
3333
  }
3354
3334
 
3355
3335
  declare const enum YGUnit {
3356
- YGUnitUndefined = 0,
3357
- YGUnitPoint = 1,
3358
- YGUnitPercent = 2,
3359
- YGUnitAuto = 3,
3360
- UNRECOGNIZED = -1
3336
+ YGU_UNDEFINED = 0,
3337
+ YGU_POINT = 1,
3338
+ YGU_PERCENT = 2,
3339
+ YGU_AUTO = 3
3361
3340
  }
3362
3341
 
3363
3342
  declare const enum YGWrap {
3364
- YGWrapNoWrap = 0,
3365
- YGWrapWrap = 1,
3366
- YGWrapWrapReverse = 2,
3367
- UNRECOGNIZED = -1
3343
+ YGW_NO_WRAP = 0,
3344
+ YGW_WRAP = 1,
3345
+ YGW_WRAP_REVERSE = 2
3368
3346
  }
3369
3347
 
3370
3348
  export { }