Class CelestialBodyProvider
  
  
  
    - Namespace
 - KSP.Game
 
  - Assembly
 - Assembly-CSharp.dll
 
   
  
  
  
    public class CelestialBodyProvider
   
  
    - Inheritance
 
    - 
      
      
CelestialBodyProvider
     
  
  
    - Inherited Members
 
    - 
    
    
    
    
    
    
    
  
 
  
    - Extension Methods
 
    - 
  
  
  
  
  
  
 
  Constructors
  
  
  CelestialBodyProvider()
  
  
  
  
  
    public CelestialBodyProvider()
   
  Fields
  
  flowActionResolved
  
  
  
  
  
    public bool flowActionResolved
   
  Field Value
  
    - bool
 
    
  
  Properties
  
  
  InterstellarNeighborhood
  
  
  
  
  
    public InterstellarNeighborhood InterstellarNeighborhood { get; set; }
   
  Property Value
  
    - InterstellarNeighborhood
 
    
  
  Methods
  
  
  Get(string)
  
  
  
  
  
    public CelestialBodyCore Get(string name)
   
  Parameters
  
    name string 
    
  
  Returns
  
    - CelestialBodyCore
 
    
  
  
  
  GetAllBodiesData()
  
  
  
  
  
    public Dictionary<string, CelestialBodyCore> GetAllBodiesData()
   
  Returns
  
    - Dictionary<string, CelestialBodyCore>
 
    
  
  
  
  GetAllLensFlareData()
  
  
  
  
  
    public Dictionary<string, CelestialBodyLensFlare> GetAllLensFlareData()
   
  Returns
  
    - Dictionary<string, CelestialBodyLensFlare>
 
    
  
  
  
  GetAllLightingData()
  
  
  
  
  
    public Dictionary<string, CelestialBodyLightingData> GetAllLightingData()
   
  Returns
  
    - Dictionary<string, CelestialBodyLightingData>
 
    
  
  
  
  GetAllPostProcessData()
  
  
  
  
  
    public Dictionary<string, PostProcessData> GetAllPostProcessData()
   
  Returns
  
    - Dictionary<string, PostProcessData>
 
    
  
  
  
  GetApoapsis(string)
  
  
  
  
  
    public double GetApoapsis(string name)
   
  Parameters
  
    name string 
    
  
  Returns
  
    - double
 
    
  
  
  
  GetAtmosphereStatus(string)
  
  
  
  
  
    public bool GetAtmosphereStatus(string name)
   
  Parameters
  
    name string 
    
  
  Returns
  
    - bool
 
    
  
  
  
  GetLensFlareData(string)
  
  
  
  
  
    public CelestialBodyLensFlare GetLensFlareData(string name)
   
  Parameters
  
    name string 
    
  
  Returns
  
    - CelestialBodyLensFlare
 
    
  
  
  
  GetLightingData(string)
  
  
  
  
  
    public CelestialBodyLightingData GetLightingData(string name)
   
  Parameters
  
    name string 
    
  
  Returns
  
    - CelestialBodyLightingData
 
    
  
  
  
  GetNeighboringBodies(string, bool)
  
  
  
  
  
    public List<string> GetNeighboringBodies(string name, bool includeStars = true)
   
  Parameters
  
    name string 
    
    includeStars bool 
    
  
  Returns
  
    - List<string>
 
    
  
  
  
  GetNeighboringBodiesByVisibility(Position, List<string>)
  
  
  
  
  
    public Dictionary<string, double> GetNeighboringBodiesByVisibility(Position viewerPos, List<string> bodies)
   
  Parameters
  
    viewerPos Position 
    
    bodies List<string> 
    
  
  Returns
  
    - Dictionary<string, double>
 
    
  
  
  
  GetObservedBody(Position)
  
  
  
  
  
    public CelestialBodyBehavior GetObservedBody(Position pos)
   
  Parameters
  
    pos Position 
    
  
  Returns
  
    - CelestialBodyBehavior
 
    
  
  
  
  GetObservedBodyName(Position)
  
  
  
  
  
    public string GetObservedBodyName(Position pos)
   
  Parameters
  
    pos Position 
    
  
  Returns
  
    - string
 
    
  
  
  
  GetObservedStar(string)
  
  
  
  
  
    public string GetObservedStar(string name)
   
  Parameters
  
    name string 
    
  
  Returns
  
    - string
 
    
  
  
  
  GetOrbitingBodies(string)
  
  
  
  
  
    public List<string> GetOrbitingBodies(string name)
   
  Parameters
  
    name string 
    
  
  Returns
  
    - List<string>
 
    
  
  
  
  GetPeriapsis(string)
  
  
  
  
  
    public double GetPeriapsis(string name)
   
  Parameters
  
    name string 
    
  
  Returns
  
    - double
 
    
  
  
  
  GetPosition(string)
  
  
  
  
  
    public Position GetPosition(string cbNameKey)
   
  Parameters
  
    cbNameKey string 
    
  
  Returns
  
    - Position
 
    
  
  
  
  GetPostProcessData(string)
  
  
  
  
  
    public PostProcessData GetPostProcessData(string name)
   
  Parameters
  
    name string 
    
  
  Returns
  
    - PostProcessData
 
    
  
  
  
  GetRadius(string)
  
  
  
  
  
    public double GetRadius(string name)
   
  Parameters
  
    name string 
    
  
  Returns
  
    - double
 
    
  
  
  
  GetReferenceBody(string)
  
  
  
  
  
    public string GetReferenceBody(string name)
   
  Parameters
  
    name string 
    
  
  Returns
  
    - string
 
    
  
  
  
  GetRingGroupData(string)
  
  
  
  
  
    public CelestialBodyRingGroup GetRingGroupData(string name)
   
  Parameters
  
    name string 
    
  
  Returns
  
    - CelestialBodyRingGroup
 
    
  
  
  
  GetStarStatus(string)
  
  
  
  
  
    public bool GetStarStatus(string name)
   
  Parameters
  
    name string 
    
  
  Returns
  
    - bool
 
    
  
  
  
  GetTransformModel(string)
  
  
  
  
  
    public ITransformModel GetTransformModel(string cbNameKey)
   
  Parameters
  
    cbNameKey string 
    
  
  Returns
  
    - ITransformModel
 
    
  
  
  
  GetVisibility(string, Position, List<string>)
  
  
  
  
  
    public double GetVisibility(string targetName, Position viewerPos, List<string> bodies)
   
  Parameters
  
    targetName string 
    
    viewerPos Position 
    
    bodies List<string> 
    
  
  Returns
  
    - double
 
    
  
  
  
  Initialize()
  
  
  
  
  
  
  
  InitializePrevis(PrevisGameInstance)
  
  
  
  
  
    public void InitializePrevis(PrevisGameInstance previs)
   
  Parameters
  
    previs PrevisGameInstance 
    
  
  
  
  IsBehaviorValid(string)
  
  
  
  
  
    public bool IsBehaviorValid(string name)
   
  Parameters
  
    name string 
    
  
  Returns
  
    - bool
 
    
  
  
  
  RegisterBodyFromData(CelestialBodyCore)
  
  
  
  
  
    public void RegisterBodyFromData(CelestialBodyCore jsonData)
   
  Parameters
  
    jsonData CelestialBodyCore 
    
  
  
  
  Shutdown()
  
  
  
  
  
  
  
  TryGetCelestialBodyBehavior(string, out CelestialBodyBehavior)
  
  
  
  
  
    public bool TryGetCelestialBodyBehavior(string name, out CelestialBodyBehavior behavior)
   
  Parameters
  
    name string 
    
    behavior CelestialBodyBehavior 
    
  
  Returns
  
    - bool
 
    
  
  
  
  TryGetCelestialBodyComponent(string, out CelestialBodyComponent)
  
  
  
  
  
    public bool TryGetCelestialBodyComponent(string name, out CelestialBodyComponent component)
   
  Parameters
  
    name string 
    
    component CelestialBodyComponent 
    
  
  Returns
  
    - bool
 
    
  
  
  
  TryGetCelestialBodyLocalSpaceObject(string, out GameObject)
  
  
  
  
  
    public bool TryGetCelestialBodyLocalSpaceObject(string name, out GameObject gameObject)
   
  Parameters
  
    name string 
    
    gameObject GameObject 
    
  
  Returns
  
    - bool
 
    
  
  
  
  TryGetCelestialBodyScaledSpaceObject(string, out GameObject)
  
  
  
  
  
    public bool TryGetCelestialBodyScaledSpaceObject(string name, out GameObject gameObject)
   
  Parameters
  
    name string 
    
    gameObject GameObject 
    
  
  Returns
  
    - bool