components

Vars | |
| airs | Stores the component gas mixture |
|---|---|
| parents | Stores the component pipeline |
| shift_underlay_only | When the component is on a non default layer should we shift everything? Or just the underlay pipe |
| showpipe | Should the component should show the pipe underneath it? |
| welded | Is the component welded? |
Procs | |
| get_pipe_underlay | Called by update_icon() when showpipe is TRUE, set the image for the underlay pipe Arguments: |
| hide_pipe | Called in Initialize(), set the showpipe var to true or false depending on the situation, calls update_icon() |
| nullifyPipenet | Called by nullifyNode(), used to remove the pipeline the component is attached to Arguments: |
| returnPipenetAirs | We explicitly qdel pipeline when this particular pipeline is projected to have no member and cause GC problems. We have to do this because components don't qdel pipelines while pipes must and will happily wreck and rebuild everything again every time they are qdeleted. |
| update_icon_nopipes | Called by update_icon(), used individually by each component to determine the icon state without the pipe in consideration |
| update_parents | Called in most atmos processes and gas handling situations, update the parents pipelines of the devices connected to the source component This way gases won't get stuck |
Var Details
airs

Stores the component gas mixture
parents

Stores the component pipeline
shift_underlay_only

When the component is on a non default layer should we shift everything? Or just the underlay pipe
showpipe

Should the component should show the pipe underneath it?
welded

Is the component welded?
Proc Details
get_pipe_underlay
Called by update_icon() when showpipe is TRUE, set the image for the underlay pipe Arguments:
- -state: icon_state of the selected pipe
- -dir: direction of the pipe
- -color: color of the pipe
hide_pipe
Called in Initialize(), set the showpipe var to true or false depending on the situation, calls update_icon()
nullifyPipenet
Called by nullifyNode(), used to remove the pipeline the component is attached to Arguments:
- -reference: the pipeline the component is attached to
returnPipenetAirs
We explicitly qdel pipeline when this particular pipeline is projected to have no member and cause GC problems. We have to do this because components don't qdel pipelines while pipes must and will happily wreck and rebuild everything again every time they are qdeleted.
update_icon_nopipes
Called by update_icon(), used individually by each component to determine the icon state without the pipe in consideration
update_parents
Called in most atmos processes and gas handling situations, update the parents pipelines of the devices connected to the source component This way gases won't get stuck