remote_materials
Vars | |
allow_standalone | Should we create a local storage if we can't connect to silo |
---|---|
local_size | Local size of container when silo = null |
mat_container | Material container. the value is either the silo or local |
mat_container_flags | Flags used when converting inserted materials into their component materials. |
silo | The silo machine this container is connected to |
Procs | |
SiloAttackBy | Insert mats into silo |
_PrepareStorage | Internal proc. prepares local storage if onnect_to_silo = FALSE |
_can_use_resource | Internal proc to check if this connection can use any materials from the silo Returns true only if |
check_z_level | Checks if the param silo is in the same level as this components parent i.e. connected machine, rcd, etc |
disconnect_from | Disconnect this component from the remote silo |
eject_sheets | Ejects the given material ref and logs it |
on_hold | returns TRUE if this connection put on hold by the silo |
use_materials | Use materials from either the silo(if connected) or from the local storage. If silo then this action is logged else not e.g. action="build" & name="matter bin" means you are trying to build an matter bin |
Var Details
allow_standalone
Should we create a local storage if we can't connect to silo
local_size
Local size of container when silo = null
mat_container
Material container. the value is either the silo or local
mat_container_flags
Flags used when converting inserted materials into their component materials.
silo
The silo machine this container is connected to
Proc Details
SiloAttackBy
Insert mats into silo
_PrepareStorage
Internal proc. prepares local storage if onnect_to_silo = FALSE
Arguments connect_to_silo- if true connect to global silo. If not successfull then go to local storage only if allow_standalone = TRUE, else you a null mat_container
_can_use_resource
Internal proc to check if this connection can use any materials from the silo Returns true only if
- The parent is of type movable atom
- A mat container is actually present
- The silo in not on hold
check_z_level
Checks if the param silo is in the same level as this components parent i.e. connected machine, rcd, etc
Arguments silo_to_check- Is this components parent in the same Z level as this param silo. If null then check this components connected silo
Returns true if both are on the station or same z level
disconnect_from
Disconnect this component from the remote silo
Arguments old_silo- The silo we are trying to disconnect from
eject_sheets
Ejects the given material ref and logs it
Arguments material_ref- The material type you are trying to eject eject_amount- how many sheets to eject drop_target- optional where to drop the sheets. null means it is dropped at this components parent location
on_hold
returns TRUE if this connection put on hold by the silo
use_materials
Use materials from either the silo(if connected) or from the local storage. If silo then this action is logged else not e.g. action="build" & name="matter bin" means you are trying to build an matter bin
Arguments [mats][list]- list of materials to use coefficient- each mat unit is scaled by this value then rounded. This value if usually your machine efficiency e.g. upgraded protolathe has reduced costs multiplier- each mat unit is scaled by this value then rounded after it is scaled by coefficient. This value is your print quatity e.g. printing multiple items action- For logging only. e.g. build, create, i.e. the action you are trying to perform name- For logging only. the design you are trying to build e.g. matter bin, etc.