Add guards and implement basic cards
This commit is contained in:
parent
30beb96397
commit
08c395cf51
32 changed files with 803 additions and 24 deletions
21
Assets/Battle/Effects/MassBlockEffect.cs
Normal file
21
Assets/Battle/Effects/MassBlockEffect.cs
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class MassBlockEffect : IBattleEffect
|
||||
{
|
||||
private TeamChoice team;
|
||||
private int amount;
|
||||
|
||||
public MassBlockEffect(TeamChoice team, int amount) {
|
||||
this.team = team;
|
||||
this.amount = amount;
|
||||
}
|
||||
|
||||
public void Apply(IBattleEffectResolver resolver) {
|
||||
resolver.AddMassBlock(this);
|
||||
}
|
||||
|
||||
public TeamChoice Team {get => this.team;}
|
||||
public int Amount {get => this.amount;}
|
||||
}
|
||||
11
Assets/Battle/Effects/MassBlockEffect.cs.meta
Normal file
11
Assets/Battle/Effects/MassBlockEffect.cs.meta
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: a0c3290b12974bc4682c5abbcd529884
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Loading…
Add table
Add a link
Reference in a new issue