feat: Moves network related events to UOContent using code generation (#1945)
### Summary - Moves `CharacterCreated` event to UOContent using code generated event _CharacterCreatedEvent_. - Moves `TargetByResourceMacro` event to UOContent using code generated event _TargetByResourceMacro_. - Moves `GameLogin` event to UOContent using code generated event _GameLoginEvent_. - Moves `ServerList` event to UOContent using code generated event _ServerListEvent_. - Streamlines ProfessionInfo > [!IMPORTANT] > **Developer Note** > Custom scripts that use any of these event sinks will need to be updated to use the new code generated events.
This commit is contained in:
parent
4110556e89
commit
47e16a03fe
14 changed files with 207 additions and 309 deletions
|
|
@ -1,7 +1,9 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net;
|
||||
using ModernUO.CodeGeneratedEvents;
|
||||
using Server.Accounting;
|
||||
using Server.Engines.CharacterCreation;
|
||||
using Server.Engines.Help;
|
||||
using Server.Logging;
|
||||
using Server.Network;
|
||||
|
|
@ -65,7 +67,6 @@ public static class AccountHandler
|
|||
public static void Initialize()
|
||||
{
|
||||
EventSink.AccountLogin += EventSink_AccountLogin;
|
||||
EventSink.GameLogin += EventSink_GameLogin;
|
||||
}
|
||||
|
||||
[Usage("Password <newPassword> <repeatPassword>")]
|
||||
|
|
@ -348,7 +349,8 @@ public static class AccountHandler
|
|||
}
|
||||
}
|
||||
|
||||
public static void EventSink_GameLogin(GameLoginEventArgs e)
|
||||
[OnEvent(nameof(GameServer.GameServerLoginEvent))]
|
||||
public static void OnGameServerLogin(GameServer.GameLoginEventArgs e)
|
||||
{
|
||||
var un = e.Username;
|
||||
var pw = e.Password;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue