RecipeDictionary
classNamed group of recipes shared by machines of one family
Fields
| Name | Type | Description |
|---|---|---|
| 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)
- name Object name
- Prototype:is_valid() Returns false once the underlying engine object has been destroyed
Inherited from Object (1)
- Object:get_class() Class of this object
Used by
- AbstractCrafter.recipes field