Skip to content

Commit

Permalink
improve defaults for system instantiation
Browse files Browse the repository at this point in the history
  • Loading branch information
minecrawler committed May 10, 2023
1 parent d3b88e8 commit 60147ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/system/system-builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import type {ISystem, TSystemFunction, TSystemParameterDesc} from "./system.spec
export * from "./system-builder.spec.ts";

export class SystemBuilder<PARAMDESC extends TSystemParameterDesc> implements ISystemBuilder<Readonly<PARAMDESC>> {
systemName: string = '';
systemName: string = 'ECS_Unnamed_System';
parameterDesc: Readonly<PARAMDESC>;
setupFunction: TSystemFunction<Readonly<PARAMDESC>> = () => {};
runFunction: TSystemFunction<Readonly<PARAMDESC>> = () => {};
Expand All @@ -24,7 +24,7 @@ export class SystemBuilder<PARAMDESC extends TSystemParameterDesc> implements IS
};

Object.defineProperty(System, 'name', {
configurable: true,
configurable: false,
writable: false,
enumerable: false,
value: this.systemName,
Expand Down

0 comments on commit 60147ab

Please sign in to comment.