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

@ -18,12 +18,12 @@ namespace Server.RemoteAdmin
public static void Configure()
{
PacketHandlers.Register( 0xF1, 0, false, new OnPacketReceive( OnReceive ) );
PacketHandlers.Register( 0xF1, 0, false, OnReceive );
#if !MONO
Core.MultiConsoleOut.Add( new EventTextWriter( new EventTextWriter.OnConsoleChar( OnConsoleChar ), new EventTextWriter.OnConsoleLine( OnConsoleLine ), new EventTextWriter.OnConsoleStr( OnConsoleString ) ) );
Core.MultiConsoleOut.Add( new EventTextWriter( OnConsoleChar, OnConsoleLine, OnConsoleString ) );
#endif
Timer.DelayCall( TimeSpan.FromMinutes( 2.5 ), TimeSpan.FromMinutes( 2.5 ), new TimerCallback( CleanUp ) );
Timer.DelayCall( TimeSpan.FromMinutes( 2.5 ), TimeSpan.FromMinutes( 2.5 ), CleanUp );
}
public static void OnConsoleString( string str )

View file

@ -18,10 +18,10 @@ namespace Server.RemoteAdmin
static RemoteAdminHandlers()
{
//0x02 = login request, handled by AdminNetwork
Register( 0x04, new OnPacketReceive( ServerInfoRequest ) );
Register( 0x05, new OnPacketReceive( AccountSearch ) );
Register( 0x06, new OnPacketReceive( RemoveAccount ) );
Register( 0x07, new OnPacketReceive( UpdateAccount ) );
Register( 0x04, ServerInfoRequest );
Register( 0x05, AccountSearch );
Register( 0x06, RemoveAccount );
Register( 0x07, UpdateAccount );
}
public static void Register( byte command, OnPacketReceive handler )