Exemple #1
0
        public override PacketDistributed MergeFrom(pb::CodedInputStream input, PacketDistributed _base)
        {
            GCMidAutumn _inst = (GCMidAutumn)_base;

            while (true)
            {
                uint tag = input.ReadTag();
                switch (tag)
                {
                case 0:
                {
                    return(_inst);
                }

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

                case  18: {
                    MidaTargetInfo subBuilder = new MidaTargetInfo();
                    input.ReadMessage(subBuilder);
                    _inst.AddTargets(subBuilder);
                    break;
                }

                case  26: {
                    MidaClientInfo subBuilder = new MidaClientInfo();
                    input.ReadMessage(subBuilder);
                    _inst.ClientInfo = subBuilder;
                    break;
                }

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

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

                case  48: {
                    _inst.ActivityId = input.ReadInt32();
                    break;
                }
                }
            }
            return(_inst);
        }
Exemple #2
0
        public override PacketDistributed MergeFrom(pb::CodedInputStream input, PacketDistributed _base)
        {
            MidaTargetInfo _inst = (MidaTargetInfo)_base;

            while (true)
            {
                uint tag = input.ReadTag();
                switch (tag)
                {
                case 0:
                {
                    return(_inst);
                }

                case  10: {
                    Iteminfo subBuilder = new Iteminfo();
                    input.ReadMessage(subBuilder);
                    _inst.ItemInfo = subBuilder;
                    break;
                }

                case  16: {
                    _inst.Currency = input.ReadInt32();
                    break;
                }

                case  24: {
                    _inst.ConsumeValue = input.ReadInt32();
                    break;
                }

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

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

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

                case  56: {
                    _inst.MaxNun = input.ReadInt32();
                    break;
                }

                case  64: {
                    _inst.Id = input.ReadInt32();
                    break;
                }

                case  72: {
                    _inst.Currency2 = input.ReadInt32();
                    break;
                }
                }
            }
            return(_inst);
        }
Exemple #3
0
 public void AddTargets(MidaTargetInfo value)
 {
     targets_.Add(value);
 }