Example #1
0
 public void MergeFrom(GCUpdatePlayerData other)
 {
     if (other == null)
     {
         return;
     }
     if (other.accountData_ != null)
     {
         if (accountData_ == null)
         {
             accountData_ = new global::BigHead.protocol.PBAccountData();
         }
         AccountData.MergeFrom(other.AccountData);
     }
     if (other.playerData_ != null)
     {
         if (playerData_ == null)
         {
             playerData_ = new global::BigHead.protocol.PBPlayerData();
         }
         PlayerData.MergeFrom(other.PlayerData);
     }
     if (other.playerDetailData_ != null)
     {
         if (playerDetailData_ == null)
         {
             playerDetailData_ = new global::BigHead.protocol.PBPlayerDetailData();
         }
         PlayerDetailData.MergeFrom(other.PlayerDetailData);
     }
 }
Example #2
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    input.SkipLastField();
                    break;

                case 8: {
                    Result = input.ReadInt32();
                    break;
                }

                case 18: {
                    if (accountData_ == null)
                    {
                        accountData_ = new global::BigHead.protocol.PBAccountData();
                    }
                    input.ReadMessage(accountData_);
                    break;
                }
                }
            }
        }
Example #3
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    input.SkipLastField();
                    break;

                case 8: {
                    Uid = input.ReadUInt64();
                    break;
                }

                case 18: {
                    if (accountData_ == null)
                    {
                        accountData_ = new global::BigHead.protocol.PBAccountData();
                    }
                    input.ReadMessage(accountData_);
                    break;
                }

                case 26: {
                    if (playerData_ == null)
                    {
                        playerData_ = new global::BigHead.protocol.PBPlayerData();
                    }
                    input.ReadMessage(playerData_);
                    break;
                }

                case 34: {
                    if (playerDetailData_ == null)
                    {
                        playerDetailData_ = new global::BigHead.protocol.PBPlayerDetailData();
                    }
                    input.ReadMessage(playerDetailData_);
                    break;
                }
                }
            }
        }
Example #4
0
 public void MergeFrom(GCLogin other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Result != 0)
     {
         Result = other.Result;
     }
     if (other.accountData_ != null)
     {
         if (accountData_ == null)
         {
             accountData_ = new global::BigHead.protocol.PBAccountData();
         }
         AccountData.MergeFrom(other.AccountData);
     }
 }