예제 #1
0
파일: EventSink.cs 프로젝트: dpisanu/xrunuo
 public static void InvokeHarmfulAction(HarmfulActionEventArgs e)
 {
     if (HarmfulAction != null)
     {
         HarmfulAction(e);
     }
 }
예제 #2
0
파일: EventSink.cs 프로젝트: dpisanu/xrunuo
        public static HarmfulActionEventArgs Create(Mobile source, Mobile target, bool criminal)
        {
            HarmfulActionEventArgs args;

            if (m_Pool.Count > 0)
            {
                args = m_Pool.Dequeue();

                args.Source   = source;
                args.Target   = target;
                args.Criminal = criminal;
            }
            else
            {
                args = new HarmfulActionEventArgs(source, target, criminal);
            }

            return(args);
        }
예제 #3
0
        public static HarmfulActionEventArgs Create( Mobile source, Mobile target, bool criminal )
        {
            HarmfulActionEventArgs args;

            if ( m_Pool.Count > 0 )
            {
                args = m_Pool.Dequeue();

                args.m_Source = source;
                args.m_Target = target;
                args.m_Criminal = criminal;
            }
            else
            {
                args = new HarmfulActionEventArgs( source, target, criminal );
            }

            return args;
        }
예제 #4
0
 public void InvokeHarmfulAction( HarmfulActionEventArgs e )
 {
     if ( HarmfulAction != null )
         HarmfulAction( e );
 }