Skip to main content

Module prototypes

Module prototypes 

Source
Expand description

Hand-written prototype stubs for the data stage (data.extend).

These are not generated from prototype-api.json yet. They exist so mods can register common prototypes with typed struct literals; the codegen injects Factorio’s type = "..." discriminant from the Rust struct name.

Structs§

Item
Minimal ItemPrototype for data.extend.
Recipe
Minimal RecipePrototype for data.extend.
RecipeIngredient
Item ingredient for a Recipe (type = "item" injected).
RecipeProduct
Item product for a Recipe (type = "item" injected).
Technology
Minimal TechnologyPrototype for data.extend.
TechnologyUnit
Research cost block for a Technology (unit = { count, time, ingredients }).
TechnologyUnitIngredient
Science-pack entry for a TechnologyUnit.
UnlockRecipeEffect
Unlock-recipe modifier (type = "unlock-recipe" injected).