Пример #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (CellId != 0)
            {
                hash ^= CellId.GetHashCode();
            }
            if (TrainerId != 0L)
            {
                hash ^= TrainerId.GetHashCode();
            }
            if (EnergyCost != 0)
            {
                hash ^= EnergyCost.GetHashCode();
            }
            if (OrbCost != 0)
            {
                hash ^= OrbCost.GetHashCode();
            }
            if (X != 0)
            {
                hash ^= X.GetHashCode();
            }
            if (Y != 0)
            {
                hash ^= Y.GetHashCode();
            }
            if (Z != 0)
            {
                hash ^= Z.GetHashCode();
            }
            if (AbilityId != 0L)
            {
                hash ^= AbilityId.GetHashCode();
            }
            hash ^= conditionIds_.GetHashCode();
            if (ScheduleId.Length != 0)
            {
                hash ^= ScheduleId.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Пример #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (AbilityId != 0)
            {
                hash ^= AbilityId.GetHashCode();
            }
            if (RequiresPoint != false)
            {
                hash ^= RequiresPoint.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }