mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
Convert GameNetwork.OnNetworkMessage to an event, fix namespace
This commit is contained in:
parent
d92b349649
commit
55de0577fa
2 changed files with 9 additions and 7 deletions
|
|
@ -6,18 +6,13 @@ using Dalamud.Game.Network;
|
|||
using Dalamud.Hooking;
|
||||
using Serilog;
|
||||
|
||||
namespace Dalamud.Game.Internal.Network
|
||||
namespace Dalamud.Game.Network
|
||||
{
|
||||
/// <summary>
|
||||
/// This class handles interacting with game network events.
|
||||
/// </summary>
|
||||
public sealed class GameNetwork : IDisposable
|
||||
{
|
||||
/// <summary>
|
||||
/// Event that is called when a network message is sent/received.
|
||||
/// </summary>
|
||||
public OnNetworkMessageDelegate OnNetworkMessage;
|
||||
|
||||
private readonly GameNetworkAddressResolver address;
|
||||
private readonly Hook<ProcessZonePacketDownDelegate> processZonePacketDownHook;
|
||||
private readonly Hook<ProcessZonePacketUpDelegate> processZonePacketUpHook;
|
||||
|
|
@ -58,6 +53,11 @@ namespace Dalamud.Game.Internal.Network
|
|||
[UnmanagedFunctionPointer(CallingConvention.ThisCall)]
|
||||
private delegate byte ProcessZonePacketUpDelegate(IntPtr a1, IntPtr dataPtr, IntPtr a3, byte a4);
|
||||
|
||||
/// <summary>
|
||||
/// Event that is called when a network message is sent/received.
|
||||
/// </summary>
|
||||
public event OnNetworkMessageDelegate OnNetworkMessage;
|
||||
|
||||
/// <summary>
|
||||
/// Enable this module.
|
||||
/// </summary>
|
||||
|
|
@ -1,6 +1,8 @@
|
|||
using System;
|
||||
|
||||
namespace Dalamud.Game.Internal.Network
|
||||
using Dalamud.Game.Internal;
|
||||
|
||||
namespace Dalamud.Game.Network
|
||||
{
|
||||
/// <summary>
|
||||
/// The address resolver for the <see cref="GameNetwork"/> class.
|
||||
Loading…
Add table
Add a link
Reference in a new issue