C# Class kOS.Utilities.VesselUtils

Afficher le fichier Open project: KSP-KOS/KOS

Méthodes publiques

Méthode Description
AngleDelta ( float a, float b ) : float
BayCtrl ( Vessel vessel, bool state ) : void
DeployParachutes ( Vessel vessel, bool state ) : void
DeployParachutesSafe ( Vessel vessel, bool state ) : void
DrillCtrl ( Vessel vessel, bool state ) : void
DrillDeployCtrl ( Vessel vessel, bool state ) : void
FuelCellCtrl ( Vessel vessel, bool state ) : void
GetAvailableThrust ( Vessel vessel, double atmPressure = -1.0 ) : double
GetBayStatus ( Vessel vessel ) : object
GetBodyByName ( string name ) : CelestialBody
GetChuteSafeStatus ( Vessel vessel ) : object
GetChuteStatus ( Vessel vessel ) : object
GetDrillDeployStatus ( Vessel vessel ) : object
GetDrillStatus ( Vessel vessel ) : object
GetDryMass ( this vessel ) : float
GetFacing ( CelestialBody body ) : kOS.Suffixed.Direction
GetFacing ( Vessel vessel ) : kOS.Suffixed.Direction
GetFuelCellStatus ( Vessel vessel ) : object
GetHeading ( Vessel vessel ) : float
GetISRUStatus ( Vessel vessel ) : object
GetIntakeStatus ( Vessel vessel ) : object
GetLadderStatus ( Vessel vessel ) : object
GetLandingLegStatus ( Vessel vessel ) : object
GetListOfActivatedEngines ( Vessel vessel ) : List
GetMaxThrust ( Vessel vessel, double atmPressure = -1.0 ) : double
GetNorthVector ( Vessel vessel ) : UnityEngine.Vector3d
GetRadiatorStatus ( Vessel vessel ) : object
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
GetVesselLatitude ( Vessel vessel ) : float
GetVesselLongitude ( Vessel vessel ) : float
GetWetMass ( this vessel ) : float
ISRUCtrl ( Vessel vessel, bool state ) : void
IntakeCtrl ( Vessel vessel, bool state ) : void
LadderCtrl ( Vessel vessel, bool state ) : void
LandingLegsCtrl ( Vessel vessel, bool state ) : void
PartList ( this vessel, string partType, SharedObjects sharedObj ) : kOS.Suffixed.ListValue
RadiatorCtrl ( Vessel vessel, bool state ) : void
SetTarget ( IKOSTargetable val, Vessel currentVessel ) : void
SetTarget ( ITargetable val, Vessel currentVessel ) : void
SolarPanelCtrl ( Vessel vessel, bool state ) : void
TryGetEncounter ( Vessel vessel, SharedObjects sharedObj ) : object
TryGetResource ( Vessel vessel, string resourceName, double &total ) : bool
UnsetTarget ( ) : void
makeActionParam ( bool state ) : KSPActionParam

Private Methods

Méthode Description
GetMassDrag ( Vessel vessel ) : double
TryGetVesselByName ( string name, Vessel origin ) : Vessel

Method Details

AngleDelta() public static méthode

public static AngleDelta ( float a, float b ) : float
a float
b float
Résultat float

BayCtrl() public static méthode

public static BayCtrl ( Vessel vessel, bool state ) : void
vessel Vessel
state bool
Résultat void

DeployParachutes() public static méthode

public static DeployParachutes ( Vessel vessel, bool state ) : void
vessel Vessel
state bool
Résultat void

DeployParachutesSafe() public static méthode

public static DeployParachutesSafe ( Vessel vessel, bool state ) : void
vessel Vessel
state bool
Résultat void

DrillCtrl() public static méthode

public static DrillCtrl ( Vessel vessel, bool state ) : void
vessel Vessel
state bool
Résultat void

DrillDeployCtrl() public static méthode

public static DrillDeployCtrl ( Vessel vessel, bool state ) : void
vessel Vessel
state bool
Résultat void

FuelCellCtrl() public static méthode

public static FuelCellCtrl ( Vessel vessel, bool state ) : void
vessel Vessel
state bool
Résultat void

GetAvailableThrust() public static méthode

public static GetAvailableThrust ( Vessel vessel, double atmPressure = -1.0 ) : double
vessel Vessel
atmPressure double
Résultat double

GetBayStatus() public static méthode

public static GetBayStatus ( Vessel vessel ) : object
vessel Vessel
Résultat object

GetBodyByName() public static méthode

public static GetBodyByName ( string name ) : CelestialBody
name string
Résultat CelestialBody

GetChuteSafeStatus() public static méthode

public static GetChuteSafeStatus ( Vessel vessel ) : object
vessel Vessel
Résultat object

GetChuteStatus() public static méthode

public static GetChuteStatus ( Vessel vessel ) : object
vessel Vessel
Résultat object

GetDrillDeployStatus() public static méthode

public static GetDrillDeployStatus ( Vessel vessel ) : object
vessel Vessel
Résultat object

GetDrillStatus() public static méthode

public static GetDrillStatus ( Vessel vessel ) : object
vessel Vessel
Résultat object

GetDryMass() public static méthode

