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

@ -23,7 +23,7 @@ namespace Server.Items
{
public static void Initialize()
{
CommandSystem.Register("RandomTalisman", AccessLevel.GameMaster, new CommandEventHandler(RandomTalisman_OnCommand));
CommandSystem.Register("RandomTalisman", AccessLevel.GameMaster, RandomTalisman_OnCommand);
}
[Usage("RandomTalisman <count>")]
@ -722,7 +722,7 @@ namespace Server.Items
public virtual void StartTimer()
{
if (m_Timer == null || !m_Timer.Running)
m_Timer = Timer.DelayCall(TimeSpan.FromSeconds(10), TimeSpan.FromSeconds(10), new TimerCallback(Slice));
m_Timer = Timer.DelayCall(TimeSpan.FromSeconds(10), TimeSpan.FromSeconds(10), Slice);
}
public virtual void StopTimer()

View file

@ -569,7 +569,7 @@ namespace Server.Mobiles
Hue = 0x480;
BaseSoundID = 0xC9;
Timer.DelayCall( TimeSpan.FromMinutes( 30.0 ), new TimerCallback( BeginTunnel ) );
Timer.DelayCall( TimeSpan.FromMinutes( 30.0 ), BeginTunnel );
}
public SummonedVorpalBunny( Serial serial ) : base( serial )
@ -587,7 +587,7 @@ namespace Server.Mobiles
Say( "* The bunny begins to dig a tunnel back to its underground lair *" );
PlaySound( 0x247 );
Timer.DelayCall( TimeSpan.FromSeconds( 5.0 ), new TimerCallback( Delete ) );
Timer.DelayCall( TimeSpan.FromSeconds( 5.0 ), Delete );
}
public override void Serialize( GenericWriter writer )