コード例 #1
0
        public override PacketDistributed MergeFrom(pb::CodedInputStream input, PacketDistributed _base)
        {
            GCBattleField2 _inst = (GCBattleField2)_base;

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

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

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

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

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

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

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

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

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

                case  74: {
                    EntryLongAry subBuilder = new EntryLongAry();
                    input.ReadMessage(subBuilder);
                    _inst.AddFightRecord(subBuilder);
                    break;
                }

                case  80: {
                    _inst.SelfIndex = input.ReadInt32();
                    break;
                }
                }
            }
            return(_inst);
        }
コード例 #2
0
 public void AddFightRecord(EntryLongAry value)
 {
     fightRecord_.Add(value);
 }