Files
2026-04-19 00:43:27 +02:00

22 lines
517 B
C#

using System;
using RobotAndDonkey.Game.Execution.Commands;
namespace RobotAndDonkey.Game.Execution.Requests;
public abstract record Request(Guid RequestId)
{
public bool IsCommandCompatible(Command command)
{
foreach (var requestType in command.RequestTypes)
{
if (requestType == GetType())
return true;
}
return false;
}
public static readonly EmptyRequest s_Empty = new();
}
public sealed record EmptyRequest() : Request(Guid.Empty);