private void SetFlag(GainSkillObjectiveFlags flag, bool value)
 {
     if (value)
     {
         m_Flags |= flag;
     }
     else
     {
         m_Flags &= ~flag;
     }
 }
Beispiel #2
0
		public GainSkillObjective( SkillName skill, int thresholdFixed, bool useReal, bool accelerate )
		{
			m_Skill = skill;
			m_ThresholdFixed = thresholdFixed;
			m_Flags = GainSkillObjectiveFlags.None;

			if ( useReal )
				m_Flags |= GainSkillObjectiveFlags.UseReal;

			if ( accelerate )
				m_Flags |= GainSkillObjectiveFlags.Accelerate;
		}
        public GainSkillObjective(SkillName skill, int thresholdFixed, bool useReal, bool accelerate)
        {
            m_Skill          = skill;
            m_ThresholdFixed = thresholdFixed;
            m_Flags          = GainSkillObjectiveFlags.None;

            if (useReal)
            {
                m_Flags |= GainSkillObjectiveFlags.UseReal;
            }

            if (accelerate)
            {
                m_Flags |= GainSkillObjectiveFlags.Accelerate;
            }
        }
Beispiel #4
0
        public GainSkillObjective(SkillName skill = SkillName.Alchemy, int thresholdFixed = 0, bool useReal = false, bool accelerate = false)
        {
            Skill          = skill;
            ThresholdFixed = thresholdFixed;
            m_Flags        = GainSkillObjectiveFlags.None;

            if (useReal)
            {
                m_Flags |= GainSkillObjectiveFlags.UseReal;
            }

            if (accelerate)
            {
                m_Flags |= GainSkillObjectiveFlags.Accelerate;
            }
        }
 private bool GetFlag(GainSkillObjectiveFlags flag)
 {
     return((m_Flags & flag) != 0);
 }
Beispiel #6
0
		private void SetFlag( GainSkillObjectiveFlags flag, bool value )
		{
			if ( value )
				m_Flags |= flag;
			else
				m_Flags &= ~flag;
		}
Beispiel #7
0
		private bool GetFlag( GainSkillObjectiveFlags flag )
		{
			return ( ( m_Flags & flag ) != 0 );
		}