protected OnTargetCancel ( Mobile from, TargetCancelType cancelType ) : void | ||
from | Mobile | |
cancelType | TargetCancelType | |
return | void |
public static void Cancel(Mobile m) { NetState state1 = m.NetState; if (state1 != null) { state1.Send(CancelTarget.Instance); } Target target1 = m.Target; if (target1 != null) { target1.OnTargetCancel(m, TargetCancelType.Canceled); } }
public static void Cancel(Mobile m) { NetState ns = m.NetState; if (ns != null) { ns.Send(CancelTarget.Instance); } Target targ = m.Target; if (targ != null) { targ.OnTargetCancel(m, TargetCancelType.Canceled); } }
public static void Cancel(Mobile m) { GameClient ns = m.Client; if (ns != null) { ns.Send(CancelTarget.Instance); } Target targ = m.Target; if (targ != null) { targ.OnTargetCancel(m, TargetCancelType.Canceled); } }