first commit
This commit is contained in:
13
NitroxClient/Communication/Abstract/IPacketSender.cs
Normal file
13
NitroxClient/Communication/Abstract/IPacketSender.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
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;
|
||||
}
|
Reference in New Issue
Block a user