turbine
Vars | |
efficiency | The cached efficiency of this turbines installed part |
---|---|
installed_part | Reference to our turbine part |
machine_gasmix | The gas mixture this turbine part is storing |
part_path | Path of the turbine part we can install |
Procs | |
activate_parts | Allow easy enabling of each machine for connection to the main controller |
deactivate_parts | Allow easy disabling of each machine from the main controller |
is_active | Is this machine currently running |
set_overlays | Adds overlays to this turbines appearance Arguments |
transfer_gases | Handles all the calculations needed for the gases, work done, temperature increase/decrease |
Var Details
efficiency
The cached efficiency of this turbines installed part
installed_part
Reference to our turbine part
machine_gasmix
The gas mixture this turbine part is storing
part_path
Path of the turbine part we can install
Proc Details
activate_parts
Allow easy enabling of each machine for connection to the main controller
Arguments
- mob/user - the player who activated the parts
- check_only - if TRUE it will not activate the machine but will only check if it can be activated
deactivate_parts
Allow easy disabling of each machine from the main controller
Arguments
- mob/user - the player who deactivated the parts
is_active
Is this machine currently running
set_overlays
Adds overlays to this turbines appearance Arguments
- list/overlays - the list of overlays to add to
transfer_gases
Handles all the calculations needed for the gases, work done, temperature increase/decrease
Arguments
- datum/gas_mixture/input_mix - the gas from the environment or from another part of the turbine
- datum/gas_mixture/output_mix - the gas that got pumped into this part from the input mix. ideally should be same as input mix but varying texmperatur & pressures can cause varying results
- work_amount_to_remove - the amount of work to subtract from the actual work done to pump in the input mixture. For e.g. if gas was transfered from the inlet compressor to the rotor we want to subtract the work done by the inlet from the rotor to get the true work done
- intake_size - the percentage of gas to be fed into an turbine part, controlled by turbine computer for inlet compressor only