Exemple #1
0
 public void MergeFrom(CMLoginReply other)
 {
     if (other == null)
     {
         return;
     }
     if (other.playerInfo_ != null)
     {
         if (playerInfo_ == null)
         {
             playerInfo_ = new global::Message.PlayerInfo();
         }
         PlayerInfo.MergeFrom(other.PlayerInfo);
     }
     if (other.IsInBattle != false)
     {
         IsInBattle = other.IsInBattle;
     }
     if (other.battleServerInfo_ != null)
     {
         if (battleServerInfo_ == null)
         {
             battleServerInfo_ = new global::Message.BattleServerInfo();
         }
         BattleServerInfo.MergeFrom(other.BattleServerInfo);
     }
 }
Exemple #2
0
 public void MergeFrom(CMPlayerInfoSync other)
 {
     if (other == null)
     {
         return;
     }
     if (other.info_ != null)
     {
         if (info_ == null)
         {
             info_ = new global::Message.PlayerInfo();
         }
         Info.MergeFrom(other.Info);
     }
 }
Exemple #3
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

                case 10: {
                    if (info_ == null)
                    {
                        info_ = new global::Message.PlayerInfo();
                    }
                    input.ReadMessage(info_);
                    break;
                }
                }
            }
        }
Exemple #4
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

                case 10: {
                    if (playerInfo_ == null)
                    {
                        playerInfo_ = new global::Message.PlayerInfo();
                    }
                    input.ReadMessage(playerInfo_);
                    break;
                }

                case 16: {
                    IsInBattle = input.ReadBool();
                    break;
                }

                case 26: {
                    if (battleServerInfo_ == null)
                    {
                        battleServerInfo_ = new global::Message.BattleServerInfo();
                    }
                    input.ReadMessage(battleServerInfo_);
                    break;
                }
                }
            }
        }