Class CombinedItemSelector
- Namespace
- RandomizerCore.Randomization
- Assembly
- RandomizerCore.dll
Selector which manages multiple GroupItemSelectors, with the goal of proposing lowest priority items from available RandomizationGroups.
public class CombinedItemSelector
- Inheritance
-
CombinedItemSelector
- Inherited Members
Constructors
CombinedItemSelector(RandomizationGroup[])
public CombinedItemSelector(RandomizationGroup[] groups)
Parameters
groups
RandomizationGroup[]
Properties
Finished
public bool Finished { get; }
Property Value
Methods
AcceptLast()
public void AcceptLast()
CollectDiscardedItems(out List<IRandoItem>[])
public void CollectDiscardedItems(out List<IRandoItem>[] discardedItems)
Parameters
discardedItems
List<IRandoItem>[]
Finish(out List<IRandoItem>[])
Outputs all items which have not yet been accepted.
public void Finish(out List<IRandoItem>[] newItems)
Parameters
newItems
List<IRandoItem>[]
FinishAccepting(out List<IRandoItem>[])
Outputs list of accepted items. Restores all rejected items and starts new acccepted item list.
public void FinishAccepting(out List<IRandoItem>[] newItems)
Parameters
newItems
List<IRandoItem>[]
Exceptions
- InvalidOperationException
There are unhandled proposed items.
GetAcceptedItems()
public IEnumerable<IRandoItem> GetAcceptedItems()
Returns
GetProposedItems()
public IEnumerable<IRandoItem> GetProposedItems()
Returns
GetTestItems()
Enumerates all proposed or accepted items, except for the current proposed item.
public IEnumerable<IRandoItem> GetTestItems()
Returns
RejectAllRemaining()
public void RejectAllRemaining()
RejectCurrentAndUnacceptAll()
public void RejectCurrentAndUnacceptAll()
RejectLast()
public void RejectLast()
TryProposeNext(out IRandoItem)
public bool TryProposeNext(out IRandoItem item)
Parameters
item
IRandoItem
Returns
TryRecallLast(out IRandoItem)
public bool TryRecallLast(out IRandoItem item)
Parameters
item
IRandoItem
Returns
TryRecallLast(out IRandoItem, out bool)
public bool TryRecallLast(out IRandoItem item, out bool coupled)
Parameters
item
IRandoItemcoupled
bool
Returns
UpdateCaps(Sphere[])
public void UpdateCaps(Sphere[] last)
Parameters
last
Sphere[]