Yogstation 13 - Modules - TypesVar Details - Proc Details

machinery

Vars

atmos_processingBoolean on whether this machines interact with atmos
last_used_timeworld.time of last use by /mob/living
last_user_mobtypeMobtype of last user. Typecast to /mob/living for initial() usage
subsystem_typeWhat subsystem this machine will use, which is generally SSmachines or SSfastprocess. By default all machinery use SSmachines. This fires a machine's process() roughly every 2 seconds.
tgui_idFor storing and overriding ui id

Procs

dropContentsDrop every movable atom in the machine's contents list, including any components and circuit.
get_room_areaGet a valid powered area to reference for power use, mainly for wall-mounted machinery that isn't always mapped directly in a powered location.
open_machineOpens the machine.
power_changeCalled whenever the power settings of the containing area change
try_put_in_handPuts passed object in to user's hand

Var Details

atmos_processing

Boolean on whether this machines interact with atmos

last_used_time

world.time of last use by /mob/living

last_user_mobtype

Mobtype of last user. Typecast to /mob/living for initial() usage

subsystem_type

What subsystem this machine will use, which is generally SSmachines or SSfastprocess. By default all machinery use SSmachines. This fires a machine's process() roughly every 2 seconds.

tgui_id

For storing and overriding ui id

Proc Details

dropContents

Drop every movable atom in the machine's contents list, including any components and circuit.

get_room_area

Get a valid powered area to reference for power use, mainly for wall-mounted machinery that isn't always mapped directly in a powered location.

open_machine

Opens the machine.

Will update the machine icon and any user interfaces currently open. Arguments:

power_change

Called whenever the power settings of the containing area change

by default, check equipment channel & set flag, can override if needed

Returns TRUE if the NOPOWER flag was toggled

try_put_in_hand

Puts passed object in to user's hand

Puts the passed object in to the users hand if they are adjacent. If the user is not adjacent then place the object on top of the machine.

Vars: