Files
zfxaction25/RobotAndDonkey.Game/Execution/Commands/AcceptGlitchCardCommand.cs
2026-04-19 00:43:27 +02:00

20 lines
638 B
C#

using RobotAndDonkey.Game.Execution.Requests;
using RobotAndDonkey.Game.GameState;
using RobotAndDonkey.Game.Intents;
namespace RobotAndDonkey.Game.Execution.Commands;
public sealed record AcceptCardCommand(Guid RequestId) : Command(RequestId, typeof(DrawGlitchRequest))
{
protected override void CreateIntents(CoreLoop coreLoop, List<Intent> intents)
{
intents.Add(new AcceptGlitch(coreLoop.GlitchDeck[coreLoop.NextGlitch]));
intents.Add(new NextGlitch());
intents.Add(new NextPhase(ERunPhase.Improve));
}
public override string ToString()
{
return "Accept card command";
}
}