コード例 #1
0
ファイル: StatusEffect.cs プロジェクト: Cossinus/NovemoG
        public override int GetHashCode()
        {
            unchecked
            {
                var hashCode = EffectName != null?EffectName.GetHashCode() : 0;

                hashCode = (hashCode * 397) ^ EffectDuration.GetHashCode();
                hashCode = (hashCode * 397) ^ EffectPower.GetHashCode();
                hashCode = (hashCode * 397) ^ EffectRate.GetHashCode();
                hashCode = (hashCode * 397) ^ IsDecaying.GetHashCode();
                hashCode = (hashCode * 397) ^ StatIndex;
                hashCode = (hashCode * 397) ^ (TargetStats != null ? TargetStats.GetHashCode() : 0);
                return(hashCode);
            }
        }
コード例 #2
0
 public override int GetHashCode()
 {
     return(EffectDuration.GetHashCode());
 }