material_container 
This datum should be used for handling mineral contents of machines and whatever else is supposed to hold minerals and make use of them.
Variables: amount - raw amount of the mineral this container is holding, calculated by the defined value MINERAL_MATERIAL_AMOUNT=2000. max_amount - max raw amount of mineral this container can hold. sheet_type - type of the mineral sheet the container handles, used for output. parent - object that this container is being used by, used for output. MAX_STACK_SIZE - size of a stack of mineral sheets. Constant.
Vars | |
| max_amount | Raw amount of the mineral this container is holding, calculated by the defined value MINERAL_MATERIAL_AMOUNT=2000 |
|---|---|
| sheet_type | Type of the mineral sheet the container handles, used for output. |
Procs | |
| get_item_material_amount | returns the amount of material relevant to this container; if this container does not support glass, any glass in 'I' will not be taken into account |
| insert_amount | For inserting an amount of material |
| insert_materials | for internal usage only |
| on_insert_stack_signal | Signal handler for stack insertion, returns container insertion flags. |
| retrieve | For spawning mineral sheets; internal use only |
| ui_data | List format is list(material_name = list(amount = ..., ref = ..., etc.)) |
| use_amount | For consuming material mats is a list of types of material to use and the corresponding amounts, example: list(MAT_METAL=100, MAT_GLASS=200) |
Var Details
max_amount 
Raw amount of the mineral this container is holding, calculated by the defined value MINERAL_MATERIAL_AMOUNT=2000
sheet_type 
Type of the mineral sheet the container handles, used for output.
Proc Details
get_item_material_amount
returns the amount of material relevant to this container; if this container does not support glass, any glass in 'I' will not be taken into account
insert_amount
For inserting an amount of material
insert_materials
for internal usage only
on_insert_stack_signal
Signal handler for stack insertion, returns container insertion flags.
retrieve
For spawning mineral sheets; internal use only
ui_data
List format is list(material_name = list(amount = ..., ref = ..., etc.))
use_amount
For consuming material mats is a list of types of material to use and the corresponding amounts, example: list(MAT_METAL=100, MAT_GLASS=200)