RecipeDictionary

RecipeDictionary

class

Named group of recipes shared by machines of one family

Fields

NameTypeDescription
start_tier integer Machine-unlock tier shared by every recipe in the dictionary

Functions

RecipeDictionary:add(recipe)

Put a recipe into this dictionary

recipe Recipe

returns boolean False when the recipe is null or its name is already taken

RecipeDictionary:used_in(item)

Name a machine item that crafts from this dictionary; the first one is the face the recipe index files its recipes under

item StaticItem

returns boolean False when the item is null

Standard members (5)

Generated for every class of this kind by the game's codegen, not written for RecipeDictionary.

RecipeDictionary.cast(object) Trying to cast Object into RecipeDictionary
RecipeDictionary.get_class() Return RecipeDictionary class object
RecipeDictionary.find(name) Looks RecipeDictionary up in db, nil when there is none
RecipeDictionary.get(name) Takes RecipeDictionary from db, reports a miss to the log
RecipeDictionary.reg(name) Register a new RecipeDictionary static object
Inherited from Prototype (2)
Inherited from Object (1)

Used by