NahidaImpact/NahidaImpact.Gameserver/Controllers/Result/SinglePacketResult.cs

17 lines
411 B
C#
Raw Permalink Normal View History

2024-01-04 13:48:39 +00:00
using System.Diagnostics.CodeAnalysis;
using NahidaImpact.Gameserver.Network;
namespace NahidaImpact.Gameserver.Controllers.Result;
internal class SinglePacketResult(NetPacket? packet) : IResult
{
private NetPacket? _packet = packet;
public bool NextPacket([MaybeNullWhen(false)] out NetPacket packet)
{
packet = _packet;
_packet = null;
return packet != null;
}
}