Files
Bubberstation/code/modules/atmospherics/machinery/components/binary_devices/binary_devices.dm
SkyratBot 230a34588f [MIRROR] modules/atmospherics major cleanup [MDB IGNORE] (#8818)
* modules/atmospherics major cleanup

* E

* E

* 0

Co-authored-by: Ghilker <42839747+Ghilker@users.noreply.github.com>
Co-authored-by: Gandalf <jzo123@hotmail.com>
2021-10-14 22:44:30 +01:00

31 lines
902 B
Plaintext

/obj/machinery/atmospherics/components/binary
icon = 'icons/obj/atmospherics/components/binary_devices.dmi'
dir = SOUTH
initialize_directions = SOUTH|NORTH
use_power = IDLE_POWER_USE
device_type = BINARY
layer = GAS_PUMP_LAYER
pipe_flags = PIPING_BRIDGE
/obj/machinery/atmospherics/components/binary/set_init_directions()
switch(dir)
if(NORTH, SOUTH)
initialize_directions = NORTH|SOUTH
if(EAST, WEST)
initialize_directions = EAST|WEST
/obj/machinery/atmospherics/components/binary/get_node_connects()
return list(turn(dir, 180), dir)
/**
* Used by binary devices to set what the offset will be for each layer, called in update_icon_nopipes()
* Arguments:
* * -pipe_layer: is the pipe layer the component should be set to
*/
/obj/machinery/atmospherics/components/binary/proc/set_overlay_offset(pipe_layer)
switch(pipe_layer)
if(1, 3, 5)
return 1
if(2, 4)
return 2