@awesome-ecs/abstract 0.23.0 → 0.25.0
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/index.d.cts +1 -1
- package/dist/components/index.d.mts +1 -1
- package/dist/entities/index.d.cts +3 -3
- package/dist/entities/index.d.mts +3 -3
- package/dist/factories/index.cjs +19 -0
- package/dist/factories/index.cjs.map +1 -0
- package/dist/factories/index.d.cts +33 -7
- package/dist/factories/index.d.mts +33 -7
- package/dist/factories/index.mjs +18 -1
- package/dist/factories/index.mjs.map +1 -0
- package/dist/{identity-component-BCmEilvk.d.mts → identity-component-CgzvgBVh.d.mts} +32 -19
- package/dist/{identity-component-5neFUd2Q.d.cts → identity-component-uU0yDR-y.d.cts} +32 -19
- package/dist/{index-BtPTY71-.d.cts → index-CR3yK5HE.d.cts} +42 -8
- package/dist/{index-CQpE-5sx.d.mts → index-CT8ci9Cn.d.mts} +35 -5
- package/dist/{index-6OSsa_UD.d.cts → index-CY3I0Xdn.d.cts} +35 -5
- package/dist/{index-BWmhFdFg.d.mts → index-CmTRwW4W.d.cts} +16 -3
- package/dist/{index-DcirKLCP.d.mts → index-CyoGuBNw.d.mts} +10 -10
- package/dist/{index-eECJUE_O.d.cts → index-Iqc9jR5E.d.mts} +16 -3
- package/dist/{index-BUadwkVZ.d.cts → index-cF9FviwN.d.cts} +10 -10
- package/dist/{index-CW6-OhB4.d.mts → index-ei6_lV4I.d.mts} +42 -8
- package/dist/pipelines/index.d.cts +1 -1
- package/dist/pipelines/index.d.mts +1 -1
- package/dist/systems/index.d.cts +1 -1
- package/dist/systems/index.d.mts +1 -1
- package/dist/utils/index.d.cts +2 -2
- package/dist/utils/index.d.mts +2 -2
- package/package.json +2 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { f as ComponentTypeUid, n as IdentityComponent, p as IComponent, t as BasicComponentType } from "../identity-component-uU0yDR-y.cjs";
|
|
2
2
|
export { BasicComponentType, ComponentTypeUid, IComponent, IdentityComponent };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { f as ComponentTypeUid, n as IdentityComponent, p as IComponent, t as BasicComponentType } from "../identity-component-CgzvgBVh.mjs";
|
|
2
2
|
export { BasicComponentType, ComponentTypeUid, IComponent, IdentityComponent };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as IEntity, c as
|
|
2
|
-
import { a as
|
|
3
|
-
export { EntityEventSubscriptionFilter, EntityEventUid, EntityProxy, EntityTypeUid, EntityUid, EntityUpdateType, IEntity, IEntityEvent, IEntityEventsDispatcher, IEntityEventsManager, IEntityModel,
|
|
1
|
+
import { a as IEntity, c as IEntityProxy, d as TypedEntityProxy, i as EntityUid, l as IEntityProxyRepository, o as IEntityModel, r as EntityTypeUid, s as EntityProxy, u as RequiredProxies } from "../identity-component-uU0yDR-y.cjs";
|
|
2
|
+
import { a as IEntityUpdate, c as IEntitySnapshotProvider, d as EntityEventUid, f as IEntityEvent, h as IEventData, i as EntityUpdateType, l as EntityEventSubscriptionFilter, m as IEntityEventsManager, n as IEntityScheduler, o as IEntityUpdateQueue, p as IEntityEventsDispatcher, r as IEntityRepository, s as IEntitySnapshot, t as EntitySchedule, u as EntityEventSubscriptionOptions } from "../index-CY3I0Xdn.cjs";
|
|
3
|
+
export { EntityEventSubscriptionFilter, EntityEventSubscriptionOptions, EntityEventUid, EntityProxy, EntitySchedule, EntityTypeUid, EntityUid, EntityUpdateType, IEntity, IEntityEvent, IEntityEventsDispatcher, IEntityEventsManager, IEntityModel, IEntityProxy, IEntityProxyRepository, IEntityRepository, IEntityScheduler, IEntitySnapshot, IEntitySnapshotProvider, IEntityUpdate, IEntityUpdateQueue, IEventData, RequiredProxies, TypedEntityProxy };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as IEntity, c as
|
|
2
|
-
import { a as
|
|
3
|
-
export { EntityEventSubscriptionFilter, EntityEventUid, EntityProxy, EntityTypeUid, EntityUid, EntityUpdateType, IEntity, IEntityEvent, IEntityEventsDispatcher, IEntityEventsManager, IEntityModel,
|
|
1
|
+
import { a as IEntity, c as IEntityProxy, d as TypedEntityProxy, i as EntityUid, l as IEntityProxyRepository, o as IEntityModel, r as EntityTypeUid, s as EntityProxy, u as RequiredProxies } from "../identity-component-CgzvgBVh.mjs";
|
|
2
|
+
import { a as IEntityUpdate, c as IEntitySnapshotProvider, d as EntityEventUid, f as IEntityEvent, h as IEventData, i as EntityUpdateType, l as EntityEventSubscriptionFilter, m as IEntityEventsManager, n as IEntityScheduler, o as IEntityUpdateQueue, p as IEntityEventsDispatcher, r as IEntityRepository, s as IEntitySnapshot, t as EntitySchedule, u as EntityEventSubscriptionOptions } from "../index-CT8ci9Cn.mjs";
|
|
3
|
+
export { EntityEventSubscriptionFilter, EntityEventSubscriptionOptions, EntityEventUid, EntityProxy, EntitySchedule, EntityTypeUid, EntityUid, EntityUpdateType, IEntity, IEntityEvent, IEntityEventsDispatcher, IEntityEventsManager, IEntityModel, IEntityProxy, IEntityProxyRepository, IEntityRepository, IEntityScheduler, IEntitySnapshot, IEntitySnapshotProvider, IEntityUpdate, IEntityUpdateQueue, IEventData, RequiredProxies, TypedEntityProxy };
|
package/dist/factories/index.cjs
CHANGED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/factories/pipeline-factory.ts
|
|
3
|
+
/**
|
|
4
|
+
* Built-in metric categories for classifying pipeline and middleware performance entries.
|
|
5
|
+
*
|
|
6
|
+
* - `module` — System module pipelines (initialize, update, render, sync phases).
|
|
7
|
+
* - `runtime` — Runtime orchestration pipeline and its middleware.
|
|
8
|
+
* - `system` — Individual system middleware within a module pipeline.
|
|
9
|
+
*/
|
|
10
|
+
let PipelineCategory = /* @__PURE__ */ function(PipelineCategory) {
|
|
11
|
+
PipelineCategory["module"] = "module";
|
|
12
|
+
PipelineCategory["runtime"] = "runtime";
|
|
13
|
+
PipelineCategory["system"] = "system";
|
|
14
|
+
return PipelineCategory;
|
|
15
|
+
}({});
|
|
16
|
+
|
|
17
|
+
//#endregion
|
|
18
|
+
exports.PipelineCategory = PipelineCategory;
|
|
19
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","names":[],"sources":["../../src/factories/pipeline-factory.ts"],"sourcesContent":["import { IPipelineContext } from '../pipelines';\nimport { IPipeline } from '../pipelines/pipeline';\n\n/**\n * Category identifier for grouping performance metrics.\n * Typed as string to allow extension beyond the built-in {@link PipelineCategory} values.\n */\nexport type PipelineCategoryName = string;\n\n/**\n * Built-in metric categories for classifying pipeline and middleware performance entries.\n *\n * - `module` — System module pipelines (initialize, update, render, sync phases).\n * - `runtime` — Runtime orchestration pipeline and its middleware.\n * - `system` — Individual system middleware within a module pipeline.\n */\nexport enum PipelineCategory {\n module = 'module',\n runtime = 'runtime',\n system = 'system'\n}\n\n/**\n * Options for identifying and categorizing performance metrics on pipelines.\n */\nexport type PipelineMetricOptions = {\n /** Display name for the pipeline in performance metrics. */\n pipelineName: string;\n /** Category assigned to pipeline-level metric entries. */\n pipelineCategory: PipelineCategoryName;\n /** Category assigned to per-middleware metric entries within this pipeline. */\n middlewareCategory: PipelineCategoryName;\n};\n\n/**\n * Creates pipeline instances for various contexts.\n * Abstracts pipeline creation to support different implementations.\n * Used by the system to instantiate pipelines without coupling to specific implementations.\n */\nexport interface IPipelineFactory {\n /**\n * Creates a new pipeline for the specified context type.\n * @template TContext - The context type for the pipeline. Must extend IPipelineContext.\n * @param options - Optional performance metric options (name, category) for the pipeline.\n * @returns A new pipeline instance ready for middleware registration.\n */\n createPipeline<TContext extends IPipelineContext>(\n options?: PipelineMetricOptions\n ): IPipeline<TContext>;\n}\n"],"mappings":";;;;;;;;;AAgBA,IAAY,8DAAL;AACL;AACA;AACA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as IEntity } from "../identity-component-
|
|
2
|
-
import { l as IPipelineContext, o as IPipeline } from "../index-
|
|
3
|
-
import { n as ISystemsRuntimeContext, o as ISystemsModuleBuilder, u as ISystemContext } from "../index-
|
|
1
|
+
import { a as IEntity } from "../identity-component-uU0yDR-y.cjs";
|
|
2
|
+
import { l as IPipelineContext, o as IPipeline } from "../index-cF9FviwN.cjs";
|
|
3
|
+
import { n as ISystemsRuntimeContext, o as ISystemsModuleBuilder, u as ISystemContext } from "../index-CR3yK5HE.cjs";
|
|
4
4
|
|
|
5
5
|
//#region src/factories/context-factory.d.ts
|
|
6
6
|
interface IContextFactory {
|
|
@@ -13,6 +13,31 @@ interface IContextFactory {
|
|
|
13
13
|
}
|
|
14
14
|
//#endregion
|
|
15
15
|
//#region src/factories/pipeline-factory.d.ts
|
|
16
|
+
/**
|
|
17
|
+
* Category identifier for grouping performance metrics.
|
|
18
|
+
* Typed as string to allow extension beyond the built-in {@link PipelineCategory} values.
|
|
19
|
+
*/
|
|
20
|
+
type PipelineCategoryName = string;
|
|
21
|
+
/**
|
|
22
|
+
* Built-in metric categories for classifying pipeline and middleware performance entries.
|
|
23
|
+
*
|
|
24
|
+
* - `module` — System module pipelines (initialize, update, render, sync phases).
|
|
25
|
+
* - `runtime` — Runtime orchestration pipeline and its middleware.
|
|
26
|
+
* - `system` — Individual system middleware within a module pipeline.
|
|
27
|
+
*/
|
|
28
|
+
declare enum PipelineCategory {
|
|
29
|
+
module = "module",
|
|
30
|
+
runtime = "runtime",
|
|
31
|
+
system = "system"
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Options for identifying and categorizing performance metrics on pipelines.
|
|
35
|
+
*/
|
|
36
|
+
type PipelineMetricOptions = {
|
|
37
|
+
/** Display name for the pipeline in performance metrics. */pipelineName: string; /** Category assigned to pipeline-level metric entries. */
|
|
38
|
+
pipelineCategory: PipelineCategoryName; /** Category assigned to per-middleware metric entries within this pipeline. */
|
|
39
|
+
middlewareCategory: PipelineCategoryName;
|
|
40
|
+
};
|
|
16
41
|
/**
|
|
17
42
|
* Creates pipeline instances for various contexts.
|
|
18
43
|
* Abstracts pipeline creation to support different implementations.
|
|
@@ -22,10 +47,10 @@ interface IPipelineFactory {
|
|
|
22
47
|
/**
|
|
23
48
|
* Creates a new pipeline for the specified context type.
|
|
24
49
|
* @template TContext - The context type for the pipeline. Must extend IPipelineContext.
|
|
25
|
-
* @param
|
|
50
|
+
* @param options - Optional performance metric options (name, category) for the pipeline.
|
|
26
51
|
* @returns A new pipeline instance ready for middleware registration.
|
|
27
52
|
*/
|
|
28
|
-
createPipeline<TContext extends IPipelineContext>(
|
|
53
|
+
createPipeline<TContext extends IPipelineContext>(options?: PipelineMetricOptions): IPipeline<TContext>;
|
|
29
54
|
}
|
|
30
55
|
//#endregion
|
|
31
56
|
//#region src/factories/runtime-factory.d.ts
|
|
@@ -60,10 +85,11 @@ interface ISystemsFactory {
|
|
|
60
85
|
/**
|
|
61
86
|
* Creates a new builder for constructing a systems module.
|
|
62
87
|
* @template TEntity - The entity type for which systems are being built.
|
|
88
|
+
* @param name - The System Builder's name.
|
|
63
89
|
* @returns A new systems module builder instance.
|
|
64
90
|
*/
|
|
65
|
-
createSystemsModuleBuilder<TEntity extends IEntity>(): ISystemsModuleBuilder<TEntity>;
|
|
91
|
+
createSystemsModuleBuilder<TEntity extends IEntity>(name: string): ISystemsModuleBuilder<TEntity>;
|
|
66
92
|
}
|
|
67
93
|
//#endregion
|
|
68
|
-
export { IContextFactory, IPipelineFactory, IRuntimeFactory, ISystemsFactory };
|
|
94
|
+
export { IContextFactory, IPipelineFactory, IRuntimeFactory, ISystemsFactory, PipelineCategory, PipelineCategoryName, PipelineMetricOptions };
|
|
69
95
|
//# sourceMappingURL=index.d.cts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as IEntity } from "../identity-component-
|
|
2
|
-
import { l as IPipelineContext, o as IPipeline } from "../index-
|
|
3
|
-
import { n as ISystemsRuntimeContext, o as ISystemsModuleBuilder, u as ISystemContext } from "../index-
|
|
1
|
+
import { a as IEntity } from "../identity-component-CgzvgBVh.mjs";
|
|
2
|
+
import { l as IPipelineContext, o as IPipeline } from "../index-CyoGuBNw.mjs";
|
|
3
|
+
import { n as ISystemsRuntimeContext, o as ISystemsModuleBuilder, u as ISystemContext } from "../index-ei6_lV4I.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/factories/context-factory.d.ts
|
|
6
6
|
interface IContextFactory {
|
|
@@ -13,6 +13,31 @@ interface IContextFactory {
|
|
|
13
13
|
}
|
|
14
14
|
//#endregion
|
|
15
15
|
//#region src/factories/pipeline-factory.d.ts
|
|
16
|
+
/**
|
|
17
|
+
* Category identifier for grouping performance metrics.
|
|
18
|
+
* Typed as string to allow extension beyond the built-in {@link PipelineCategory} values.
|
|
19
|
+
*/
|
|
20
|
+
type PipelineCategoryName = string;
|
|
21
|
+
/**
|
|
22
|
+
* Built-in metric categories for classifying pipeline and middleware performance entries.
|
|
23
|
+
*
|
|
24
|
+
* - `module` — System module pipelines (initialize, update, render, sync phases).
|
|
25
|
+
* - `runtime` — Runtime orchestration pipeline and its middleware.
|
|
26
|
+
* - `system` — Individual system middleware within a module pipeline.
|
|
27
|
+
*/
|
|
28
|
+
declare enum PipelineCategory {
|
|
29
|
+
module = "module",
|
|
30
|
+
runtime = "runtime",
|
|
31
|
+
system = "system"
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Options for identifying and categorizing performance metrics on pipelines.
|
|
35
|
+
*/
|
|
36
|
+
type PipelineMetricOptions = {
|
|
37
|
+
/** Display name for the pipeline in performance metrics. */pipelineName: string; /** Category assigned to pipeline-level metric entries. */
|
|
38
|
+
pipelineCategory: PipelineCategoryName; /** Category assigned to per-middleware metric entries within this pipeline. */
|
|
39
|
+
middlewareCategory: PipelineCategoryName;
|
|
40
|
+
};
|
|
16
41
|
/**
|
|
17
42
|
* Creates pipeline instances for various contexts.
|
|
18
43
|
* Abstracts pipeline creation to support different implementations.
|
|
@@ -22,10 +47,10 @@ interface IPipelineFactory {
|
|
|
22
47
|
/**
|
|
23
48
|
* Creates a new pipeline for the specified context type.
|
|
24
49
|
* @template TContext - The context type for the pipeline. Must extend IPipelineContext.
|
|
25
|
-
* @param
|
|
50
|
+
* @param options - Optional performance metric options (name, category) for the pipeline.
|
|
26
51
|
* @returns A new pipeline instance ready for middleware registration.
|
|
27
52
|
*/
|
|
28
|
-
createPipeline<TContext extends IPipelineContext>(
|
|
53
|
+
createPipeline<TContext extends IPipelineContext>(options?: PipelineMetricOptions): IPipeline<TContext>;
|
|
29
54
|
}
|
|
30
55
|
//#endregion
|
|
31
56
|
//#region src/factories/runtime-factory.d.ts
|
|
@@ -60,10 +85,11 @@ interface ISystemsFactory {
|
|
|
60
85
|
/**
|
|
61
86
|
* Creates a new builder for constructing a systems module.
|
|
62
87
|
* @template TEntity - The entity type for which systems are being built.
|
|
88
|
+
* @param name - The System Builder's name.
|
|
63
89
|
* @returns A new systems module builder instance.
|
|
64
90
|
*/
|
|
65
|
-
createSystemsModuleBuilder<TEntity extends IEntity>(): ISystemsModuleBuilder<TEntity>;
|
|
91
|
+
createSystemsModuleBuilder<TEntity extends IEntity>(name: string): ISystemsModuleBuilder<TEntity>;
|
|
66
92
|
}
|
|
67
93
|
//#endregion
|
|
68
|
-
export { IContextFactory, IPipelineFactory, IRuntimeFactory, ISystemsFactory };
|
|
94
|
+
export { IContextFactory, IPipelineFactory, IRuntimeFactory, ISystemsFactory, PipelineCategory, PipelineCategoryName, PipelineMetricOptions };
|
|
69
95
|
//# sourceMappingURL=index.d.mts.map
|
package/dist/factories/index.mjs
CHANGED
|
@@ -1 +1,18 @@
|
|
|
1
|
-
|
|
1
|
+
//#region src/factories/pipeline-factory.ts
|
|
2
|
+
/**
|
|
3
|
+
* Built-in metric categories for classifying pipeline and middleware performance entries.
|
|
4
|
+
*
|
|
5
|
+
* - `module` — System module pipelines (initialize, update, render, sync phases).
|
|
6
|
+
* - `runtime` — Runtime orchestration pipeline and its middleware.
|
|
7
|
+
* - `system` — Individual system middleware within a module pipeline.
|
|
8
|
+
*/
|
|
9
|
+
let PipelineCategory = /* @__PURE__ */ function(PipelineCategory) {
|
|
10
|
+
PipelineCategory["module"] = "module";
|
|
11
|
+
PipelineCategory["runtime"] = "runtime";
|
|
12
|
+
PipelineCategory["system"] = "system";
|
|
13
|
+
return PipelineCategory;
|
|
14
|
+
}({});
|
|
15
|
+
|
|
16
|
+
//#endregion
|
|
17
|
+
export { PipelineCategory };
|
|
18
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../../src/factories/pipeline-factory.ts"],"sourcesContent":["import { IPipelineContext } from '../pipelines';\nimport { IPipeline } from '../pipelines/pipeline';\n\n/**\n * Category identifier for grouping performance metrics.\n * Typed as string to allow extension beyond the built-in {@link PipelineCategory} values.\n */\nexport type PipelineCategoryName = string;\n\n/**\n * Built-in metric categories for classifying pipeline and middleware performance entries.\n *\n * - `module` — System module pipelines (initialize, update, render, sync phases).\n * - `runtime` — Runtime orchestration pipeline and its middleware.\n * - `system` — Individual system middleware within a module pipeline.\n */\nexport enum PipelineCategory {\n module = 'module',\n runtime = 'runtime',\n system = 'system'\n}\n\n/**\n * Options for identifying and categorizing performance metrics on pipelines.\n */\nexport type PipelineMetricOptions = {\n /** Display name for the pipeline in performance metrics. */\n pipelineName: string;\n /** Category assigned to pipeline-level metric entries. */\n pipelineCategory: PipelineCategoryName;\n /** Category assigned to per-middleware metric entries within this pipeline. */\n middlewareCategory: PipelineCategoryName;\n};\n\n/**\n * Creates pipeline instances for various contexts.\n * Abstracts pipeline creation to support different implementations.\n * Used by the system to instantiate pipelines without coupling to specific implementations.\n */\nexport interface IPipelineFactory {\n /**\n * Creates a new pipeline for the specified context type.\n * @template TContext - The context type for the pipeline. Must extend IPipelineContext.\n * @param options - Optional performance metric options (name, category) for the pipeline.\n * @returns A new pipeline instance ready for middleware registration.\n */\n createPipeline<TContext extends IPipelineContext>(\n options?: PipelineMetricOptions\n ): IPipeline<TContext>;\n}\n"],"mappings":";;;;;;;;AAgBA,IAAY,8DAAL;AACL;AACA;AACA"}
|
|
@@ -132,6 +132,27 @@ interface IEntityProxyRepository {
|
|
|
132
132
|
* @returns A readonly map of entity type UIDs to an array of their proxies.
|
|
133
133
|
*/
|
|
134
134
|
getAll(source: IEntityProxy): ReadonlyMap<EntityTypeUid, Readonly<IEntityProxy[]>>;
|
|
135
|
+
/**
|
|
136
|
+
* Registers an entity as a scoped proxy, making it resolvable by any entity in the same scope.
|
|
137
|
+
* Only entity types marked as scopeRoot or scopedProxy should be registered.
|
|
138
|
+
* @param entity - The entity to register as a scoped proxy.
|
|
139
|
+
* @param scopeId - The scope in which to register.
|
|
140
|
+
*/
|
|
141
|
+
setScopedProxy(entity: IEntityProxy, scopeId: string): void;
|
|
142
|
+
/**
|
|
143
|
+
* Retrieves a scoped proxy by scope ID and entity type.
|
|
144
|
+
* @param scopeId - The scope to look up.
|
|
145
|
+
* @param entityType - The entity type to resolve.
|
|
146
|
+
* @returns The scoped proxy, or null if none exists.
|
|
147
|
+
*/
|
|
148
|
+
getScopedProxy(scopeId: string, entityType: EntityTypeUid): IEntityProxy | null;
|
|
149
|
+
/**
|
|
150
|
+
* Removes an entity from the scoped proxy index.
|
|
151
|
+
* Called during entity cleanup to unregister from scope resolution.
|
|
152
|
+
* @param entity - The entity to remove.
|
|
153
|
+
* @param scopeId - The scope to remove from.
|
|
154
|
+
*/
|
|
155
|
+
removeScopedProxy(entity: IEntityProxy, scopeId: string): void;
|
|
135
156
|
}
|
|
136
157
|
//#endregion
|
|
137
158
|
//#region src/entities/entity.d.ts
|
|
@@ -147,32 +168,24 @@ type EntityTypeUid = string | number;
|
|
|
147
168
|
type EntityUid = string | number;
|
|
148
169
|
/**
|
|
149
170
|
* Represents the core identification and initialization data for an entity.
|
|
150
|
-
*
|
|
151
|
-
* Models are immutable and define the entity's initial structure.
|
|
171
|
+
* @template TProxyTypes - A readonly array of entity type IDs that must be provided as proxies when creating an entity.
|
|
152
172
|
*/
|
|
153
|
-
interface IEntityModel {
|
|
173
|
+
interface IEntityModel<TProxyTypes extends readonly EntityTypeUid[] = undefined> {
|
|
154
174
|
/**
|
|
155
175
|
* The unique identifier for this entity instance.
|
|
156
176
|
*/
|
|
157
177
|
readonly uid: EntityUid;
|
|
158
178
|
/**
|
|
159
|
-
*
|
|
160
|
-
*
|
|
179
|
+
* The scope this entity belongs to.
|
|
180
|
+
* Automatically set by the framework — scopeRoot entities generate a UUID,
|
|
181
|
+
* child entities inherit from their parent via addEntity().
|
|
161
182
|
*/
|
|
162
|
-
readonly
|
|
163
|
-
}
|
|
164
|
-
/**
|
|
165
|
-
* Entity model with enforced required proxy relationships.
|
|
166
|
-
* Used when an entity requires specific relationships to be present from creation.
|
|
167
|
-
*
|
|
168
|
-
* @template TProxyTypes - A readonly array of entity type IDs that must be provided as proxies.
|
|
169
|
-
*/
|
|
170
|
-
interface IEntityModelWithRequiredProxies<TProxyTypes extends readonly EntityTypeUid[]> extends IEntityModel {
|
|
183
|
+
readonly scopeId?: string;
|
|
171
184
|
/**
|
|
172
|
-
*
|
|
173
|
-
*
|
|
185
|
+
* Optional array of proxies (references) to other entities.
|
|
186
|
+
* Used to establish relationships at entity creation time.
|
|
174
187
|
*/
|
|
175
|
-
readonly proxies
|
|
188
|
+
readonly proxies?: RequiredProxies<TProxyTypes>;
|
|
176
189
|
}
|
|
177
190
|
/**
|
|
178
191
|
* The core entity interface representing a composition of components and relationships.
|
|
@@ -237,5 +250,5 @@ interface IdentityComponent<TModel extends IEntityModel> extends IComponent {
|
|
|
237
250
|
readonly lastUpdated?: Date;
|
|
238
251
|
}
|
|
239
252
|
//#endregion
|
|
240
|
-
export { IEntity as a,
|
|
241
|
-
//# sourceMappingURL=identity-component-
|
|
253
|
+
export { IEntity as a, IEntityProxy as c, TypedEntityProxy as d, ComponentTypeUid as f, EntityUid as i, IEntityProxyRepository as l, IdentityComponent as n, IEntityModel as o, IComponent as p, EntityTypeUid as r, EntityProxy as s, BasicComponentType as t, RequiredProxies as u };
|
|
254
|
+
//# sourceMappingURL=identity-component-CgzvgBVh.d.mts.map
|
|
@@ -132,6 +132,27 @@ interface IEntityProxyRepository {
|
|
|
132
132
|
* @returns A readonly map of entity type UIDs to an array of their proxies.
|
|
133
133
|
*/
|
|
134
134
|
getAll(source: IEntityProxy): ReadonlyMap<EntityTypeUid, Readonly<IEntityProxy[]>>;
|
|
135
|
+
/**
|
|
136
|
+
* Registers an entity as a scoped proxy, making it resolvable by any entity in the same scope.
|
|
137
|
+
* Only entity types marked as scopeRoot or scopedProxy should be registered.
|
|
138
|
+
* @param entity - The entity to register as a scoped proxy.
|
|
139
|
+
* @param scopeId - The scope in which to register.
|
|
140
|
+
*/
|
|
141
|
+
setScopedProxy(entity: IEntityProxy, scopeId: string): void;
|
|
142
|
+
/**
|
|
143
|
+
* Retrieves a scoped proxy by scope ID and entity type.
|
|
144
|
+
* @param scopeId - The scope to look up.
|
|
145
|
+
* @param entityType - The entity type to resolve.
|
|
146
|
+
* @returns The scoped proxy, or null if none exists.
|
|
147
|
+
*/
|
|
148
|
+
getScopedProxy(scopeId: string, entityType: EntityTypeUid): IEntityProxy | null;
|
|
149
|
+
/**
|
|
150
|
+
* Removes an entity from the scoped proxy index.
|
|
151
|
+
* Called during entity cleanup to unregister from scope resolution.
|
|
152
|
+
* @param entity - The entity to remove.
|
|
153
|
+
* @param scopeId - The scope to remove from.
|
|
154
|
+
*/
|
|
155
|
+
removeScopedProxy(entity: IEntityProxy, scopeId: string): void;
|
|
135
156
|
}
|
|
136
157
|
//#endregion
|
|
137
158
|
//#region src/entities/entity.d.ts
|
|
@@ -147,32 +168,24 @@ type EntityTypeUid = string | number;
|
|
|
147
168
|
type EntityUid = string | number;
|
|
148
169
|
/**
|
|
149
170
|
* Represents the core identification and initialization data for an entity.
|
|
150
|
-
*
|
|
151
|
-
* Models are immutable and define the entity's initial structure.
|
|
171
|
+
* @template TProxyTypes - A readonly array of entity type IDs that must be provided as proxies when creating an entity.
|
|
152
172
|
*/
|
|
153
|
-
interface IEntityModel {
|
|
173
|
+
interface IEntityModel<TProxyTypes extends readonly EntityTypeUid[] = undefined> {
|
|
154
174
|
/**
|
|
155
175
|
* The unique identifier for this entity instance.
|
|
156
176
|
*/
|
|
157
177
|
readonly uid: EntityUid;
|
|
158
178
|
/**
|
|
159
|
-
*
|
|
160
|
-
*
|
|
179
|
+
* The scope this entity belongs to.
|
|
180
|
+
* Automatically set by the framework — scopeRoot entities generate a UUID,
|
|
181
|
+
* child entities inherit from their parent via addEntity().
|
|
161
182
|
*/
|
|
162
|
-
readonly
|
|
163
|
-
}
|
|
164
|
-
/**
|
|
165
|
-
* Entity model with enforced required proxy relationships.
|
|
166
|
-
* Used when an entity requires specific relationships to be present from creation.
|
|
167
|
-
*
|
|
168
|
-
* @template TProxyTypes - A readonly array of entity type IDs that must be provided as proxies.
|
|
169
|
-
*/
|
|
170
|
-
interface IEntityModelWithRequiredProxies<TProxyTypes extends readonly EntityTypeUid[]> extends IEntityModel {
|
|
183
|
+
readonly scopeId?: string;
|
|
171
184
|
/**
|
|
172
|
-
*
|
|
173
|
-
*
|
|
185
|
+
* Optional array of proxies (references) to other entities.
|
|
186
|
+
* Used to establish relationships at entity creation time.
|
|
174
187
|
*/
|
|
175
|
-
readonly proxies
|
|
188
|
+
readonly proxies?: RequiredProxies<TProxyTypes>;
|
|
176
189
|
}
|
|
177
190
|
/**
|
|
178
191
|
* The core entity interface representing a composition of components and relationships.
|
|
@@ -237,5 +250,5 @@ interface IdentityComponent<TModel extends IEntityModel> extends IComponent {
|
|
|
237
250
|
readonly lastUpdated?: Date;
|
|
238
251
|
}
|
|
239
252
|
//#endregion
|
|
240
|
-
export { IEntity as a,
|
|
241
|
-
//# sourceMappingURL=identity-component-
|
|
253
|
+
export { IEntity as a, IEntityProxy as c, TypedEntityProxy as d, ComponentTypeUid as f, EntityUid as i, IEntityProxyRepository as l, IdentityComponent as n, IEntityModel as o, IComponent as p, EntityTypeUid as r, EntityProxy as s, BasicComponentType as t, RequiredProxies as u };
|
|
254
|
+
//# sourceMappingURL=identity-component-uU0yDR-y.d.cts.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as IEntity, c as
|
|
1
|
+
import { a as IEntity, c as IEntityProxy, l as IEntityProxyRepository, o as IEntityModel, r as EntityTypeUid, s as EntityProxy } from "./identity-component-uU0yDR-y.cjs";
|
|
2
2
|
import { n as Immutable } from "./types-DLOd2zXO.cjs";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { c as IMiddleware, l as IPipelineContext, o as IPipeline } from "./index-
|
|
3
|
+
import { a as IEntityUpdate, d as EntityEventUid, f as IEntityEvent, h as IEventData, s as IEntitySnapshot, u as EntityEventSubscriptionOptions } from "./index-CY3I0Xdn.cjs";
|
|
4
|
+
import { a as ILogger, c as IJsonSerializer, r as PerformanceTimeEntry } from "./index-CmTRwW4W.cjs";
|
|
5
|
+
import { c as IMiddleware, l as IPipelineContext, o as IPipeline } from "./index-cF9FviwN.cjs";
|
|
6
6
|
|
|
7
7
|
//#region src/systems/pipeline/system-context-events.d.ts
|
|
8
8
|
/**
|
|
@@ -50,9 +50,9 @@ interface ISystemContextEvents {
|
|
|
50
50
|
* Subscribes to events of a specific type.
|
|
51
51
|
* The entity will be notified of matching events through the update system.
|
|
52
52
|
* @param uid - The event type to listen for.
|
|
53
|
-
* @param
|
|
53
|
+
* @param options - Optional subscription options (filter, scopeId).
|
|
54
54
|
*/
|
|
55
|
-
subscribeTo
|
|
55
|
+
subscribeTo(uid: EntityEventUid, options?: EntityEventSubscriptionOptions): void;
|
|
56
56
|
/**
|
|
57
57
|
* Stops listening for events of a specific type.
|
|
58
58
|
* @param uid - The event type to stop listening for.
|
|
@@ -152,7 +152,7 @@ interface ISystemContextRepository {
|
|
|
152
152
|
* @param proxy - Reference to the entity.
|
|
153
153
|
* @returns The immutable entity instance.
|
|
154
154
|
*/
|
|
155
|
-
getEntity<TEntity extends IEntity>(proxy: EntityProxy<TEntity>): Immutable<TEntity>;
|
|
155
|
+
getEntity<TEntity extends IEntity>(proxy: EntityProxy<TEntity> | EntityTypeUid): Immutable<TEntity>;
|
|
156
156
|
/**
|
|
157
157
|
* Queues an entity for update.
|
|
158
158
|
* Triggers the update pipeline for the entity.
|
|
@@ -322,6 +322,19 @@ interface ISystemsModule<TEntity extends IEntity> {
|
|
|
322
322
|
* @returns The initialized entity.
|
|
323
323
|
*/
|
|
324
324
|
readonly initEntity?: (model: IEntityModel) => TEntity;
|
|
325
|
+
/**
|
|
326
|
+
* If true, this entity type creates a new scope boundary when initialized.
|
|
327
|
+
* A new scope ID is auto-generated. All child entities inherit this scope.
|
|
328
|
+
* Typically used for root entities like Engine.
|
|
329
|
+
*/
|
|
330
|
+
readonly scopeRoot?: boolean;
|
|
331
|
+
/**
|
|
332
|
+
* If true, this entity type registers itself as a scoped proxy when initialized.
|
|
333
|
+
* It joins the inherited scope and becomes resolvable via `context.proxies.get()`
|
|
334
|
+
* by any entity in the same scope. Throws if no scope exists.
|
|
335
|
+
* Typically used for scope-wide entities like Scene, Input, AssetsManager.
|
|
336
|
+
*/
|
|
337
|
+
readonly scopedProxy?: boolean;
|
|
325
338
|
}
|
|
326
339
|
//#endregion
|
|
327
340
|
//#region src/systems/pipeline/system-middleware.d.ts
|
|
@@ -343,6 +356,10 @@ type ISystemMiddleware<TEntity extends IEntity> = IMiddleware<ISystemContext<TEn
|
|
|
343
356
|
* @template TEntity - The entity type for which systems are being added.
|
|
344
357
|
*/
|
|
345
358
|
interface ISystemsModuleBuilder<TEntity extends IEntity> {
|
|
359
|
+
/**
|
|
360
|
+
* The Module Builder's name.
|
|
361
|
+
*/
|
|
362
|
+
readonly name: string;
|
|
346
363
|
/**
|
|
347
364
|
* The pipelines being built.
|
|
348
365
|
* Accessible during and after construction.
|
|
@@ -365,6 +382,19 @@ interface ISystemsModuleBuilder<TEntity extends IEntity> {
|
|
|
365
382
|
* @returns This builder for method chaining.
|
|
366
383
|
*/
|
|
367
384
|
addModule<TModuleEntity extends TEntity>(module: ISystemsModule<TModuleEntity>, systemType?: SystemType): this;
|
|
385
|
+
/**
|
|
386
|
+
* Marks this entity type as a scope root.
|
|
387
|
+
* When initialized, a new scope is auto-generated and all child entities inherit it.
|
|
388
|
+
* @returns This builder for method chaining.
|
|
389
|
+
*/
|
|
390
|
+
setScopeRoot(): this;
|
|
391
|
+
/**
|
|
392
|
+
* Marks this entity type as a scoped proxy.
|
|
393
|
+
* When initialized, the entity registers itself in the inherited scope,
|
|
394
|
+
* making it resolvable via `context.proxies.get()` by any entity in the same scope.
|
|
395
|
+
* @returns This builder for method chaining.
|
|
396
|
+
*/
|
|
397
|
+
setScopedProxy(): this;
|
|
368
398
|
}
|
|
369
399
|
//#endregion
|
|
370
400
|
//#region src/systems/module/systems-module-repository.d.ts
|
|
@@ -469,6 +499,10 @@ interface ISystemsRuntimeContext<TEntity extends IEntity> extends IPipelineConte
|
|
|
469
499
|
* The system context for the current entity execution.
|
|
470
500
|
*/
|
|
471
501
|
readonly systemContext: ISystemContext<TEntity>;
|
|
502
|
+
/**
|
|
503
|
+
* The proxy repository for managing entity proxy relationships and scopes.
|
|
504
|
+
*/
|
|
505
|
+
readonly proxyRepository: IEntityProxyRepository;
|
|
472
506
|
}
|
|
473
507
|
//#endregion
|
|
474
508
|
//#region src/systems/runtime/systems-runtime-middleware.d.ts
|
|
@@ -482,4 +516,4 @@ interface ISystemsRuntimeContext<TEntity extends IEntity> extends IPipelineConte
|
|
|
482
516
|
type ISystemsRuntimeMiddleware<TEntity extends IEntity> = IMiddleware<ISystemsRuntimeContext<TEntity>>;
|
|
483
517
|
//#endregion
|
|
484
518
|
export { ISystemsModuleRepository as a, ISystemsModule as c, ISystemContextSnapshot as d, ISystemContextScheduler as f, ISystemContextEvents as h, ISystemContextEntity as i, SystemType as l, ISystemContextProxies as m, ISystemsRuntimeContext as n, ISystemsModuleBuilder as o, ISystemContextRepository as p, ISystemsRuntime as r, ISystemMiddleware as s, ISystemsRuntimeMiddleware as t, ISystemContext as u };
|
|
485
|
-
//# sourceMappingURL=index-
|
|
519
|
+
//# sourceMappingURL=index-CR3yK5HE.d.cts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as IEntity,
|
|
1
|
+
import { a as IEntity, c as IEntityProxy, n as IdentityComponent, o as IEntityModel, p as IComponent, r as EntityTypeUid } from "./identity-component-CgzvgBVh.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/entities/entity-events.d.ts
|
|
4
4
|
/**
|
|
@@ -39,6 +39,25 @@ interface IEntityEvent<TEventData extends IEventData> {
|
|
|
39
39
|
* The event payload containing type-specific data.
|
|
40
40
|
*/
|
|
41
41
|
data: TEventData;
|
|
42
|
+
/**
|
|
43
|
+
* The scope of the dispatching entity.
|
|
44
|
+
* When set, the event is only delivered to subscribers in the same scope.
|
|
45
|
+
*/
|
|
46
|
+
scopeId?: string;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Options for subscribing to an entity event.
|
|
50
|
+
*/
|
|
51
|
+
interface EntityEventSubscriptionOptions {
|
|
52
|
+
/**
|
|
53
|
+
* Optional function to determine which specific events are processed.
|
|
54
|
+
*/
|
|
55
|
+
filter?: EntityEventSubscriptionFilter;
|
|
56
|
+
/**
|
|
57
|
+
* The scope of the subscribing entity.
|
|
58
|
+
* When set, the subscriber only receives events from the same scope.
|
|
59
|
+
*/
|
|
60
|
+
scopeId?: string;
|
|
42
61
|
}
|
|
43
62
|
/**
|
|
44
63
|
* Manages subscriptions and dispatching for entity events.
|
|
@@ -51,9 +70,9 @@ interface IEntityEventsManager {
|
|
|
51
70
|
* The entity will be notified when events of that type are dispatched.
|
|
52
71
|
* @param uid - The event type to subscribe to.
|
|
53
72
|
* @param entity - The entity registering for this event type.
|
|
54
|
-
* @param
|
|
73
|
+
* @param options - Optional subscription options (filter, scopeId).
|
|
55
74
|
*/
|
|
56
|
-
subscribe(uid: EntityEventUid, entity: IEntityProxy,
|
|
75
|
+
subscribe(uid: EntityEventUid, entity: IEntityProxy, options?: EntityEventSubscriptionOptions): void;
|
|
57
76
|
/**
|
|
58
77
|
* Unsubscribes an entity from a specific event type.
|
|
59
78
|
* The entity will no longer receive notifications for this event type.
|
|
@@ -280,11 +299,22 @@ interface IEntityRepository {
|
|
|
280
299
|
}
|
|
281
300
|
//#endregion
|
|
282
301
|
//#region src/entities/entity-scheduler.d.ts
|
|
302
|
+
/**
|
|
303
|
+
* Describes a scheduled entity update, including the target entity and optional interval.
|
|
304
|
+
*/
|
|
305
|
+
type EntitySchedule = {
|
|
306
|
+
readonly proxy: IEntityProxy;
|
|
307
|
+
readonly intervalMs?: number;
|
|
308
|
+
};
|
|
283
309
|
/**
|
|
284
310
|
* Manages time-based scheduling of entity updates.
|
|
285
311
|
* Entities are registered with intervals and receive updates at the specified cadence, or on the next frame (engine-dependent).
|
|
286
312
|
*/
|
|
287
313
|
interface IEntityScheduler {
|
|
314
|
+
/**
|
|
315
|
+
* Returns all currently scheduled entities with their configuration.
|
|
316
|
+
*/
|
|
317
|
+
readonly schedules: ReadonlyArray<EntitySchedule>;
|
|
288
318
|
/**
|
|
289
319
|
* Registers an entity for periodic updates.
|
|
290
320
|
* @param entityProxy - The entity to schedule.
|
|
@@ -305,5 +335,5 @@ interface IEntityScheduler {
|
|
|
305
335
|
has(entityProxy: IEntityProxy): boolean;
|
|
306
336
|
}
|
|
307
337
|
//#endregion
|
|
308
|
-
export {
|
|
309
|
-
//# sourceMappingURL=index-
|
|
338
|
+
export { IEntityUpdate as a, IEntitySnapshotProvider as c, EntityEventUid as d, IEntityEvent as f, IEventData as h, EntityUpdateType as i, EntityEventSubscriptionFilter as l, IEntityEventsManager as m, IEntityScheduler as n, IEntityUpdateQueue as o, IEntityEventsDispatcher as p, IEntityRepository as r, IEntitySnapshot as s, EntitySchedule as t, EntityEventSubscriptionOptions as u };
|
|
339
|
+
//# sourceMappingURL=index-CT8ci9Cn.d.mts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as IEntity,
|
|
1
|
+
import { a as IEntity, c as IEntityProxy, n as IdentityComponent, o as IEntityModel, p as IComponent, r as EntityTypeUid } from "./identity-component-uU0yDR-y.cjs";
|
|
2
2
|
|
|
3
3
|
//#region src/entities/entity-events.d.ts
|
|
4
4
|
/**
|
|
@@ -39,6 +39,25 @@ interface IEntityEvent<TEventData extends IEventData> {
|
|
|
39
39
|
* The event payload containing type-specific data.
|
|
40
40
|
*/
|
|
41
41
|
data: TEventData;
|
|
42
|
+
/**
|
|
43
|
+
* The scope of the dispatching entity.
|
|
44
|
+
* When set, the event is only delivered to subscribers in the same scope.
|
|
45
|
+
*/
|
|
46
|
+
scopeId?: string;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Options for subscribing to an entity event.
|
|
50
|
+
*/
|
|
51
|
+
interface EntityEventSubscriptionOptions {
|
|
52
|
+
/**
|
|
53
|
+
* Optional function to determine which specific events are processed.
|
|
54
|
+
*/
|
|
55
|
+
filter?: EntityEventSubscriptionFilter;
|
|
56
|
+
/**
|
|
57
|
+
* The scope of the subscribing entity.
|
|
58
|
+
* When set, the subscriber only receives events from the same scope.
|
|
59
|
+
*/
|
|
60
|
+
scopeId?: string;
|
|
42
61
|
}
|
|
43
62
|
/**
|
|
44
63
|
* Manages subscriptions and dispatching for entity events.
|
|
@@ -51,9 +70,9 @@ interface IEntityEventsManager {
|
|
|
51
70
|
* The entity will be notified when events of that type are dispatched.
|
|
52
71
|
* @param uid - The event type to subscribe to.
|
|
53
72
|
* @param entity - The entity registering for this event type.
|
|
54
|
-
* @param
|
|
73
|
+
* @param options - Optional subscription options (filter, scopeId).
|
|
55
74
|
*/
|
|
56
|
-
subscribe(uid: EntityEventUid, entity: IEntityProxy,
|
|
75
|
+
subscribe(uid: EntityEventUid, entity: IEntityProxy, options?: EntityEventSubscriptionOptions): void;
|
|
57
76
|
/**
|
|
58
77
|
* Unsubscribes an entity from a specific event type.
|
|
59
78
|
* The entity will no longer receive notifications for this event type.
|
|
@@ -280,11 +299,22 @@ interface IEntityRepository {
|
|
|
280
299
|
}
|
|
281
300
|
//#endregion
|
|
282
301
|
//#region src/entities/entity-scheduler.d.ts
|
|
302
|
+
/**
|
|
303
|
+
* Describes a scheduled entity update, including the target entity and optional interval.
|
|
304
|
+
*/
|
|
305
|
+
type EntitySchedule = {
|
|
306
|
+
readonly proxy: IEntityProxy;
|
|
307
|
+
readonly intervalMs?: number;
|
|
308
|
+
};
|
|
283
309
|
/**
|
|
284
310
|
* Manages time-based scheduling of entity updates.
|
|
285
311
|
* Entities are registered with intervals and receive updates at the specified cadence, or on the next frame (engine-dependent).
|
|
286
312
|
*/
|
|
287
313
|
interface IEntityScheduler {
|
|
314
|
+
/**
|
|
315
|
+
* Returns all currently scheduled entities with their configuration.
|
|
316
|
+
*/
|
|
317
|
+
readonly schedules: ReadonlyArray<EntitySchedule>;
|
|
288
318
|
/**
|
|
289
319
|
* Registers an entity for periodic updates.
|
|
290
320
|
* @param entityProxy - The entity to schedule.
|
|
@@ -305,5 +335,5 @@ interface IEntityScheduler {
|
|
|
305
335
|
has(entityProxy: IEntityProxy): boolean;
|
|
306
336
|
}
|
|
307
337
|
//#endregion
|
|
308
|
-
export {
|
|
309
|
-
//# sourceMappingURL=index-
|
|
338
|
+
export { IEntityUpdate as a, IEntitySnapshotProvider as c, EntityEventUid as d, IEntityEvent as f, IEventData as h, EntityUpdateType as i, EntityEventSubscriptionFilter as l, IEntityEventsManager as m, IEntityScheduler as n, IEntityUpdateQueue as o, IEntityEventsDispatcher as p, IEntityRepository as r, IEntitySnapshot as s, EntitySchedule as t, EntityEventSubscriptionOptions as u };
|
|
339
|
+
//# sourceMappingURL=index-CY3I0Xdn.d.cts.map
|
|
@@ -102,6 +102,14 @@ interface ILoggerOptions {
|
|
|
102
102
|
* Unique identifier for a timer instance.
|
|
103
103
|
*/
|
|
104
104
|
type PerformanceTimerUid = number;
|
|
105
|
+
/**
|
|
106
|
+
* Options for identifying and categorizing performance metrics.
|
|
107
|
+
* Used by pipeline factories and performance decorators.
|
|
108
|
+
*/
|
|
109
|
+
type PerformanceMetricOptions = {
|
|
110
|
+
name?: string;
|
|
111
|
+
category?: string;
|
|
112
|
+
};
|
|
105
113
|
/**
|
|
106
114
|
* Record of a completed timer measurement.
|
|
107
115
|
* Captures timing information for performance analysis and profiling.
|
|
@@ -111,6 +119,10 @@ interface PerformanceTimeEntry {
|
|
|
111
119
|
* The name identifying this timer.
|
|
112
120
|
*/
|
|
113
121
|
name: string;
|
|
122
|
+
/**
|
|
123
|
+
* The category of this metric (e.g. 'module', 'runtime', 'system').
|
|
124
|
+
*/
|
|
125
|
+
category?: string;
|
|
114
126
|
/**
|
|
115
127
|
* Timestamp in milliseconds when the timer started.
|
|
116
128
|
*/
|
|
@@ -133,9 +145,10 @@ interface IPerformanceTimer {
|
|
|
133
145
|
/**
|
|
134
146
|
* Starts a new timer.
|
|
135
147
|
* @param name - Label for this timer (used in results).
|
|
148
|
+
* @param category - Optional category for grouping metrics.
|
|
136
149
|
* @returns A unique identifier for this timer instance.
|
|
137
150
|
*/
|
|
138
|
-
startTimer(name: string): PerformanceTimerUid;
|
|
151
|
+
startTimer(name: string, category?: string): PerformanceTimerUid;
|
|
139
152
|
/**
|
|
140
153
|
* Stops a timer and returns the recorded metrics.
|
|
141
154
|
* @param timerUid - The timer identifier returned by startTimer.
|
|
@@ -144,5 +157,5 @@ interface IPerformanceTimer {
|
|
|
144
157
|
endTimer(timerUid: PerformanceTimerUid): PerformanceTimeEntry;
|
|
145
158
|
}
|
|
146
159
|
//#endregion
|
|
147
|
-
export {
|
|
148
|
-
//# sourceMappingURL=index-
|
|
160
|
+
export { ILogger as a, IJsonSerializer as c, PerformanceTimerUid as i, PerformanceMetricOptions as n, ILoggerOptions as o, PerformanceTimeEntry as r, LogLevel as s, IPerformanceTimer as t };
|
|
161
|
+
//# sourceMappingURL=index-CmTRwW4W.d.cts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as Immutable } from "./types-CnDtpKsY.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { r as PerformanceTimeEntry } from "./index-Iqc9jR5E.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/pipelines/pipeline-context.d.ts
|
|
5
5
|
/**
|
|
@@ -60,14 +60,14 @@ interface IMiddleware<TContext extends IPipelineContext> {
|
|
|
60
60
|
* Can read and modify the context to influence downstream middleware and results.
|
|
61
61
|
* @param context The pipeline context containing all relevant state.
|
|
62
62
|
*/
|
|
63
|
-
action(context: TContext): void
|
|
63
|
+
action(context: TContext): void | Promise<void>;
|
|
64
64
|
/**
|
|
65
65
|
* Optional cleanup function executed during pipeline teardown.
|
|
66
66
|
* Middlewares execute in reverse registration order during cleanup phase.
|
|
67
67
|
* Used to release resources, clear temporary state, and perform final operations.
|
|
68
68
|
* @param context The pipeline context (may be in modified state from action phases).
|
|
69
69
|
*/
|
|
70
|
-
cleanup?(context: TContext): void
|
|
70
|
+
cleanup?(context: TContext): void | Promise<void>;
|
|
71
71
|
}
|
|
72
72
|
//#endregion
|
|
73
73
|
//#region src/pipelines/middleware-runner.d.ts
|
|
@@ -85,14 +85,14 @@ interface IMiddlewareRunner<TContext extends IPipelineContext> {
|
|
|
85
85
|
* @param context The current pipeline context.
|
|
86
86
|
* @param middleware The middleware whose action should be executed.
|
|
87
87
|
*/
|
|
88
|
-
dispatch(context: TContext, middleware: IMiddleware<TContext>): void
|
|
88
|
+
dispatch(context: TContext, middleware: IMiddleware<TContext>): void | Promise<void>;
|
|
89
89
|
/**
|
|
90
90
|
* Decides how to execute a middleware's cleanup.
|
|
91
91
|
* Can add pre/post processing or error handling around cleanup operations.
|
|
92
92
|
* @param context The current pipeline context.
|
|
93
93
|
* @param middleware The middleware whose cleanup should be executed.
|
|
94
94
|
*/
|
|
95
|
-
cleanup(context: TContext, middleware: IMiddleware<TContext>): void
|
|
95
|
+
cleanup(context: TContext, middleware: IMiddleware<TContext>): void | Promise<void>;
|
|
96
96
|
}
|
|
97
97
|
//#endregion
|
|
98
98
|
//#region src/pipelines/pipeline.d.ts
|
|
@@ -130,7 +130,7 @@ interface IPipeline<TContext extends IPipelineContext> {
|
|
|
130
130
|
* Execution continues until all middleware complete or a middleware requests early termination.
|
|
131
131
|
* @param context - The context object passed to all middleware.
|
|
132
132
|
*/
|
|
133
|
-
dispatch(context: Partial<TContext>): void
|
|
133
|
+
dispatch(context: Partial<TContext>): void | Promise<void>;
|
|
134
134
|
/**
|
|
135
135
|
* Executes the cleanup phase with all registered middleware in reverse order.
|
|
136
136
|
* Allows middleware to perform resource cleanup and final operations.
|
|
@@ -138,7 +138,7 @@ interface IPipeline<TContext extends IPipelineContext> {
|
|
|
138
138
|
*
|
|
139
139
|
* @param context - The context object that will be passed to each middleware function.
|
|
140
140
|
*/
|
|
141
|
-
cleanup(context: Partial<TContext>): void
|
|
141
|
+
cleanup(context: Partial<TContext>): void | Promise<void>;
|
|
142
142
|
}
|
|
143
143
|
//#endregion
|
|
144
144
|
//#region src/pipelines/pipeline-nested.d.ts
|
|
@@ -209,7 +209,7 @@ interface IPipelineRunner<TContext extends IPipelineContext> {
|
|
|
209
209
|
* @param middleware - The ordered middleware array to execute.
|
|
210
210
|
* @param startIndex - Optional starting position in the middleware array (default: 0).
|
|
211
211
|
*/
|
|
212
|
-
dispatch(context: Partial<TContext>, middleware: IMiddleware<TContext>[], startIndex?: number): void
|
|
212
|
+
dispatch(context: Partial<TContext>, middleware: IMiddleware<TContext>[], startIndex?: number): void | Promise<void>;
|
|
213
213
|
/**
|
|
214
214
|
* Executes the cleanup phase of all middleware in reverse order.
|
|
215
215
|
* All middleware cleanup functions are called (if defined), regardless of errors.
|
|
@@ -217,8 +217,8 @@ interface IPipelineRunner<TContext extends IPipelineContext> {
|
|
|
217
217
|
* @param context - The context passed to each middleware cleanup.
|
|
218
218
|
* @param middleware - The ordered middleware array for cleanup (reversed during execution).
|
|
219
219
|
*/
|
|
220
|
-
cleanup(context: Partial<TContext>, middleware: IMiddleware<TContext>[]): void
|
|
220
|
+
cleanup(context: Partial<TContext>, middleware: IMiddleware<TContext>[]): void | Promise<void>;
|
|
221
221
|
}
|
|
222
222
|
//#endregion
|
|
223
223
|
export { IParentMiddleware as a, IMiddleware as c, IParentContext as i, IPipelineContext as l, INestedContext as n, IPipeline as o, INestedMiddleware as r, IMiddlewareRunner as s, IPipelineRunner as t, PipelineRuntime as u };
|
|
224
|
-
//# sourceMappingURL=index-
|
|
224
|
+
//# sourceMappingURL=index-CyoGuBNw.d.mts.map
|
|
@@ -102,6 +102,14 @@ interface ILoggerOptions {
|
|
|
102
102
|
* Unique identifier for a timer instance.
|
|
103
103
|
*/
|
|
104
104
|
type PerformanceTimerUid = number;
|
|
105
|
+
/**
|
|
106
|
+
* Options for identifying and categorizing performance metrics.
|
|
107
|
+
* Used by pipeline factories and performance decorators.
|
|
108
|
+
*/
|
|
109
|
+
type PerformanceMetricOptions = {
|
|
110
|
+
name?: string;
|
|
111
|
+
category?: string;
|
|
112
|
+
};
|
|
105
113
|
/**
|
|
106
114
|
* Record of a completed timer measurement.
|
|
107
115
|
* Captures timing information for performance analysis and profiling.
|
|
@@ -111,6 +119,10 @@ interface PerformanceTimeEntry {
|
|
|
111
119
|
* The name identifying this timer.
|
|
112
120
|
*/
|
|
113
121
|
name: string;
|
|
122
|
+
/**
|
|
123
|
+
* The category of this metric (e.g. 'module', 'runtime', 'system').
|
|
124
|
+
*/
|
|
125
|
+
category?: string;
|
|
114
126
|
/**
|
|
115
127
|
* Timestamp in milliseconds when the timer started.
|
|
116
128
|
*/
|
|
@@ -133,9 +145,10 @@ interface IPerformanceTimer {
|
|
|
133
145
|
/**
|
|
134
146
|
* Starts a new timer.
|
|
135
147
|
* @param name - Label for this timer (used in results).
|
|
148
|
+
* @param category - Optional category for grouping metrics.
|
|
136
149
|
* @returns A unique identifier for this timer instance.
|
|
137
150
|
*/
|
|
138
|
-
startTimer(name: string): PerformanceTimerUid;
|
|
151
|
+
startTimer(name: string, category?: string): PerformanceTimerUid;
|
|
139
152
|
/**
|
|
140
153
|
* Stops a timer and returns the recorded metrics.
|
|
141
154
|
* @param timerUid - The timer identifier returned by startTimer.
|
|
@@ -144,5 +157,5 @@ interface IPerformanceTimer {
|
|
|
144
157
|
endTimer(timerUid: PerformanceTimerUid): PerformanceTimeEntry;
|
|
145
158
|
}
|
|
146
159
|
//#endregion
|
|
147
|
-
export {
|
|
148
|
-
//# sourceMappingURL=index-
|
|
160
|
+
export { ILogger as a, IJsonSerializer as c, PerformanceTimerUid as i, PerformanceMetricOptions as n, ILoggerOptions as o, PerformanceTimeEntry as r, LogLevel as s, IPerformanceTimer as t };
|
|
161
|
+
//# sourceMappingURL=index-Iqc9jR5E.d.mts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as Immutable } from "./types-DLOd2zXO.cjs";
|
|
2
|
-
import {
|
|
2
|
+
import { r as PerformanceTimeEntry } from "./index-CmTRwW4W.cjs";
|
|
3
3
|
|
|
4
4
|
//#region src/pipelines/pipeline-context.d.ts
|
|
5
5
|
/**
|
|
@@ -60,14 +60,14 @@ interface IMiddleware<TContext extends IPipelineContext> {
|
|
|
60
60
|
* Can read and modify the context to influence downstream middleware and results.
|
|
61
61
|
* @param context The pipeline context containing all relevant state.
|
|
62
62
|
*/
|
|
63
|
-
action(context: TContext): void
|
|
63
|
+
action(context: TContext): void | Promise<void>;
|
|
64
64
|
/**
|
|
65
65
|
* Optional cleanup function executed during pipeline teardown.
|
|
66
66
|
* Middlewares execute in reverse registration order during cleanup phase.
|
|
67
67
|
* Used to release resources, clear temporary state, and perform final operations.
|
|
68
68
|
* @param context The pipeline context (may be in modified state from action phases).
|
|
69
69
|
*/
|
|
70
|
-
cleanup?(context: TContext): void
|
|
70
|
+
cleanup?(context: TContext): void | Promise<void>;
|
|
71
71
|
}
|
|
72
72
|
//#endregion
|
|
73
73
|
//#region src/pipelines/middleware-runner.d.ts
|
|
@@ -85,14 +85,14 @@ interface IMiddlewareRunner<TContext extends IPipelineContext> {
|
|
|
85
85
|
* @param context The current pipeline context.
|
|
86
86
|
* @param middleware The middleware whose action should be executed.
|
|
87
87
|
*/
|
|
88
|
-
dispatch(context: TContext, middleware: IMiddleware<TContext>): void
|
|
88
|
+
dispatch(context: TContext, middleware: IMiddleware<TContext>): void | Promise<void>;
|
|
89
89
|
/**
|
|
90
90
|
* Decides how to execute a middleware's cleanup.
|
|
91
91
|
* Can add pre/post processing or error handling around cleanup operations.
|
|
92
92
|
* @param context The current pipeline context.
|
|
93
93
|
* @param middleware The middleware whose cleanup should be executed.
|
|
94
94
|
*/
|
|
95
|
-
cleanup(context: TContext, middleware: IMiddleware<TContext>): void
|
|
95
|
+
cleanup(context: TContext, middleware: IMiddleware<TContext>): void | Promise<void>;
|
|
96
96
|
}
|
|
97
97
|
//#endregion
|
|
98
98
|
//#region src/pipelines/pipeline.d.ts
|
|
@@ -130,7 +130,7 @@ interface IPipeline<TContext extends IPipelineContext> {
|
|
|
130
130
|
* Execution continues until all middleware complete or a middleware requests early termination.
|
|
131
131
|
* @param context - The context object passed to all middleware.
|
|
132
132
|
*/
|
|
133
|
-
dispatch(context: Partial<TContext>): void
|
|
133
|
+
dispatch(context: Partial<TContext>): void | Promise<void>;
|
|
134
134
|
/**
|
|
135
135
|
* Executes the cleanup phase with all registered middleware in reverse order.
|
|
136
136
|
* Allows middleware to perform resource cleanup and final operations.
|
|
@@ -138,7 +138,7 @@ interface IPipeline<TContext extends IPipelineContext> {
|
|
|
138
138
|
*
|
|
139
139
|
* @param context - The context object that will be passed to each middleware function.
|
|
140
140
|
*/
|
|
141
|
-
cleanup(context: Partial<TContext>): void
|
|
141
|
+
cleanup(context: Partial<TContext>): void | Promise<void>;
|
|
142
142
|
}
|
|
143
143
|
//#endregion
|
|
144
144
|
//#region src/pipelines/pipeline-nested.d.ts
|
|
@@ -209,7 +209,7 @@ interface IPipelineRunner<TContext extends IPipelineContext> {
|
|
|
209
209
|
* @param middleware - The ordered middleware array to execute.
|
|
210
210
|
* @param startIndex - Optional starting position in the middleware array (default: 0).
|
|
211
211
|
*/
|
|
212
|
-
dispatch(context: Partial<TContext>, middleware: IMiddleware<TContext>[], startIndex?: number): void
|
|
212
|
+
dispatch(context: Partial<TContext>, middleware: IMiddleware<TContext>[], startIndex?: number): void | Promise<void>;
|
|
213
213
|
/**
|
|
214
214
|
* Executes the cleanup phase of all middleware in reverse order.
|
|
215
215
|
* All middleware cleanup functions are called (if defined), regardless of errors.
|
|
@@ -217,8 +217,8 @@ interface IPipelineRunner<TContext extends IPipelineContext> {
|
|
|
217
217
|
* @param context - The context passed to each middleware cleanup.
|
|
218
218
|
* @param middleware - The ordered middleware array for cleanup (reversed during execution).
|
|
219
219
|
*/
|
|
220
|
-
cleanup(context: Partial<TContext>, middleware: IMiddleware<TContext>[]): void
|
|
220
|
+
cleanup(context: Partial<TContext>, middleware: IMiddleware<TContext>[]): void | Promise<void>;
|
|
221
221
|
}
|
|
222
222
|
//#endregion
|
|
223
223
|
export { IParentMiddleware as a, IMiddleware as c, IParentContext as i, IPipelineContext as l, INestedContext as n, IPipeline as o, INestedMiddleware as r, IMiddlewareRunner as s, IPipelineRunner as t, PipelineRuntime as u };
|
|
224
|
-
//# sourceMappingURL=index-
|
|
224
|
+
//# sourceMappingURL=index-cF9FviwN.d.cts.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as IEntity, c as
|
|
1
|
+
import { a as IEntity, c as IEntityProxy, l as IEntityProxyRepository, o as IEntityModel, r as EntityTypeUid, s as EntityProxy } from "./identity-component-CgzvgBVh.mjs";
|
|
2
2
|
import { n as Immutable } from "./types-CnDtpKsY.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { c as IMiddleware, l as IPipelineContext, o as IPipeline } from "./index-
|
|
3
|
+
import { a as IEntityUpdate, d as EntityEventUid, f as IEntityEvent, h as IEventData, s as IEntitySnapshot, u as EntityEventSubscriptionOptions } from "./index-CT8ci9Cn.mjs";
|
|
4
|
+
import { a as ILogger, c as IJsonSerializer, r as PerformanceTimeEntry } from "./index-Iqc9jR5E.mjs";
|
|
5
|
+
import { c as IMiddleware, l as IPipelineContext, o as IPipeline } from "./index-CyoGuBNw.mjs";
|
|
6
6
|
|
|
7
7
|
//#region src/systems/pipeline/system-context-events.d.ts
|
|
8
8
|
/**
|
|
@@ -50,9 +50,9 @@ interface ISystemContextEvents {
|
|
|
50
50
|
* Subscribes to events of a specific type.
|
|
51
51
|
* The entity will be notified of matching events through the update system.
|
|
52
52
|
* @param uid - The event type to listen for.
|
|
53
|
-
* @param
|
|
53
|
+
* @param options - Optional subscription options (filter, scopeId).
|
|
54
54
|
*/
|
|
55
|
-
subscribeTo
|
|
55
|
+
subscribeTo(uid: EntityEventUid, options?: EntityEventSubscriptionOptions): void;
|
|
56
56
|
/**
|
|
57
57
|
* Stops listening for events of a specific type.
|
|
58
58
|
* @param uid - The event type to stop listening for.
|
|
@@ -152,7 +152,7 @@ interface ISystemContextRepository {
|
|
|
152
152
|
* @param proxy - Reference to the entity.
|
|
153
153
|
* @returns The immutable entity instance.
|
|
154
154
|
*/
|
|
155
|
-
getEntity<TEntity extends IEntity>(proxy: EntityProxy<TEntity>): Immutable<TEntity>;
|
|
155
|
+
getEntity<TEntity extends IEntity>(proxy: EntityProxy<TEntity> | EntityTypeUid): Immutable<TEntity>;
|
|
156
156
|
/**
|
|
157
157
|
* Queues an entity for update.
|
|
158
158
|
* Triggers the update pipeline for the entity.
|
|
@@ -322,6 +322,19 @@ interface ISystemsModule<TEntity extends IEntity> {
|
|
|
322
322
|
* @returns The initialized entity.
|
|
323
323
|
*/
|
|
324
324
|
readonly initEntity?: (model: IEntityModel) => TEntity;
|
|
325
|
+
/**
|
|
326
|
+
* If true, this entity type creates a new scope boundary when initialized.
|
|
327
|
+
* A new scope ID is auto-generated. All child entities inherit this scope.
|
|
328
|
+
* Typically used for root entities like Engine.
|
|
329
|
+
*/
|
|
330
|
+
readonly scopeRoot?: boolean;
|
|
331
|
+
/**
|
|
332
|
+
* If true, this entity type registers itself as a scoped proxy when initialized.
|
|
333
|
+
* It joins the inherited scope and becomes resolvable via `context.proxies.get()`
|
|
334
|
+
* by any entity in the same scope. Throws if no scope exists.
|
|
335
|
+
* Typically used for scope-wide entities like Scene, Input, AssetsManager.
|
|
336
|
+
*/
|
|
337
|
+
readonly scopedProxy?: boolean;
|
|
325
338
|
}
|
|
326
339
|
//#endregion
|
|
327
340
|
//#region src/systems/pipeline/system-middleware.d.ts
|
|
@@ -343,6 +356,10 @@ type ISystemMiddleware<TEntity extends IEntity> = IMiddleware<ISystemContext<TEn
|
|
|
343
356
|
* @template TEntity - The entity type for which systems are being added.
|
|
344
357
|
*/
|
|
345
358
|
interface ISystemsModuleBuilder<TEntity extends IEntity> {
|
|
359
|
+
/**
|
|
360
|
+
* The Module Builder's name.
|
|
361
|
+
*/
|
|
362
|
+
readonly name: string;
|
|
346
363
|
/**
|
|
347
364
|
* The pipelines being built.
|
|
348
365
|
* Accessible during and after construction.
|
|
@@ -365,6 +382,19 @@ interface ISystemsModuleBuilder<TEntity extends IEntity> {
|
|
|
365
382
|
* @returns This builder for method chaining.
|
|
366
383
|
*/
|
|
367
384
|
addModule<TModuleEntity extends TEntity>(module: ISystemsModule<TModuleEntity>, systemType?: SystemType): this;
|
|
385
|
+
/**
|
|
386
|
+
* Marks this entity type as a scope root.
|
|
387
|
+
* When initialized, a new scope is auto-generated and all child entities inherit it.
|
|
388
|
+
* @returns This builder for method chaining.
|
|
389
|
+
*/
|
|
390
|
+
setScopeRoot(): this;
|
|
391
|
+
/**
|
|
392
|
+
* Marks this entity type as a scoped proxy.
|
|
393
|
+
* When initialized, the entity registers itself in the inherited scope,
|
|
394
|
+
* making it resolvable via `context.proxies.get()` by any entity in the same scope.
|
|
395
|
+
* @returns This builder for method chaining.
|
|
396
|
+
*/
|
|
397
|
+
setScopedProxy(): this;
|
|
368
398
|
}
|
|
369
399
|
//#endregion
|
|
370
400
|
//#region src/systems/module/systems-module-repository.d.ts
|
|
@@ -469,6 +499,10 @@ interface ISystemsRuntimeContext<TEntity extends IEntity> extends IPipelineConte
|
|
|
469
499
|
* The system context for the current entity execution.
|
|
470
500
|
*/
|
|
471
501
|
readonly systemContext: ISystemContext<TEntity>;
|
|
502
|
+
/**
|
|
503
|
+
* The proxy repository for managing entity proxy relationships and scopes.
|
|
504
|
+
*/
|
|
505
|
+
readonly proxyRepository: IEntityProxyRepository;
|
|
472
506
|
}
|
|
473
507
|
//#endregion
|
|
474
508
|
//#region src/systems/runtime/systems-runtime-middleware.d.ts
|
|
@@ -482,4 +516,4 @@ interface ISystemsRuntimeContext<TEntity extends IEntity> extends IPipelineConte
|
|
|
482
516
|
type ISystemsRuntimeMiddleware<TEntity extends IEntity> = IMiddleware<ISystemsRuntimeContext<TEntity>>;
|
|
483
517
|
//#endregion
|
|
484
518
|
export { ISystemsModuleRepository as a, ISystemsModule as c, ISystemContextSnapshot as d, ISystemContextScheduler as f, ISystemContextEvents as h, ISystemContextEntity as i, SystemType as l, ISystemContextProxies as m, ISystemsRuntimeContext as n, ISystemsModuleBuilder as o, ISystemContextRepository as p, ISystemsRuntime as r, ISystemMiddleware as s, ISystemsRuntimeMiddleware as t, ISystemContext as u };
|
|
485
|
-
//# sourceMappingURL=index-
|
|
519
|
+
//# sourceMappingURL=index-ei6_lV4I.d.mts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as IParentMiddleware, c as IMiddleware, i as IParentContext, l as IPipelineContext, n as INestedContext, o as IPipeline, r as INestedMiddleware, s as IMiddlewareRunner, t as IPipelineRunner, u as PipelineRuntime } from "../index-
|
|
1
|
+
import { a as IParentMiddleware, c as IMiddleware, i as IParentContext, l as IPipelineContext, n as INestedContext, o as IPipeline, r as INestedMiddleware, s as IMiddlewareRunner, t as IPipelineRunner, u as PipelineRuntime } from "../index-cF9FviwN.cjs";
|
|
2
2
|
export { IMiddleware, IMiddlewareRunner, INestedContext, INestedMiddleware, IParentContext, IParentMiddleware, IPipeline, IPipelineContext, IPipelineRunner, PipelineRuntime };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as IParentMiddleware, c as IMiddleware, i as IParentContext, l as IPipelineContext, n as INestedContext, o as IPipeline, r as INestedMiddleware, s as IMiddlewareRunner, t as IPipelineRunner, u as PipelineRuntime } from "../index-
|
|
1
|
+
import { a as IParentMiddleware, c as IMiddleware, i as IParentContext, l as IPipelineContext, n as INestedContext, o as IPipeline, r as INestedMiddleware, s as IMiddlewareRunner, t as IPipelineRunner, u as PipelineRuntime } from "../index-CyoGuBNw.mjs";
|
|
2
2
|
export { IMiddleware, IMiddlewareRunner, INestedContext, INestedMiddleware, IParentContext, IParentMiddleware, IPipeline, IPipelineContext, IPipelineRunner, PipelineRuntime };
|
package/dist/systems/index.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as ISystemsModuleRepository, c as ISystemsModule, d as ISystemContextSnapshot, f as ISystemContextScheduler, h as ISystemContextEvents, i as ISystemContextEntity, l as SystemType, m as ISystemContextProxies, n as ISystemsRuntimeContext, o as ISystemsModuleBuilder, p as ISystemContextRepository, r as ISystemsRuntime, s as ISystemMiddleware, t as ISystemsRuntimeMiddleware, u as ISystemContext } from "../index-
|
|
1
|
+
import { a as ISystemsModuleRepository, c as ISystemsModule, d as ISystemContextSnapshot, f as ISystemContextScheduler, h as ISystemContextEvents, i as ISystemContextEntity, l as SystemType, m as ISystemContextProxies, n as ISystemsRuntimeContext, o as ISystemsModuleBuilder, p as ISystemContextRepository, r as ISystemsRuntime, s as ISystemMiddleware, t as ISystemsRuntimeMiddleware, u as ISystemContext } from "../index-CR3yK5HE.cjs";
|
|
2
2
|
export { ISystemContext, ISystemContextEntity, ISystemContextEvents, ISystemContextProxies, ISystemContextRepository, ISystemContextScheduler, ISystemContextSnapshot, ISystemMiddleware, ISystemsModule, ISystemsModuleBuilder, ISystemsModuleRepository, ISystemsRuntime, ISystemsRuntimeContext, ISystemsRuntimeMiddleware, SystemType };
|
package/dist/systems/index.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as ISystemsModuleRepository, c as ISystemsModule, d as ISystemContextSnapshot, f as ISystemContextScheduler, h as ISystemContextEvents, i as ISystemContextEntity, l as SystemType, m as ISystemContextProxies, n as ISystemsRuntimeContext, o as ISystemsModuleBuilder, p as ISystemContextRepository, r as ISystemsRuntime, s as ISystemMiddleware, t as ISystemsRuntimeMiddleware, u as ISystemContext } from "../index-
|
|
1
|
+
import { a as ISystemsModuleRepository, c as ISystemsModule, d as ISystemContextSnapshot, f as ISystemContextScheduler, h as ISystemContextEvents, i as ISystemContextEntity, l as SystemType, m as ISystemContextProxies, n as ISystemsRuntimeContext, o as ISystemsModuleBuilder, p as ISystemContextRepository, r as ISystemsRuntime, s as ISystemMiddleware, t as ISystemsRuntimeMiddleware, u as ISystemContext } from "../index-ei6_lV4I.mjs";
|
|
2
2
|
export { ISystemContext, ISystemContextEntity, ISystemContextEvents, ISystemContextProxies, ISystemContextRepository, ISystemContextScheduler, ISystemContextSnapshot, ISystemMiddleware, ISystemsModule, ISystemsModuleBuilder, ISystemsModuleRepository, ISystemsRuntime, ISystemsRuntimeContext, ISystemsRuntimeMiddleware, SystemType };
|
package/dist/utils/index.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { a as ImmutableObject, c as Mutable, i as ImmutableMap, l as MutableDeep, n as Immutable, o as ImmutableObjectDeep, r as ImmutableArray, s as ImmutableSet, t as BooleanProps } from "../types-DLOd2zXO.cjs";
|
|
2
|
-
import { a as
|
|
3
|
-
export { BooleanProps, IJsonSerializer, ILogger, ILoggerOptions, IPerformanceTimer, Immutable, ImmutableArray, ImmutableMap, ImmutableObject, ImmutableObjectDeep, ImmutableSet, LogLevel, Mutable, MutableDeep, PerformanceTimeEntry, PerformanceTimerUid };
|
|
2
|
+
import { a as ILogger, c as IJsonSerializer, i as PerformanceTimerUid, n as PerformanceMetricOptions, o as ILoggerOptions, r as PerformanceTimeEntry, s as LogLevel, t as IPerformanceTimer } from "../index-CmTRwW4W.cjs";
|
|
3
|
+
export { BooleanProps, IJsonSerializer, ILogger, ILoggerOptions, IPerformanceTimer, Immutable, ImmutableArray, ImmutableMap, ImmutableObject, ImmutableObjectDeep, ImmutableSet, LogLevel, Mutable, MutableDeep, PerformanceMetricOptions, PerformanceTimeEntry, PerformanceTimerUid };
|
package/dist/utils/index.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { a as ImmutableObject, c as Mutable, i as ImmutableMap, l as MutableDeep, n as Immutable, o as ImmutableObjectDeep, r as ImmutableArray, s as ImmutableSet, t as BooleanProps } from "../types-CnDtpKsY.mjs";
|
|
2
|
-
import { a as
|
|
3
|
-
export { BooleanProps, IJsonSerializer, ILogger, ILoggerOptions, IPerformanceTimer, Immutable, ImmutableArray, ImmutableMap, ImmutableObject, ImmutableObjectDeep, ImmutableSet, LogLevel, Mutable, MutableDeep, PerformanceTimeEntry, PerformanceTimerUid };
|
|
2
|
+
import { a as ILogger, c as IJsonSerializer, i as PerformanceTimerUid, n as PerformanceMetricOptions, o as ILoggerOptions, r as PerformanceTimeEntry, s as LogLevel, t as IPerformanceTimer } from "../index-Iqc9jR5E.mjs";
|
|
3
|
+
export { BooleanProps, IJsonSerializer, ILogger, ILoggerOptions, IPerformanceTimer, Immutable, ImmutableArray, ImmutableMap, ImmutableObject, ImmutableObjectDeep, ImmutableSet, LogLevel, Mutable, MutableDeep, PerformanceMetricOptions, PerformanceTimeEntry, PerformanceTimerUid };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@awesome-ecs/abstract",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.25.0",
|
|
4
4
|
"description": "A comprehensive Entity-Component-System (ECS) Architecture implementation. Abstract components.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -97,5 +97,5 @@
|
|
|
97
97
|
"url": "https://github.com/privatebytes/awesome-ecs/issues"
|
|
98
98
|
},
|
|
99
99
|
"homepage": "https://github.com/privatebytes/awesome-ecs#readme",
|
|
100
|
-
"gitHead": "
|
|
100
|
+
"gitHead": "07371a6f49d462052187b4e28a178a6970d18aff"
|
|
101
101
|
}
|