18 lines
479 B
C#
18 lines
479 B
C#
using System;
|
|
using RobotAndDonkey.Game.Cards;
|
|
using RobotAndDonkey.Game.GameState;
|
|
|
|
namespace RobotAndDonkey.Game.Execution.Requests;
|
|
|
|
public sealed record DrawGlitchRequest(Guid RequestId, Card Card) : Request(RequestId)
|
|
{
|
|
public static DrawGlitchRequest Create(CoreLoop coreLoop)
|
|
{
|
|
return new(Guid.NewGuid(), coreLoop.GlitchDeck[coreLoop.NextGlitch]);
|
|
}
|
|
|
|
public override string ToString()
|
|
{
|
|
return $"Draw glitch request: {Card}";
|
|
}
|
|
} |