ported from perforce
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
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}";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user