-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathapp.ts
More file actions
28 lines (24 loc) · 724 Bytes
/
app.ts
File metadata and controls
28 lines (24 loc) · 724 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
namespace kodu {
export class App {
stageManager: StageManager;
worldStage: WorldStage;
constructor() {
// One interval delay to ensure all static constructors have executed.
setTimeout(() => {
icons.init();
this.stageManager = new StageManager();
this.worldStage = new WorldStage(this);
this.pushStage(this.worldStage);
}, 1);
}
public saveProject() {
this.worldStage.save();
}
public pushStage(stage: Stage) {
this.stageManager.push(stage);
}
public popStage() {
this.stageManager.pop();
}
}
}