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

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

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

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

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

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

                case  40: {
                    _inst.TeamPKRewardState = input.ReadInt32();
                    break;
                }
                }
            }
            return(_inst);
        }
Beispiel #2
0
        public override PacketDistributed MergeFrom(pb::CodedInputStream input, PacketDistributed _base)
        {
            GCTeamPKPush _inst = (GCTeamPKPush)_base;

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

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

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

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

                case  32: {
                    _inst.DiePuid = input.ReadInt64();
                    break;
                }

                case  40: {
                    _inst.KillPuid = input.ReadInt64();
                    break;
                }

                case  50: {
                    _inst.DieName = input.ReadString();
                    break;
                }

                case  58: {
                    _inst.KillName = input.ReadString();
                    break;
                }

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

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

                case  82: {
                    MapLongAry subBuilder = new MapLongAry();
                    input.ReadMessage(subBuilder);
                    _inst.Camp1 = subBuilder;
                    break;
                }

                case  90: {
                    MapLongAry subBuilder = new MapLongAry();
                    input.ReadMessage(subBuilder);
                    _inst.Camp2 = subBuilder;
                    break;
                }

                case  96: {
                    _inst.ScoreBattle1 = input.ReadInt32();
                    break;
                }

                case  104: {
                    _inst.ScoreBattle2 = input.ReadInt32();
                    break;
                }
                }
            }
            return(_inst);
        }
Beispiel #3
0
 public void AddTeamPKInfo(TeamPKInfo value)
 {
     teamPKInfo_.Add(value);
 }