/// <summary> /// /// </summary> /// <param name="eventArgs"></param> public static void InvokeAggressiveAction(AggressiveActionEventArgs eventArgs) { if (AggressiveAction != null) { AggressiveAction(eventArgs); } }
public static AggressiveActionEventArgs Create( BaseCreature aggressed, BaseCreature aggressor, bool criminal ) { AggressiveActionEventArgs args; if ( m_Pool.Count > 0 ) { args = m_Pool.Dequeue(); args.m_Aggressed = aggressed; args.m_Aggressor = aggressor; args.m_Criminal = criminal; } else { args = new AggressiveActionEventArgs( aggressed, aggressor, criminal ); } return args; }
public static AggressiveActionEventArgs Create(BaseCreature aggressed, BaseCreature aggressor, bool criminal) { AggressiveActionEventArgs args; if (m_Pool.Count > 0) { args = m_Pool.Dequeue(); args.m_Aggressed = aggressed; args.m_Aggressor = aggressor; args.m_Criminal = criminal; } else { args = new AggressiveActionEventArgs(aggressed, aggressor, criminal); } return(args); }
/// <summary> /// /// </summary> /// <param name="eventArgs"></param> public static void InvokeAggressiveAction( AggressiveActionEventArgs eventArgs ) { if ( AggressiveAction != null ) AggressiveAction( eventArgs ); }