C# Class kOS.VesselUtils

Show file Open project: Nivekk/KOS Class Usage Examples

Public Methods

Method Description
AngleDelta ( float a, float b ) : float
DeployParachutes ( Vessel vessel, bool state ) : void
GetBodyByName ( String name ) : CelestialBody
GetChuteStatus ( Vessel vessel ) : object
GetCommRange ( Vessel vessel ) : double
GetDistanceToKerbinSurface ( Vessel vessel ) : double
GetHeading ( Vessel vessel ) : float
GetListOfActivatedEngines ( Vessel vessel ) : List
GetMassDrag ( Vessel vessel ) : double
GetMaxThrust ( Vessel vessel ) : double
GetNorthVector ( Vessel vessel ) : UnityEngine.Vector3d
GetResource ( Vessel vessel, string resourceName ) : double
GetSolarPanelStatus ( Vessel vessel ) : object
GetTargetBearing ( Vessel vessel, Vessel target ) : float
GetTargetHeading ( Vessel vessel, Vessel target ) : float
GetVelocityHeading ( Vessel vessel ) : float
GetVesselByName ( String name, Vessel origin ) : Vessel
GetVesselLattitude ( Vessel vessel ) : float
GetVesselLongitude ( Vessel vessel ) : float
LandingLegsCtrl ( Vessel vessel, bool state ) : void
SetTarget ( ITargetable val ) : void
SolarPanelCtrl ( Vessel vessel, bool state ) : void
TryGetEncounter ( Vessel vessel ) : object
TryGetResource ( Vessel vessel, string resourceName, double &total ) : bool
TryGetVesselByName ( String name, Vessel origin ) : Vessel

Private Methods

Method Description
GetLandingLegStatus ( Vessel vessel ) : object

Method Details

AngleDelta() public static method

public static AngleDelta ( float a, float b ) : float
a float
b float
return float

DeployParachutes() public static method

public static DeployParachutes ( Vessel vessel, bool state ) : void
vessel Vessel
state bool
return void

GetBodyByName() public static method

public static GetBodyByName ( String name ) : CelestialBody
name String
return CelestialBody

GetChuteStatus() public static method

public static GetChuteStatus ( Vessel vessel ) : object
vessel Vessel
return object

GetCommRange() public static method

public static GetCommRange ( Vessel vessel ) : double
vessel Vessel
return double

GetDistanceToKerbinSurface() public static method

public static GetDistanceToKerbinSurface ( Vessel vessel ) : double
vessel Vessel
return double

GetHeading() public static method

public static GetHeading ( Vessel vessel ) : float
vessel Vessel
return float

GetListOfActivatedEngines() public static method

public static GetListOfActivatedEngines ( Vessel vessel ) : List
vessel Vessel
return List

GetMassDrag() public static method

public static GetMassDrag ( Vessel vessel ) : double
vessel Vessel
return double

GetMaxThrust() public static method

public static GetMaxThrust ( Vessel vessel ) : double
vessel Vessel
return double

GetNorthVector() public static method

public static GetNorthVector ( Vessel vessel ) : UnityEngine.Vector3d
vessel Vessel
return UnityEngine.Vector3d

GetResource() public static method

public static GetResource ( Vessel vessel, string resourceName ) : double
vessel Vessel
resourceName string
return double

GetSolarPanelStatus() public static method

public static GetSolarPanelStatus ( Vessel vessel ) : object
vessel Vessel
return object

GetTargetBearing() public static method

public static GetTargetBearing ( Vessel vessel, Vessel target ) : float
vessel Vessel
target Vessel
return float

GetTargetHeading() public static method

public static GetTargetHeading ( Vessel vessel, Vessel target ) : float
vessel Vessel
target Vessel
return float

GetVelocityHeading() public static method

public static GetVelocityHeading ( Vessel vessel ) : float
vessel Vessel
return float

GetVesselByName() public static method

public static GetVesselByName ( String name, Vessel origin ) : Vessel
name String
origin Vessel
return Vessel

GetVesselLattitude() public static method

public static GetVesselLattitude ( Vessel vessel ) : float
vessel Vessel
return float

GetVesselLongitude() public static method

public static GetVesselLongitude ( Vessel vessel ) : float
vessel Vessel
return float

LandingLegsCtrl() public static method

public static LandingLegsCtrl ( Vessel vessel, bool state ) : void
vessel Vessel
state bool
return void

SetTarget() public static method

public static SetTarget ( ITargetable val ) : void
val ITargetable
return void

SolarPanelCtrl() public static method

public static SolarPanelCtrl ( Vessel vessel, bool state ) : void
vessel Vessel
state bool
return void

TryGetEncounter() public static method

public static TryGetEncounter ( Vessel vessel ) : object
vessel Vessel
return object

TryGetResource() public static method

public static TryGetResource ( Vessel vessel, string resourceName, double &total ) : bool
vessel Vessel
resourceName string
total double
return bool

TryGetVesselByName() public static method

public static TryGetVesselByName ( String name, Vessel origin ) : Vessel
name String
origin Vessel
return Vessel