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

remote_materials

Vars

allow_standaloneShould we create a local storage if we can't connect to silo
local_sizeLocal size of container when silo = null
mat_containerMaterial container. the value is either the silo or local
mat_container_flagsFlags used for the local material container(exceptions for item insert & intent flags)
mat_container_signalsList of signals to hook onto the local container
siloThe silo machine this container is connected to

Procs

SiloAttackByInsert mats into silo
_PrepareStorageInternal proc. prepares local storage if onnect_to_silo = FALSE
can_use_resourceCheck if this connection can use any materials from the silo Returns true only if
check_z_levelChecks if the param silo is in the same level as this components parent i.e. connected machine, rcd, etc
disconnect_fromDisconnect this component from the remote silo
eject_sheetsEjects the given material ref and logs it
insert_itemInsert an item into the mat container, helper proc to insert items with the correct context
on_holdreturns TRUE if this connection put on hold by the silo
set_local_sizeSets the storage size for local materials when not linked with silo Arguments
use_materialsUse 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 for the local material container(exceptions for item insert & intent flags)

mat_container_signals

List of signals to hook onto the local container

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

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

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

insert_item

Insert an item into the mat container, helper proc to insert items with the correct context

Arguments

on_hold

returns TRUE if this connection put on hold by the silo

set_local_size

Sets the storage size for local materials when not linked with silo Arguments

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.