@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.
- package/dist/components/generated/global.gen.js +25 -25
- package/dist/components/generated/index.gen.d.ts +2 -1
- package/dist/components/generated/index.gen.js +59 -31
- package/dist/components/index.js +5 -5
- package/dist/composite/instance.js +2 -0
- package/dist/index.js +5 -5
- package/dist/runtime/initialization/index.js +4 -8
- package/dist/systems/async-task.js +2 -4
- package/package.json +3 -3
|
@@ -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 */
|
|
5
|
-
/** @public */
|
|
6
|
-
/** @public */
|
|
7
|
-
/** @public */
|
|
8
|
-
/** @public */
|
|
9
|
-
/** @public */
|
|
10
|
-
/** @public */
|
|
11
|
-
/** @public */
|
|
12
|
-
/** @public */
|
|
13
|
-
/** @public */
|
|
14
|
-
/** @public */
|
|
15
|
-
/** @public */
|
|
16
|
-
/** @public */
|
|
17
|
-
/** @public */
|
|
18
|
-
/** @public */
|
|
19
|
-
/** @public */
|
|
20
|
-
/** @public */
|
|
21
|
-
/** @public */
|
|
22
|
-
/** @public */
|
|
23
|
-
/** @public */
|
|
24
|
-
/** @public */
|
|
25
|
-
/** @public */
|
|
26
|
-
/** @public */
|
|
27
|
-
/** @public */
|
|
28
|
-
/** @public */
|
|
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 */
|
|
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 */
|
|
60
|
-
|
|
61
|
-
/** @public */
|
|
62
|
-
|
|
63
|
-
/** @public */
|
|
64
|
-
|
|
65
|
-
/** @public */
|
|
66
|
-
|
|
67
|
-
/** @public */
|
|
68
|
-
|
|
69
|
-
/** @public */
|
|
70
|
-
|
|
71
|
-
/** @public */
|
|
72
|
-
|
|
73
|
-
/** @public */
|
|
74
|
-
|
|
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 */
|
|
79
|
-
|
|
80
|
-
/** @public */
|
|
81
|
-
|
|
82
|
-
/** @public */
|
|
83
|
-
|
|
84
|
-
/** @public */
|
|
85
|
-
|
|
86
|
-
/** @public */
|
|
87
|
-
|
|
88
|
-
/** @public */
|
|
89
|
-
|
|
90
|
-
/** @public */
|
|
91
|
-
|
|
92
|
-
export const
|
|
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,
|
package/dist/components/index.js
CHANGED
|
@@ -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
|
-
|
|
7
|
+
/* @__PURE__ */
|
|
8
8
|
export const Transform = (engine) => defineTransformComponent(engine);
|
|
9
|
-
|
|
9
|
+
/* @__PURE__ */
|
|
10
10
|
export const Material = (engine) => defineMaterialComponent(engine);
|
|
11
|
-
|
|
11
|
+
/* @__PURE__ */
|
|
12
12
|
export const Animator = (engine) => defineAnimatorComponent(engine);
|
|
13
|
-
|
|
13
|
+
/* @__PURE__ */
|
|
14
14
|
export const MeshRenderer = (engine) => defineMeshRendererComponent(engine);
|
|
15
|
-
|
|
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
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
44
|
-
export const executeTask = createTaskSystem(engine).executeTask;
|
|
40
|
+
export const executeTask = /* @__PURE__ */ createTaskSystem(engine);
|
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-
|
|
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-
|
|
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": "
|
|
37
|
+
"commit": "9751782fe0c6ad91dff9439d0c10210c12121d2d"
|
|
38
38
|
}
|