public override PacketDistributed MergeFrom(pb::CodedInputStream input, PacketDistributed _base) { CombineActivityListItem _inst = (CombineActivityListItem)_base; while (true) { uint tag = input.ReadTag(); switch (tag) { case 0: { return(_inst); } case 8: { _inst.Id = input.ReadInt32(); break; } case 18: { _inst.Desc = input.ReadString(); break; } case 26: { _inst.RewardInfo = input.ReadString(); break; } case 34: { _inst.ProgressText = input.ReadString(); break; } case 40: { _inst.CurValue = input.ReadInt32(); break; } case 48: { _inst.NeedValue = input.ReadInt32(); break; } case 56: { _inst.GetTimes = input.ReadInt32(); break; } case 64: { _inst.GetTimesLimit = input.ReadInt32(); break; } } } return(_inst); }
public override PacketDistributed MergeFrom(pb::CodedInputStream input, PacketDistributed _base) { GCCombineActivityItemUpdate _inst = (GCCombineActivityItemUpdate)_base; while (true) { uint tag = input.ReadTag(); switch (tag) { case 0: { return(_inst); } case 8: { _inst.ActId = input.ReadInt32(); break; } case 16: { _inst.Operate = input.ReadInt32(); break; } case 26: { CombineActivityListItem subBuilder = new CombineActivityListItem(); input.ReadMessage(subBuilder); _inst.AddListItems(subBuilder); break; } case 34: { CombineActivityExchangeItem subBuilder = new CombineActivityExchangeItem(); input.ReadMessage(subBuilder); _inst.AddExchangeItems(subBuilder); break; } case 42: { CombineActivityBuyItem subBuilder = new CombineActivityBuyItem(); input.ReadMessage(subBuilder); _inst.AddBuyItems(subBuilder); break; } } } return(_inst); }
public void AddListItems(CombineActivityListItem value) { listItems_.Add(value); }