//[注意:此快捷购买协议买的都是商品,其实都是商店系统,而且真正的快速购买协议是指购买:体力,pvp次数,仙露等] //快速购买成功回应【体力、仙露、pvp次数】// CommandCallbackType ReceiveQuickBuySuccessHandle(byte[] dataBuffer, int sorketID) { SMsgTradeQuickBuy_SC sMsgTradeQuickBuy_SC = SMsgTradeQuickBuy_SC.ParsePackage(dataBuffer); UIEventManager.Instance.TriggerUIEvent(UIEventType.QuickBuySuccess, sMsgTradeQuickBuy_SC); UI.MessageBox.Instance.ShowTips(3, LanguageTextManager.GetString("IDS_I7_43"), 1f); return(CommandCallbackType.Continue); }
public int bySucess; //是否购买成功 public static SMsgTradeQuickBuy_SC ParsePackage(byte[] dataBuffer) { SMsgTradeQuickBuy_SC sMsgTradeQuickBuy_SC = PackageHelper.BytesToStuct <SMsgTradeQuickBuy_SC>(dataBuffer); return(sMsgTradeQuickBuy_SC); }