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

@ -244,7 +244,7 @@ namespace Server.Multis
{
if ( !Deleted && DecayLevel == DecayLevel.Collapsed )
{
Timer.DelayCall( TimeSpan.Zero, new TimerCallback( Decay_Sandbox ) );
Timer.DelayCall( TimeSpan.Zero, Decay_Sandbox );
return true;
}
@ -940,7 +940,7 @@ namespace Server.Multis
LockedDownFlag = 1;
SecureFlag = 2;
Timer.DelayCall( TimeSpan.FromMinutes( 1.0 ), TimeSpan.FromMinutes( 1.0 ), new TimerCallback( Decay_OnTick ) );
Timer.DelayCall( TimeSpan.FromMinutes( 1.0 ), TimeSpan.FromMinutes( 1.0 ), Decay_OnTick );
}
public virtual int GetAosCurLockdowns()
@ -1816,7 +1816,7 @@ namespace Server.Multis
* When you accept this house, you also accept landlordship for every
* contract vendor in the house.
*/
to.SendGump( new WarningGump( 1060635, 30720, 1062487, 32512, 420, 280, new WarningGumpCallback( ConfirmTransfer_Callback ), from ) );
to.SendGump( new WarningGump( 1060635, 30720, 1062487, 32512, 420, 280, ConfirmTransfer_Callback, from ) );
}
else
{
@ -2487,7 +2487,7 @@ namespace Server.Multis
Item child = children[j];
if ( child.Decays && !child.IsLockedDown && !child.IsSecure && (child.LastMoved + child.DecayTime) <= DateTime.UtcNow )
Timer.DelayCall( TimeSpan.Zero, new TimerCallback( child.Delete ) );
Timer.DelayCall( TimeSpan.Zero, child.Delete );
}
}
}
@ -2703,7 +2703,7 @@ namespace Server.Multis
* having a chance to fix it themselves.
*/
Timer.DelayCall( TimeSpan.Zero, new TimerCallback( FixLockdowns_Sandbox ) );
Timer.DelayCall( TimeSpan.Zero, FixLockdowns_Sandbox );
}
if ( version < 11 )
@ -2722,10 +2722,10 @@ namespace Server.Multis
if ( !CheckDecay() )
{
if ( RelocatedEntities.Count > 0 )
Timer.DelayCall( TimeSpan.Zero, new TimerCallback( RestoreRelocatedEntities ) );
Timer.DelayCall( TimeSpan.Zero, RestoreRelocatedEntities );
if ( m_Owner == null && m_Friends.Count == 0 && m_CoOwners.Count == 0 )
Timer.DelayCall( TimeSpan.FromSeconds( 10.0 ), new TimerCallback( Delete ) );
Timer.DelayCall( TimeSpan.FromSeconds( 10.0 ), Delete );
}
}
@ -2783,7 +2783,7 @@ namespace Server.Multis
}*/
if ( trans == null && !canClaim )
Timer.DelayCall( TimeSpan.Zero, new TimerCallback( house.Delete ) );
Timer.DelayCall( TimeSpan.Zero, house.Delete );
else
house.Owner = trans;
}

View file

@ -1718,7 +1718,7 @@ namespace Server.Multis
public static void Initialize()
{
new UpdateAllTimer().Start();
EventSink.WorldSave += new WorldSaveEventHandler( EventSink_WorldSave );
EventSink.WorldSave += EventSink_WorldSave;
}
private static void EventSink_WorldSave( WorldSaveEventArgs e )

View file

@ -84,7 +84,7 @@ namespace Server.Misc
public static void Initialize()
{
EventSink.Login += new LoginEventHandler( EventSink_Login );
EventSink.Login += EventSink_Login;
}
private static bool IsStranded( Mobile from )

View file

@ -32,7 +32,7 @@ namespace Server.Multis
m_DecayDelay = TimeSpan.FromMinutes( 30.0 );
RefreshDecay( true );
Timer.DelayCall( TimeSpan.Zero, new TimerCallback( CheckAddComponents ) );
Timer.DelayCall( TimeSpan.Zero, CheckAddComponents );
}
public void CheckAddComponents()
@ -57,7 +57,7 @@ namespace Server.Multis
if ( setDecayTime )
m_DecayTime = DateTime.UtcNow + DecayDelay;
m_DecayTimer = Timer.DelayCall( DecayDelay, new TimerCallback( Delete ) );
m_DecayTimer = Timer.DelayCall( DecayDelay, Delete );
}
public virtual void AddItem( Item item, int xOffset, int yOffset, int zOffset )

View file

