Skip to content

MapCommandOptions beta ​

Interface of @v12-engine/editor/map-command

ts
export interface MapCommandOptions

What the map command works with (mapCommand)

Members ​

games ​

ts
games: Record<string, MapCommandGame>;

The games it knows, by id

load ​

ts
load: (path: string) => Promise<unknown>;

Loads a script for run (Vite's ssrLoadModule, or import)

mapsOf ​

ts
mapsOf: (game: string) => string;

Where a game's maps are: check with no map looks there, generate writes there

name ​

ts
name?: string;

How the command is called, in its help: v12 map, npm run map

root ​

ts
root?: string;

What paths are shown from, in check's lines