Esempio n. 1
0
 public override int GetHashCode() {
   int hash = 1;
   if (ID != 0) hash ^= ID.GetHashCode();
   if (Prefab.Length != 0) hash ^= Prefab.GetHashCode();
   if (Type != global::Config.BoxType.None) hash ^= Type.GetHashCode();
   hash ^= lose_.GetHashCode();
   hash ^= LoseCount.GetHashCode();
   if (specialTest_ != null) hash ^= SpecialTest.GetHashCode();
   if (_unknownFields != null) {
     hash ^= _unknownFields.GetHashCode();
   }
   return hash;
 }
Esempio n. 2
0
 public bool Equals(Box other) {
   if (ReferenceEquals(other, null)) {
     return false;
   }
   if (ReferenceEquals(other, this)) {
     return true;
   }
   if (ID != other.ID) return false;
   if (Prefab != other.Prefab) return false;
   if (Type != other.Type) return false;
   if(!lose_.Equals(other.lose_)) return false;
   if (!LoseCount.Equals(other.LoseCount)) return false;
   if (!object.Equals(SpecialTest, other.SpecialTest)) return false;
   return Equals(_unknownFields, other._unknownFields);
 }