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

@ -143,7 +143,7 @@ namespace Server.Engines.Doom
CreateRegion();
FullSpawn();
m_Timer = Timer.DelayCall( TimeSpan.FromSeconds( 1.0 ), TimeSpan.FromSeconds( 1.0 ), new TimerCallback( Slice ) );
m_Timer = Timer.DelayCall( TimeSpan.FromSeconds( 1.0 ), TimeSpan.FromSeconds( 1.0 ), Slice );
}
else
{
@ -459,7 +459,7 @@ namespace Server.Engines.Doom
public static void Initialize()
{
CommandSystem.Register( "GenGauntlet", AccessLevel.Administrator, new CommandEventHandler( GenGauntlet_OnCommand ) );
CommandSystem.Register( "GenGauntlet", AccessLevel.Administrator, GenGauntlet_OnCommand );
}
public static void CreateTeleporter( int xFrom, int yFrom, int xTo, int yTo )

View file

@ -33,7 +33,7 @@ namespace Server.Engines.Doom
public static void Initialize()
{
CommandSystem.Register( "GenLeverPuzzle", AccessLevel.Administrator, new CommandEventHandler( GenLampPuzzle_OnCommand ) );
CommandSystem.Register( "GenLeverPuzzle", AccessLevel.Administrator, GenLampPuzzle_OnCommand );
}
[Usage( "GenLeverPuzzle" )]
@ -267,7 +267,7 @@ namespace Server.Engines.Doom
if ( (TheirKey=(ushort)(code|(TheirKey<<=4))) < 0x0FFF )
{
l_Timer = Timer.DelayCall( TimeSpan.FromSeconds( 30.0 ), new TimerCallback( ResetPuzzle ));
l_Timer = Timer.DelayCall( TimeSpan.FromSeconds( 30.0 ), ResetPuzzle);
return;
}

View file

@ -29,7 +29,7 @@ namespace Server.Engines.Doom
m_Wanderer = new WandererOfTheVoid();
m_Wanderer.MoveToWorld( LeverPuzzleController.lr_Enter, Map.Malas );
m_Wanderer.PublicOverheadMessage( MessageType.Regular, 0x3B2, 1060002, "" ); // I am the guardian of...
Timer.DelayCall( TimeSpan.FromSeconds( 5.0 ), new TimerCallback( CallBackMessage ) );
Timer.DelayCall( TimeSpan.FromSeconds( 5.0 ), CallBackMessage );
}
}

View file

@ -16,7 +16,7 @@ namespace Server.Engines.Doom
public static void Initialize()
{
EventSink.Login += new LoginEventHandler( OnLogin );
EventSink.Login += OnLogin;
}
public static void OnLogin( LoginEventArgs e )