1
Fork 0

fsharp(ygosim): feat: added a few more things to the Card type

Signed-off-by: prescientmoon <git@moonythm.dev>
This commit is contained in:
Matei Adriel 2019-12-06 12:05:22 +02:00 committed by prescientmoon
parent 34751250ae
commit 4460715e0f
Signed by: prescientmoon
SSH key fingerprint: SHA256:UUF9JT2s8Xfyv76b8ZuVL7XrmimH4o49p4b+iexbVH4

View file

@ -1,5 +1,74 @@
module Card
// TODO: actually implement it
type BaseCard =
{ name: string
text: string }
type SpellCardType =
| NormalSpell
| Field
| Equip
| ContinuosSpell
| QuickPlay
| Ritual
type TrapCardType =
| NormalTrap
| Counter
| ContinuosTrap
type Attribute =
| Dark
| Light
| Water
| Fire
| Earth
| Wind
| Divine
type Race =
| Aqua
| Beast
| BeastWarrior
| Creator
| Cyberse
| Dinosaur
| DivineBeast
| Dragon
| Fairy
| Fiend
| Fish
| Insect
| Machine
| Plant
| Psychic
| Pyro
| Reptile
| Rock
| SeaSerpent
| Spellcaster
| Thunder
| Warrior
| WingedBeast
| Wyrm
| Zombie
type SpellCardDetails =
{ _type: SpellCardType }
type TrapCardDetails =
{ _type: TrapCardType }
type MonsterCardDetails =
{ attack: int
defense: int
attribute: Attribute
level: int }
type Card =
{ name: string }
| Monster of BaseCard * MonsterCardDetails
| Spell of BaseCard * SpellCardDetails
| Trap of BaseCard * TrapCardDetails