fix: Moves many EventSinks out of core. (#1783)

This commit is contained in:
Marcelo Paez Sequeira 2024-05-21 14:02:30 -03:00 committed by GitHub
parent 1cb798d807
commit 00908d030f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
45 changed files with 133 additions and 276 deletions

View file

@ -732,7 +732,6 @@ namespace Server.Accounting
{
EventSink.Connected += EventSink_Connected;
EventSink.Disconnected += EventSink_Disconnected;
EventSink.Login += EventSink_Login;
}
private static void EventSink_Connected(Mobile m)
@ -770,7 +769,7 @@ namespace Server.Accounting
acc.TotalGameTime += Core.Now - pm.SessionStart;
}
private static void EventSink_Login(Mobile m)
public static void OnLogin(Mobile m)
{
if (m is not PlayerMobile pm)
{