public static GetDryMass ( this vessel ) : float
vessel this
Résultat float

GetFacing() public static méthode

public static GetFacing ( CelestialBody body ) : kOS.Suffixed.Direction
body CelestialBody
Résultat kOS.Suffixed.Direction

GetFacing() public static méthode

public static GetFacing ( Vessel vessel ) : kOS.Suffixed.Direction
vessel Vessel
Résultat kOS.Suffixed.Direction

GetFuelCellStatus() public static méthode

public static GetFuelCellStatus ( Vessel vessel ) : object
vessel Vessel
Résultat object

GetHeading() public static méthode

public static GetHeading ( Vessel vessel ) : float
vessel Vessel
Résultat float

GetISRUStatus() public static méthode

public static GetISRUStatus ( Vessel vessel ) : object
vessel Vessel
Résultat object

GetIntakeStatus() public static méthode

public static GetIntakeStatus ( Vessel vessel ) : object
vessel Vessel
Résultat object

GetLadderStatus() public static méthode

public static GetLadderStatus ( Vessel vessel ) : object
vessel Vessel
Résultat object

GetLandingLegStatus() public static méthode

public static GetLandingLegStatus ( Vessel vessel ) : object
vessel Vessel
Résultat object

GetListOfActivatedEngines() public static méthode

public static GetListOfActivatedEngines ( Vessel vessel ) : List
vessel Vessel
Résultat List

GetMaxThrust() public static méthode

public static GetMaxThrust ( Vessel vessel, double atmPressure = -1.0 ) : double
vessel Vessel
atmPressure double
Résultat double

GetNorthVector() public static méthode

public static GetNorthVector ( Vessel vessel ) : UnityEngine.Vector3d
vessel Vessel
Résultat UnityEngine.Vector3d

GetRadiatorStatus() public static méthode

public static GetRadiatorStatus ( Vessel vessel ) : object
vessel Vessel
Résultat object

GetSolarPanelStatus() public static méthode

public static GetSolarPanelStatus ( Vessel vessel ) : object
vessel Vessel
Résultat object

GetTargetBearing() public static méthode

public static GetTargetBearing ( Vessel vessel, Vessel target ) : float
vessel Vessel
target Vessel
Résultat float

GetTargetHeading() public static méthode

public static GetTargetHeading ( Vessel vessel, Vessel target ) : float
vessel Vessel
target Vessel
Résultat float

GetVelocityHeading() public static méthode

public static GetVelocityHeading ( Vessel vessel ) : float
vessel Vessel
Résultat float

GetVesselByName() public static méthode

public static GetVesselByName ( string name, Vessel origin ) : Vessel
name string
origin Vessel
Résultat Vessel

GetVesselLatitude() public static méthode

public static GetVesselLatitude ( Vessel vessel ) : float
vessel Vessel
Résultat float

GetVesselLongitude() public static méthode

public static GetVesselLongitude ( Vessel vessel ) : float
vessel Vessel
Résultat float

GetWetMass() public static méthode

public static GetWetMass ( this vessel ) : float
vessel this
Résultat float

ISRUCtrl() public static méthode

public static ISRUCtrl ( Vessel vessel, bool state ) : void
vessel Vessel
state bool
Résultat void

IntakeCtrl() public static méthode

public static IntakeCtrl ( Vessel vessel, bool state ) : void
vessel Vessel
state bool
Résultat void

LadderCtrl() public static méthode

public static LadderCtrl ( Vessel vessel, bool state ) : void
vessel Vessel
state bool
Résultat void

LandingLegsCtrl() public static méthode

public static LandingLegsCtrl ( Vessel vessel, bool state ) : void
vessel Vessel
state bool
Résultat void

PartList() public static méthode

public static PartList ( this vessel, string partType, SharedObjects sharedObj ) : kOS.Suffixed.ListValue
vessel this
partType string
sharedObj SharedObjects
Résultat kOS.Suffixed.ListValue

RadiatorCtrl() public static méthode

public static RadiatorCtrl ( Vessel vessel, bool state ) : void
vessel Vessel
state bool
Résultat void

SetTarget() public static méthode

public static SetTarget ( IKOSTargetable val, Vessel currentVessel ) : void
val IKOSTargetable
currentVessel Vessel
Résultat void

SetTarget() public static méthode

public static SetTarget ( ITargetable val, Vessel currentVessel ) : void
val ITargetable
currentVessel Vessel
Résultat void

SolarPanelCtrl() public static méthode

public static SolarPanelCtrl ( Vessel vessel, bool state ) : void
vessel Vessel
state bool
Résultat void

TryGetEncounter() public static méthode

public static TryGetEncounter ( Vessel vessel, SharedObjects sharedObj ) : object
vessel Vessel
sharedObj SharedObjects
Résultat object

TryGetResource() public static méthode

public static TryGetResource ( Vessel vessel, string resourceName, double &total ) : bool
vessel Vessel
resourceName string
total double
Résultat bool

UnsetTarget() public static méthode

public static UnsetTarget ( ) : void
Résultat void

makeActionParam() public static méthode

public static makeActionParam ( bool state ) : KSPActionParam
state bool
Résultat KSPActionParam