19 lines
568 B
C#
19 lines
568 B
C#
using RobotAndDonkey.Game.Execution.Requests;
|
|
using RobotAndDonkey.Game.GameState;
|
|
using RobotAndDonkey.Game.Intents;
|
|
|
|
namespace RobotAndDonkey.Game.Execution.Commands;
|
|
|
|
public sealed record PreviewProgramCommand(Guid RequestId) : Command(RequestId, typeof(ImproveRequest))
|
|
{
|
|
protected override void CreateIntents(CoreLoop coreLoop, List<Intent> intents)
|
|
{
|
|
intents.Add(new NextPhase(ERunPhase.ExecuteProgram));
|
|
intents.Add(new EnterPreview());
|
|
}
|
|
|
|
public override string ToString()
|
|
{
|
|
return "Preview program command";
|
|
}
|
|
} |