21 lines
562 B
C#
21 lines
562 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public enum MCardId {
|
|
VampireFangs,
|
|
}
|
|
|
|
public class MonsterCardDatabase : CardDatabase<MonsterCard>
|
|
{
|
|
public override MonsterCard CreateCard(int id, BattleParticipant owner) {
|
|
MCardId monsterCardId = (MCardId) id;
|
|
switch (monsterCardId)
|
|
{
|
|
case MCardId.VampireFangs:
|
|
return new VampireFangsMCard(owner);
|
|
default:
|
|
throw new System.ArgumentException("MCardId unknown", "id");
|
|
}
|
|
}
|
|
}
|