Inheritance: System.EventArgs
 public static void InvokeHungerChanged(HungerChangedEventArgs e)
 {
     if (HungerChanged != null)
     {
         HungerChanged(e);
     }
 }
Exemple #2
0
 public static void InvokeHungerChanged(HungerChangedEventArgs e)
 {
     if (EventSink.HungerChanged != null)
     {
         EventSink.HungerChanged.Invoke(e);
     }
 }
Exemple #3
0
 public static void InvokeHungerChanged( HungerChangedEventArgs e )
 {
     if ( HungerChanged != null )
         HungerChanged( e );
 }
Exemple #4
0
		public static void InvokeHungerChanged(HungerChangedEventArgs e)
		{
			if (HungerChanged != null)
			{
				foreach (HungerChangedEventHandler currentDelegate in HungerChanged.GetInvocationList())
				{
					try
					{
						currentDelegate.Invoke(e);
					}
					catch (Exception ex)
					{
						// Log an exception
						EventSink.InvokeLogException(new LogExceptionEventArgs(ex));
					}
				}
			}
		}
Exemple #5
0
 public static void InvokeHungerChanged(HungerChangedEventArgs e)
 {
     HungerChanged?.Invoke(e);
 }