Skip to content

Commit

Permalink
Merge pull request ecsyjs#241 from xr3ngine-archive/init-typescript
Browse files Browse the repository at this point in the history
Added init() to System.d.ts
  • Loading branch information
fernandojsg authored Aug 6, 2020
2 parents 695a720 + 74a5f34 commit 42ce1a3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/System.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,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.
*/
init(attributes?: Attributes): void

/**
* Resume execution of this system.
*/
Expand Down

0 comments on commit 42ce1a3

Please sign in to comment.