@dcl/ecs 7.1.4-4544067675.commit-d749052 → 7.1.4-4546888614.commit-9751782

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.
@@ -1,28 +1,28 @@
1
1
  import { engine } from '../../runtime/initialization';
2
2
  import * as components from './index.gen';
3
3
  export * from './index.gen';
4
- /** @public */ /*#__PURE__*/ export const AudioSource = components.AudioSource(engine);
5
- /** @public */ /*#__PURE__*/ export const AudioStream = components.AudioStream(engine);
6
- /** @public */ /*#__PURE__*/ export const AvatarAttach = components.AvatarAttach(engine);
7
- /** @public */ /*#__PURE__*/ export const AvatarModifierArea = components.AvatarModifierArea(engine);
8
- /** @public */ /*#__PURE__*/ export const AvatarShape = components.AvatarShape(engine);
9
- /** @public */ /*#__PURE__*/ export const Billboard = components.Billboard(engine);
10
- /** @public */ /*#__PURE__*/ export const CameraMode = components.CameraMode(engine);
11
- /** @public */ /*#__PURE__*/ export const CameraModeArea = components.CameraModeArea(engine);
12
- /** @public */ /*#__PURE__*/ export const GltfContainer = components.GltfContainer(engine);
13
- /** @public */ /*#__PURE__*/ export const NftShape = components.NftShape(engine);
14
- /** @public */ /*#__PURE__*/ export const PointerEvents = components.PointerEvents(engine);
15
- /** @public */ /*#__PURE__*/ export const PointerEventsResult = components.PointerEventsResult(engine);
16
- /** @public */ /*#__PURE__*/ export const PointerLock = components.PointerLock(engine);
17
- /** @public */ /*#__PURE__*/ export const Raycast = components.Raycast(engine);
18
- /** @public */ /*#__PURE__*/ export const RaycastResult = components.RaycastResult(engine);
19
- /** @public */ /*#__PURE__*/ export const TextShape = components.TextShape(engine);
20
- /** @public */ /*#__PURE__*/ export const UiBackground = components.UiBackground(engine);
21
- /** @public */ /*#__PURE__*/ export const UiDropdown = components.UiDropdown(engine);
22
- /** @public */ /*#__PURE__*/ export const UiDropdownResult = components.UiDropdownResult(engine);
23
- /** @public */ /*#__PURE__*/ export const UiInput = components.UiInput(engine);
24
- /** @public */ /*#__PURE__*/ export const UiInputResult = components.UiInputResult(engine);
25
- /** @public */ /*#__PURE__*/ export const UiText = components.UiText(engine);
26
- /** @public */ /*#__PURE__*/ export const UiTransform = components.UiTransform(engine);
27
- /** @public */ /*#__PURE__*/ export const VideoPlayer = components.VideoPlayer(engine);
28
- /** @public */ /*#__PURE__*/ export const VisibilityComponent = components.VisibilityComponent(engine);
4
+ /** @public */ export const AudioSource = /* @__PURE__ */ components.AudioSource(engine);
5
+ /** @public */ export const AudioStream = /* @__PURE__ */ components.AudioStream(engine);
6
+ /** @public */ export const AvatarAttach = /* @__PURE__ */ components.AvatarAttach(engine);
7
+ /** @public */ export const AvatarModifierArea = /* @__PURE__ */ components.AvatarModifierArea(engine);
8
+ /** @public */ export const AvatarShape = /* @__PURE__ */ components.AvatarShape(engine);
9
+ /** @public */ export const Billboard = /* @__PURE__ */ components.Billboard(engine);
10
+ /** @public */ export const CameraMode = /* @__PURE__ */ components.CameraMode(engine);
11
+ /** @public */ export const CameraModeArea = /* @__PURE__ */ components.CameraModeArea(engine);
12
+ /** @public */ export const GltfContainer = /* @__PURE__ */ components.GltfContainer(engine);
13
+ /** @public */ export const NftShape = /* @__PURE__ */ components.NftShape(engine);
14
+ /** @public */ export const PointerEvents = /* @__PURE__ */ components.PointerEvents(engine);
15
+ /** @public */ export const PointerEventsResult = /* @__PURE__ */ components.PointerEventsResult(engine);
16
+ /** @public */ export const PointerLock = /* @__PURE__ */ components.PointerLock(engine);
17
+ /** @public */ export const Raycast = /* @__PURE__ */ components.Raycast(engine);
18
+ /** @public */ export const RaycastResult = /* @__PURE__ */ components.RaycastResult(engine);
19
+ /** @public */ export const TextShape = /* @__PURE__ */ components.TextShape(engine);
20
+ /** @public */ export const UiBackground = /* @__PURE__ */ components.UiBackground(engine);
21
+ /** @public */ export const UiDropdown = /* @__PURE__ */ components.UiDropdown(engine);
22
+ /** @public */ export const UiDropdownResult = /* @__PURE__ */ components.UiDropdownResult(engine);
23
+ /** @public */ export const UiInput = /* @__PURE__ */ components.UiInput(engine);
24
+ /** @public */ export const UiInputResult = /* @__PURE__ */ components.UiInputResult(engine);
25
+ /** @public */ export const UiText = /* @__PURE__ */ components.UiText(engine);
26
+ /** @public */ export const UiTransform = /* @__PURE__ */ components.UiTransform(engine);
27
+ /** @public */ export const VideoPlayer = /* @__PURE__ */ components.VideoPlayer(engine);
28
+ /** @public */ export const VisibilityComponent = /* @__PURE__ */ components.VisibilityComponent(engine);
@@ -89,7 +89,8 @@ export type GSetComponentGetter<T extends GrowOnlyValueSetComponentDefinition<an
89
89
  /** @public */ export declare const UiTransform: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBUiTransform>>;
