fix: Moves many EventSinks out of core. (#1783)
This commit is contained in:
parent
1cb798d807
commit
00908d030f
45 changed files with 133 additions and 276 deletions
|
|
@ -935,15 +935,10 @@ namespace Server.Mobiles
|
|||
|
||||
public static void Initialize()
|
||||
{
|
||||
EventSink.Login += OnLogin;
|
||||
EventSink.Logout += OnLogout;
|
||||
EventSink.Connected += EventSink_Connected;
|
||||
EventSink.Disconnected += EventSink_Disconnected;
|
||||
|
||||
EventSink.TargetedSkillUse += TargetedSkillUse;
|
||||
EventSink.EquipMacro += EquipMacro;
|
||||
EventSink.UnequipMacro += UnequipMacro;
|
||||
|
||||
if (Core.SE)
|
||||
{
|
||||
Timer.StartTimer(CheckPets);
|
||||
|
|
@ -962,7 +957,7 @@ namespace Server.Mobiles
|
|||
}
|
||||
}
|
||||
|
||||
private static void TargetedSkillUse(Mobile from, IEntity target, int skillId)
|
||||
public static void TargetedSkillUse(Mobile from, IEntity target, int skillId)
|
||||
{
|
||||
if (from == null || target == null)
|
||||
{
|
||||
|
|
@ -1221,7 +1216,7 @@ namespace Server.Mobiles
|
|||
}
|
||||
}
|
||||
|
||||
private static void OnLogin(Mobile from)
|
||||
public static void OnLogin(Mobile from)
|
||||
{
|
||||
if (AccountHandler.LockdownLevel > AccessLevel.Player)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue