Ejemplo n.º 1
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.BattleRoomInfo();
                    }
                    input.ReadMessage(info_);
                    break;
                }

                case 18: {
                    playerInfos_.AddEntriesFrom(input, _repeated_playerInfos_codec);
                    break;
                }
                }
            }
        }
Ejemplo n.º 2
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

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

                case 18: {
                    cards_.AddEntriesFrom(input, _repeated_cards_codec);
                    break;
                }

                case 26: {
                    playerInfos_.AddEntriesFrom(input, _repeated_playerInfos_codec);
                    break;
                }

                case 32: {
                    RoomState = input.ReadInt32();
                    break;
                }

                case 40: {
                    WhoseTurn = input.ReadInt32();
                    break;
                }

                case 48: {
                    LeftCardCount = input.ReadInt32();
                    break;
                }

                case 61: {
                    LeftTurnTime = input.ReadFloat();
                    break;
                }

                case 64: {
                    LastPlayedCardId = input.ReadInt32();
                    break;
                }
                }
            }
        }
Ejemplo n.º 3
0
 public void MergeFrom(CBJoinBattleReply other)
 {
     if (other == null)
     {
         return;
     }
     if (other.info_ != null)
     {
         if (info_ == null)
         {
             info_ = new global::Message.BattleRoomInfo();
         }
         Info.MergeFrom(other.Info);
     }
     playerInfos_.Add(other.playerInfos_);
 }
Ejemplo n.º 4
0
 public void MergeFrom(CBReconnectReply other)
 {
     if (other == null)
     {
         return;
     }
     if (other.roomInfo_ != null)
     {
         if (roomInfo_ == null)
         {
             roomInfo_ = new global::Message.BattleRoomInfo();
         }
         RoomInfo.MergeFrom(other.RoomInfo);
     }
     cards_.Add(other.cards_);
     playerInfos_.Add(other.playerInfos_);
     if (other.RoomState != 0)
     {
         RoomState = other.RoomState;
     }
     if (other.WhoseTurn != 0)
     {
         WhoseTurn = other.WhoseTurn;
     }
     if (other.LeftCardCount != 0)
     {
         LeftCardCount = other.LeftCardCount;
     }
     if (other.LeftTurnTime != 0F)
     {
         LeftTurnTime = other.LeftTurnTime;
     }
     if (other.LastPlayedCardId != 0)
     {
         LastPlayedCardId = other.LastPlayedCardId;
     }
 }