@ -778,25 +778,25 @@ namespace Server.Multis
public static void Initialize()
{
PacketHandlers.RegisterExtended( 0x1E, true, new OnPacketReceive( QueryDesignDetails ) );
PacketHandlers.RegisterExtended( 0x1E, true, QueryDesignDetails );
PacketHandlers.RegisterEncoded( 0x02, true, new OnEncodedPacketReceive( Designer_Backup ) );
PacketHandlers.RegisterEncoded( 0x03, true, new OnEncodedPacketReceive( Designer_Restore ) );
PacketHandlers.RegisterEncoded( 0x04, true, new OnEncodedPacketReceive( Designer_Commit ) );
PacketHandlers.RegisterEncoded( 0x05, true, new OnEncodedPacketReceive( Designer_Delete ) );
PacketHandlers.RegisterEncoded( 0x06, true, new OnEncodedPacketReceive( Designer_Build ) );
PacketHandlers.RegisterEncoded( 0x0C, true, new OnEncodedPacketReceive( Designer_Close ) );
PacketHandlers.RegisterEncoded( 0x0D, true, new OnEncodedPacketReceive( Designer_Stairs ) );
PacketHandlers.RegisterEncoded( 0x0E, true, new OnEncodedPacketReceive( Designer_Sync ) );
PacketHandlers.RegisterEncoded( 0x10, true, new OnEncodedPacketReceive( Designer_Clear ) );
PacketHandlers.RegisterEncoded( 0x12, true, new OnEncodedPacketReceive( Designer_Level ) );
PacketHandlers.RegisterEncoded( 0x02, true, Designer_Backup );
PacketHandlers.RegisterEncoded( 0x03, true, Designer_Restore );
PacketHandlers.RegisterEncoded( 0x04, true, Designer_Commit );
PacketHandlers.RegisterEncoded( 0x05, true, Designer_Delete );
PacketHandlers.RegisterEncoded( 0x06, true, Designer_Build );
PacketHandlers.RegisterEncoded( 0x0C, true, Designer_Close );
PacketHandlers.RegisterEncoded( 0x0D, true, Designer_Stairs );
PacketHandlers.RegisterEncoded( 0x0E, true, Designer_Sync );
PacketHandlers.RegisterEncoded( 0x10, true, Designer_Clear );
PacketHandlers.RegisterEncoded( 0x12, true, Designer_Level );
PacketHandlers.RegisterEncoded( 0x13, true, new OnEncodedPacketReceive( Designer_Roof ) ); // Samurai Empire roof
PacketHandlers.RegisterEncoded( 0x14, true, new OnEncodedPacketReceive( Designer_RoofDelete ) ); // Samurai Empire roof
PacketHandlers.RegisterEncoded( 0x13, true, Designer_Roof ); // Samurai Empire roof
PacketHandlers.RegisterEncoded( 0x14, true, Designer_RoofDelete ); // Samurai Empire roof
PacketHandlers.RegisterEncoded( 0x1A, true, new OnEncodedPacketReceive( Designer_Revert ) );
PacketHandlers.RegisterEncoded( 0x1A, true, Designer_Revert );
EventSink.Speech += new SpeechEventHandler( EventSink_Speech );
EventSink.Speech += EventSink_Speech;
}
private static void EventSink_Speech( SpeechEventArgs e )
@ -2439,7 +2439,7 @@ namespace Server.Multis
m_SendQueueSyncRoot = ((ICollection)m_SendQueue).SyncRoot;
m_Sync = new AutoResetEvent( false );
m_Thread = new Thread( new ThreadStart( CompressionThread ) );
m_Thread = new Thread( CompressionThread );
m_Thread.Name = "Housing Compression Thread";
m_Thread.Start();
}

View file

@ -509,7 +509,7 @@ namespace Server.Items
* If you are absolutely certain you wish to proceed, click the button next to OKAY below.
* If you do not wish to trade for this house, click CANCEL.
*/
from.SendGump( new WarningGump( 1060635, 30720, 1049583, 32512, 420, 280, new WarningGumpCallback( PlacementWarning_Callback ), prev ) );
from.SendGump( new WarningGump( 1060635, 30720, 1049583, 32512, 420, 280, PlacementWarning_Callback, prev ) );
return true;
}

View file

@ -178,7 +178,7 @@ namespace Server.Multis
* another house or have another house transferred to you for the
* next 7 days. Do you wish to claim this house?
*/
m.SendGump( new WarningGump( 501036, 32512, 1049719, 32512, 420, 280, new WarningGumpCallback( ClaimGump_Callback ), null ) );
m.SendGump( new WarningGump( 501036, 32512, 1049719, 32512, 420, 280, ClaimGump_Callback, null ) );
}
}

View file

@ -239,7 +239,7 @@ namespace Server.Multis
if ( m_House != null )
{
m_House.MovingCrate = this;
Timer.DelayCall( TimeSpan.Zero, new TimerCallback( Hide ) );
Timer.DelayCall( TimeSpan.Zero, Hide );
}
else
{

View file

@ -120,7 +120,7 @@ namespace Server.Multis
}
}
Timer.DelayCall( TimeSpan.Zero, new TimerCallback( Delete ) );
Timer.DelayCall( TimeSpan.Zero, Delete );
}
private class DecayTimer : Timer