refactor console verbosity and internal env handling

This commit is contained in:
dswbx
2025-03-04 11:18:14 +01:00
parent 36fba4588f
commit ab73b02138
13 changed files with 256 additions and 142 deletions
+6 -6
View File
@@ -32,8 +32,6 @@ export class Mutator<
Input = Omit<Output, "id">,
> implements EmitsEvents
{
em: EntityManager<TBD>;
entity: Entity;
static readonly Events = MutatorEvents;
emgr: EventManager<typeof MutatorEvents>;
@@ -43,10 +41,12 @@ export class Mutator<
this.__unstable_disable_system_entity_creation = value;
}
constructor(em: EntityManager<TBD>, entity: Entity, emgr?: EventManager<any>) {
this.em = em;
this.entity = entity;
this.emgr = emgr ?? new EventManager(MutatorEvents);
constructor(
public em: EntityManager<TBD>,
public entity: Entity,
protected options?: { emgr?: EventManager<any> },
) {
this.emgr = options?.emgr ?? new EventManager(MutatorEvents);
}
private get conn() {