cardgeneratorpkg/resourceparser

    Dark Mode
Search:
Group by:

Description

This module parses the resource directory and converts files into data used further on.

Procs

proc parseColourDirectories(): Table[string, CardColourData] {.
    ...raises: [OSError], tags: [ReadDirEffect].}

Parses all colour directories and saves stuff to object, ready for the image generator to take over! :)

Only call after at least calling parseResourceDirectory()!

proc parseResourceDirectory() {....raises: [OSError, ValueError, KeyError],
                                tags: [ReadDirEffect].}
Parses the resource directory and writes values to vars.