Generates the population of world from input (anything missing comes from the defaults).
Optionalframe: LocalFrame
Local frame to work in (overrides options.location).
Cells, settlements and land use.
Roads, railways and power lines.
Resolved settings. Change them with Population.set / Population.reset.
Bumped on every regeneration.
ReadonlyworldThe world people live on.
Stops following the world and drops all listeners.
Regenerates whenever the world changes (on from construction). Returns a function that stops it;
calling follow again resumes.
Calls listener after every regeneration. Returns an unsubscribe function.
Replaces all settings: anything not in input goes back to DEFAULT_POPULATION.
Merges input into the current settings (nested objects merge; arrays replace) and regenerates.
A live population over a world: settings in, PopulationData and a Network out, regenerated (synchronously, deterministically) whenever the settings or the world change.
Example