hex-world
    Preparing search index...

    Function generateMapAsync

    • Cancellable, non-blocking form of generateMap: runs the full procedural pipeline in event-loop-friendly slices, reporting progress per pass. Deterministic — same seed + config produces the same map as generateMap.

      Parameters

      Returns Promise<void>

      const controller = new AbortController();
      await generateMapAsync(map, config, seed, {
      signal: controller.signal,
      onProgress: p => loadingBar.set(p.progress, p.pass),
      });