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
|
|
@ -3,6 +3,7 @@ using System.Net;
|
|||
using System.Net.Http;
|
||||
using System.Net.NetworkInformation;
|
||||
using System.Net.Sockets;
|
||||
using ModernUO.CodeGeneratedEvents;
|
||||
using Server.Logging;
|
||||
using Server.Network;
|
||||
|
||||
|
|
@ -60,11 +61,10 @@ namespace Server.Misc
|
|||
{
|
||||
Resolve(Address, out _publicAddress);
|
||||
}
|
||||
|
||||
EventSink.ServerList += EventSink_ServerList;
|
||||
}
|
||||
|
||||
private static void EventSink_ServerList(ServerListEventArgs e)
|
||||
[OnEvent(nameof(GatewayServer.ServerListEvent))]
|
||||
public static void OnServerListEvent(GatewayServer.ServerListEventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue