QtCraft API C++ classes QML types Handbook

QcMapCrafting Namespace

Maps in the crafting grid (decision E-804), besides their recipes: a filled map with empty maps of its kind and nothing else copies it (one copy per empty map, all with its map id); a filled map in the middle of the 3 x 3 grid with its zoomsWith item in the eight cells around it zooms it out (a new map one scale larger, which the server makes when the result is taken). More...

Header: #include <common/maps/QcMapCrafting.h>

Classes

struct Result

Functions

std::optional<QcMapCrafting::Result> result(const QcContentRegistry &content, const QList<QcItemStack> &grid, int gridSize)

Detailed Description

Classes

class Result

What the grid makes. More...

Function Documentation

std::optional<QcMapCrafting::Result> QcMapCrafting::result(const QcContentRegistry &content, const QList<QcItemStack> &grid, int gridSize)

Returns what the cells grid (row by row, gridSize wide; items of content) make, or nothing when they are no map crafting.