28 lines
839 B
C#
28 lines
839 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class AcquireCardsEffect : IBattleEffect
|
|
{
|
|
private CardId[] cardIds;
|
|
private BattleZone zone;
|
|
private BattleParticipant participant;
|
|
|
|
public AcquireCardsEffect(CardId[] cardIds, BattleZone zone, BattleParticipant participant) {
|
|
this.cardIds = cardIds;
|
|
this.zone = zone;
|
|
this.participant = participant;
|
|
}
|
|
|
|
public void Apply(IBattleEffectResolver resolver) {
|
|
if (this.participant.IsHero()) {
|
|
resolver.AcquireHeroCards(this);
|
|
} else {
|
|
throw new System.NotImplementedException();
|
|
}
|
|
}
|
|
|
|
public CardId[] CardIds {get => this.cardIds;}
|
|
public BattleZone Zone {get => this.zone;}
|
|
public BattleParticipant Participant {get => this.participant;}
|
|
}
|