/tg/ Station 13 - Modules - TypesVar Details - Proc Details

Materials

Vars

material_combosA cache of all material combinations that have been used
materialsDictionary of material.type || material ref
materials_by_categoryDictionary of category || list of material refs
materialtypes_by_categoryDictionary of category || list of material types, mostly used by rnd machines like autolathes.
rigid_stack_recipesList of stackcrafting recipes for materials using rigid materials

Procs

FindOrCreateMaterialComboReturns a list to be used as an object's custom_materials. Lists will be cached and re-used based on the parameters.
InitializeMaterialsRan on initialize, populated the materials and materials_by_category dictionaries with their appropiate vars (See these variables for more info)

Var Details

material_combos

A cache of all material combinations that have been used

materials

Dictionary of material.type || material ref

materials_by_category

Dictionary of category || list of material refs

materialtypes_by_category

Dictionary of category || list of material types, mostly used by rnd machines like autolathes.

rigid_stack_recipes

List of stackcrafting recipes for materials using rigid materials

Proc Details

FindOrCreateMaterialCombo

Returns a list to be used as an object's custom_materials. Lists will be cached and re-used based on the parameters.

InitializeMaterials

Ran on initialize, populated the materials and materials_by_category dictionaries with their appropiate vars (See these variables for more info)