Skip to content

Commit

Permalink
REFACTOR #142 type of class as parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
mkraenz committed May 11, 2020
1 parent 751b8ee commit 6fc46b6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/scenes/mainScene.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,7 @@ export class MainScene extends Scene {
this.goto("badEndScene", BadEndScene);
}

// tslint:disable-next-line: ban-types
private goto(key: string, sceneClass: Function) {
private goto(key: string, sceneClass: new (name: string) => Scene) {
this.scene.add(key, sceneClass, true);
this.scene.remove("MainScene");
}
Expand Down

0 comments on commit 6fc46b6

Please sign in to comment.