public override PacketDistributed MergeFrom(pb::CodedInputStream input, PacketDistributed _base) { LegacyData _inst = (LegacyData)_base; while (true) { uint tag = input.ReadTag(); switch (tag) { case 0: { return(_inst); } case 8: { _inst.LegacyId = input.ReadInt32(); break; } case 16: { _inst.TableId = input.ReadInt32(); break; } case 24: { _inst.CurrentExp = input.ReadInt32(); break; } case 32: { _inst.IsOnBody = input.ReadInt32(); break; } case 40: { _inst.IdxOfBody = input.ReadInt32(); break; } } } return(_inst); }
public override PacketDistributed MergeFrom(pb::CodedInputStream input, PacketDistributed _base) { GCLegacy _inst = (GCLegacy)_base; while (true) { uint tag = input.ReadTag(); switch (tag) { case 0: { return(_inst); } case 8: { _inst.Operate = input.ReadInt32(); break; } case 16: { _inst.FightValue = input.ReadInt32(); break; } case 26: { LegacyData subBuilder = new LegacyData(); input.ReadMessage(subBuilder); _inst.AddListOnBody(subBuilder); break; } case 34: { LegacyData subBuilder = new LegacyData(); input.ReadMessage(subBuilder); _inst.AddListInBag(subBuilder); break; } case 40: { _inst.Result = input.ReadInt32(); break; } case 50: { LegacyData subBuilder = new LegacyData(); input.ReadMessage(subBuilder); _inst.Legacy = subBuilder; break; } case 58: { LegacyData subBuilder = new LegacyData(); input.ReadMessage(subBuilder); _inst.AddListInDepot(subBuilder); break; } case 64: { _inst.DrawId = input.ReadInt32(); break; } case 72: { _inst.HaveMoneyNum = input.ReadInt32(); break; } } } return(_inst); }
public void AddListInDepot(LegacyData value) { listInDepot_.Add(value); }
public void SetLegacy(LegacyData value) { hasLegacy = true; legacy_ = value; }
public void AddListInBag(LegacyData value) { listInBag_.Add(value); }
public void AddListOnBody(LegacyData value) { listOnBody_.Add(value); }