public void StopAutoCraft(ExchangeReplayStopReasonEnum reason = ExchangeReplayStopReasonEnum.STOPPED_REASON_USER) { if (m_autoCraftTimer != null) { m_autoCraftTimer.Stop(); m_autoCraftTimer = null; OnAutoCraftStopped(reason); ChangeAmount(1); } }
protected override void OnAutoCraftStopped(ExchangeReplayStopReasonEnum reason) { InventoryHandler.SendExchangeItemAutoCraftStopedMessage(Receiver.Character.Client, reason); InventoryHandler.SendExchangeItemAutoCraftStopedMessage(Crafter.Character.Client, reason); }
protected virtual void OnAutoCraftStopped(ExchangeReplayStopReasonEnum reason) { }
public static void SendExchangeItemAutoCraftStopedMessage(IPacketReceiver client, ExchangeReplayStopReasonEnum reason) { client.Send(new ExchangeItemAutoCraftStopedMessage((sbyte)reason)); }