Skip to content

serveMapGenerator beta ​

Function of @v12-engine/engine

ts
export declare function serveMapGenerator(game: Game<unknown> | Rules, port?: NavigationPort): void;

What a worker's file of a game's maps does: it makes, with the game's generator (Rules.generator) and its registry, the map of each set of options it is sent, and sends it back. A worker's file of two lines, the game's rules imported and this called with them; port is where it hears, as for serveNavigationBuilds: the worker's own scope when left out