public override PacketDistributed MergeFrom(pb::CodedInputStream input, PacketDistributed _base) { ActivityRankReward _inst = (ActivityRankReward)_base; while (true) { uint tag = input.ReadTag(); switch (tag) { case 0: { return(_inst); } case 8: { _inst.Rank = input.ReadInt32(); break; } case 16: { _inst.Points = input.ReadInt32(); break; } case 26: { _inst.Reward = input.ReadString(); break; } case 34: { _inst.PointReward = input.ReadString(); break; } case 42: { _inst.ShowReward = input.ReadString(); break; } } } return(_inst); }
public override PacketDistributed MergeFrom(pb::CodedInputStream input, PacketDistributed _base) { GCActivityRankResult _inst = (GCActivityRankResult)_base; while (true) { uint tag = input.ReadTag(); switch (tag) { case 0: { return(_inst); } case 8: { _inst.Operate = input.ReadInt32(); break; } case 18: { ActivityRankInfo subBuilder = new ActivityRankInfo(); input.ReadMessage(subBuilder); _inst.AddChargeRanks(subBuilder); break; } case 26: { ActivityRankInfo subBuilder = new ActivityRankInfo(); input.ReadMessage(subBuilder); _inst.AddSpendRanks(subBuilder); break; } case 34: { ActivityRankInfo subBuilder = new ActivityRankInfo(); input.ReadMessage(subBuilder); _inst.PlayerCharge = subBuilder; break; } case 42: { ActivityRankInfo subBuilder = new ActivityRankInfo(); input.ReadMessage(subBuilder); _inst.PlayerSpend = subBuilder; break; } case 50: { ActivityRankReward subBuilder = new ActivityRankReward(); input.ReadMessage(subBuilder); _inst.AddChargeRewards(subBuilder); break; } case 58: { ActivityRankReward subBuilder = new ActivityRankReward(); input.ReadMessage(subBuilder); _inst.AddSpendRewards(subBuilder); break; } case 64: { _inst.Type = input.ReadInt32(); break; } } } return(_inst); }
public void AddSpendRewards(ActivityRankReward value) { spendRewards_.Add(value); }
public void AddChargeRewards(ActivityRankReward value) { chargeRewards_.Add(value); }