@dcl/sdk 7.0.0-3220359277.commit-7cbadc7 → 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.
Files changed (82) hide show
  1. package/dist/ecs7/index.d.ts +153 -221
  2. package/dist/ecs7/index.js +209 -620
  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 +153 -221
  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/OnPointerDown.proto +0 -12
  67. package/dist/ecs7/proto-definitions/OnPointerDownResult.proto +0 -17
  68. package/dist/ecs7/proto-definitions/OnPointerUp.proto +0 -12
  69. package/dist/ecs7/proto-definitions/OnPointerUpResult.proto +0 -17
  70. package/dist/ecs7/proto-definitions/PointerEvents.proto +0 -28
  71. package/dist/ecs7/proto-definitions/PointerLock.proto +0 -8
  72. package/dist/ecs7/proto-definitions/Raycast.proto +0 -19
  73. package/dist/ecs7/proto-definitions/RaycastResult.proto +0 -24
  74. package/dist/ecs7/proto-definitions/UiBackground.proto +0 -10
  75. package/dist/ecs7/proto-definitions/UiText.proto +0 -25
  76. package/dist/ecs7/proto-definitions/VisibilityComponent.proto +0 -8
  77. package/dist/ecs7/proto-definitions/common/ActionButton.proto +0 -18
  78. package/dist/ecs7/proto-definitions/common/CameraModeValue.proto +0 -6
  79. package/dist/ecs7/proto-definitions/common/Color3.proto +0 -8
  80. package/dist/ecs7/proto-definitions/common/Color4.proto +0 -8
  81. package/dist/ecs7/proto-definitions/common/Vector3.proto +0 -7
  82. package/types/rpc-modules/SceneStateStorageController/index.d.ts +0 -90
