public override PacketDistributed MergeFrom(pb::CodedInputStream input, PacketDistributed _base) { NationalReward _inst = (NationalReward)_base; while (true) { uint tag = input.ReadTag(); switch (tag) { case 0: { return(_inst); } case 8: { _inst.Id = input.ReadInt32(); break; } case 18: { _inst.Reward = input.ReadString(); break; } } } return(_inst); }
public override PacketDistributed MergeFrom(pb::CodedInputStream input, PacketDistributed _base) { GCNationalOperateResult _inst = (GCNationalOperateResult)_base; while (true) { uint tag = input.ReadTag(); switch (tag) { case 0: { return(_inst); } case 8: { _inst.Operate = input.ReadInt32(); break; } case 18: { NationalReward subBuilder = new NationalReward(); input.ReadMessage(subBuilder); _inst.AddNationalRewards(subBuilder); break; } case 26: { NationalCash subBuilder = new NationalCash(); input.ReadMessage(subBuilder); _inst.AddNationalCashs(subBuilder); break; } case 34: { NationalItem subBuilder = new NationalItem(); input.ReadMessage(subBuilder); _inst.AddNationalItems(subBuilder); break; } case 42: { NationalRank subBuilder = new NationalRank(); input.ReadMessage(subBuilder); _inst.AddNationalRanks(subBuilder); break; } case 50: { NationalInfo subBuilder = new NationalInfo(); input.ReadMessage(subBuilder); _inst.NationalInfos = subBuilder; break; } case 56: { _inst.AddMultiples(input.ReadInt32()); break; } case 64: { _inst.ActType = input.ReadInt32(); break; } case 74: { _inst.Caption = input.ReadString(); break; } case 82: { _inst.ListNum = input.ReadString(); break; } } } return(_inst); }
public void AddNationalRewards(NationalReward value) { nationalRewards_.Add(value); }