Check win and loss states

This commit is contained in:
henriquenakashima 2020-09-20 16:45:50 -04:00
parent adc84f9aba
commit 8c641f5524
8 changed files with 69 additions and 7 deletions

View file

@ -5,6 +5,7 @@ using UnityEngine;
public enum MCardId {
VampireFangs,
GolemFist,
QuickSwiftDeath,
}
public class MonsterCardDatabase : CardDatabase<MonsterCard>
@ -17,6 +18,8 @@ public class MonsterCardDatabase : CardDatabase<MonsterCard>
return new VampireFangsMCard(owner);
case MCardId.GolemFist:
return new GolemFistMCard(owner);
case MCardId.QuickSwiftDeath:
return new QuickSwiftDeathMCard(owner);
default:
throw new System.ArgumentException("MCardId unknown", "id");
}