@awesome-ecs/abstract 0.20.0 → 0.20.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import { c as IEntity } from '../index-DK2CXVZ8.cjs';
2
- import { I as ISystemsRuntimeContext, a as ISystemContext } from '../systems-runtime-context-C-PeYs1I.cjs';
2
+ import { I as ISystemsRuntimeContext, a as ISystemContext } from '../systems-runtime-context-CpgxOdc8.cjs';
3
3
  import { I as IPipelineContext, M as MiddlewareResult, a as IPipeline } from '../pipeline-BowCAITe.cjs';
4
4
  import '../types-BNwBqRWY.cjs';
5
5
  import '../entity-repository-DmfcUSrX.cjs';
@@ -1,5 +1,5 @@
1
1
  import { c as IEntity } from '../index-BPDsRt_F.js';
2
- import { I as ISystemsRuntimeContext, a as ISystemContext } from '../systems-runtime-context-B2ch9kB3.js';
2
+ import { I as ISystemsRuntimeContext, a as ISystemContext } from '../systems-runtime-context-CDVzeB9f.js';
3
3
  import { I as IPipelineContext, M as MiddlewareResult, a as IPipeline } from '../pipeline-D43CXxWG.js';
4
4
  import '../types-BNwBqRWY.js';
5
5
  import '../entity-repository-BASmOrq7.js';
@@ -1 +1 @@
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
+ {"version":3,"sources":["../../src/pipelines/index.ts","../../src/pipelines/pipeline-status.ts"],"sourcesContent":["export * from './middleware-result';\nexport * from './middleware-runner';\nexport * from './middleware';\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,5 +1,5 @@
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';
1
+ import { I as ISystemsRuntimeContext, a as ISystemContext, S as SystemType } from '../systems-runtime-context-CpgxOdc8.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-CpgxOdc8.cjs';
3
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
5
  import { f as IEntityUpdate } from '../entity-repository-DmfcUSrX.cjs';
@@ -1,5 +1,5 @@
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';
1
+ import { I as ISystemsRuntimeContext, a as ISystemContext, S as SystemType } from '../systems-runtime-context-CDVzeB9f.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-CDVzeB9f.js';
3
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
5
  import { f as IEntityUpdate } from '../entity-repository-BASmOrq7.js';
@@ -155,7 +155,6 @@ interface ISystemsRuntimeContext<TEntity extends IEntity> extends IPipelineConte
155
155
  readonly allowedSteps: Set<SystemType>;
156
156
  readonly entityProvider: ISystemContextEntity;
157
157
  readonly entityRepository: IEntityRepository;
158
- readonly initEntity: (model: IEntityModel) => IEntity;
159
158
  readonly systemPipelines: Map<SystemType, IPipeline<ISystemContext<TEntity>>>;
160
159
  readonly systemContext: ISystemContext<TEntity>;
161
160
  }
@@ -155,7 +155,6 @@ interface ISystemsRuntimeContext<TEntity extends IEntity> extends IPipelineConte
155
155
  readonly allowedSteps: Set<SystemType>;
156
156
  readonly entityProvider: ISystemContextEntity;
157
157
  readonly entityRepository: IEntityRepository;
158
- readonly initEntity: (model: IEntityModel) => IEntity;
159
158
  readonly systemPipelines: Map<SystemType, IPipeline<ISystemContext<TEntity>>>;
160
159
  readonly systemContext: ISystemContext<TEntity>;
161
160
  }
@@ -1 +1 @@
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"]}
1
+ {"version":3,"sources":["../../src/utils/index.ts","../../src/utils/logger.ts"],"sourcesContent":["export * from './json-serializer';\nexport * from './logger';\nexport * from './performance-timer';\nexport * from './types';\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,11 +1,12 @@
1
1
  {
2
2
  "name": "@awesome-ecs/abstract",
3
- "version": "0.20.0",
3
+ "version": "0.20.1",
4
4
  "description": "A comprehensive Entity-Component-System (ECS) Architecture implementation. Abstract components.",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "build": "npx tsup",
8
8
  "build:clean": "npx rimraf ./dist && npm run build",
9
+ "clean": "npx rimraf ./dist",
9
10
  "typecheck": "npx attw $(npm pack) --ignore-rules no-resolution",
10
11
  "ts": "tsc --noEmit --incremental",
11
12
  "ts:watch": "tsc --noEmit --incremental --watch"
@@ -96,5 +97,5 @@
96
97
  "url": "https://github.com/privatebytes/awesome-ecs/issues"
97
98
  },
98
99
  "homepage": "https://github.com/privatebytes/awesome-ecs#readme",
99
- "gitHead": "cc9c4924145b7f7fbbedfc6fcc00193acd3b39ec"
100
+ "gitHead": "1e449163cdde8d3740783b3c052bafb0d577b796"
100
101
  }