ported from perforce
This commit is contained in:
25
RobotAndDonkey.Game/Cards/Patches/PatchCard.cs
Normal file
25
RobotAndDonkey.Game/Cards/Patches/PatchCard.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using RobotAndDonkey.Game.Board;
|
||||
using RobotAndDonkey.Game.Execution.Results;
|
||||
using RobotAndDonkey.Game.GameState;
|
||||
using RobotAndDonkey.Game.Intents;
|
||||
using RobotAndDonkey.Game.Pois;
|
||||
|
||||
namespace RobotAndDonkey.Game.Cards.Patches;
|
||||
|
||||
public record PatchCard(ECard Id, int ShopCost, int PlayCost, ERarity Rarity) : Card(Id, ECardType.Patch, Rarity, ShopCost, PlayCost)
|
||||
{
|
||||
public override void CreateIntents(Cell? avatarCell, CoreLoop coreLoop, Guid requestId, List<Intent> intents, List<Result> results)
|
||||
{
|
||||
if (avatarCell?.Poi is not Avatar avatar)
|
||||
return;
|
||||
|
||||
base.CreateIntents(avatarCell, coreLoop, requestId, intents, results);
|
||||
CreateIntents(avatarCell, avatar, coreLoop, requestId, intents, results);
|
||||
}
|
||||
|
||||
protected virtual void CreateIntents(Cell avatarCell, Avatar avatar, CoreLoop coreLoop, Guid requestId, List<Intent> intents, List<Result> results)
|
||||
{
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user