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.Commands.Generic
public override void Process( Mobile from, BaseCommand command, string[] args )
{
BoundingBoxPicker.Begin( from, new BoundingBoxCallback( OnTarget ), new object[]{ command, args } );
BoundingBoxPicker.Begin( from, OnTarget, new object[]{ command, args } );
}
public void OnTarget( Mobile from, Map map, Point3D start, Point3D end, object state )

View file

@ -307,7 +307,7 @@ namespace Server.Commands.Generic
return;
for ( int i = 0; i < m_Accessors.Length; ++i )
CommandSystem.Register( m_Accessors[i], m_AccessLevel, new CommandEventHandler( Execute ) );
CommandSystem.Register( m_Accessors[i], m_AccessLevel, Execute );
}
public static void Register( BaseCommandImplementor impl )

View file

@ -18,7 +18,7 @@ namespace Server.Commands.Generic
base.Register( command );
for ( int i = 0; i < command.Commands.Length; ++i )
CommandSystem.Register( command.Commands[i], command.AccessLevel, new CommandEventHandler( Redirect ) );
CommandSystem.Register( command.Commands[i], command.AccessLevel, Redirect );
}
public void Redirect( CommandEventArgs e )