90
90
  /** @public */ export declare const VideoPlayer: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBVideoPlayer>>;
91
91
  /** @public */ export declare const VisibilityComponent: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBVisibilityComponent>>;
92
- /** public */ export declare const componentDefinitionByName: {
92
+ /** public */
93
+ export declare const componentDefinitionByName: {
93
94
  "core::Animator": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAnimator>>;
94
95
  "core::AudioSource": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAudioSource>>;
95
96
  "core::AudioStream": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBAudioStream>>;
@@ -56,40 +56,68 @@ export * from './pb/decentraland/sdk/components/ui_text.gen';
56
56
  export * from './pb/decentraland/sdk/components/ui_transform.gen';
57
57
  export * from './pb/decentraland/sdk/components/video_player.gen';
58
58
  export * from './pb/decentraland/sdk/components/visibility_component.gen';
59
- /** @public */ /*#__PURE__*/ export const Animator = engine => engine.defineComponentFromSchema("core::Animator", AnimatorSchema);
60
- /** @public */ /*#__PURE__*/ export const AudioSource = engine => engine.defineComponentFromSchema("core::AudioSource", AudioSourceSchema);
61
- /** @public */ /*#__PURE__*/ export const AudioStream = engine => engine.defineComponentFromSchema("core::AudioStream", AudioStreamSchema);
62
- /** @public */ /*#__PURE__*/ export const AvatarAttach = engine => engine.defineComponentFromSchema("core::AvatarAttach", AvatarAttachSchema);
63
- /** @public */ /*#__PURE__*/ export const AvatarModifierArea = engine => engine.defineComponentFromSchema("core::AvatarModifierArea", AvatarModifierAreaSchema);
64
- /** @public */ /*#__PURE__*/ export const AvatarShape = engine => engine.defineComponentFromSchema("core::AvatarShape", AvatarShapeSchema);
65
- /** @public */ /*#__PURE__*/ export const Billboard = engine => engine.defineComponentFromSchema("core::Billboard", BillboardSchema);
66
- /** @public */ /*#__PURE__*/ export const CameraMode = engine => engine.defineComponentFromSchema("core::CameraMode", CameraModeSchema);
67
- /** @public */ /*#__PURE__*/ export const CameraModeArea = engine => engine.defineComponentFromSchema("core::CameraModeArea", CameraModeAreaSchema);
68
- /** @public */ /*#__PURE__*/ export const GltfContainer = engine => engine.defineComponentFromSchema("core::GltfContainer", GltfContainerSchema);
69
- /** @public */ /*#__PURE__*/ export const Material = engine => engine.defineComponentFromSchema("core::Material", MaterialSchema);
70
- /** @public */ /*#__PURE__*/ export const MeshCollider = engine => engine.defineComponentFromSchema("core::MeshCollider", MeshColliderSchema);
71
- /** @public */ /*#__PURE__*/ export const MeshRenderer = engine => engine.defineComponentFromSchema("core::MeshRenderer", MeshRendererSchema);
72
- /** @public */ /*#__PURE__*/ export const NftShape = engine => engine.defineComponentFromSchema("core::NftShape", NftShapeSchema);
73
- /** @public */ /*#__PURE__*/ export const PointerEvents = engine => engine.defineComponentFromSchema("core::PointerEvents", PointerEventsSchema);
74
- /** @public */ /*#__PURE__*/ export const PointerEventsResult = (engine) => engine.defineValueSetComponentFromSchema("core::PointerEventsResult", PointerEventsResultSchema, {
59
+ /** @public */ export const Animator = engine =>
60
+ /* @__PURE__ */ engine.defineComponentFromSchema("core::Animator", AnimatorSchema);
61
+ /** @public */ export const AudioSource = engine =>
62
+ /* @__PURE__ */ engine.defineComponentFromSchema("core::AudioSource", AudioSourceSchema);
63
+ /** @public */ export const AudioStream = engine =>
64
+ /* @__PURE__ */ engine.defineComponentFromSchema("core::AudioStream", AudioStreamSchema);
65
+ /** @public */ export const AvatarAttach = engine =>
66
+ /* @__PURE__ */ engine.defineComponentFromSchema("core::AvatarAttach", AvatarAttachSchema);
67
+ /** @public */ export const AvatarModifierArea = engine =>
68
+ /* @__PURE__ */ engine.defineComponentFromSchema("core::AvatarModifierArea", AvatarModifierAreaSchema);
69
+ /** @public */ export const AvatarShape = engine =>
70
+ /* @__PURE__ */ engine.defineComponentFromSchema("core::AvatarShape", AvatarShapeSchema);
71
+ /** @public */ export const Billboard = engine =>
72
+ /* @__PURE__ */ engine.defineComponentFromSchema("core::Billboard", BillboardSchema);
73
+ /** @public */ export const CameraMode = engine =>
74
+ /* @__PURE__ */ engine.defineComponentFromSchema("core::CameraMode", CameraModeSchema);
75
+ /** @public */ export const CameraModeArea = engine =>
76
+ /* @__PURE__ */ engine.defineComponentFromSchema("core::CameraModeArea", CameraModeAreaSchema);
77
+ /** @public */ export const GltfContainer = engine =>
78
+ /* @__PURE__ */ engine.defineComponentFromSchema("core::GltfContainer", GltfContainerSchema);
79
+ /** @public */ export const Material = engine =>
80
+ /* @__PURE__ */ engine.defineComponentFromSchema("core::Material", MaterialSchema);
81
+ /** @public */ export const MeshCollider = engine =>
82
+ /* @__PURE__ */ engine.defineComponentFromSchema("core::MeshCollider", MeshColliderSchema);
83
+ /** @public */ export const MeshRenderer = engine =>
84
+ /* @__PURE__ */ engine.defineComponentFromSchema("core::MeshRenderer", MeshRendererSchema);
85
+ /** @public */ export const NftShape = engine =>
86
+ /* @__PURE__ */ engine.defineComponentFromSchema("core::NftShape", NftShapeSchema);
87
+ /** @public */ export const PointerEvents = engine =>
88
+ /* @__PURE__ */ engine.defineComponentFromSchema("core::PointerEvents", PointerEventsSchema);
89
+ /** @public */ export const PointerEventsResult = (engine) => /* @__PURE__ */ engine.defineValueSetComponentFromSchema("core::PointerEventsResult", PointerEventsResultSchema, {
75
90
  timestampFunction: (t) => t.timestamp,
76
91
  maxElements: 100
77
92
  });
78
- /** @public */ /*#__PURE__*/ export const PointerLock = engine => engine.defineComponentFromSchema("core::PointerLock", PointerLockSchema);
79
- /** @public */ /*#__PURE__*/ export const Raycast = engine => engine.defineComponentFromSchema("core::Raycast", RaycastSchema);
80
- /** @public */ /*#__PURE__*/ export const RaycastResult = engine => engine.defineComponentFromSchema("core::RaycastResult", RaycastResultSchema);
81
- /** @public */ /*#__PURE__*/ export const TextShape = engine => engine.defineComponentFromSchema("core::TextShape", TextShapeSchema);
82
- /** @public */ /*#__PURE__*/ export const UiBackground = engine => engine.defineComponentFromSchema("core::UiBackground", UiBackgroundSchema);
83
- /** @public */ /*#__PURE__*/ export const UiDropdown = engine => engine.defineComponentFromSchema("core::UiDropdown", UiDropdownSchema);
84
- /** @public */ /*#__PURE__*/ export const UiDropdownResult = engine => engine.defineComponentFromSchema("core::UiDropdownResult", UiDropdownResultSchema);
85
- /** @public */ /*#__PURE__*/ export const UiInput = engine => engine.defineComponentFromSchema("core::UiInput", UiInputSchema);
86
- /** @public */ /*#__PURE__*/ export const UiInputResult = engine => engine.defineComponentFromSchema("core::UiInputResult", UiInputResultSchema);
87
- /** @public */ /*#__PURE__*/ export const UiText = engine => engine.defineComponentFromSchema("core::UiText", UiTextSchema);
88
- /** @public */ /*#__PURE__*/ export const UiTransform = engine => engine.defineComponentFromSchema("core::UiTransform", UiTransformSchema);
89
- /** @public */ /*#__PURE__*/ export const VideoPlayer = engine => engine.defineComponentFromSchema("core::VideoPlayer", VideoPlayerSchema);
90
- /** @public */ /*#__PURE__*/ export const VisibilityComponent = engine => engine.defineComponentFromSchema("core::VisibilityComponent", VisibilityComponentSchema);
91
- /** public */ /*#__PURE__*/
92
- export const componentDefinitionByName = {
93
+ /** @public */ export const PointerLock = engine =>
94
+ /* @__PURE__ */ engine.defineComponentFromSchema("core::PointerLock", PointerLockSchema);
95
+ /** @public */ export const Raycast = engine =>
96
+ /* @__PURE__ */ engine.defineComponentFromSchema("core::Raycast", RaycastSchema);
97
+ /** @public */ export const RaycastResult = engine =>
98
+ /* @__PURE__ */ engine.defineComponentFromSchema("core::RaycastResult", RaycastResultSchema);
99
+ /** @public */ export const TextShape = engine =>
100
+ /* @__PURE__ */ engine.defineComponentFromSchema("core::TextShape", TextShapeSchema);
101
+ /** @public */ export const UiBackground = engine =>
102
+ /* @__PURE__ */ engine.defineComponentFromSchema("core::UiBackground", UiBackgroundSchema);
103
+ /** @public */ export const UiDropdown = engine =>
104
+ /* @__PURE__ */ engine.defineComponentFromSchema("core::UiDropdown", UiDropdownSchema);
105
+ /** @public */ export const UiDropdownResult = engine =>
106
+ /* @__PURE__ */ engine.defineComponentFromSchema("core::UiDropdownResult", UiDropdownResultSchema);
107
+ /** @public */ export const UiInput = engine =>
108
+ /* @__PURE__ */ engine.defineComponentFromSchema("core::UiInput", UiInputSchema);
109
+ /** @public */ export const UiInputResult = engine =>
110
+ /* @__PURE__ */ engine.defineComponentFromSchema("core::UiInputResult", UiInputResultSchema);
111
+ /** @public */ export const UiText = engine =>
112
+ /* @__PURE__ */ engine.defineComponentFromSchema("core::UiText", UiTextSchema);
113
+ /** @public */ export const UiTransform = engine =>
114
+ /* @__PURE__ */ engine.defineComponentFromSchema("core::UiTransform", UiTransformSchema);
115
+ /** @public */ export const VideoPlayer = engine =>
116
+ /* @__PURE__ */ engine.defineComponentFromSchema("core::VideoPlayer", VideoPlayerSchema);
117
+ /** @public */ export const VisibilityComponent = engine =>
118
+ /* @__PURE__ */ engine.defineComponentFromSchema("core::VisibilityComponent", VisibilityComponentSchema);
119
+ /** public */
120
+ export const componentDefinitionByName = /* @__PURE__ */ {
93
121
  "core::Animator": Animator,
94
122
  "core::AudioSource": AudioSource,
95
123
  "core::AudioStream": AudioStream,
@@ -4,13 +4,13 @@ import { defineMeshColliderComponent } from './extended/MeshCollider';
4
4
  import { defineMeshRendererComponent } from './extended/MeshRenderer';
5
5
  import { defineTransformComponent } from './manual/Transform';
6
6
  export * from './generated/index.gen';
7
- /*#__PURE__*/
7
+ /* @__PURE__ */
8
8
  export const Transform = (engine) => defineTransformComponent(engine);
9
- /*#__PURE__*/
9
+ /* @__PURE__ */
10
10
  export const Material = (engine) => defineMaterialComponent(engine);
11
- /*#__PURE__*/
11
+ /* @__PURE__ */
12
12
  export const Animator = (engine) => defineAnimatorComponent(engine);
13
- /*#__PURE__*/
13
+ /* @__PURE__ */
14
14
  export const MeshRenderer = (engine) => defineMeshRendererComponent(engine);
15
- /*#__PURE__*/
15
+ /* @__PURE__ */
16
16
  export const MeshCollider = (engine) => defineMeshColliderComponent(engine);
@@ -4,6 +4,7 @@ import { Schemas } from '../schemas';
4
4
  import { ReadWriteByteBuffer } from '../serialization/ByteBuffer';
5
5
  import { getCompositeRootComponent } from './components';
6
6
  /** @public */
7
+ /* @__PURE__ */
7
8
  export var EntityMappingMode;
8
9
  (function (EntityMappingMode) {
9
10
  EntityMappingMode[EntityMappingMode["EMM_NONE"] = 0] = "EMM_NONE";
@@ -75,6 +76,7 @@ export function getEntityMapping(engine, compositeEntity, mappedEntities, { enti
75
76
  /**
76
77
  * @internal
77
78
  */
79
+ /* @__PURE__ */
78
80
  export function instanceComposite(engine, compositeData, compositeProvider, options) {
79
81
  const { rootEntity, alreadyRequestedId: optionalAlreadyRequestedId, entityMapping } = options;
80
82
  const alreadyRequestedId = optionalAlreadyRequestedId || new Set();
package/dist/index.js CHANGED
@@ -14,11 +14,11 @@ import * as components from './components';
14
14
  export { components };
15
15
  import { engine } from './runtime/initialization';
16
16
  // export components for global engine
17
- /*#__PURE__*/ export const Transform = components.Transform(engine);
18
- /*#__PURE__*/ export const Animator = components.Animator(engine);
19
- /*#__PURE__*/ export const Material = components.Material(engine);
20
- /*#__PURE__*/ export const MeshRenderer = components.MeshRenderer(engine);
21
- /*#__PURE__*/ export const MeshCollider = components.MeshCollider(engine);
17
+ export const Transform = /* @__PURE__*/ components.Transform(engine);
18
+ export const Animator = /* @__PURE__*/ components.Animator(engine);
19
+ export const Material = /* @__PURE__*/ components.Material(engine);
20
+ export const MeshRenderer = /* @__PURE__*/ components.MeshRenderer(engine);
21
+ export const MeshCollider = /* @__PURE__*/ components.MeshCollider(engine);
22
22
  // export components for global engine
23
23
  export * from './components/generated/global.gen';
24
24
  export * from './components/generated/types.gen';
@@ -18,8 +18,7 @@ import { createInputSystem } from './../../engine/input';
18
18
  * engine.addSystem(someSystemFunction)
19
19
  *
20
20
  */
21
- /*#__PURE__*/
22
- export const engine = Engine();
21
+ export const engine = /* @__PURE__ */ Engine();
23
22
  /**
24
23
  * @public
25
24
  * Input system manager. Check for button events
@@ -28,17 +27,14 @@ export const engine = Engine();
28
27
  * inputSystem.isPressed: Returns true if an input is currently being pressed down. It will return true on every tick until the button goes up again.
29
28
  * inputSystem.getInputCommand: Returns an object with data about the input action.
30
29
  */
31
- /*#__PURE__*/
32
- export const inputSystem = createInputSystem(engine);
30
+ export const inputSystem = /* @__PURE__ */ createInputSystem(engine);
33
31
  /**
34
32
  * @public
35
33
  * Register callback functions to a particular entity.
36
34
  */
37
- /*#__PURE__*/
38
- export const pointerEventsSystem = createPointerEventSystem(engine, inputSystem);
35
+ export const pointerEventsSystem = /* @__PURE__ */ createPointerEventSystem(engine, inputSystem);
39
36
  /**
40
37
  * @public
41
38
  * Runs an async function
42
39
  */
43
- /*#__PURE__*/
44
- export const executeTask = createTaskSystem(engine).executeTask;
40
+ export const executeTask = /* @__PURE__ */ createTaskSystem(engine);
@@ -23,9 +23,7 @@ export function createTaskSystem(engine) {
23
23
  }
24
24
  }
25
25
  engine.addSystem(executeTasks);
26
- return {
27
- executeTask(task) {
28
- tasks.push(task);
29
- }
26
+ return function (task) {
27
+ tasks.push(task);
30
28
  };
31
29
  }
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@dcl/ecs",
3
3
  "description": "Decentraland ECS",
4
- "version": "7.1.4-4544067675.commit-d749052",
4
+ "version": "7.1.4-4546888614.commit-9751782",
5
5
  "author": "DCL",
6
6
  "bugs": "https://github.com/decentraland/ecs/issues",
7
7
  "dependencies": {
8
- "@dcl/js-runtime": "7.1.4-4544067675.commit-d749052"
8
+ "@dcl/js-runtime": "7.1.4-4546888614.commit-9751782"
9
9
  },
10
10
  "devDependencies": {
11
11
  "ts-proto": "^1.122.0"
@@ -34,5 +34,5 @@
34
34
  },
35
35
  "types": "./dist/index.d.ts",
36
36
  "typings": "./dist/index.d.ts",
37
- "commit": "d749052392aba79929086ab20c4ddf78f08e415b"
37
+ "commit": "9751782fe0c6ad91dff9439d0c10210c12121d2d"
38
38
  }