@@ -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 AvatarAnchorPoint {
28
- POSITION = 0,
29
- NAME_TAG = 1,
30
- LEFT_HAND = 2,
31
- RIGHT_HAND = 3,
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 CameraModeValue {
65
- FIRST_PERSON = 0,
66
- THIRD_PERSON = 1,
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
- None = 0,
72
- Pointer = 1,
73
- Physics = 2,
53
+ CL_NONE = 0,
54
+ CL_POINTER = 1,
55
+ CL_PHYSICS = 2,
74
56
  UNRECOGNIZED = -1
75
57
  }
76
58
 
@@ -242,15 +224,7 @@ export declare namespace Components {
242
224
  /** @public */
243
225
  const MeshRenderer: ComponentDefinition<ISchema<PBMeshRenderer>, Partial<PBMeshRenderer>>;
244
226
  /** @public */
245
- const NFTShape: ComponentDefinition<ISchema<PBNFTShape>, PBNFTShape>;
246
- /** @public */
247
- const OnPointerDown: ComponentDefinition<ISchema<PBOnPointerDown>, PBOnPointerDown>;
248
- /** @public */
249
- const OnPointerDownResult: ComponentDefinition<ISchema<PBOnPointerDownResult>, PBOnPointerDownResult>;
250
- /** @public */
251
- const OnPointerUp: ComponentDefinition<ISchema<PBOnPointerUp>, PBOnPointerUp>;
252
- /** @public */
253
- const OnPointerUpResult: ComponentDefinition<ISchema<PBOnPointerUpResult>, PBOnPointerUpResult>;
227
+ const NftShape: ComponentDefinition<ISchema<PBNftShape>, PBNftShape>;
254
228
  /** @public */
255
229
  const PointerEvents: ComponentDefinition<ISchema<PBPointerEvents>, PBPointerEvents>;
256
230
  /** @public */
@@ -476,11 +450,7 @@ declare function defineSdkComponents(engine: PreEngine): {
476
450
  CameraModeArea: ComponentDefinition<ISchema<PBCameraModeArea>, PBCameraModeArea>;
477
451
  GltfContainer: ComponentDefinition<ISchema<PBGltfContainer>, PBGltfContainer>;
478
452
  Material: ComponentDefinition<ISchema<PBMaterial>, PBMaterial>;
479
- NFTShape: ComponentDefinition<ISchema<PBNFTShape>, PBNFTShape>;
480
- OnPointerDown: ComponentDefinition<ISchema<PBOnPointerDown>, PBOnPointerDown>;
481
- OnPointerDownResult: ComponentDefinition<ISchema<PBOnPointerDownResult>, PBOnPointerDownResult>;
482
- OnPointerUp: ComponentDefinition<ISchema<PBOnPointerUp>, PBOnPointerUp>;
483
- OnPointerUpResult: ComponentDefinition<ISchema<PBOnPointerUpResult>, PBOnPointerUpResult>;
453
+ NftShape: ComponentDefinition<ISchema<PBNftShape>, PBNftShape>;
484
454
  PointerEvents: ComponentDefinition<ISchema<PBPointerEvents>, PBPointerEvents>;
485
455
  PointerEventsResult: ComponentDefinition<ISchema<PBPointerEventsResult>, PBPointerEventsResult>;
486
456
  PointerLock: ComponentDefinition<ISchema<PBPointerLock>, PBPointerLock>;
@@ -527,19 +497,12 @@ declare type ExcludeUndefined<T> = {
527
497
  [P in keyof T]: undefined extends T[P] ? never : P;
528
498
  }[keyof T];
529
499
 
530
- declare const enum FilterMode {
531
- Point = 0,
532
- Bilinear = 1,
533
- Trilinear = 2,
534
- UNRECOGNIZED = -1
535
- }
536
-
537
500
  /** @public */
538
501
  declare type FloatArray = number[];
539
502
 
540
503
  declare const enum Font {
541
- LiberationSans = 0,
542
- SansSerif = 1,
504
+ F_LIBERATION_SANS = 0,
505
+ F_SANS_SERIF = 1,
543
506
  UNRECOGNIZED = -1
544
507
  }
545
508
 
@@ -686,6 +649,24 @@ declare type IncludeUndefined<T> = {
686
649
  [P in keyof T]: undefined extends T[P] ? P : never;
687
650
  }[keyof T];
688
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
+
689
670
  /**
690
671
  * @public
691
672
  */
@@ -707,9 +688,9 @@ export declare type ISchema<T = any> = {
707
688
  * @param pointerEventType
708
689
  * @returns
709
690
  */
710
- export declare function isPointerEventActive(entity: Entity, actionButton: ActionButton, pointerEventType: PointerEventType): boolean;
691
+ export declare function isPointerEventActive(entity: Entity, actionButton: InputAction, pointerEventType: PointerEventType): boolean;
711
692
 
712
- export declare function isPointerEventActiveGenerator(engine: IEngine): (entity: Entity, actionButton: ActionButton, pointerEventType: PointerEventType) => boolean;
693
+ export declare function isPointerEventActiveGenerator(engine: IEngine): (entity: Entity, actionButton: InputAction, pointerEventType: PointerEventType) => boolean;
713
694
 
714
695
  export declare const log: (...a: any[]) => void;
715
696
 
@@ -735,6 +716,15 @@ export declare function makeCollisionMask(...layers: ColliderLayer[]): number;
735
716
  /** @public */
736
717
  export declare const Material: ComponentDefinition<ISchema<PBMaterial>, PBMaterial>;
737
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
+
738
728
  /**
739
729
  * Class used to store matrix data (4x4)
740
730
  * @public
@@ -1486,8 +1476,35 @@ export declare class MessageBus {
1486
1476
  private flush;
1487
1477
  }
1488
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
+
1489
1506
  /** @public */
1490
- export declare const NFTShape: ComponentDefinition<ISchema<PBNFTShape>, PBNFTShape>;
1507
+ export declare const NftShape: ComponentDefinition<ISchema<PBNftShape>, PBNftShape>;
1491
1508
 
1492
1509
  /**
1493
1510
  * The Observable class is a simple implementation of the Observable pattern.
@@ -1758,18 +1775,6 @@ export declare const onPlayerExpressionObservable: Observable<{
1758
1775
  expressionId: string;
1759
1776
  }>;
1760
1777
 
1761
- /** @public */
1762
- export declare const OnPointerDown: ComponentDefinition<ISchema<PBOnPointerDown>, PBOnPointerDown>;
1763
-
1764
- /** @public */
1765
- export declare const OnPointerDownResult: ComponentDefinition<ISchema<PBOnPointerDownResult>, PBOnPointerDownResult>;
1766
-
1767
- /** @public */
1768
- export declare const OnPointerUp: ComponentDefinition<ISchema<PBOnPointerUp>, PBOnPointerUp>;
1769
-
1770
- /** @public */
1771
- export declare const OnPointerUpResult: ComponentDefinition<ISchema<PBOnPointerUpResult>, PBOnPointerUpResult>;
1772
-
1773
1778
  /**
1774
1779
  * @public
1775
1780
  * @deprecated This function is an inheritance of ECS6, it's here temporary for the feature parity, please read the news and docs to know how handle when it's removed.
@@ -1838,13 +1843,13 @@ declare interface PBAudioSource {
1838
1843
 
1839
1844
  declare interface PBAvatarAttach {
1840
1845
  avatarId: string;
1841
- anchorPointId: AvatarAnchorPoint;
1846
+ anchorPointId: AvatarAnchorPointType;
1842
1847
  }
1843
1848
 
1844
1849
  declare interface PBAvatarModifierArea {
1845
1850
  area: Vector3_2 | undefined;
1846
1851
  excludeIds: string[];
1847
- modifiers: AvatarModifier[];
1852
+ modifiers: AvatarModifierType[];
1848
1853
  }
1849
1854
 
1850
1855
  declare interface PBAvatarShape {
@@ -1853,11 +1858,11 @@ declare interface PBAvatarShape {
1853
1858
  name?: string | undefined;
1854
1859
  /** default = urn:decentraland:off-chain:base-avatars:BaseFemale */
1855
1860
  bodyShape?: string | undefined;
1856
- /** 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) */
1857
1862
  skinColor?: Color3 | undefined;
1858
- /** default = Color3(R = 0.283f, G = 0.142f, B = 0f) */
1863
+ /** default = decentraland.common.Color3(R = 0.283f, G = 0.142f, B = 0f) */
1859
1864
  hairColor?: Color3 | undefined;
1860
- /** 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) */
1861
1866
  eyeColor?: Color3 | undefined;
1862
1867
  expressionTriggerId?: string | undefined;
1863
1868
  /** default = timestamp */
@@ -1887,12 +1892,12 @@ declare interface PBBillboard {
1887
1892
  }
1888
1893
 
1889
1894
  declare interface PBCameraMode {
1890
- mode: CameraModeValue;
1895
+ mode: CameraType;
1891
1896
  }
1892
1897
 
1893
1898
  declare interface PBCameraModeArea {
1894
1899
  area: Vector3_2 | undefined;
1895
- mode: CameraModeValue;
1900
+ mode: CameraType;
1896
1901
  }
1897
1902
 
1898
1903
  declare interface PBGltfContainer {
@@ -1920,7 +1925,7 @@ declare interface PBMaterial {
1920
1925
  /** default = white; */
1921
1926
  reflectivityColor?: Color3 | undefined;
1922
1927
  /** default = TransparencyMode.Auto */
1923
- transparencyMode?: TransparencyMode | undefined;
1928
+ transparencyMode?: MaterialTransparencyMode | undefined;
1924
1929
  /** default = 0.5 */
1925
1930
  metallic?: number | undefined;
1926
1931
  /** default = 0.5 */
@@ -1940,7 +1945,7 @@ declare interface PBMaterial_Texture {
1940
1945
  /** default = TextureWrapMode.Clamp */
1941
1946
  wrapMode?: TextureWrapMode | undefined;
1942
1947
  /** default = FilterMode.Bilinear */
1943
- filterMode?: FilterMode | undefined;
1948
+ filterMode?: TextureFilterMode | undefined;
1944
1949
  }
1945
1950
 
1946
1951
  declare interface PBMeshCollider {
@@ -1993,85 +1998,14 @@ declare interface PBMeshRenderer_PlaneMesh {
1993
1998
  declare interface PBMeshRenderer_SphereMesh {
1994
1999
  }
1995
2000
 
1996
- declare interface PBNFTShape {
2001
+ declare interface PBNftShape {
1997
2002
  src: string;
1998
2003
  /** default = PictureFrameStyle.Classic */
1999
- style?: PBNFTShape_PictureFrameStyle | undefined;
2000
- /** default = Color3(0.6404918, 0.611472, 0.8584906) */
2004
+ style?: NftFrameType | undefined;
2005
+ /** default = decentraland.common.Color3(0.6404918, 0.611472, 0.8584906) */
2001
2006
  color?: Color3 | undefined;
2002
2007
  }
2003
2008
 
2004
- declare const enum PBNFTShape_PictureFrameStyle {
2005
- Classic = 0,
2006
- Baroque_Ornament = 1,
2007
- Diamond_Ornament = 2,
2008
- Minimal_Wide = 3,
2009
- Minimal_Grey = 4,
2010
- Blocky = 5,
2011
- Gold_Edges = 6,
2012
- Gold_Carved = 7,
2013
- Gold_Wide = 8,
2014
- Gold_Rounded = 9,
2015
- Metal_Medium = 10,
2016
- Metal_Wide = 11,
2017
- Metal_Slim = 12,
2018
- Metal_Rounded = 13,
2019
- Pins = 14,
2020
- Minimal_Black = 15,
2021
- Minimal_White = 16,
2022
- Tape = 17,
2023
- Wood_Slim = 18,
2024
- Wood_Wide = 19,
2025
- Wood_Twigs = 20,
2026
- Canvas = 21,
2027
- None = 22,
2028
- UNRECOGNIZED = -1
2029
- }
2030
-
2031
- declare interface PBOnPointerDown {
2032
- /** default=ActionButton.ANY */
2033
- button?: ActionButton | undefined;
2034
- /** default='Interact' */
2035
- hoverText?: string | undefined;
2036
- /** default=10 */
2037
- maxDistance?: number | undefined;
2038
- /** default=true */
2039
- showFeedback?: boolean | undefined;
2040
- }
2041
-
2042
- declare interface PBOnPointerDownResult {
2043
- button: ActionButton;
2044
- meshName: string;
2045
- origin: Vector3_2 | undefined;
2046
- direction: Vector3_2 | undefined;
2047
- point: Vector3_2 | undefined;
2048
- normal: Vector3_2 | undefined;
2049
- distance: number;
2050
- timestamp: number;
2051
- }
2052
-
2053
- declare interface PBOnPointerUp {
2054
- /** default=ActionButton.ANY */
2055
- button?: ActionButton | undefined;
2056
- /** default='Interact' */
2057
- hoverText?: string | undefined;
2058
- /** default=10 */
2059
- maxDistance?: number | undefined;
2060
- /** default=true */
2061
- showFeedback?: boolean | undefined;
2062
- }
2063
-
2064
- declare interface PBOnPointerUpResult {
2065
- button: ActionButton;
2066
- meshName: string;
2067
- origin: Vector3_2 | undefined;
2068
- direction: Vector3_2 | undefined;
2069
- point: Vector3_2 | undefined;
2070
- normal: Vector3_2 | undefined;
2071
- distance: number;
2072
- timestamp: number;
2073
- }
2074
-
2075
2009
  declare interface PBPointerEvents {
2076
2010
  pointerEvents: PBPointerEvents_Entry[];
2077
2011
  }
@@ -2082,8 +2016,8 @@ declare interface PBPointerEvents_Entry {
2082
2016
  }
2083
2017
 
2084
2018
  declare interface PBPointerEvents_Info {
2085
- /** default=ActionButton.ANY */
2086
- button?: ActionButton | undefined;
2019
+ /** default=InputAction.ANY */
2020
+ button?: InputAction | undefined;
2087
2021
  /** default='Interact' */
2088
2022
  hoverText?: string | undefined;
2089
2023
  /** default=10 */
@@ -2101,7 +2035,7 @@ declare interface PBPointerEventsResult {
2101
2035
  /** this message represents a pointer event, used both for UP and DOWN actions */
2102
2036
  declare interface PBPointerEventsResult_PointerCommand {
2103
2037
  /** identifier of the input */
2104
- button: ActionButton;
2038
+ button: InputAction;
2105
2039
  hit: RaycastHit | undefined;
2106
2040
  state: PointerEventType;
2107
2041
  /** could be a Lamport timestamp */
@@ -2176,7 +2110,7 @@ declare interface PBUiText {
2176
2110
  /** default=(1.0,1.0,1.0) */
2177
2111
  color?: Color3 | undefined;
2178
2112
  /** default='center' */
2179
- textAlign?: TextAlign | undefined;
2113
+ textAlign?: TextAlignMode | undefined;
2180
2114
  /** default=0 */
2181
2115
  font?: Font | undefined;
2182
2116
  /** default=10 */
@@ -2374,10 +2308,10 @@ export declare const PointerEvents: ComponentDefinition<ISchema<PBPointerEvents>
2374
2308
  export declare const PointerEventsResult: ComponentDefinition<ISchema<PBPointerEventsResult>, PBPointerEventsResult>;
2375
2309
 
2376
2310
  declare const enum PointerEventType {
2377
- UP = 0,
2378
- DOWN = 1,
2379
- HOVER_ENTER = 2,
2380
- HOVER_LEAVE = 3,
2311
+ PET_UP = 0,
2312
+ PET_DOWN = 1,
2313
+ PET_HOVER_ENTER = 2,
2314
+ PET_HOVER_LEAVE = 3,
2381
2315
  UNRECOGNIZED = -1
2382
2316
  }
2383
2317
 
@@ -2615,8 +2549,8 @@ declare interface RaycastHit {
2615
2549
  }
2616
2550
 
2617
2551
  declare const enum RaycastQueryType {
2618
- HIT_FIRST = 0,
2619
- QUERY_ALL = 1,
2552
+ RQT_HIT_FIRST = 0,
2553
+ RQT_QUERY_ALL = 1,
2620
2554
  UNRECOGNIZED = -1
2621
2555
  }
2622
2556
 
@@ -2689,21 +2623,28 @@ export declare interface Spec {
2689
2623
  */
2690
2624
  export declare type SystemFn = (dt: number) => void;
2691
2625
 
2692
- declare const enum TextAlign {
2693
- Center = 0,
2694
- Left = 1,
2695
- Right = 2,
2626
+ declare const enum TextAlignMode {
2627
+ TAM_CENTER = 0,
2628
+ TAM_LEFT = 1,
2629
+ TAM_RIGHT = 2,
2696
2630
  UNRECOGNIZED = -1
2697
2631
  }
2698
2632
 
2699
2633
  /** @public */
2700
2634
  export declare const TextShape: ComponentDefinition<ISchema<PBTextShape>, PBTextShape>;
2701
2635
 
2636
+ declare const enum TextureFilterMode {
2637
+ TFM_POINT = 0,
2638
+ TFM_BILINEAR = 1,
2639
+ TFM_TRILINEAR = 2,
2640
+ UNRECOGNIZED = -1
2641
+ }
2642
+
2702
2643
  declare const enum TextureWrapMode {
2703
- Repeat = 0,
2704
- Clamp = 1,
2705
- Mirror = 2,
2706
- MirrorOnce = 3,
2644
+ TWM_REPEAT = 0,
2645
+ TWM_CLAMP = 1,
2646
+ TWM_MIRROR = 2,
2647
+ TWM_MIRROR_ONCE = 3,
2707
2648
  UNRECOGNIZED = -1
2708
2649
  }
2709
2650
 
@@ -2735,15 +2676,6 @@ declare type TransformType = {
2735
2676
  parent?: Entity;
2736
2677
  };
2737
2678
 
2738
- declare const enum TransparencyMode {
2739
- Opaque = 0,
2740
- AlphaTest = 1,
2741
- AlphaBlend = 2,
2742
- AlphaTestAndAlphaBlend = 3,
2743
- Auto = 4,
2744
- UNRECOGNIZED = -1
2745
- }
2746
-
2747
2679
  export declare type Transport = {
2748
2680
  type: string;
2749
2681
  send(message: Uint8Array): void;
@@ -3335,9 +3267,9 @@ export declare const VisibilityComponent: ComponentDefinition<ISchema<PBVisibili
3335
3267
  * @param actionButton
3336
3268
  * @returns true if the entity was clicked in the last tick-update
3337
3269
  */
3338
- export declare function wasEntityClicked(entity: Entity, actionButton: ActionButton): boolean;
3270
+ export declare function wasEntityClicked(entity: Entity, actionButton: InputAction): boolean;
3339
3271
 
3340
- export declare function wasEntityClickedGenerator(engine: IEngine): (entity: Entity, actionButton: ActionButton) => boolean;
3272
+ export declare function wasEntityClickedGenerator(engine: IEngine): (entity: Entity, actionButton: InputAction) => boolean;
3341
3273
 
3342
3274
  declare namespace WireMessage {
3343
3275
  enum Enum {
@@ -3364,74 +3296,74 @@ declare namespace WireMessage {
3364
3296
  }
3365
3297
 
3366
3298
  declare const enum YGAlign {
3367
- YGAlignAuto = 0,
3368
- YGAlignFlexStart = 1,
3369
- YGAlignCenter = 2,
3370
- YGAlignFlexEnd = 3,
3371
- YGAlignStretch = 4,
3372
- YGAlignBaseline = 5,
3373
- YGAlignSpaceBetween = 6,
3374
- YGAlignSpaceAround = 7,
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,
3375
3307
  UNRECOGNIZED = -1
3376
3308
  }
3377
3309
 
3378
3310
  declare const enum YGDirection {
3379
- YGDirectionInherit = 0,
3380
- YGDirectionLTR = 1,
3381
- YGDirectionRTL = 2,
3311
+ YGD_INHERIT = 0,
3312
+ YGD_LTR = 1,
3313
+ YGD_RTL = 2,
3382
3314
  UNRECOGNIZED = -1
3383
3315
  }
3384
3316
 
3385
3317
  declare const enum YGDisplay {
3386
- YGDisplayFlex = 0,
3387
- YGDisplayNone = 1,
3318
+ YGD_FLEX = 0,
3319
+ YGD_NONE = 1,
3388
3320
  UNRECOGNIZED = -1
3389
3321
  }
3390
3322
 
3391
3323
  declare const enum YGFlexDirection {
3392
- YGFlexDirectionColumn = 0,
3393
- YGFlexDirectionColumnReverse = 1,
3394
- YGFlexDirectionRow = 2,
3395
- YGFlexDirectionRowReverse = 3,
3324
+ YGFD_COLUMN = 0,
3325
+ YGFD_COLUMN_REVERSE = 1,
3326
+ YGFD_ROW = 2,
3327
+ YGFD_ROW_REVERSE = 3,
3396
3328
  UNRECOGNIZED = -1
3397
3329
  }
3398
3330
 
3399
3331
  declare const enum YGJustify {
3400
- YGJustifyFlexStart = 0,
3401
- YGJustifyCenter = 1,
3402
- YGJustifyFlexEnd = 2,
3403
- YGJustifySpaceBetween = 3,
3404
- YGJustifySpaceAround = 4,
3405
- YGJustifySpaceEvenly = 5,
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,
3406
3338
  UNRECOGNIZED = -1
3407
3339
  }
3408
3340
 
3409
3341
  declare const enum YGOverflow {
3410
- YGOverflowVisible = 0,
3411
- YGOverflowHidden = 1,
3412
- YGOverflowScroll = 2,
3342
+ YGO_VISIBLE = 0,
3343
+ YGO_HIDDEN = 1,
3344
+ YGO_SCROLL = 2,
3413
3345
  UNRECOGNIZED = -1
3414
3346
  }
3415
3347
 
3416
3348
  declare const enum YGPositionType {
3417
- YGPositionTypeStatic = 0,
3418
- YGPositionTypeRelative = 1,
3419
- YGPositionTypeAbsolute = 2,
3349
+ YGPT_STATIC = 0,
3350
+ YGPT_RELATIVE = 1,
3351
+ YGPT_ABSOLUTE = 2,
3420
3352
  UNRECOGNIZED = -1
3421
3353
  }
3422
3354
 
3423
3355
  declare const enum YGUnit {
3424
- YGUnitUndefined = 0,
3425
- YGUnitPoint = 1,
3426
- YGUnitPercent = 2,
3427
- YGUnitAuto = 3,
3356
+ YGU_UNDEFINED = 0,
3357
+ YGU_POINT = 1,
3358
+ YGU_PERCENT = 2,
3359
+ YGU_AUTO = 3,
3428
3360
  UNRECOGNIZED = -1
3429
3361
  }
3430
3362
 
3431
3363
  declare const enum YGWrap {
3432
- YGWrapNoWrap = 0,
3433
- YGWrapWrap = 1,
3434
- YGWrapWrapReverse = 2,
3364
+ YGW_NO_WRAP = 0,
3365
+ YGW_WRAP = 1,
3366
+ YGW_WRAP_REVERSE = 2,
3435
3367
  UNRECOGNIZED = -1
3436
3368
  }
3437
3369