OnTargetCancel() protected method

protected OnTargetCancel ( Mobile from, TargetCancelType cancelType ) : void
from Mobile
cancelType TargetCancelType
return void
示例#1
0
        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);
            }
        }
示例#2
0
        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);
            }
        }
示例#3
0
文件: Target.cs 项目: nogu3ira/xrunuo
        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);
            }
        }