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

ductnet

We handle the unity part of plumbing. We track who is connected to who.

Vars

capacityMax reagents we can carry per tick
demandersStuff that can take chems
ductsAll the ducts that make this network
suppliersStuff that can supply chems

Procs

add_ductAdd a duct to our network
add_plumberadd a plumbing object to either demanders or suppliers
assimilatewe combine ductnets. this occurs when someone connects to separate sets of fluid ducts
destroy_networkdestroy the network and tell all our ducts and plumbers we are gone
remove_ductRemove a duct from our network and commit suicide, because this is probably easier than to check who that duct was connected to and what part of us was lost
remove_plumberremove a plumber. we dont delete ourselves because ductnets dont persist through plumbing objects

Var Details

capacity

Max reagents we can carry per tick

demanders

Stuff that can take chems

ducts

All the ducts that make this network

suppliers

Stuff that can supply chems

Proc Details

add_duct

Add a duct to our network

add_plumber

add a plumbing object to either demanders or suppliers

assimilate

we combine ductnets. this occurs when someone connects to separate sets of fluid ducts

destroy_network

destroy the network and tell all our ducts and plumbers we are gone

remove_duct

Remove a duct from our network and commit suicide, because this is probably easier than to check who that duct was connected to and what part of us was lost

remove_plumber

remove a plumber. we dont delete ourselves because ductnets dont persist through plumbing objects