-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathapp.ts
More file actions
43 lines (33 loc) · 1.08 KB
/
app.ts
File metadata and controls
43 lines (33 loc) · 1.08 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
namespace microgui {
import Scene = user_interface_base.Scene
import SceneManager = user_interface_base.SceneManager
// Auto-save slot
export const SAVESLOT_AUTO = "sa"
export interface SavedState {
progdef: any
version?: string
}
// application configuration
user_interface_base.getIcon = (id) => user_interface_base.icons.get(id as string)
user_interface_base.resolveTooltip = (ariaId: string) => ariaId
export class App {
private sceneManager: SceneManager
constructor() {
// One interval delay to ensure all static constructors have executed.
basic.pause(10)
this.sceneManager = new SceneManager()
}
public pushScene(scene: Scene) {
this.sceneManager.pushScene(scene)
}
public popScene() {
this.sceneManager.popScene()
}
public save(slot: string, buffer: Buffer): boolean {
return true;
}
public load(slot: string): Buffer {
return Buffer.create(0)
}
}
}