private Boolean IsCumulativeWeightsStale; //forces recalc of CumulativeWeights any time our list of WeightedItems changes. public WeightedSelector(SelectorOptions options = null) { if (options == null) { options = new SelectorOptions(); } this.Options = options; IsCumulativeWeightsStale = false; }
public WeightedSelector(ICore mCore, SelectorOptions options = null) { if (options == null) { options = new SelectorOptions(); } ModelCore = mCore; this.Options = options; IsCumulativeWeightsStale = false; }