Skip to content

GeneratorForm beta ​

Function of @v12-engine/client/hud

ts
export declare function GeneratorForm(props: {
    rules: Rules;
    generator: MapGenerator;
    generate: (options: GeneratorOptions) => {
        map: GameMap;
        problems: MapProblem[];
        seed: number;
    } | undefined | Promise<{
        map: GameMap;
        problems: MapProblem[];
        seed: number;
    } | undefined>;
    picture: (map: GameMap) => string;
    initial?: Partial<GeneratorOptions>;
    onState?: (state: GeneratorFormState) => void;
    modelTriangles?: (model: string) => number | undefined;
}): import("solid-js").JSX.Element;

The controls of a generator of maps (world plan G2, G3): the size, the players, the symmetry, the seed (šŸŽ² for another) and the generator's own parameters as sliders, switches and choices; and a picture of the map it makes, made again as the controls settle, with the seed it came out of, how long it took and what is wrong with it. What the editor's New map from a generator and the start screen's random map are made of. Tells what it is as it changes (onState)