예제 #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         return((269 + Level * 23 + BatchId.GetHashCode()) * 23 + CellId.GetHashCode());
     }
 }
예제 #2
0
 /// <summary>Serves as a hash function for the CellInfo type.</summary>
 /// <returns>A hash code for the current CellInfo.</returns>
 public override int GetHashCode()
 {
     if (CellId != null)
     {
         return(CellId.GetHashCode());
     }
     return(base.GetHashCode());
 }
예제 #3
0
        public override int GetHashCode()
        {
            unchecked
            {
                int hash = BatchId != null?BatchId.GetHashCode() : 0;

                hash = (hash * 397) ^ (CellId != null ? CellId.GetHashCode() : 0);
                hash = (hash * 397) ^ Level;
                return(hash);
            }
        }
예제 #4
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);
        }
예제 #5
0
 public override int GetHashCode()
 {
     unchecked {
         return(((database != null ? database.GetHashCode() : 0) * 397) ^ cellId.GetHashCode());
     }
 }
 public override int GetHashCode()
 {
     return(CellId.GetHashCode());
 }
예제 #7
0
 public override int GetHashCode()
 {
     return(CellId.GetHashCode() * SellItem.GetHashCode() * SellItemQty.GetHashCode());
 }