NahidaImpact/NahidaImpact.Gameserver/Controllers/Result/SinglePacketResult.cs
2024-01-04 16:48:39 +03:00

16 lines
411 B
C#

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;
}
}