- Linux: Install development headers via your package manager (Ubuntu/Debian
sudo apt install libncurses-dev, Fedorasudo dnf install ncurses-devel, Arch-basedsudo pacman -S ncursesoryay -S ncurses). - macOS:
brew install ncurses. - Windows: Use MSYS2 (
pacman -S mingw-w64-x86_64-ncurses) or another curses-compatible port such as PDCurses when targeting MSVC.
cmake -S . -B ./build -DCMAKE_BUILD_TYPE=Debug
cmake --build ./build -jcmake --build ./build --target cleancmake -S . -B ./build -DCMAKE_BUILD_TYPE=ReleaseUse scripts/generate_card_defs.py to convert a JSONL list of card definitions into Flecs-friendly C code and a companion header.
python3 scripts/generate_card_defs.py path/to/cards.jsonl \
-o src/generated/card_defs.c \
--header include/generated/card_defs.hEach line of the JSONL file must describe a single card object containing the card's base stats, IKZ cost, element, type, and other metadata. The script validates the shape of each record before emitting both the source (lookup tables) and header (enums, structs, and accessors). Override -o or --header as needed to place the generated files elsewhere.