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

            if (Id.Length != 0)
            {
                hash ^= Id.GetHashCode();
            }
            if (recipe_ != null)
            {
                hash ^= Recipe_.GetHashCode();
            }
            if (rewards_ != null)
            {
                hash ^= Rewards.GetHashCode();
            }
            if (TimeToCraft != 0L)
            {
                hash ^= TimeToCraft.GetHashCode();
            }
            hash ^= masterNoteGmtId_.GetHashCode();
            if (Disabled != false)
            {
                hash ^= Disabled.GetHashCode();
            }
            hash ^= unlockConditions_.GetHashCode();
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Beispiel #2
0
 public void MergeFrom(Recipe other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Id.Length != 0)
     {
         Id = other.Id;
     }
     if (other.recipe_ != null)
     {
         if (recipe_ == null)
         {
             Recipe_ = new global::WUProtos.Data.Loot.LootCollection();
         }
         Recipe_.MergeFrom(other.Recipe_);
     }
     if (other.rewards_ != null)
     {
         if (rewards_ == null)
         {
             Rewards = new global::WUProtos.Data.Loot.LootCollection();
         }
         Rewards.MergeFrom(other.Rewards);
     }
     if (other.TimeToCraft != 0L)
     {
         TimeToCraft = other.TimeToCraft;
     }
     masterNoteGmtId_.Add(other.masterNoteGmtId_);
     if (other.Disabled != false)
     {
         Disabled = other.Disabled;
     }
     unlockConditions_.Add(other.unlockConditions_);
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }