And the card types:
    
    
    CardObject* = object
        source: Cardset
        
        name*: string
        text*: string
        imageUrl*: string
        expansion*: string
        rarity*: string
        collectorNumber*: int
        cost*: seq[ManaCostType] # empty is land
        typeLine*: TypeLine
        
        power*: int = -1 # -1: None -2: *
        toughness*: int = -1 # -1: None -2: *
        
        eventHandle*: string
        eventHandleProc: proc ()
        statelessEventHandle*: string
        statelessEventHandleProc*: proc ()
        # triggers*: set[uint8] # What events to pass
      
      Card* = ref CardObject
    
    
    Run

Reply via email to