fsharp(ygosim): feat: added a few more things to the Card type
Signed-off-by: prescientmoon <git@moonythm.dev>
This commit is contained in:
parent
34751250ae
commit
4460715e0f
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue