@awesome-ecs/abstract 0.21.1 → 0.22.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/factories/index.d.cts +1 -1
- package/dist/factories/index.d.ts +1 -1
- package/dist/{index-zpj0YApu.d.ts → index-CH8ucsKZ.d.ts} +24 -12
- package/dist/{index-CKh4A7mH.d.cts → index-CjNeb3ML.d.cts} +24 -12
- package/dist/systems/index.cjs +4 -4
- package/dist/systems/index.cjs.map +1 -1
- package/dist/systems/index.d.cts +2 -2
- package/dist/systems/index.d.ts +2 -2
- package/dist/systems/index.js +4 -4
- package/dist/systems/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -3,7 +3,7 @@ import "../types-DvzdpbLu.cjs";
|
|
|
3
3
|
import "../index-DLm-DKAk.cjs";
|
|
4
4
|
import { IPipeline, IPipelineContext } from "../index-D81Fo9XN.cjs";
|
|
5
5
|
import "../index-ChV4Q5j6.cjs";
|
|
6
|
-
import { ISystemContext, ISystemsRuntimeContext } from "../index-
|
|
6
|
+
import { ISystemContext, ISystemsRuntimeContext } from "../index-CjNeb3ML.cjs";
|
|
7
7
|
|
|
8
8
|
//#region src/factories/context-factory.d.ts
|
|
9
9
|
/**
|
|
@@ -3,7 +3,7 @@ import "../types-yh4pOGEm.js";
|
|
|
3
3
|
import "../index-C3UGZqUG.js";
|
|
4
4
|
import { IPipeline, IPipelineContext } from "../index-Cm-YSPhK.js";
|
|
5
5
|
import "../index-oenqxDCa.js";
|
|
6
|
-
import { ISystemContext, ISystemsRuntimeContext } from "../index-
|
|
6
|
+
import { ISystemContext, ISystemsRuntimeContext } from "../index-CH8ucsKZ.js";
|
|
7
7
|
|
|
8
8
|
//#region src/factories/context-factory.d.ts
|
|
9
9
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EntityProxy, EntityTypeUid, IEntity, IEntityModel, IEntityProxy } from "./identity-component-CR1ULadR.js";
|
|
2
2
|
import { Immutable } from "./types-yh4pOGEm.js";
|
|
3
3
|
import { EntityEventUid, IEntityEvent, IEntityRepository, IEntitySnapshot, IEntityUpdate, IEventData } from "./index-C3UGZqUG.js";
|
|
4
|
-
import { IMiddleware, IPipeline, IPipelineContext, PipelineResult } from "./index-Cm-YSPhK.js";
|
|
4
|
+
import { IMiddleware, IPipeline, IPipelineContext, PipelineResult, PipelineRuntime } from "./index-Cm-YSPhK.js";
|
|
5
5
|
import { IJsonSerializer, ILogger } from "./index-oenqxDCa.js";
|
|
6
6
|
|
|
7
7
|
//#region src/systems/module/system-type.d.ts
|
|
@@ -15,22 +15,22 @@ declare enum SystemType {
|
|
|
15
15
|
* The initialization phase of the Module pipeline.
|
|
16
16
|
* This phase is typically used for setting up initial state and resources.
|
|
17
17
|
*/
|
|
18
|
-
initialize =
|
|
18
|
+
initialize = 0,
|
|
19
19
|
/**
|
|
20
20
|
* The update phase of the Module pipeline.
|
|
21
21
|
* This phase is responsible for updating the game logic and state of entities.
|
|
22
22
|
*/
|
|
23
|
-
update =
|
|
23
|
+
update = 1,
|
|
24
24
|
/**
|
|
25
25
|
* The render phase of the Module pipeline.
|
|
26
26
|
* This phase is used for rendering the game to the screen.
|
|
27
27
|
*/
|
|
28
|
-
render =
|
|
28
|
+
render = 2,
|
|
29
29
|
/**
|
|
30
30
|
* The synchronization phase of the Module pipeline.
|
|
31
31
|
* This phase is used for synchronizing game state with external systems or other components.
|
|
32
32
|
*/
|
|
33
|
-
sync =
|
|
33
|
+
sync = 3,
|
|
34
34
|
}
|
|
35
35
|
//#endregion
|
|
36
36
|
//#region src/systems/pipeline/system-context-events.d.ts
|
|
@@ -242,6 +242,9 @@ interface ISystemContextSnapshot {
|
|
|
242
242
|
}
|
|
243
243
|
//#endregion
|
|
244
244
|
//#region src/systems/pipeline/system-context.d.ts
|
|
245
|
+
type SystemRuntime = PipelineRuntime & {
|
|
246
|
+
enabledSteps: ReadonlySet<SystemType>;
|
|
247
|
+
};
|
|
245
248
|
/**
|
|
246
249
|
* The ISystemContext is the Context passed to a SystemMiddleware as part of the Pipeline Dispatch.
|
|
247
250
|
* It's an abstraction layer so that the Middleware code won't have explicit dependencies on other parts of the ECS.
|
|
@@ -288,6 +291,10 @@ interface ISystemContext<TEntity extends IEntity> extends IPipelineContext {
|
|
|
288
291
|
* The logger API for the SystemMiddleware to log messages.
|
|
289
292
|
*/
|
|
290
293
|
readonly logger: Immutable<ILogger>;
|
|
294
|
+
/**
|
|
295
|
+
* The runtime API for the SystemMiddleware to interact with the ECS runtime system.
|
|
296
|
+
*/
|
|
297
|
+
readonly runtime: SystemRuntime;
|
|
291
298
|
}
|
|
292
299
|
//#endregion
|
|
293
300
|
//#region src/systems/pipeline/system-context-entity.d.ts
|
|
@@ -325,9 +332,9 @@ interface ISystemContextEntity {
|
|
|
325
332
|
*/
|
|
326
333
|
interface ISystemsRuntimeContext<TEntity extends IEntity> extends IPipelineContext {
|
|
327
334
|
/**
|
|
328
|
-
* A Set of
|
|
335
|
+
* A Set of enabled steps for the SystemPipelines.
|
|
329
336
|
*/
|
|
330
|
-
readonly
|
|
337
|
+
readonly enabledSteps: Set<SystemType>;
|
|
331
338
|
/**
|
|
332
339
|
* An entity provider for the SystemPipelines.
|
|
333
340
|
*/
|
|
@@ -372,7 +379,6 @@ type ISystemMiddleware<TEntity extends IEntity> = IMiddleware<ISystemContext<TEn
|
|
|
372
379
|
* It can be used as building blocks for SystemsModules as a way to register common SystemMiddlewares and share across different Entities.
|
|
373
380
|
*/
|
|
374
381
|
interface ISystemsModuleDefinition<TEntity extends IEntity> {
|
|
375
|
-
readonly systems: Map<SystemType, IPipeline<ISystemContext<TEntity>>>;
|
|
376
382
|
/**
|
|
377
383
|
* Registers SystemMiddlewares to the specified SystemPipelineType.
|
|
378
384
|
*
|
|
@@ -382,10 +388,16 @@ interface ISystemsModuleDefinition<TEntity extends IEntity> {
|
|
|
382
388
|
*/
|
|
383
389
|
registerSystems?(type: SystemType, systems: Immutable<ISystemMiddleware<TEntity>[]>): void;
|
|
384
390
|
/**
|
|
385
|
-
* Registers the middleware of the provided SystemsModule in the current SystemsModule.
|
|
391
|
+
* Registers the middleware of the provided SystemsModule in the current SystemsModule.
|
|
392
|
+
* Keeps the same system types and order.
|
|
393
|
+
* Systems will be appended to the current SystemsModule steps.
|
|
394
|
+
*
|
|
395
|
+
* Use multiple calls to `registerModule` using the `type` parameter to register only a step of the SystemsModule.
|
|
396
|
+
*
|
|
386
397
|
* @param module - The SystemsModule to be registered.
|
|
398
|
+
* @template TModuleEntity - The entity type that the module works on.
|
|
387
399
|
*/
|
|
388
|
-
registerModule
|
|
400
|
+
registerModule?<TModuleEntity extends IEntity>(module: TEntity extends TModuleEntity ? Immutable<ISystemsModuleDefinition<TModuleEntity>> : TModuleEntity, type?: SystemType): void;
|
|
389
401
|
}
|
|
390
402
|
//#endregion
|
|
391
403
|
//#region src/systems/module/systems-module.d.ts
|
|
@@ -456,5 +468,5 @@ interface ISystemsRuntime {
|
|
|
456
468
|
runTick(update?: IEntityUpdate): PipelineResult;
|
|
457
469
|
}
|
|
458
470
|
//#endregion
|
|
459
|
-
export { ISystemContext, ISystemContextEntity, ISystemContextEvents, ISystemContextProxies, ISystemContextRepository, ISystemContextScheduler, ISystemContextSnapshot, ISystemMiddleware, ISystemsModule, ISystemsModuleDefinition, ISystemsModuleRepository, ISystemsRuntime, ISystemsRuntimeContext, ISystemsRuntimeMiddleware, SystemType };
|
|
460
|
-
//# sourceMappingURL=index-
|
|
471
|
+
export { ISystemContext, ISystemContextEntity, ISystemContextEvents, ISystemContextProxies, ISystemContextRepository, ISystemContextScheduler, ISystemContextSnapshot, ISystemMiddleware, ISystemsModule, ISystemsModuleDefinition, ISystemsModuleRepository, ISystemsRuntime, ISystemsRuntimeContext, ISystemsRuntimeMiddleware, SystemRuntime, SystemType };
|
|
472
|
+
//# sourceMappingURL=index-CH8ucsKZ.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EntityProxy, EntityTypeUid, IEntity, IEntityModel, IEntityProxy } from "./identity-component-BDWEtAXA.cjs";
|
|
2
2
|
import { Immutable } from "./types-DvzdpbLu.cjs";
|
|
3
3
|
import { EntityEventUid, IEntityEvent, IEntityRepository, IEntitySnapshot, IEntityUpdate, IEventData } from "./index-DLm-DKAk.cjs";
|
|
4
|
-
import { IMiddleware, IPipeline, IPipelineContext, PipelineResult } from "./index-D81Fo9XN.cjs";
|
|
4
|
+
import { IMiddleware, IPipeline, IPipelineContext, PipelineResult, PipelineRuntime } from "./index-D81Fo9XN.cjs";
|
|
5
5
|
import { IJsonSerializer, ILogger } from "./index-ChV4Q5j6.cjs";
|
|
6
6
|
|
|
7
7
|
//#region src/systems/module/system-type.d.ts
|
|
@@ -15,22 +15,22 @@ declare enum SystemType {
|
|
|
15
15
|
* The initialization phase of the Module pipeline.
|
|
16
16
|
* This phase is typically used for setting up initial state and resources.
|
|
17
17
|
*/
|
|
18
|
-
initialize =
|
|
18
|
+
initialize = 0,
|
|
19
19
|
/**
|
|
20
20
|
* The update phase of the Module pipeline.
|
|
21
21
|
* This phase is responsible for updating the game logic and state of entities.
|
|
22
22
|
*/
|
|
23
|
-
update =
|
|
23
|
+
update = 1,
|
|
24
24
|
/**
|
|
25
25
|
* The render phase of the Module pipeline.
|
|
26
26
|
* This phase is used for rendering the game to the screen.
|
|
27
27
|
*/
|
|
28
|
-
render =
|
|
28
|
+
render = 2,
|
|
29
29
|
/**
|
|
30
30
|
* The synchronization phase of the Module pipeline.
|
|
31
31
|
* This phase is used for synchronizing game state with external systems or other components.
|
|
32
32
|
*/
|
|
33
|
-
sync =
|
|
33
|
+
sync = 3,
|
|
34
34
|
}
|
|
35
35
|
//#endregion
|
|
36
36
|
//#region src/systems/pipeline/system-context-events.d.ts
|
|
@@ -242,6 +242,9 @@ interface ISystemContextSnapshot {
|
|
|
242
242
|
}
|
|
243
243
|
//#endregion
|
|
244
244
|
//#region src/systems/pipeline/system-context.d.ts
|
|
245
|
+
type SystemRuntime = PipelineRuntime & {
|
|
246
|
+
enabledSteps: ReadonlySet<SystemType>;
|
|
247
|
+
};
|
|
245
248
|
/**
|
|
246
249
|
* The ISystemContext is the Context passed to a SystemMiddleware as part of the Pipeline Dispatch.
|
|
247
250
|
* It's an abstraction layer so that the Middleware code won't have explicit dependencies on other parts of the ECS.
|
|
@@ -288,6 +291,10 @@ interface ISystemContext<TEntity extends IEntity> extends IPipelineContext {
|
|
|
288
291
|
* The logger API for the SystemMiddleware to log messages.
|
|
289
292
|
*/
|
|
290
293
|
readonly logger: Immutable<ILogger>;
|
|
294
|
+
/**
|
|
295
|
+
* The runtime API for the SystemMiddleware to interact with the ECS runtime system.
|
|
296
|
+
*/
|
|
297
|
+
readonly runtime: SystemRuntime;
|
|
291
298
|
}
|
|
292
299
|
//#endregion
|
|
293
300
|
//#region src/systems/pipeline/system-context-entity.d.ts
|
|
@@ -325,9 +332,9 @@ interface ISystemContextEntity {
|
|
|
325
332
|
*/
|
|
326
333
|
interface ISystemsRuntimeContext<TEntity extends IEntity> extends IPipelineContext {
|
|
327
334
|
/**
|
|
328
|
-
* A Set of
|
|
335
|
+
* A Set of enabled steps for the SystemPipelines.
|
|
329
336
|
*/
|
|
330
|
-
readonly
|
|
337
|
+
readonly enabledSteps: Set<SystemType>;
|
|
331
338
|
/**
|
|
332
339
|
* An entity provider for the SystemPipelines.
|
|
333
340
|
*/
|
|
@@ -372,7 +379,6 @@ type ISystemMiddleware<TEntity extends IEntity> = IMiddleware<ISystemContext<TEn
|
|
|
372
379
|
* It can be used as building blocks for SystemsModules as a way to register common SystemMiddlewares and share across different Entities.
|
|
373
380
|
*/
|
|
374
381
|
interface ISystemsModuleDefinition<TEntity extends IEntity> {
|
|
375
|
-
readonly systems: Map<SystemType, IPipeline<ISystemContext<TEntity>>>;
|
|
376
382
|
/**
|
|
377
383
|
* Registers SystemMiddlewares to the specified SystemPipelineType.
|
|
378
384
|
*
|
|
@@ -382,10 +388,16 @@ interface ISystemsModuleDefinition<TEntity extends IEntity> {
|
|
|
382
388
|
*/
|
|
383
389
|
registerSystems?(type: SystemType, systems: Immutable<ISystemMiddleware<TEntity>[]>): void;
|
|
384
390
|
/**
|
|
385
|
-
* Registers the middleware of the provided SystemsModule in the current SystemsModule.
|
|
391
|
+
* Registers the middleware of the provided SystemsModule in the current SystemsModule.
|
|
392
|
+
* Keeps the same system types and order.
|
|
393
|
+
* Systems will be appended to the current SystemsModule steps.
|
|
394
|
+
*
|
|
395
|
+
* Use multiple calls to `registerModule` using the `type` parameter to register only a step of the SystemsModule.
|
|
396
|
+
*
|
|
386
397
|
* @param module - The SystemsModule to be registered.
|
|
398
|
+
* @template TModuleEntity - The entity type that the module works on.
|
|
387
399
|
*/
|
|
388
|
-
registerModule
|
|
400
|
+
registerModule?<TModuleEntity extends IEntity>(module: TEntity extends TModuleEntity ? Immutable<ISystemsModuleDefinition<TModuleEntity>> : TModuleEntity, type?: SystemType): void;
|
|
389
401
|
}
|
|
390
402
|
//#endregion
|
|
391
403
|
//#region src/systems/module/systems-module.d.ts
|
|
@@ -456,5 +468,5 @@ interface ISystemsRuntime {
|
|
|
456
468
|
runTick(update?: IEntityUpdate): PipelineResult;
|
|
457
469
|
}
|
|
458
470
|
//#endregion
|
|
459
|
-
export { ISystemContext, ISystemContextEntity, ISystemContextEvents, ISystemContextProxies, ISystemContextRepository, ISystemContextScheduler, ISystemContextSnapshot, ISystemMiddleware, ISystemsModule, ISystemsModuleDefinition, ISystemsModuleRepository, ISystemsRuntime, ISystemsRuntimeContext, ISystemsRuntimeMiddleware, SystemType };
|
|
460
|
-
//# sourceMappingURL=index-
|
|
471
|
+
export { ISystemContext, ISystemContextEntity, ISystemContextEvents, ISystemContextProxies, ISystemContextRepository, ISystemContextScheduler, ISystemContextSnapshot, ISystemMiddleware, ISystemsModule, ISystemsModuleDefinition, ISystemsModuleRepository, ISystemsRuntime, ISystemsRuntimeContext, ISystemsRuntimeMiddleware, SystemRuntime, SystemType };
|
|
472
|
+
//# sourceMappingURL=index-CjNeb3ML.d.cts.map
|
package/dist/systems/index.cjs
CHANGED
|
@@ -10,22 +10,22 @@ let SystemType = /* @__PURE__ */ function(SystemType$1) {
|
|
|
10
10
|
* The initialization phase of the Module pipeline.
|
|
11
11
|
* This phase is typically used for setting up initial state and resources.
|
|
12
12
|
*/
|
|
13
|
-
SystemType$1["initialize"] = "initialize";
|
|
13
|
+
SystemType$1[SystemType$1["initialize"] = 0] = "initialize";
|
|
14
14
|
/**
|
|
15
15
|
* The update phase of the Module pipeline.
|
|
16
16
|
* This phase is responsible for updating the game logic and state of entities.
|
|
17
17
|
*/
|
|
18
|
-
SystemType$1["update"] = "update";
|
|
18
|
+
SystemType$1[SystemType$1["update"] = 1] = "update";
|
|
19
19
|
/**
|
|
20
20
|
* The render phase of the Module pipeline.
|
|
21
21
|
* This phase is used for rendering the game to the screen.
|
|
22
22
|
*/
|
|
23
|
-
SystemType$1["render"] = "render";
|
|
23
|
+
SystemType$1[SystemType$1["render"] = 2] = "render";
|
|
24
24
|
/**
|
|
25
25
|
* The synchronization phase of the Module pipeline.
|
|
26
26
|
* This phase is used for synchronizing game state with external systems or other components.
|
|
27
27
|
*/
|
|
28
|
-
SystemType$1["sync"] = "sync";
|
|
28
|
+
SystemType$1[SystemType$1["sync"] = 3] = "sync";
|
|
29
29
|
return SystemType$1;
|
|
30
30
|
}({});
|
|
31
31
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","names":[],"sources":["../../src/systems/module/system-type.ts"],"sourcesContent":["/**\n * Enum representing the built-in System pipeline types.\n * These types 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 /**\n * The initialization phase of the Module pipeline.\n * This phase is typically used for setting up initial state and resources.\n */\n initialize =
|
|
1
|
+
{"version":3,"file":"index.cjs","names":[],"sources":["../../src/systems/module/system-type.ts"],"sourcesContent":["/**\n * Enum representing the built-in System pipeline types.\n * These types 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 /**\n * The initialization phase of the Module pipeline.\n * This phase is typically used for setting up initial state and resources.\n */\n initialize = 0,\n\n /**\n * The update phase of the Module pipeline.\n * This phase is responsible for updating the game logic and state of entities.\n */\n update = 1,\n\n /**\n * The render phase of the Module pipeline.\n * This phase is used for rendering the game to the screen.\n */\n render = 2,\n\n /**\n * The synchronization phase of the Module pipeline.\n * This phase is used for synchronizing game state with external systems or other components.\n */\n sync = 3\n}\n"],"mappings":";;;;;;;AAKA,IAAY,oDAAL;;;;;AAKL;;;;;AAMA;;;;;AAMA;;;;;AAMA;;AACD"}
|
package/dist/systems/index.d.cts
CHANGED
|
@@ -3,5 +3,5 @@ import "../types-DvzdpbLu.cjs";
|
|
|
3
3
|
import "../index-DLm-DKAk.cjs";
|
|
4
4
|
import "../index-D81Fo9XN.cjs";
|
|
5
5
|
import "../index-ChV4Q5j6.cjs";
|
|
6
|
-
import { ISystemContext, ISystemContextEntity, ISystemContextEvents, ISystemContextProxies, ISystemContextRepository, ISystemContextScheduler, ISystemContextSnapshot, ISystemMiddleware, ISystemsModule, ISystemsModuleDefinition, ISystemsModuleRepository, ISystemsRuntime, ISystemsRuntimeContext, ISystemsRuntimeMiddleware, SystemType } from "../index-
|
|
7
|
-
export { ISystemContext, ISystemContextEntity, ISystemContextEvents, ISystemContextProxies, ISystemContextRepository, ISystemContextScheduler, ISystemContextSnapshot, ISystemMiddleware, ISystemsModule, ISystemsModuleDefinition, ISystemsModuleRepository, ISystemsRuntime, ISystemsRuntimeContext, ISystemsRuntimeMiddleware, SystemType };
|
|
6
|
+
import { ISystemContext, ISystemContextEntity, ISystemContextEvents, ISystemContextProxies, ISystemContextRepository, ISystemContextScheduler, ISystemContextSnapshot, ISystemMiddleware, ISystemsModule, ISystemsModuleDefinition, ISystemsModuleRepository, ISystemsRuntime, ISystemsRuntimeContext, ISystemsRuntimeMiddleware, SystemRuntime, SystemType } from "../index-CjNeb3ML.cjs";
|
|
7
|
+
export { ISystemContext, ISystemContextEntity, ISystemContextEvents, ISystemContextProxies, ISystemContextRepository, ISystemContextScheduler, ISystemContextSnapshot, ISystemMiddleware, ISystemsModule, ISystemsModuleDefinition, ISystemsModuleRepository, ISystemsRuntime, ISystemsRuntimeContext, ISystemsRuntimeMiddleware, SystemRuntime, SystemType };
|
package/dist/systems/index.d.ts
CHANGED
|
@@ -3,5 +3,5 @@ import "../types-yh4pOGEm.js";
|
|
|
3
3
|
import "../index-C3UGZqUG.js";
|
|
4
4
|
import "../index-Cm-YSPhK.js";
|
|
5
5
|
import "../index-oenqxDCa.js";
|
|
6
|
-
import { ISystemContext, ISystemContextEntity, ISystemContextEvents, ISystemContextProxies, ISystemContextRepository, ISystemContextScheduler, ISystemContextSnapshot, ISystemMiddleware, ISystemsModule, ISystemsModuleDefinition, ISystemsModuleRepository, ISystemsRuntime, ISystemsRuntimeContext, ISystemsRuntimeMiddleware, SystemType } from "../index-
|
|
7
|
-
export { ISystemContext, ISystemContextEntity, ISystemContextEvents, ISystemContextProxies, ISystemContextRepository, ISystemContextScheduler, ISystemContextSnapshot, ISystemMiddleware, ISystemsModule, ISystemsModuleDefinition, ISystemsModuleRepository, ISystemsRuntime, ISystemsRuntimeContext, ISystemsRuntimeMiddleware, SystemType };
|
|
6
|
+
import { ISystemContext, ISystemContextEntity, ISystemContextEvents, ISystemContextProxies, ISystemContextRepository, ISystemContextScheduler, ISystemContextSnapshot, ISystemMiddleware, ISystemsModule, ISystemsModuleDefinition, ISystemsModuleRepository, ISystemsRuntime, ISystemsRuntimeContext, ISystemsRuntimeMiddleware, SystemRuntime, SystemType } from "../index-CH8ucsKZ.js";
|
|
7
|
+
export { ISystemContext, ISystemContextEntity, ISystemContextEvents, ISystemContextProxies, ISystemContextRepository, ISystemContextScheduler, ISystemContextSnapshot, ISystemMiddleware, ISystemsModule, ISystemsModuleDefinition, ISystemsModuleRepository, ISystemsRuntime, ISystemsRuntimeContext, ISystemsRuntimeMiddleware, SystemRuntime, SystemType };
|
package/dist/systems/index.js
CHANGED
|
@@ -9,22 +9,22 @@ let SystemType = /* @__PURE__ */ function(SystemType$1) {
|
|
|
9
9
|
* The initialization phase of the Module pipeline.
|
|
10
10
|
* This phase is typically used for setting up initial state and resources.
|
|
11
11
|
*/
|
|
12
|
-
SystemType$1["initialize"] = "initialize";
|
|
12
|
+
SystemType$1[SystemType$1["initialize"] = 0] = "initialize";
|
|
13
13
|
/**
|
|
14
14
|
* The update phase of the Module pipeline.
|
|
15
15
|
* This phase is responsible for updating the game logic and state of entities.
|
|
16
16
|
*/
|
|
17
|
-
SystemType$1["update"] = "update";
|
|
17
|
+
SystemType$1[SystemType$1["update"] = 1] = "update";
|
|
18
18
|
/**
|
|
19
19
|
* The render phase of the Module pipeline.
|
|
20
20
|
* This phase is used for rendering the game to the screen.
|
|
21
21
|
*/
|
|
22
|
-
SystemType$1["render"] = "render";
|
|
22
|
+
SystemType$1[SystemType$1["render"] = 2] = "render";
|
|
23
23
|
/**
|
|
24
24
|
* The synchronization phase of the Module pipeline.
|
|
25
25
|
* This phase is used for synchronizing game state with external systems or other components.
|
|
26
26
|
*/
|
|
27
|
-
SystemType$1["sync"] = "sync";
|
|
27
|
+
SystemType$1[SystemType$1["sync"] = 3] = "sync";
|
|
28
28
|
return SystemType$1;
|
|
29
29
|
}({});
|
|
30
30
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../src/systems/module/system-type.ts"],"sourcesContent":["/**\n * Enum representing the built-in System pipeline types.\n * These types 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 /**\n * The initialization phase of the Module pipeline.\n * This phase is typically used for setting up initial state and resources.\n */\n initialize =
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/systems/module/system-type.ts"],"sourcesContent":["/**\n * Enum representing the built-in System pipeline types.\n * These types 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 /**\n * The initialization phase of the Module pipeline.\n * This phase is typically used for setting up initial state and resources.\n */\n initialize = 0,\n\n /**\n * The update phase of the Module pipeline.\n * This phase is responsible for updating the game logic and state of entities.\n */\n update = 1,\n\n /**\n * The render phase of the Module pipeline.\n * This phase is used for rendering the game to the screen.\n */\n render = 2,\n\n /**\n * The synchronization phase of the Module pipeline.\n * This phase is used for synchronizing game state with external systems or other components.\n */\n sync = 3\n}\n"],"mappings":";;;;;;AAKA,IAAY,oDAAL;;;;;AAKL;;;;;AAMA;;;;;AAMA;;;;;AAMA;;AACD"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@awesome-ecs/abstract",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.22.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": "9e875e10e5191853fb48c20b3ebb3eafc8c002b1"
|
|
101
101
|
}
|