public override int GetHashCode()
        {
            int hash = 1;

            if (ConfigId != 0)
            {
                hash ^= ConfigId.GetHashCode();
            }
            hash ^= skills_.GetHashCode();
            if (FinalAttack != 0)
            {
                hash ^= FinalAttack.GetHashCode();
            }
            if (FinalDefence != 0)
            {
                hash ^= FinalDefence.GetHashCode();
            }
            if (FinalHealth != 0)
            {
                hash ^= FinalHealth.GetHashCode();
            }
            if (FinalActionSpeed != 0)
            {
                hash ^= FinalActionSpeed.GetHashCode();
            }
            return(hash);
        }
Exemple #2
0
            public override int GetHashCode()
            {
                const int prime  = 31;
                int       result = 17;

                result = prime * result + Type.GetHashCode();
                result = prime * result + ConfigId.GetHashCode();
                result = prime * result + InstanceId.GetHashCode();
                return(result);
            }
        public override int GetHashCode()
        {
            int hash = 1;

            if (ConfigId != 0)
            {
                hash ^= ConfigId.GetHashCode();
            }
            if (Level != 0)
            {
                hash ^= Level.GetHashCode();
            }
            return(hash);
        }
        public override int GetHashCode()
        {
            int hash = 1;

            if (ConfigId.Length != 0)
            {
                hash ^= ConfigId.GetHashCode();
            }
            if (tapConfig_ != null)
            {
                hash ^= TapConfig.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }