Exemplo n.º 1
0
 public void MergeFrom(ChamberMobState other)
 {
     if (other == null)
     {
         return;
     }
     if (other.MobId.Length != 0)
     {
         MobId = other.MobId;
     }
     if (other.EncounterGmtId.Length != 0)
     {
         EncounterGmtId = other.EncounterGmtId;
     }
     if (other.Hp != 0L)
     {
         Hp = other.Hp;
     }
     if (other.MaxHp != 0L)
     {
         MaxHp = other.MaxHp;
     }
     if (other.Level != 0)
     {
         Level = other.Level;
     }
     if (other.EncounterTicket.Length != 0)
     {
         EncounterTicket = other.EncounterTicket;
     }
     if (other.X != 0D)
     {
         X = other.X;
     }
     if (other.Y != 0D)
     {
         Y = other.Y;
     }
     if (other.activeBuffList_ != null)
     {
         if (activeBuffList_ == null)
         {
             ActiveBuffList = new global::WUProtos.Data.Buff.ActiveBuffList();
         }
         ActiveBuffList.MergeFrom(other.ActiveBuffList);
     }
     rewards_.Add(other.rewards_);
     if (other.TimeToSpawn != 0L)
     {
         TimeToSpawn = other.TimeToSpawn;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Exemplo n.º 2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (MobId.Length != 0)
            {
                hash ^= MobId.GetHashCode();
            }
            if (EncounterGmtId.Length != 0)
            {
                hash ^= EncounterGmtId.GetHashCode();
            }
            if (Hp != 0L)
            {
                hash ^= Hp.GetHashCode();
            }
            if (MaxHp != 0L)
            {
                hash ^= MaxHp.GetHashCode();
            }
            if (Level != 0)
            {
                hash ^= Level.GetHashCode();
            }
            if (EncounterTicket.Length != 0)
            {
                hash ^= EncounterTicket.GetHashCode();
            }
            if (X != 0D)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(X);
            }
            if (Y != 0D)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Y);
            }
            if (activeBuffList_ != null)
            {
                hash ^= ActiveBuffList.GetHashCode();
            }
            hash ^= rewards_.GetHashCode();
            if (TimeToSpawn != 0L)
            {
                hash ^= TimeToSpawn.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }