QcHandbookEntry::Recipe Struct
struct QcHandbookEntry::RecipeA crafting recipe (cells of a grid, row by row; empty links are empty cells) or a machine recipe (one input cell). More...
Public Types
| enum class | Kind { Crafting, Machine } |
Public Variables
| QList<QcHandbookEntry::Link> | cells |
| int | height |
| QcHandbookEntry::Recipe::Kind | kind |
| QList<QcHandbookEntry::Link> | machines |
| QString | name |
| bool | needsTable |
| QString | note |
| QcHandbookEntry::Link | result |
| int | resultCount |
| double | seconds |
| bool | shapeless |
| int | width |
Detailed Description
Member Type Documentation
enum class Recipe::Kind
The kinds of recipe.
| Constant | Value | Description |
|---|---|---|
QcHandbookEntry::Recipe::Kind::Crafting | 0 | A crafting recipe. |
QcHandbookEntry::Recipe::Kind::Machine | 1 | A machine recipe. |
Member Variable Documentation
QList<QcHandbookEntry::Link> Recipe::cells
The cells (see the struct).
QcHandbookEntry::Recipe::Kind Recipe::kind
The kind of recipe.
QString Recipe::name
The recipe's content name.
bool Recipe::needsTable
Needs the 3 x 3 grid of a crafting table.
QString Recipe::note
How and where it is made ("Crafting table, shapeless", "Furnace: 10 s per item, needs fuel").
bool Recipe::shapeless
Whether the ingredients may lie anywhere in the grid.