import { SpriteRegion } from "$/common/constants.ts"; import { AssetManager } from "./assets.ts"; type TexturesInfo = Record; export function get_sprite_region(id: string): SpriteRegion { const textures_info = AssetManager.instance.get("bworld:textures_info"); return textures_info?.[id] ?? { x: 0, y: 0 }; }