import type { GameRuntime } from "../app/runtime"; import type { Button } from "../input/types"; import { CrystalAssets } from "./rom/assets"; import { GameWorld, TICKS_PER_SECOND } from "./world/world"; import type { BattleAction } from "./battle/battle"; import type { Direction } from "./world/types"; import { WorldRenderer } from "./rendering/renderer"; export class NativeRuntime implements GameRuntime { readonly id = "crystal-native-world-v1"; world?: GameWorld; fieldMenuOpen = false; private renderer?: WorldRenderer; private pressed = new Set