Inheritance: System.EventArgs
 public static void InvokeAnimateRequest(AnimateRequestEventArgs e)
 {
     if (AnimateRequest != null)
     {
         AnimateRequest(e);
     }
 }
Example #2
0
 public static void InvokeAnimateRequest(AnimateRequestEventArgs e)
 {
     if (EventSink.AnimateRequest != null)
     {
         EventSink.AnimateRequest.Invoke(e);
     }
 }
Example #3
0
		private static void EventSink_AnimateRequest( AnimateRequestEventArgs e )
		{
			Mobile from = e.Mobile;

			int action;

			switch ( e.Action )
			{
				case "bow": action = 32; break;
				case "salute": action = 33; break;
				default: return;
			}

            if (from.Alive && !from.Mounted)
            {
                if (from.Body.IsHuman)
                    from.Animate(action, 5, 1, true, false, 0);
                else
                {
                    if (from.Body.IsAnimal)
			        {
                        if (action == 32) { from.Animate(3, 3, 1, true, false, 1); }
                        else if (action == 33) { from.Animate( 10, 5, 1, true, false, 1 ); }
			        }
                    else if ( from.Body.IsMonster)
			        {
                        if (action == 32) { from.Animate(11, 5, 1, true, false, 1); }
                        else if (action == 33) { from.Animate(18, 5, 1, true, false, 1); }
			        }
                }
            }
		}
Example #4
0
		private static void EventSink_AnimateRequest( AnimateRequestEventArgs e )
		{
			Mobile from = e.Mobile;

			int action;

			switch( e.Action )
			{
				case "bow": action = 32; break;
				case "salute": action = 33; break;
				default: return;
			}

			if( from.Alive && !from.Mounted && from.Body.IsHuman )
				from.Animate( action, 5, 1, true, false, 0 );
		}
Example #5
0
 public static void InvokeAnimateRequest( AnimateRequestEventArgs e )
 {
     if ( AnimateRequest != null )
         AnimateRequest( e );
 }
Example #6
0
 public static void InvokeAnimateRequest(AnimateRequestEventArgs e)
 {
     AnimateRequest?.Invoke(e);
 }
Example #7
0
		public static void InvokeAnimateRequest(AnimateRequestEventArgs e)
		{
			if (AnimateRequest != null)
			{
				foreach (AnimateRequestEventHandler currentDelegate in AnimateRequest.GetInvocationList())
				{
					try
					{
						currentDelegate.Invoke(e);
					}
					catch (Exception ex)
					{
						// Log an exception
						EventSink.InvokeLogException(new LogExceptionEventArgs(ex));
					}
				}
			}
		}