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

pipeline

Vars

airThe gases contained within this pipeline
buildingIs this pipeline being reconstructed?
gas_visualsA named list of icon_file:overlay_object that gets automatically colored when the gasmix_color updates
gasmix_colorThe weighted color blend of the gas mixture in this pipeline
other_airsThe gas_mixtures of objects directly connected to this pipeline
require_custom_reconcilationList of other_atmos_machines that have custom_reconcilation set We're essentially caching this to avoid needing to filter over it when processing our machines
updateShould we equalize air amoung all our members?

Procs

CalculateGasmixColorAfter updating, this proc handles looking at the new gas mixture and blends the colors together according to percentage of the gas mix.
GetGasVisualUsed to create and/or get the gas visual overlay created using the given icon file. The color is automatically kept up to date and expected to be used as a vis_contents object.
UpdateGasVisualsCalled when the gasmix color has changed and the gas visuals need to be updated.
add_machinery_memberFor a machine to properly "connect" to a pipeline and share gases, the pipeline needs to acknowledge a gas mixture as its member. This is currently handled by the other_airs list in the pipeline datum.
build_pipelinePreps a pipeline for rebuilding, insterts it into the rebuild queue
build_pipeline_blockingHas the same effect as build_pipeline(), but this doesn't queue its work, so overrun abounds. It's useful for the pregame
reconcile_airCalled when the pipenet needs to update and mix together all the air mixes

Var Details

air

The gases contained within this pipeline

building

Is this pipeline being reconstructed?

gas_visuals

A named list of icon_file:overlay_object that gets automatically colored when the gasmix_color updates

gasmix_color

The weighted color blend of the gas mixture in this pipeline

other_airs

The gas_mixtures of objects directly connected to this pipeline

require_custom_reconcilation

List of other_atmos_machines that have custom_reconcilation set We're essentially caching this to avoid needing to filter over it when processing our machines

update

Should we equalize air amoung all our members?

Proc Details

CalculateGasmixColor

After updating, this proc handles looking at the new gas mixture and blends the colors together according to percentage of the gas mix.

GetGasVisual

Used to create and/or get the gas visual overlay created using the given icon file. The color is automatically kept up to date and expected to be used as a vis_contents object.

UpdateGasVisuals

Called when the gasmix color has changed and the gas visuals need to be updated.

add_machinery_member

For a machine to properly "connect" to a pipeline and share gases, the pipeline needs to acknowledge a gas mixture as its member. This is currently handled by the other_airs list in the pipeline datum.

Other_airs itself is populated by gas mixtures through the parents list that each machineries have.
This parents list is populated when a machinery calls update_parents and is then added into the queue by the controller.

build_pipeline

Preps a pipeline for rebuilding, insterts it into the rebuild queue

build_pipeline_blocking

Has the same effect as build_pipeline(), but this doesn't queue its work, so overrun abounds. It's useful for the pregame

reconcile_air

Called when the pipenet needs to update and mix together all the air mixes