public void ChangeSpellRefix(EM_EFFECT_SOURCE_TYPE nEffectType, EM_SPELL_REFIX nType, int nValue, bool bRemove) { //LogManager.LogAssert(m_pSpellDB); if (((int)nType <= (int)EM_SPELL_REFIX.EM_SPELL_REFIX_INVALID) || ((int)nType >= (int)EM_SPELL_REFIX.EM_SPELL_REFIX_NUMBER)) { LogManager.LogAssert(0); } if (bRemove) { if (nEffectType == EM_EFFECT_SOURCE_TYPE.EM_EFFECT_SOURCE_TYPE_RUNE) { m_EquipRefixAttay[(int)nType] = m_EquipRefixAttay[(int)nType] - nValue; } else if (nEffectType == EM_EFFECT_SOURCE_TYPE.EM_EFFECT_SOURCE_TYPE_IMPACT) { m_ImpactRefixAttay[(int)nType] = m_ImpactRefixAttay[(int)nType] - nValue; } } else { if (nEffectType == EM_EFFECT_SOURCE_TYPE.EM_EFFECT_SOURCE_TYPE_RUNE) { m_EquipRefixAttay[(int)nType] = m_EquipRefixAttay[(int)nType] + nValue; } else if (nEffectType == EM_EFFECT_SOURCE_TYPE.EM_EFFECT_SOURCE_TYPE_IMPACT) { m_ImpactRefixAttay[(int)nType] = m_ImpactRefixAttay[(int)nType] + nValue; } } //m_BitFlag.MarkFlagByIndex(nType); SetBitFlag(nType); }
public void SetBitFlag(EM_SPELL_REFIX nType) { //LogManager.LogAssert(m_pSpellDB); LogManager.LogAssert(IsValid()); m_BitFlag.UpdateBits((int)nType, true); }
void ClearBitFlag(EM_SPELL_REFIX nType) { //LogManager.LogAssert(m_pSpellDB); LogManager.LogAssert(IsValid()); m_BitFlag.UpdateBits((int)nType, false); }
public bool IsBitSet(EM_SPELL_REFIX nType) { //LogManager.LogAssert(m_pSpellDB); LogManager.LogAssert(IsValid()); return(m_BitFlag.isSetBit((int)nType)); return(false); }