Move away from browser as a main plataform

This commit is contained in:
2026-11-22 21:38:12 -03:00
parent cbd662dc2a
commit 90dd86b336
12 changed files with 166 additions and 150 deletions
-4
View File
@@ -3,7 +3,6 @@
// what the client needs from where it runs: a browser page (browser_platform.ts), or the desktop app's window, where
// it runs in deno with no browser (native/). the entry point sets it before anything else runs
import type { ServerAddress, Welcome } from "./handshake.ts";
import type { GuiScreen } from "./gui/gui_screen.ts";
export interface Platform {
@@ -24,9 +23,6 @@ export interface Platform {
confirm_leaving(confirm: boolean): void;
// replaces the game with a message, for when it can't go on
show_fatal_error(message: string): void;
// asks before running the mods of a server that isn't the page's own, see docs/modding/concepts/security.md.
// resolves with whether the player wants to join
confirm_mods(address: ServerAddress, welcome: Welcome): Promise<boolean>;
// who made what: the engine's assets/ASSETS.md, then each loaded mod's credits file
credits_screen(on_back: () => void): GuiScreen;
read_clipboard(): Promise<string>;