Esempio n. 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="GenericThingSelector"/> class.
        /// </summary>
        /// <param name="other"> Copy <paramref name="other"/> to this selector. </param>
        public GenericThingSelector(GenericThingSelector other)
        {
            ValidateArg.NotNull(other, nameof(other));

            _genericDef = other._genericDef;
            _genericDef.thingCategories.ForEach(t => _thingFilter.SetAllow(t, true, _genericDef.ExcepDefs));
        }
Esempio n. 2
0
        public GenericThingSelector(GenericThingSelector other)
        {
            ValidateArg.NotNull(other, nameof(other));

            _genericDef = other._genericDef;
            foreach (ThingDef def in _genericDef.AvailableDefs)
            {
                _thingFilter.SetAllow(def, true);
            }
        }