@awesome-ecs/abstract 0.18.0 → 0.19.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.cjs.map +1 -1
- package/dist/components/index.js.map +1 -1
- package/dist/entities/index.cjs.map +1 -1
- package/dist/entities/index.d.cts +1 -1
- package/dist/entities/index.d.ts +1 -1
- package/dist/entities/index.js.map +1 -1
- package/dist/{entity-repository-Bu6rH-m5.d.ts → entity-repository-BASmOrq7.d.ts} +1 -0
- package/dist/{entity-repository-awW_H993.d.cts → entity-repository-DmfcUSrX.d.cts} +1 -0
- package/dist/factories/index.cjs.map +1 -1
- package/dist/factories/index.d.cts +2 -2
- package/dist/factories/index.d.ts +2 -2
- package/dist/pipelines/index.cjs.map +1 -1
- package/dist/pipelines/index.js.map +1 -1
- package/dist/systems/index.cjs.map +1 -1
- package/dist/systems/index.d.cts +13 -6
- package/dist/systems/index.d.ts +13 -6
- package/dist/systems/index.js.map +1 -1
- package/dist/{systems-runtime-context-DjppCqs4.d.ts → systems-runtime-context-B2ch9kB3.d.ts} +1 -1
- package/dist/{systems-runtime-context-Cq4vxbHX.d.cts → systems-runtime-context-C-PeYs1I.d.cts} +1 -1
- package/dist/utils/index.cjs.map +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/components/index.ts","../../src/components/identity-component.ts"],"sourcesContent":["export * from
|
|
1
|
+
{"version":3,"sources":["../../src/components/index.ts","../../src/components/identity-component.ts"],"sourcesContent":["export * from './component';\nexport * from './identity-component';\n","import { IComponent } from './component';\nimport { EntityTypeUid, IEntityModel } from '../entities/entity';\nimport { Immutable } from '../utils/types';\n\nexport enum BasicComponentType {\n identity = 'identity',\n}\n\n/**\n * The `IdentityComponent` contains basic information regarding what makes the current Entity unique.\n */\nexport interface IdentityComponent<TModel extends IEntityModel> extends IComponent {\n /**\n * The Entity Type that defines what Category type the Entity is part of. There can be multiple Entities sharing the same EntityType.\n */\n readonly entityType: EntityTypeUid;\n\n /**\n * The Model is the basic information needed to create an `IEntity` when it's first initialized.\n * It provides a first snapshot of information needed for the successful creation of an Entity instance.\n */\n readonly model: Immutable<TModel>;\n\n /**\n * Keeps track when the Entity's systems have ran last. Useful to calculate the `DeltaTime` between runs.\n */\n readonly lastUpdated?: Date;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACIO,IAAK,qBAAL,kBAAKA,wBAAL;AACL,EAAAA,oBAAA,cAAW;AADD,SAAAA;AAAA,GAAA;","names":["BasicComponentType"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/components/identity-component.ts"],"sourcesContent":["import { IComponent } from
|
|
1
|
+
{"version":3,"sources":["../../src/components/identity-component.ts"],"sourcesContent":["import { IComponent } from './component';\nimport { EntityTypeUid, IEntityModel } from '../entities/entity';\nimport { Immutable } from '../utils/types';\n\nexport enum BasicComponentType {\n identity = 'identity',\n}\n\n/**\n * The `IdentityComponent` contains basic information regarding what makes the current Entity unique.\n */\nexport interface IdentityComponent<TModel extends IEntityModel> extends IComponent {\n /**\n * The Entity Type that defines what Category type the Entity is part of. There can be multiple Entities sharing the same EntityType.\n */\n readonly entityType: EntityTypeUid;\n\n /**\n * The Model is the basic information needed to create an `IEntity` when it's first initialized.\n * It provides a first snapshot of information needed for the successful creation of an Entity instance.\n */\n readonly model: Immutable<TModel>;\n\n /**\n * Keeps track when the Entity's systems have ran last. Useful to calculate the `DeltaTime` between runs.\n */\n readonly lastUpdated?: Date;\n}\n"],"mappings":";AAIO,IAAK,qBAAL,kBAAKA,wBAAL;AACL,EAAAA,oBAAA,cAAW;AADD,SAAAA;AAAA,GAAA;","names":["BasicComponentType"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/entities/index.ts","../../src/entities/entity-queue.ts"],"sourcesContent":["export * from
|
|
1
|
+
{"version":3,"sources":["../../src/entities/index.ts","../../src/entities/entity-queue.ts"],"sourcesContent":["export * from './entity';\nexport * from './entity-events';\nexport * from './entity-proxies';\nexport * from './entity-queue';\nexport * from './entity-repository';\nexport * from './entity-scheduler';\nexport * from './entity-snapshot';\n","import { IEntityModel } from './entity';\nimport { IEntityProxy } from './entity-proxies';\nimport { IEntitySnapshot } from './entity-snapshot';\n\n/**\n * The `EntityUpdateType` specifies whether the current should `update` or `remove` the Entity.\n */\nexport enum EntityUpdateType {\n update = 'update',\n remove = 'remove',\n}\n\n/**\n * The `IEntityUpdate` represents an Entity update that should be applied over an (existing) Entity.\n */\nexport interface IEntityUpdate {\n type: EntityUpdateType;\n entity: IEntityProxy;\n model?: IEntityModel;\n snapshot?: IEntitySnapshot;\n}\n\n/**\n * The `IEntityUpdateQueue` is the main mechanism to queue and retrieve `EntityUpdate` instances.\n *\n * The interface can be implemented using a simple queue mechanism, or perhaps, a Priority Queue.\n */\nexport interface IEntityUpdateQueue {\n readonly size: number;\n\n enqueue(change: IEntityUpdate): void;\n dequeue(): IEntityUpdate;\n\n peek(): IEntityUpdate;\n clear(): void;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACOO,IAAK,mBAAL,kBAAKA,sBAAL;AACL,EAAAA,kBAAA,YAAS;AACT,EAAAA,kBAAA,YAAS;AAFC,SAAAA;AAAA,GAAA;","names":["EntityUpdateType"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { I as IEntityProxy } from '../index-DK2CXVZ8.cjs';
|
|
2
2
|
export { d as EntityProxy, E as EntityTypeUid, a as EntityUid, c as IEntity, b as IEntityModel, e as IEntityProxiesManager } from '../index-DK2CXVZ8.cjs';
|
|
3
|
-
export { a as EntityEventSubscriptionFilter, E as EntityEventUid, e as EntityUpdateType, b as IEntityEvent, d as IEntityEventsDispatcher, c as IEntityEventsManager, h as IEntityRepository, i as IEntitySnapshot, j as IEntitySnapshotProvider, f as IEntityUpdate, g as IEntityUpdateQueue, I as IEventData } from '../entity-repository-
|
|
3
|
+
export { a as EntityEventSubscriptionFilter, E as EntityEventUid, e as EntityUpdateType, b as IEntityEvent, d as IEntityEventsDispatcher, c as IEntityEventsManager, h as IEntityRepository, i as IEntitySnapshot, j as IEntitySnapshotProvider, f as IEntityUpdate, g as IEntityUpdateQueue, I as IEventData } from '../entity-repository-DmfcUSrX.cjs';
|
|
4
4
|
import '../types-BNwBqRWY.cjs';
|
|
5
5
|
|
|
6
6
|
/**
|
package/dist/entities/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { I as IEntityProxy } from '../index-BPDsRt_F.js';
|
|
2
2
|
export { d as EntityProxy, E as EntityTypeUid, a as EntityUid, c as IEntity, b as IEntityModel, e as IEntityProxiesManager } from '../index-BPDsRt_F.js';
|
|
3
|
-
export { a as EntityEventSubscriptionFilter, E as EntityEventUid, e as EntityUpdateType, b as IEntityEvent, d as IEntityEventsDispatcher, c as IEntityEventsManager, h as IEntityRepository, i as IEntitySnapshot, j as IEntitySnapshotProvider, f as IEntityUpdate, g as IEntityUpdateQueue, I as IEventData } from '../entity-repository-
|
|
3
|
+
export { a as EntityEventSubscriptionFilter, E as EntityEventUid, e as EntityUpdateType, b as IEntityEvent, d as IEntityEventsDispatcher, c as IEntityEventsManager, h as IEntityRepository, i as IEntitySnapshot, j as IEntitySnapshotProvider, f as IEntityUpdate, g as IEntityUpdateQueue, I as IEventData } from '../entity-repository-BASmOrq7.js';
|
|
4
4
|
import '../types-BNwBqRWY.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/entities/entity-queue.ts"],"sourcesContent":["import { IEntityModel } from
|
|
1
|
+
{"version":3,"sources":["../../src/entities/entity-queue.ts"],"sourcesContent":["import { IEntityModel } from './entity';\nimport { IEntityProxy } from './entity-proxies';\nimport { IEntitySnapshot } from './entity-snapshot';\n\n/**\n * The `EntityUpdateType` specifies whether the current should `update` or `remove` the Entity.\n */\nexport enum EntityUpdateType {\n update = 'update',\n remove = 'remove',\n}\n\n/**\n * The `IEntityUpdate` represents an Entity update that should be applied over an (existing) Entity.\n */\nexport interface IEntityUpdate {\n type: EntityUpdateType;\n entity: IEntityProxy;\n model?: IEntityModel;\n snapshot?: IEntitySnapshot;\n}\n\n/**\n * The `IEntityUpdateQueue` is the main mechanism to queue and retrieve `EntityUpdate` instances.\n *\n * The interface can be implemented using a simple queue mechanism, or perhaps, a Priority Queue.\n */\nexport interface IEntityUpdateQueue {\n readonly size: number;\n\n enqueue(change: IEntityUpdate): void;\n dequeue(): IEntityUpdate;\n\n peek(): IEntityUpdate;\n clear(): void;\n}\n"],"mappings":";AAOO,IAAK,mBAAL,kBAAKA,sBAAL;AACL,EAAAA,kBAAA,YAAS;AACT,EAAAA,kBAAA,YAAS;AAFC,SAAAA;AAAA,GAAA;","names":["EntityUpdateType"]}
|
|
@@ -26,6 +26,7 @@ interface IEntityEventsManager {
|
|
|
26
26
|
subscribe(uid: EntityEventUid, entity: IEntityProxy, filter?: EntityEventSubscriptionFilter): void;
|
|
27
27
|
unsubscribe(uid: EntityEventUid, entity: IEntityProxy): void;
|
|
28
28
|
getSubscriptions(event: IEntityEvent<IEventData>): IEntityProxy[];
|
|
29
|
+
getSubscriptionsForEntity(entity: IEntityProxy): EntityEventUid[];
|
|
29
30
|
/**
|
|
30
31
|
* Removes all Subscriptions for all Entities.
|
|
31
32
|
*/
|
|
@@ -26,6 +26,7 @@ interface IEntityEventsManager {
|
|
|
26
26
|
subscribe(uid: EntityEventUid, entity: IEntityProxy, filter?: EntityEventSubscriptionFilter): void;
|
|
27
27
|
unsubscribe(uid: EntityEventUid, entity: IEntityProxy): void;
|
|
28
28
|
getSubscriptions(event: IEntityEvent<IEventData>): IEntityProxy[];
|
|
29
|
+
getSubscriptionsForEntity(entity: IEntityProxy): EntityEventUid[];
|
|
29
30
|
/**
|
|
30
31
|
* Removes all Subscriptions for all Entities.
|
|
31
32
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/factories/index.ts"],"sourcesContent":["export * from
|
|
1
|
+
{"version":3,"sources":["../../src/factories/index.ts"],"sourcesContent":["export * from './context-factory';\nexport * from './pipeline-factory';\n"],"mappings":";;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { c as IEntity } from '../index-DK2CXVZ8.cjs';
|
|
2
|
-
import { I as ISystemsRuntimeContext, a as ISystemContext } from '../systems-runtime-context-
|
|
2
|
+
import { I as ISystemsRuntimeContext, a as ISystemContext } from '../systems-runtime-context-C-PeYs1I.cjs';
|
|
3
3
|
import { I as IPipelineContext, M as MiddlewareResult, a as IPipeline } from '../pipeline-BowCAITe.cjs';
|
|
4
4
|
import '../types-BNwBqRWY.cjs';
|
|
5
|
-
import '../entity-repository-
|
|
5
|
+
import '../entity-repository-DmfcUSrX.cjs';
|
|
6
6
|
import '../utils/index.cjs';
|
|
7
7
|
import '../performance-timer-XvdCbcAE.cjs';
|
|
8
8
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { c as IEntity } from '../index-BPDsRt_F.js';
|
|
2
|
-
import { I as ISystemsRuntimeContext, a as ISystemContext } from '../systems-runtime-context-
|
|
2
|
+
import { I as ISystemsRuntimeContext, a as ISystemContext } from '../systems-runtime-context-B2ch9kB3.js';
|
|
3
3
|
import { I as IPipelineContext, M as MiddlewareResult, a as IPipeline } from '../pipeline-D43CXxWG.js';
|
|
4
4
|
import '../types-BNwBqRWY.js';
|
|
5
|
-
import '../entity-repository-
|
|
5
|
+
import '../entity-repository-BASmOrq7.js';
|
|
6
6
|
import '../utils/index.js';
|
|
7
7
|
import '../performance-timer-XvdCbcAE.js';
|
|
8
8
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/pipelines/index.ts","../../src/pipelines/pipeline-status.ts"],"sourcesContent":["export * from
|
|
1
|
+
{"version":3,"sources":["../../src/pipelines/index.ts","../../src/pipelines/pipeline-status.ts"],"sourcesContent":["export * from './middleware';\nexport * from './middleware-result';\nexport * from './middleware-runner';\n\nexport * from './pipeline-context';\nexport * from './pipeline-result';\nexport * from './pipeline-runner';\nexport * from './pipeline-status';\nexport * from './pipeline';\n","/**\n * The PipelineStatus tracks the current status of the pipeline.\n */\nexport enum PipelineStatus {\n idle = 'idle',\n ongoing = 'ongoing',\n completed = 'completed',\n halted = 'halted',\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACGO,IAAK,iBAAL,kBAAKA,oBAAL;AACL,EAAAA,gBAAA,UAAO;AACP,EAAAA,gBAAA,aAAU;AACV,EAAAA,gBAAA,eAAY;AACZ,EAAAA,gBAAA,YAAS;AAJC,SAAAA;AAAA,GAAA;","names":["PipelineStatus"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/pipelines/pipeline-status.ts"],"sourcesContent":["/**\n * The PipelineStatus tracks the current status of the pipeline.\n */\nexport enum PipelineStatus {\n idle =
|
|
1
|
+
{"version":3,"sources":["../../src/pipelines/pipeline-status.ts"],"sourcesContent":["/**\n * The PipelineStatus tracks the current status of the pipeline.\n */\nexport enum PipelineStatus {\n idle = 'idle',\n ongoing = 'ongoing',\n completed = 'completed',\n halted = 'halted',\n}\n"],"mappings":";AAGO,IAAK,iBAAL,kBAAKA,oBAAL;AACL,EAAAA,gBAAA,UAAO;AACP,EAAAA,gBAAA,aAAU;AACV,EAAAA,gBAAA,eAAY;AACZ,EAAAA,gBAAA,YAAS;AAJC,SAAAA;AAAA,GAAA;","names":["PipelineStatus"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/systems/index.ts","../../src/systems/module/system-type.ts"],"sourcesContent":["export * from
|
|
1
|
+
{"version":3,"sources":["../../src/systems/index.ts","../../src/systems/module/system-type.ts"],"sourcesContent":["export * from './pipeline/system-context-entity';\nexport * from './pipeline/system-context-events';\nexport * from './pipeline/system-context-proxies';\nexport * from './pipeline/system-context-repository';\nexport * from './pipeline/system-context-scheduler';\nexport * from './pipeline/system-context-snapshot';\nexport * from './runtime/systems-runtime-context';\nexport * from './runtime/systems-runtime-middleware';\nexport * from './pipeline/system-middleware';\nexport * from './pipeline/system-context';\nexport * from './module/system-type';\nexport * from './module/systems-module';\nexport * from './module/systems-module-repository';\nexport * from './runtime/systems-runtime';\n","/**\n * The built-in ECS pipeline types. They can be extended to introduce more types, and the System Runtime Pipeline should\n * add Middleware to handle the newly added types.\n */\nexport enum SystemType {\n initialize = 'initialize',\n update = 'update',\n render = 'render',\n sync = 'sync',\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACIO,IAAK,aAAL,kBAAKA,gBAAL;AACL,EAAAA,YAAA,gBAAa;AACb,EAAAA,YAAA,YAAS;AACT,EAAAA,YAAA,YAAS;AACT,EAAAA,YAAA,UAAO;AAJG,SAAAA;AAAA,GAAA;","names":["SystemType"]}
|
package/dist/systems/index.d.cts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { I as ISystemsRuntimeContext, a as ISystemContext, S as SystemType } from '../systems-runtime-context-
|
|
2
|
-
export { b as ISystemContextEntity, c as ISystemContextEvents, d as ISystemContextProxies, e as ISystemContextRepository, f as ISystemContextScheduler, g as ISystemContextSnapshot } from '../systems-runtime-context-
|
|
3
|
-
import { c as IEntity } from '../index-DK2CXVZ8.cjs';
|
|
1
|
+
import { I as ISystemsRuntimeContext, a as ISystemContext, S as SystemType } from '../systems-runtime-context-C-PeYs1I.cjs';
|
|
2
|
+
export { b as ISystemContextEntity, c as ISystemContextEvents, d as ISystemContextProxies, e as ISystemContextRepository, f as ISystemContextScheduler, g as ISystemContextSnapshot } from '../systems-runtime-context-C-PeYs1I.cjs';
|
|
3
|
+
import { c as IEntity, E as EntityTypeUid } from '../index-DK2CXVZ8.cjs';
|
|
4
4
|
import { b as IMiddleware, P as PipelineResult } from '../pipeline-BowCAITe.cjs';
|
|
5
|
-
import { f as IEntityUpdate } from '../entity-repository-
|
|
6
|
-
import '../types-BNwBqRWY.cjs';
|
|
5
|
+
import { f as IEntityUpdate } from '../entity-repository-DmfcUSrX.cjs';
|
|
6
|
+
import { I as Immutable } from '../types-BNwBqRWY.cjs';
|
|
7
7
|
import '../utils/index.cjs';
|
|
8
8
|
import '../performance-timer-XvdCbcAE.cjs';
|
|
9
9
|
|
|
@@ -37,6 +37,13 @@ interface ISystemsModule<TEntity extends IEntity> {
|
|
|
37
37
|
triggerSystems(update: IEntityUpdate): PipelineResult;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
+
interface ISystemsModuleRepository {
|
|
41
|
+
readonly size: number;
|
|
42
|
+
get<TEntity extends IEntity>(type: EntityTypeUid): ISystemsModule<TEntity>;
|
|
43
|
+
set(type: EntityTypeUid, module: ISystemsModule<IEntity>): void;
|
|
44
|
+
list(): ReadonlyMap<EntityTypeUid, Immutable<ISystemsModule<IEntity>>>;
|
|
45
|
+
}
|
|
46
|
+
|
|
40
47
|
/**
|
|
41
48
|
* The System Runtime allows running a loop of Ticks.
|
|
42
49
|
*
|
|
@@ -52,4 +59,4 @@ interface ISystemsRuntime {
|
|
|
52
59
|
runTick(update?: IEntityUpdate): PipelineResult;
|
|
53
60
|
}
|
|
54
61
|
|
|
55
|
-
export { ISystemContext, type ISystemMiddleware, type ISystemsModule, type ISystemsRuntime, ISystemsRuntimeContext, type ISystemsRuntimeMiddleware, SystemType };
|
|
62
|
+
export { ISystemContext, type ISystemMiddleware, type ISystemsModule, type ISystemsModuleRepository, type ISystemsRuntime, ISystemsRuntimeContext, type ISystemsRuntimeMiddleware, SystemType };
|
package/dist/systems/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { I as ISystemsRuntimeContext, a as ISystemContext, S as SystemType } from '../systems-runtime-context-
|
|
2
|
-
export { b as ISystemContextEntity, c as ISystemContextEvents, d as ISystemContextProxies, e as ISystemContextRepository, f as ISystemContextScheduler, g as ISystemContextSnapshot } from '../systems-runtime-context-
|
|
3
|
-
import { c as IEntity } from '../index-BPDsRt_F.js';
|
|
1
|
+
import { I as ISystemsRuntimeContext, a as ISystemContext, S as SystemType } from '../systems-runtime-context-B2ch9kB3.js';
|
|
2
|
+
export { b as ISystemContextEntity, c as ISystemContextEvents, d as ISystemContextProxies, e as ISystemContextRepository, f as ISystemContextScheduler, g as ISystemContextSnapshot } from '../systems-runtime-context-B2ch9kB3.js';
|
|
3
|
+
import { c as IEntity, E as EntityTypeUid } from '../index-BPDsRt_F.js';
|
|
4
4
|
import { b as IMiddleware, P as PipelineResult } from '../pipeline-D43CXxWG.js';
|
|
5
|
-
import { f as IEntityUpdate } from '../entity-repository-
|
|
6
|
-
import '../types-BNwBqRWY.js';
|
|
5
|
+
import { f as IEntityUpdate } from '../entity-repository-BASmOrq7.js';
|
|
6
|
+
import { I as Immutable } from '../types-BNwBqRWY.js';
|
|
7
7
|
import '../utils/index.js';
|
|
8
8
|
import '../performance-timer-XvdCbcAE.js';
|
|
9
9
|
|
|
@@ -37,6 +37,13 @@ interface ISystemsModule<TEntity extends IEntity> {
|
|
|
37
37
|
triggerSystems(update: IEntityUpdate): PipelineResult;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
+
interface ISystemsModuleRepository {
|
|
41
|
+
readonly size: number;
|
|
42
|
+
get<TEntity extends IEntity>(type: EntityTypeUid): ISystemsModule<TEntity>;
|
|
43
|
+
set(type: EntityTypeUid, module: ISystemsModule<IEntity>): void;
|
|
44
|
+
list(): ReadonlyMap<EntityTypeUid, Immutable<ISystemsModule<IEntity>>>;
|
|
45
|
+
}
|
|
46
|
+
|
|
40
47
|
/**
|
|
41
48
|
* The System Runtime allows running a loop of Ticks.
|
|
42
49
|
*
|
|
@@ -52,4 +59,4 @@ interface ISystemsRuntime {
|
|
|
52
59
|
runTick(update?: IEntityUpdate): PipelineResult;
|
|
53
60
|
}
|
|
54
61
|
|
|
55
|
-
export { ISystemContext, type ISystemMiddleware, type ISystemsModule, type ISystemsRuntime, ISystemsRuntimeContext, type ISystemsRuntimeMiddleware, SystemType };
|
|
62
|
+
export { ISystemContext, type ISystemMiddleware, type ISystemsModule, type ISystemsModuleRepository, type ISystemsRuntime, ISystemsRuntimeContext, type ISystemsRuntimeMiddleware, SystemType };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/systems/module/system-type.ts"],"sourcesContent":["/**\n * The built-in ECS pipeline types. They can be extended to introduce more types, and the System Runtime Pipeline should\n * add Middleware to handle the newly added types.\n */\nexport enum SystemType {\n initialize =
|
|
1
|
+
{"version":3,"sources":["../../src/systems/module/system-type.ts"],"sourcesContent":["/**\n * The built-in ECS pipeline types. They can be extended to introduce more types, and the System Runtime Pipeline should\n * add Middleware to handle the newly added types.\n */\nexport enum SystemType {\n initialize = 'initialize',\n update = 'update',\n render = 'render',\n sync = 'sync',\n}\n"],"mappings":";AAIO,IAAK,aAAL,kBAAKA,gBAAL;AACL,EAAAA,YAAA,gBAAa;AACb,EAAAA,YAAA,YAAS;AACT,EAAAA,YAAA,YAAS;AACT,EAAAA,YAAA,UAAO;AAJG,SAAAA;AAAA,GAAA;","names":["SystemType"]}
|
package/dist/{systems-runtime-context-DjppCqs4.d.ts → systems-runtime-context-B2ch9kB3.d.ts}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as IEntity, I as IEntityProxy, E as EntityTypeUid, b as IEntityModel, d as EntityProxy } from './index-BPDsRt_F.js';
|
|
2
|
-
import { f as IEntityUpdate, I as IEventData, E as EntityEventUid, b as IEntityEvent, i as IEntitySnapshot, h as IEntityRepository } from './entity-repository-
|
|
2
|
+
import { f as IEntityUpdate, I as IEventData, E as EntityEventUid, b as IEntityEvent, i as IEntitySnapshot, h as IEntityRepository } from './entity-repository-BASmOrq7.js';
|
|
3
3
|
import { I as IPipelineContext, a as IPipeline } from './pipeline-D43CXxWG.js';
|
|
4
4
|
import { I as Immutable } from './types-BNwBqRWY.js';
|
|
5
5
|
import { IJsonSerializer, ILogger } from './utils/index.js';
|
package/dist/{systems-runtime-context-Cq4vxbHX.d.cts → systems-runtime-context-C-PeYs1I.d.cts}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as IEntity, I as IEntityProxy, E as EntityTypeUid, b as IEntityModel, d as EntityProxy } from './index-DK2CXVZ8.cjs';
|
|
2
|
-
import { f as IEntityUpdate, I as IEventData, E as EntityEventUid, b as IEntityEvent, i as IEntitySnapshot, h as IEntityRepository } from './entity-repository-
|
|
2
|
+
import { f as IEntityUpdate, I as IEventData, E as EntityEventUid, b as IEntityEvent, i as IEntitySnapshot, h as IEntityRepository } from './entity-repository-DmfcUSrX.cjs';
|
|
3
3
|
import { I as IPipelineContext, a as IPipeline } from './pipeline-BowCAITe.cjs';
|
|
4
4
|
import { I as Immutable } from './types-BNwBqRWY.cjs';
|
|
5
5
|
import { IJsonSerializer, ILogger } from './utils/index.cjs';
|
package/dist/utils/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/utils/index.ts","../../src/utils/logger.ts"],"sourcesContent":["export * from
|
|
1
|
+
{"version":3,"sources":["../../src/utils/index.ts","../../src/utils/logger.ts"],"sourcesContent":["export * from './json-serializer';\nexport * from './performance-timer';\nexport * from './types';\nexport * from './logger';\n","/**\n * An ILogger instance allows printing messages to console or other targets.\n */\nexport interface ILogger {\n log(level: LogLevel, message: any, ...args: any[]): void;\n\n trace(message: any, ...args: any[]): void;\n debug(message: any, ...args: any[]): void;\n warn(message: any, ...args: any[]): void;\n error(message: any, ...args: any[]): void;\n}\n\nexport enum LogLevel {\n trace,\n debug,\n warn,\n error,\n}\n\nexport interface ILoggerOptions {\n enabled: Map<LogLevel, boolean>;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACYO,IAAK,WAAL,kBAAKA,cAAL;AACL,EAAAA,oBAAA;AACA,EAAAA,oBAAA;AACA,EAAAA,oBAAA;AACA,EAAAA,oBAAA;AAJU,SAAAA;AAAA,GAAA;","names":["LogLevel"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@awesome-ecs/abstract",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.19.0",
|
|
4
4
|
"description": "A comprehensive Entity-Component-System (ECS) Architecture implementation. Abstract components.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -99,5 +99,5 @@
|
|
|
99
99
|
"devDependencies": {
|
|
100
100
|
"rimraf": "^5.0.5"
|
|
101
101
|
},
|
|
102
|
-
"gitHead": "
|
|
102
|
+
"gitHead": "6517a49be2e4ace69ed3420a9f21bc9f6c62cd47"
|
|
103
103
|
}
|