internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer) { FFTgt_G2H_EFT_OfferListRequest tgt = new FFTgt_G2H_EFT_OfferListRequest(); tgt.PlayerCardNumber = FreeformHelper.GetBCDValueString(buffer, 0, 0, 5); return(tgt); }
public override void GetTargetData(IFreeformEntity_MsgTgt tgt, ref List <byte> buffer) { FFTgt_G2H_EFT_OfferListRequest tgt2 = tgt as FFTgt_G2H_EFT_OfferListRequest; buffer.SetBCDValue(tgt2.PlayerCardNumber, 5); }
internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer) { FFTgt_G2H_EFT_OfferListRequest tgt = new FFTgt_G2H_EFT_OfferListRequest(); tgt.PlayerCardNumber = FreeformHelper.GetBCDValueString(buffer, 0, 0, 5); return tgt; }