示例#1
0
 public void MergeFrom(Result other)
 {
     if (other == null)
     {
         return;
     }
     table_.Add(other.table_);
     paylinesnum_.Add(other.paylinesnum_);
     paylinescount_.Add(other.paylinescount_);
     if (other.Odds != 0)
     {
         Odds = other.Odds;
     }
     if (other.money_ != null)
     {
         if (money_ == null)
         {
             money_ = new global::Pb.Money();
         }
         Money.MergeFrom(other.Money);
     }
     if (other.WinMoney != 0)
     {
         WinMoney = other.WinMoney;
     }
 }
示例#2
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

                case 10:
                case 8: {
                    table_.AddEntriesFrom(input, _repeated_table_codec);
                    break;
                }

                case 18:
                case 16: {
                    paylinesnum_.AddEntriesFrom(input, _repeated_paylinesnum_codec);
                    break;
                }

                case 26:
                case 24: {
                    paylinescount_.AddEntriesFrom(input, _repeated_paylinescount_codec);
                    break;
                }

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

                case 42: {
                    if (money_ == null)
                    {
                        money_ = new global::Pb.Money();
                    }
                    input.ReadMessage(money_);
                    break;
                }

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