Exemple #1
0
 public void SetFlag(SkillScrollFlags flag, bool value)
 {
     if (value)
     {
         m_Flags |= flag;
     }
     else
     {
         m_Flags &= ~flag;
     }
 }
Exemple #2
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);

            int version = reader.ReadEncodedInt();

            switch (version)
            {
            case 0:
            {
                if (SkillBonus == 0)
                {
                    SkillBonus = 1;
                }
                m_Flags      = (SkillScrollFlags)reader.ReadEncodedInt();
                m_SkillBonus = reader.ReadInt();
                m_SkillName  = (SkillName)reader.ReadByte();
                break;
            }
            }
        }
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);

            int version = reader.ReadEncodedInt();

            switch (version)
            {
                case 0:
                {
                    if (SkillBonus == 0)
                        SkillBonus = 1;
                    m_Flags = (SkillScrollFlags) reader.ReadEncodedInt();
                    m_SkillBonus = reader.ReadInt();
                    m_SkillName = (SkillName) reader.ReadByte();
                    break;
                }
            }
        }
 public void SetFlag(SkillScrollFlags flag, bool value)
 {
     if (value)
     {
         m_Flags |= flag;
     }
     else
     {
         m_Flags &= ~flag;
     }
 }
 public bool GetFlag(SkillScrollFlags flag)
 {
     return (m_Flags & flag) != 0;
 }
Exemple #6
0
 public bool GetFlag(SkillScrollFlags flag)
 {
     return((m_Flags & flag) != 0);
 }