import { CreatureType } from "./creatureType" ; export enum DefinitionClass { VALIANT = "Valiant" , ARCANE = "Arcane" , CUNNING = "Cunning" } export interface CreatureDefinition { id : number ; name : string ; cost : number ; type : CreatureType ; class : DefinitionClass ; stages : CreatureStats [ ] ; } export interface CreatureStats { hp : number ; attack : number ; defense : number ; speed : number ; attackType : AttackType ; } export interface AttackType { name : string ; range : number ; } type AttackTypeName = "basic" | "shoot" ; export const attackTypes = { basic : { name : "basic" , range : 1 } , shoot : { name : "shoot" , range : 2 } } ;