예제 #1
0
 public void AddItemList(EntryIntInt value)
 {
     itemList_.Add(value);
 }
예제 #2
0
        public override PacketDistributed MergeFrom(pb::CodedInputStream input, PacketDistributed _base)
        {
            GCBattleField _inst = (GCBattleField)_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  42: {
                    EntryIntInt subBuilder = new EntryIntInt();
                    input.ReadMessage(subBuilder);
                    _inst.ItemInfo = subBuilder;
                    break;
                }

                case  50: {
                    EntryIntInt subBuilder = new EntryIntInt();
                    input.ReadMessage(subBuilder);
                    _inst.AddItemList(subBuilder);
                    break;
                }

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

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

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

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

                case  88: {
                    _inst.AddCamp1Info(input.ReadInt32());
                    break;
                }

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

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

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

                case  120: {
                    _inst.SelfIndex = input.ReadInt32();
                    break;
                }
                }
            }
            return(_inst);
        }
예제 #3
0
 public void SetItemInfo(EntryIntInt value)
 {
     hasItemInfo = true;
     itemInfo_   = value;
 }