Example #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Coin != 0)
            {
                hash ^= Coin.GetHashCode();
            }
            if (Crystal != 0)
            {
                hash ^= Crystal.GetHashCode();
            }
            if (Hp != 0)
            {
                hash ^= Hp.GetHashCode();
            }
            if (Ad != 0)
            {
                hash ^= Ad.GetHashCode();
            }
            if (Ap != 0)
            {
                hash ^= Ap.GetHashCode();
            }
            if (Addef != 0)
            {
                hash ^= Addef.GetHashCode();
            }
            if (Apdef != 0)
            {
                hash ^= Apdef.GetHashCode();
            }
            hash ^= strongArr_.GetHashCode();
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Example #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Id != 0)
            {
                hash ^= Id.GetHashCode();
            }
            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (Lv != 0)
            {
                hash ^= Lv.GetHashCode();
            }
            if (Exp != 0)
            {
                hash ^= Exp.GetHashCode();
            }
            if (Power != 0)
            {
                hash ^= Power.GetHashCode();
            }
            if (Coin != 0)
            {
                hash ^= Coin.GetHashCode();
            }
            if (Diamond != 0)
            {
                hash ^= Diamond.GetHashCode();
            }
            if (Crystal != 0)
            {
                hash ^= Crystal.GetHashCode();
            }
            if (Hp != 0)
            {
                hash ^= Hp.GetHashCode();
            }
            if (Ad != 0)
            {
                hash ^= Ad.GetHashCode();
            }
            if (Ap != 0)
            {
                hash ^= Ap.GetHashCode();
            }
            if (Addef != 0)
            {
                hash ^= Addef.GetHashCode();
            }
            if (Apdef != 0)
            {
                hash ^= Apdef.GetHashCode();
            }
            if (Dodge != 0)
            {
                hash ^= Dodge.GetHashCode();
            }
            if (Pierce != 0)
            {
                hash ^= Pierce.GetHashCode();
            }
            if (Critical != 0)
            {
                hash ^= Critical.GetHashCode();
            }
            if (Guideid != 0)
            {
                hash ^= Guideid.GetHashCode();
            }
            hash ^= strongArr_.GetHashCode();
            if (Time != 0L)
            {
                hash ^= Time.GetHashCode();
            }
            hash ^= taskArr_.GetHashCode();
            if (Fuben != 0)
            {
                hash ^= Fuben.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }