LazyMaps beta
TypeAlias of @v12-engine/engine
ts
export type LazyMaps = Readonly<Record<string, () => Promise<GameMap>>>;The maps of a game, each read as it is asked for (mapsFrom given loaders): a function giving the map, a promise. A map is read (parseMap) once, when first asked; the next ask gets the same map, which a game copies before it changes anything (structuredClone)