FurinaImpact/FurinaImpact.Gameserver/Controllers/Result/SinglePacketResult.cs
2023-12-09 06:45:08 +03:00

21 lines
471 B
C#

using System.Diagnostics.CodeAnalysis;
using FurinaImpact.Gameserver.Network;
namespace FurinaImpact.Gameserver.Controllers.Result;
internal class SinglePacketResult : IResult
{
private NetPacket? _packet;
public SinglePacketResult(NetPacket? packet)
{
_packet = packet;
}
public bool NextPacket([MaybeNullWhen(false)] out NetPacket packet)
{
packet = _packet;
_packet = null;
return packet != null;
}
}