diff --git a/src/System.d.ts b/src/System.d.ts index 299807de..fcd5197a 100644 --- a/src/System.d.ts +++ b/src/System.d.ts @@ -21,7 +21,7 @@ export interface SystemQueries { /** * A system that manipulates entities in the world. */ -export abstract class System { +export abstract class System = World> { /** * Defines what Components the System will query for. * This needs to be user defined. @@ -30,7 +30,7 @@ export abstract class System { static isSystem: true; - constructor(world: World, attributes?: Attributes); + constructor(world: WorldType, attributes?: Attributes); /** * The results of the queries. @@ -45,7 +45,7 @@ export abstract class System { } } - world: World; + world: WorldType; /** * Whether the system will execute during the world tick.