Esempio n. 1
0
            public ITUNSettings(string name, InteractionTuning tuning, bool isDefault)
                : this(name)
            {
                mAutonomous   = !tuning.HasFlags(InteractionTuning.FlagField.DisallowAutonomous);
                mUserDirected = !tuning.HasFlags(InteractionTuning.FlagField.DisallowUserDirected);
                mAgeSpecies   = tuning.Availability.AgeSpeciesAvailabilityFlags;
                mAvailability = tuning.Availability.mFlags;

                if (isDefault)
                {
                    mFlags = Flags.All;
                }
            }
Esempio n. 2
0
        public AbductionTuningControl(InteractionTuning tuning, bool allowTeen)
        {
            mTuning = tuning;

            try
            {
                if (mTuning != null)
                {
                    mTuning.Availability.Teens  = allowTeen;
                    mTuning.Availability.Adults = true;
                    mTuning.Availability.Elders = true;
                    mDisallowAutonomous         = mTuning.HasFlags(InteractionTuning.FlagField.DisallowAutonomous);
                    mDisallowUserDirected       = mTuning.HasFlags(InteractionTuning.FlagField.DisallowUserDirected);
                }
            }
            catch (Exception e)
            {
                Common.Exception("AbductionTuningControl", e);
            }
        }
Esempio n. 3
0
        public WoohooTuningControl(InteractionTuning tuning, bool allowTeen)
        {
            mTuning = tuning;

            try
            {
                if (mTuning != null)
                {
                    mTuning.Availability.Teens = allowTeen;
                    mTuning.Availability.Adults = true;
                    mTuning.Availability.Elders = true;

                    mDisallowAutonomous = mTuning.HasFlags(InteractionTuning.FlagField.DisallowAutonomous);
                    mDisallowUserDirected = mTuning.HasFlags(InteractionTuning.FlagField.DisallowUserDirected);
                }
            }
            catch (Exception e)
            {
                Common.Exception("WoohooTuningControl", e);
            }
        }
Esempio n. 4
0
            public ITUNSettings(string name, InteractionTuning tuning, bool isDefault)
                : this(name)
            {
                mAutonomous = !tuning.HasFlags(InteractionTuning.FlagField.DisallowAutonomous);
                mUserDirected = !tuning.HasFlags(InteractionTuning.FlagField.DisallowUserDirected);
                mAgeSpecies = tuning.Availability.AgeSpeciesAvailabilityFlags;
                mAvailability = tuning.Availability.mFlags;

                if (isDefault)
                {
                    mFlags = Flags.All;
                }
            }