public void SetFlag(SkillScrollFlags flag, bool value) { if (value) { m_Flags |= flag; } else { m_Flags &= ~flag; } }
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 bool GetFlag(SkillScrollFlags flag) { return (m_Flags & flag) != 0; }
public bool GetFlag(SkillScrollFlags flag) { return((m_Flags & flag) != 0); }