From 50f850bce3a6f2c62bf6a0587683f2de25e57d11 Mon Sep 17 00:00:00 2001 From: shawticus Date: Wed, 5 Aug 2020 19:16:01 -0700 Subject: [PATCH 1/2] Added init to System.d.ts --- src/System.d.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/System.d.ts b/src/System.d.ts index 4dd3fabf..a777903f 100644 --- a/src/System.d.ts +++ b/src/System.d.ts @@ -44,10 +44,17 @@ export abstract class System { } world: World; + /** * Whether the system will execute during the world tick. */ enabled: boolean; + + /** + * Called when the system is added to the world. + */ + abstract init(attributes?: Attributes): void + /** * Resume execution of this system. */ From 74a5f34e616a7a3f3f546c6403a749662dd85185 Mon Sep 17 00:00:00 2001 From: shawticus Date: Thu, 6 Aug 2020 00:57:33 -0700 Subject: [PATCH 2/2] Shouldn't be abstract --- src/System.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/System.d.ts b/src/System.d.ts index a777903f..f4f99754 100644 --- a/src/System.d.ts +++ b/src/System.d.ts @@ -53,7 +53,7 @@ export abstract class System { /** * Called when the system is added to the world. */ - abstract init(attributes?: Attributes): void + init(attributes?: Attributes): void /** * Resume execution of this system.