Skip to content
This repository has been archived by the owner on Jun 1, 2022. It is now read-only.

Added init() to System.d.ts #241

Merged
merged 2 commits into from
Aug 6, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/System.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
init(attributes?: Attributes): void

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