public static void InvokeHarmfulAction(HarmfulActionEventArgs e) { if (HarmfulAction != null) { HarmfulAction(e); } }
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); }
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; }
public void InvokeHarmfulAction( HarmfulActionEventArgs e ) { if ( HarmfulAction != null ) HarmfulAction( e ); }