Beispiel #1
0
 public void MergeFrom(PlayerMisc other)
 {
     if (other == null)
     {
         return;
     }
     if (other.lastWorld_ != null)
     {
         if (lastWorld_ == null)
         {
             LastWorld = new global::Proto.LastWorld();
         }
         LastWorld.MergeFrom(other.LastWorld);
     }
     if (other.lastDungeon_ != null)
     {
         if (lastDungeon_ == null)
         {
             LastDungeon = new global::Proto.LastWorld();
         }
         LastDungeon.MergeFrom(other.LastDungeon);
     }
     if (other.OnlineVersion != 0)
     {
         OnlineVersion = other.OnlineVersion;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Beispiel #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (lastWorld_ != null)
            {
                hash ^= LastWorld.GetHashCode();
            }
            if (lastDungeon_ != null)
            {
                hash ^= LastDungeon.GetHashCode();
            }
            if (OnlineVersion != 0)
            {
                hash ^= OnlineVersion.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }