Table of Contents

Method Generate

Namespace
Pinwheel.Vista
Assembly
Pinwheel.Vista.Runtime.dll

Generate(IEnumerable<ITile>)

Requests generation for an authoritative set of tiles.

public GenerationTask Generate(IEnumerable<ITile> tiles)

Parameters

tiles IEnumerable<ITile>

The complete, authoritative tile set for this request. The Manager snapshots the sequence immediately and does not combine it with earlier requests.

Returns

GenerationTask

A task representing only this request. The task is cancelled if the request is superseded before starting or if active cancellation is observed before a tile or after one of its biome-data requests.

Remarks

If another request is active, this method asks it to cancel and stores the new request as the only pending replacement. The coordinator starts the replacement only after active work reaches a terminal point. Cancellation can stop long biome graph execution or prevent a later tile from starting. Once all biome requests for a tile finish, blending and population complete without another cancellation checkpoint so the tile is not left partially populated.

Exceptions

ArgumentNullException

Thrown when tiles is null.

ArgumentException

Thrown when the collection contains a null tile.