ductnet
![code/datums/ductnet.dm 2](git.png)
We handle the unity part of plumbing. We track who is connected to who.
Vars | |
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 |
Procs | |
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 |
Var Details
capacity
![code/datums/ductnet.dm 13](git.png)
Max reagents we can carry per tick
demanders
![code/datums/ductnet.dm 6](git.png)
Stuff that can take chems
ducts
![code/datums/ductnet.dm 8](git.png)
All the ducts that make this network
suppliers
![code/datums/ductnet.dm 4](git.png)
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