std::staging
Collection of helper functions to control staging of a vessel
Functions
has_engine_in_stage
pub sync fn has_engine_in_stage ( vessel : ksp::vessel::Vessel,
stage : int ) -> bool
Parameters
Name |
Type |
Optional |
Description |
---|---|---|---|
vessel |
ksp::vessel::Vessel |
||
stage |
int |
has_flameout
pub sync fn has_flameout ( vessel : ksp::vessel::Vessel ) -> bool
Parameters
Name |
Type |
Optional |
Description |
---|---|---|---|
vessel |
ksp::vessel::Vessel |
has_ignited
pub sync fn has_ignited ( vessel : ksp::vessel::Vessel ) -> bool
Parameters
Name |
Type |
Optional |
Description |
---|---|---|---|
vessel |
ksp::vessel::Vessel |
has_still_running
pub sync fn has_still_running ( vessel : ksp::vessel::Vessel ) -> bool
Parameters
Name |
Type |
Optional |
Description |
---|---|---|---|
vessel |
ksp::vessel::Vessel |
trigger_staging
pub fn trigger_staging ( vessel : ksp::vessel::Vessel ) -> bool
Helper function to automatically trigger staging during a burn.
This function is just checking if one of the ignited engines has has a flameout, which in most cases means that the current stage has burned out.
Will return true
if stating has been triggered.
Parameters
Name |
Type |
Optional |
Description |
---|---|---|---|
vessel |
ksp::vessel::Vessel |