Skip to content

Latest commit

 

History

History
17 lines (16 loc) · 1.43 KB

File metadata and controls

17 lines (16 loc) · 1.43 KB

GenerationSpace.CollapseSlot(Slot) Method

Given a slot with many module possibilities, collapse the possibility space so that only one module is possible for the given slot.
This will cause many propagation events, and may cause other slots to collapse to a single module possibility as well.
If the given slot has many module possibilities, one module will be selected at random.

public System.Collections.Generic.IEnumerable<BrewedInk.WFC.WFCProgress> CollapseSlot(BrewedInk.WFC.Slot slot);

Parameters

slot Slot
The slot to collapse to a single module possibility

Returns

System.Collections.Generic.IEnumerable<WFCProgress>
A sequence of WFCProgress representing the completion of the collapse operation. The resulting sequence must be enumerated, or the collapse won't complete.