turbine
Vars | |
active | Checks if the machine is processing or not |
---|---|
can_connect | The parts can be registered on the main one only when their panel is closed |
installed_part | Reference to our turbine part |
machine_gasmix | The gas mixture this turbine part is storing |
overlay_flags | Flags for our overlays |
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 |
get_efficiency | Gets the efficiency of the installed part, returns 0 if no part is installed |
transfer_gases | Handles all the calculations needed for the gases, work done, temperature increase/decrease |
Var Details
active
Checks if the machine is processing or not
can_connect
The parts can be registered on the main one only when their panel is closed
installed_part
Reference to our turbine part
machine_gasmix
The gas mixture this turbine part is storing
overlay_flags
Flags for our overlays
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
get_efficiency
Gets the efficiency of the installed part, returns 0 if no part is installed
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