Removes redundant delegate type declarations
This commit is contained in:
parent
3c9842ee5a
commit
c85b0a740c
317 changed files with 898 additions and 903 deletions
|
|
@ -30,7 +30,7 @@ namespace Server.Items
|
|||
m_MaxDamage = maxDamage;
|
||||
m_Created = DateTime.UtcNow;
|
||||
m_Duration = duration;
|
||||
m_Timer = Timer.DelayCall( TimeSpan.Zero, TimeSpan.FromSeconds( 1 ), new TimerCallback( OnTick ) );
|
||||
m_Timer = Timer.DelayCall( TimeSpan.Zero, TimeSpan.FromSeconds( 1 ), OnTick );
|
||||
}
|
||||
|
||||
public override void OnAfterDelete()
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ namespace Server.Items
|
|||
}
|
||||
else
|
||||
{
|
||||
from.BeginTarget( 2, false, TargetFlags.None, new TargetCallback( OnTarget ) );
|
||||
from.BeginTarget( 2, false, TargetFlags.None, OnTarget );
|
||||
from.SendMessage( "What do you wish to use the gem on?" );
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -210,7 +210,7 @@ namespace Server.Items
|
|||
|
||||
public static void Initialize()
|
||||
{
|
||||
PacketHandlers.Register( 0x71, 0, true, new OnPacketReceive( BBClientRequest ) );
|
||||
PacketHandlers.Register( 0x71, 0, true, BBClientRequest );
|
||||
}
|
||||
|
||||
public static void BBClientRequest( NetState state, PacketReader pvSrc )
|
||||
|
|
|
|||
|
|
@ -409,7 +409,7 @@ namespace Server.Items
|
|||
|
||||
public static void Initialize()
|
||||
{
|
||||
Mobile.CreateCorpseHandler += new CreateCorpseHandler( Mobile_CreateCorpseHandler );
|
||||
Mobile.CreateCorpseHandler += Mobile_CreateCorpseHandler;
|
||||
}
|
||||
|
||||
public static Container Mobile_CreateCorpseHandler( Mobile owner, HairInfo hair, FacialHairInfo facialhair, List<Item> initialContent, List<Item> equipItems )
|
||||
|
|
|
|||
|
|
@ -140,7 +140,7 @@ namespace Server.Items
|
|||
if ( Utility.InRange( m.Location, Location, 1 ) && !Utility.InRange( oldLocation, Location, 1 ) && m.Player && !(m.AccessLevel > AccessLevel.Player || m.Hidden) )
|
||||
{
|
||||
if ( m_Timer == null || !m_Timer.Running )
|
||||
m_Timer = Timer.DelayCall( TimeSpan.FromSeconds( 2 ), new TimerCallback( HeedWarning ) );
|
||||
m_Timer = Timer.DelayCall( TimeSpan.FromSeconds( 2 ), HeedWarning );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -335,13 +335,13 @@ namespace Server.Items
|
|||
return;
|
||||
|
||||
if (m_SoundID > 0)
|
||||
Timer.DelayCall<IEntity>(m_SoundDelay, new TimerStateCallback<IEntity>(PlaySound), trigger);
|
||||
Timer.DelayCall<IEntity>(m_SoundDelay, PlaySound, trigger);
|
||||
|
||||
if (m_Trigger != null)
|
||||
Timer.DelayCall<IEntity>(m_TriggerDelay, new TimerStateCallback<IEntity>(m_Trigger.DoEffect), trigger);
|
||||
Timer.DelayCall<IEntity>(m_TriggerDelay, m_Trigger.DoEffect, trigger);
|
||||
|
||||
if (m_EffectType != ECEffectType.None)
|
||||
Timer.DelayCall<IEntity>(m_EffectDelay, new TimerStateCallback<IEntity>(InternalDoEffect), trigger);
|
||||
Timer.DelayCall<IEntity>(m_EffectDelay, InternalDoEffect, trigger);
|
||||
}
|
||||
|
||||
public void InternalDoEffect(IEntity trigger)
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@ namespace Server.Items
|
|||
|
||||
if ( m_Timer == null )
|
||||
{
|
||||
m_Timer = Timer.DelayCall( TimeSpan.FromSeconds( 1 ), TimeSpan.FromSeconds( 1 ), new TimerCallback( OnFirebombTimerTick ) );
|
||||
m_Timer = Timer.DelayCall( TimeSpan.FromSeconds( 1 ), TimeSpan.FromSeconds( 1 ), OnFirebombTimerTick );
|
||||
m_LitBy = from;
|
||||
from.SendLocalizedMessage( 1060582 ); // You light the firebomb. Throw it now!
|
||||
}
|
||||
|
|
@ -221,7 +221,7 @@ namespace Server.Items
|
|||
m_LitBy = litBy;
|
||||
m_Expire = DateTime.UtcNow + TimeSpan.FromSeconds( 10 );
|
||||
m_Burning = toDamage;
|
||||
m_Timer = Timer.DelayCall( TimeSpan.FromSeconds( 1.0 ), TimeSpan.FromSeconds( 1.0 ), new TimerCallback( OnFirebombFieldTimerTick ) );
|
||||
m_Timer = Timer.DelayCall( TimeSpan.FromSeconds( 1.0 ), TimeSpan.FromSeconds( 1.0 ), OnFirebombFieldTimerTick );
|
||||
}
|
||||
|
||||
public FirebombField( Serial serial ) : base( serial )
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ namespace Server.Items
|
|||
{
|
||||
public static void Initialize()
|
||||
{
|
||||
CommandSystem.Register( "Flip", AccessLevel.GameMaster, new CommandEventHandler( Flip_OnCommand ) );
|
||||
CommandSystem.Register( "Flip", AccessLevel.GameMaster, Flip_OnCommand );
|
||||
}
|
||||
|
||||
[Usage( "Flip" )]
|
||||
|
|
|
|||
|
|
@ -33,10 +33,10 @@ namespace Server.Items
|
|||
|
||||
Effects.PlaySound( GetWorldLocation(), Map, 0x387 );
|
||||
|
||||
Timer.DelayCall( TimeSpan.FromSeconds( 0.25 ), new TimerCallback( Down1 ) );
|
||||
Timer.DelayCall( TimeSpan.FromSeconds( 0.50 ), new TimerCallback( Down2 ) );
|
||||
Timer.DelayCall( TimeSpan.FromSeconds( 0.25 ), Down1 );
|
||||
Timer.DelayCall( TimeSpan.FromSeconds( 0.50 ), Down2 );
|
||||
|
||||
Timer.DelayCall( TimeSpan.FromSeconds( 5.00 ), new TimerCallback( BackUp ) );
|
||||
Timer.DelayCall( TimeSpan.FromSeconds( 5.00 ), BackUp );
|
||||
|
||||
m_NextUse = DateTime.UtcNow + TimeSpan.FromSeconds( 10.0 );
|
||||
}
|
||||
|
|
|
|||
|
|
@ -140,7 +140,7 @@ namespace Server.Items
|
|||
}
|
||||
}
|
||||
|
||||
Timer.DelayCall( TimeSpan.Zero, new TimerCallback( Refresh ) );
|
||||
Timer.DelayCall( TimeSpan.Zero, Refresh );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ namespace Server.Items
|
|||
{
|
||||
if ( IsChildOf( from.Backpack ) )
|
||||
{
|
||||
from.BeginTarget( -1, false, TargetFlags.None, new TargetCallback( OnTarget ) );
|
||||
from.BeginTarget( -1, false, TargetFlags.None, OnTarget );
|
||||
from.SendLocalizedMessage( 1005424 ); // Select the weapon or armor you wish to use the cloth on.
|
||||
}
|
||||
else
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ namespace Server.Items
|
|||
m_Created = DateTime.UtcNow;
|
||||
m_Duration = duration;
|
||||
|
||||
m_Timer = Timer.DelayCall( TimeSpan.Zero, TimeSpan.FromSeconds( 1 ), new TimerCallback( OnTick ) );
|
||||
m_Timer = Timer.DelayCall( TimeSpan.Zero, TimeSpan.FromSeconds( 1 ), OnTick );
|
||||
}
|
||||
|
||||
public override void OnAfterDelete()
|
||||
|
|
|
|||
|
|
@ -99,7 +99,7 @@ namespace Server.Items
|
|||
|
||||
public static void Initialize()
|
||||
{
|
||||
CommandSystem.Register( "MoonGen", AccessLevel.Administrator, new CommandEventHandler( MoonGen_OnCommand ) );
|
||||
CommandSystem.Register( "MoonGen", AccessLevel.Administrator, MoonGen_OnCommand );
|
||||
}
|
||||
|
||||
[Usage( "MoonGen" )]
|
||||
|
|
|
|||
|
|
@ -550,7 +550,7 @@ namespace Server.Items
|
|||
{
|
||||
m_Table = new Dictionary<Mobile, TeleportingInfo>();
|
||||
|
||||
EventSink.Logout += new LogoutEventHandler(EventSink_Logout);
|
||||
EventSink.Logout += EventSink_Logout;
|
||||
}
|
||||
|
||||
public static void EventSink_Logout(LogoutEventArgs e)
|
||||
|
|
|
|||
|
|
@ -117,7 +117,7 @@ namespace Server.Items
|
|||
list[i].Broadcast( triggerer );
|
||||
}
|
||||
|
||||
Timer.DelayCall( TimeSpan.Zero, new TimerCallback( InternalCallback ) );
|
||||
Timer.DelayCall( TimeSpan.Zero, InternalCallback );
|
||||
}
|
||||
|
||||
private void InternalCallback()
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ namespace Server.Items
|
|||
{
|
||||
public static void Initialize()
|
||||
{
|
||||
CommandSystem.Register( "WayPointSeq", AccessLevel.GameMaster, new CommandEventHandler( WayPointSeq_OnCommand ) );
|
||||
CommandSystem.Register( "WayPointSeq", AccessLevel.GameMaster, WayPointSeq_OnCommand );
|
||||
}
|
||||
|
||||
public static void WayPointSeq_OnCommand( CommandEventArgs arg )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue