Exemplo n.º 1
0
        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;
        }
Exemplo n.º 2
0
        public WeightedSelector(ICore mCore, SelectorOptions options = null)
        {
            if (options == null)
            {
                options = new SelectorOptions();
            }

            ModelCore = mCore;

            this.Options             = options;
            IsCumulativeWeightsStale = false;
        }