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

@ -5,13 +5,7 @@ namespace Server.Misc
{
public static class Profile
{
public static void Initialize()
{
EventSink.ProfileRequest += EventSink_ProfileRequest;
EventSink.ChangeProfileRequest += EventSink_ChangeProfileRequest;
}
public static void EventSink_ChangeProfileRequest(Mobile beholder, Mobile beheld, string text)
public static void ChangeProfileRequest(Mobile beholder, Mobile beheld, string text)
{
if (beholder.ProfileLocked)
{
@ -23,7 +17,7 @@ namespace Server.Misc
}
}
public static void EventSink_ProfileRequest(Mobile beholder, Mobile beheld)
public static void ProfileRequest(Mobile beholder, Mobile beheld)
{
if (!beheld.Player)
{