Пример #1
0
 public static void InvokeHarmfulAction(HarmfulActionEventArgs e)
 {
     if (HarmfulAction != null)
     {
         HarmfulAction(e);
     }
 }
Пример #2
0
        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 );
 }