Пример #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (HasAccountId)
            {
                hash ^= AccountId.GetHashCode();
            }
            if (HasGameAccountId)
            {
                hash ^= GameAccountId.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Пример #2
0
 public void MergeFrom(Identity other)
 {
     if (other == null)
     {
         return;
     }
     if (other.HasAccountId)
     {
         if (!HasAccountId)
         {
             AccountId = new global::Bgs.Protocol.EntityId();
         }
         AccountId.MergeFrom(other.AccountId);
     }
     if (other.HasGameAccountId)
     {
         if (!HasGameAccountId)
         {
             GameAccountId = new global::Bgs.Protocol.EntityId();
         }
         GameAccountId.MergeFrom(other.GameAccountId);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }