Make benchmark work on native
This commit is contained in:
+3
-2
@@ -14,8 +14,9 @@ export interface Platform {
|
||||
restart(url: URL): void;
|
||||
// calls frame once it's time for the next frame, with the time like performance.now()
|
||||
request_frame(frame: (time: number) => void): void;
|
||||
// calls shown when the game can be seen again after being hidden, there are no frames meanwhile
|
||||
on_shown(shown: () => void): void;
|
||||
// calls shown when the game can be seen again after being hidden, there are no frames meanwhile. returns what
|
||||
// stops calling it
|
||||
on_shown(shown: () => void): () => void;
|
||||
// what's remembered from one time to the next, like the servers whose mods the player trusts. it can throw, like a
|
||||
// browser's in a private window
|
||||
storage: Pick<Storage, "getItem" | "setItem">;
|
||||
|
||||
Reference in New Issue
Block a user