ported from perforce

This commit is contained in:
2026-04-19 00:43:27 +02:00
commit 6c0c33f5d4
700 changed files with 19735 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
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);