Files
Nitrox/NitroxClient/Communication/Abstract/IPacketSender.cs
2025-07-06 00:23:46 +02:00

14 lines
395 B
C#

using NitroxModel.Packets;
namespace NitroxClient.Communication.Abstract;
public interface IPacketSender
{
/// <summary>
/// Sends the packet. Returns true if packet was not suppressed.
/// </summary>
/// <param name="packet">The packet to send.</param>
/// <returns>True if not suppressed and actually sent.</returns>
bool Send<T>(T packet) where T : Packet;
}