20 lines
486 B
C#
20 lines
486 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public enum MCardId {
|
|
VampireFangs,
|
|
}
|
|
|
|
public static class MonsterCardDatabase
|
|
{
|
|
public static MonsterCard CreateCard(MCardId id, BattleParticipant owner) {
|
|
switch (id)
|
|
{
|
|
case MCardId.VampireFangs:
|
|
return new VampireFangsMCard(owner);
|
|
default:
|
|
throw new System.ArgumentException("MCardId unknown", "id");
|
|
}
|
|
}
|
|
}
|