Removes redundant delegate type declarations

This commit is contained in:
Kamron Batman 2018-09-14 14:32:04 -07:00
parent 3c9842ee5a
commit c85b0a740c
317 changed files with 898 additions and 903 deletions

View file

@ -17,7 +17,7 @@ namespace Server.Engines.Events
if ( DateTime.UtcNow >= HolidaySettings.StartHalloween && DateTime.UtcNow <= HolidaySettings.FinishHalloween )
{
EventSink.Speech += new SpeechEventHandler( EventSink_Speech );
EventSink.Speech += EventSink_Speech;
}
}
@ -101,15 +101,15 @@ namespace Server.Engines.Events
if ( m_Action == 0 )
{
Timer.DelayCall<Mobile>( OneSecond, OneSecond, 10, new TimerStateCallback<Mobile>( Bleeding ), from );
Timer.DelayCall<Mobile>( OneSecond, OneSecond, 10, Bleeding, from );
}
else if ( m_Action == 1 )
{
Timer.DelayCall<Mobile>( TimeSpan.FromSeconds( 2 ), new TimerStateCallback<Mobile>( SolidHueMobile ), from );
Timer.DelayCall<Mobile>( TimeSpan.FromSeconds( 2 ), SolidHueMobile, from );
}
else
{
Timer.DelayCall<Mobile>( TimeSpan.FromSeconds( 2 ), new TimerStateCallback<Mobile>( MakeTwin ), from );
Timer.DelayCall<Mobile>( TimeSpan.FromSeconds( 2 ), MakeTwin, from );
}
}
}
@ -148,7 +148,7 @@ namespace Server.Engines.Events
{
target.SolidHueOverride = Utility.RandomMinMax( 2501, 2644 );
Timer.DelayCall<Mobile>( TimeSpan.FromSeconds( 10 ), new TimerStateCallback<Mobile>( RemoveHueMod ), target );
Timer.DelayCall<Mobile>( TimeSpan.FromSeconds( 10 ), RemoveHueMod, target );
}
}
@ -194,7 +194,7 @@ namespace Server.Engines.Events
twin.MoveToWorld( m_From.Map.CanSpawnMobile( point ) ? point : m_From.Location, m_From.Map );
Timer.DelayCall( TimeSpan.FromSeconds( 5 ), new TimerStateCallback<Mobile>( DeleteTwin ), twin );
Timer.DelayCall( TimeSpan.FromSeconds( 5 ), DeleteTwin, twin );
}
}
}
@ -274,7 +274,7 @@ namespace Server.Engines.Events
m_From = from;
Name = $"{@from.Name}\'s Naughty Twin";
Timer.DelayCall<Mobile>( TrickOrTreat.OneSecond, Utility.RandomBool() ? new TimerStateCallback<Mobile>( StealCandy ) : new TimerStateCallback<Mobile>( ToGate ), m_From );
Timer.DelayCall<Mobile>( TrickOrTreat.OneSecond, Utility.RandomBool() ? StealCandy : new TimerStateCallback<Mobile>( ToGate ), m_From );
}
}