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