C# Class RemoteTech.API.API

Afficher le fichier Open project: RemoteTechnologiesGroup/RemoteTech

Méthodes publiques

Méthode Description
AddGroundStation ( string name, double latitude, double longitude, double height, int body ) : System.Guid
AddSanctionedPilot ( System.Guid id, Action autopilot ) : void
AntennaHasConnection ( Part part ) : bool
ChangeGroundStationRange ( System.Guid stationId, float newRange ) : bool

Change the Omni range of a ground station. Note that this change is temporary. For example it is overridden to the value written in the settings file if the tracking station is upgraded.

GetActiveVesselGuid ( ) : System.Guid
GetAntennaTarget ( Part part ) : System.Guid
GetCelestialBodyGuid ( CelestialBody celestialBody ) : System.Guid
GetGroundStationGuid ( String name ) : System.Guid
GetGroundStations ( ) : IEnumerable
GetNoTargetGuid ( ) : System.Guid
GetShortestSignalDelay ( System.Guid id ) : double
GetSignalDelayToKSC ( System.Guid id ) : double
GetSignalDelayToSatellite ( System.Guid a, System.Guid b ) : double
HasAnyConnection ( System.Guid id ) : bool
HasConnectionToKSC ( System.Guid id ) : bool
HasFlightComputer ( System.Guid id ) : bool
HasLocalControl ( System.Guid id ) : bool
InvokeOriginalEvent ( BaseEvent e ) : void
IsRemoteTechEnabled ( ) : bool
QueueCommandToFlightComputer ( ConfigNode externalData ) : bool
RemoveGroundStation ( System.Guid stationid ) : bool
RemoveSanctionedPilot ( System.Guid id, Action autopilot ) : void
SetAntennaTarget ( Part part, System.Guid id ) : void

Method Details

AddGroundStation() public static méthode

public static AddGroundStation ( string name, double latitude, double longitude, double height, int body ) : System.Guid
name string
latitude double
longitude double
height double
body int
Résultat System.Guid

AddSanctionedPilot() public static méthode

public static AddSanctionedPilot ( System.Guid id, Action autopilot ) : void
id System.Guid
autopilot Action
Résultat void

AntennaHasConnection() public static méthode

public static AntennaHasConnection ( Part part ) : bool
part Part
Résultat bool

ChangeGroundStationRange() public static méthode

Change the Omni range of a ground station. Note that this change is temporary. For example it is overridden to the value written in the settings file if the tracking station is upgraded.
public static ChangeGroundStationRange ( System.Guid stationId, float newRange ) : bool
stationId System.Guid The station ID for which to change the antenna range.
newRange float The new range in meters.
Résultat bool

GetActiveVesselGuid() public static méthode

public static GetActiveVesselGuid ( ) : System.Guid
Résultat System.Guid

GetAntennaTarget() public static méthode

public static GetAntennaTarget ( Part part ) : System.Guid
part Part
Résultat System.Guid

GetCelestialBodyGuid() public static méthode

public static GetCelestialBodyGuid ( CelestialBody celestialBody ) : System.Guid
celestialBody CelestialBody
Résultat System.Guid

GetGroundStationGuid() public static méthode

public static GetGroundStationGuid ( String name ) : System.Guid
name String
Résultat System.Guid

GetGroundStations() public static méthode

public static GetGroundStations ( ) : IEnumerable
Résultat IEnumerable

GetNoTargetGuid() public static méthode

public static GetNoTargetGuid ( ) : System.Guid
Résultat System.Guid

GetShortestSignalDelay() public static méthode

public static GetShortestSignalDelay ( System.Guid id ) : double
id System.Guid
Résultat double

GetSignalDelayToKSC() public static méthode

public static GetSignalDelayToKSC ( System.Guid id ) : double
id System.Guid
Résultat double

GetSignalDelayToSatellite() public static méthode

public static GetSignalDelayToSatellite ( System.Guid a, System.Guid b ) : double
a System.Guid
b System.Guid
Résultat double

HasAnyConnection() public static méthode

public static HasAnyConnection ( System.Guid id ) : bool
id System.Guid
Résultat bool

HasConnectionToKSC() public static méthode

public static HasConnectionToKSC ( System.Guid id ) : bool
id System.Guid
Résultat bool

HasFlightComputer() public static méthode

public static HasFlightComputer ( System.Guid id ) : bool
id System.Guid
Résultat bool

HasLocalControl() public static méthode

public static HasLocalControl ( System.Guid id ) : bool
id System.Guid
Résultat bool

InvokeOriginalEvent() public static méthode

public static InvokeOriginalEvent ( BaseEvent e ) : void
e BaseEvent
Résultat void

IsRemoteTechEnabled() public static méthode

public static IsRemoteTechEnabled ( ) : bool
Résultat bool

QueueCommandToFlightComputer() public static méthode

public static QueueCommandToFlightComputer ( ConfigNode externalData ) : bool
externalData System.ConfigNode
Résultat bool

RemoveGroundStation() public static méthode

public static RemoveGroundStation ( System.Guid stationid ) : bool
stationid System.Guid
Résultat bool

RemoveSanctionedPilot() public static méthode

public static RemoveSanctionedPilot ( System.Guid id, Action autopilot ) : void
id System.Guid
autopilot Action
Résultat void

SetAntennaTarget() public static méthode

public static SetAntennaTarget ( Part part, System.Guid id ) : void
part Part
id System.Guid
Résultat void