Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | Protected Attributes | Properties | List of all members
SpaceCenterBuilding Class Reference
Inheritance diagram for SpaceCenterBuilding:
KSP.UI.ITooltipController AdministrationFacility AstronautComplexFacility FlagPoleFacility LaunchSiteFacility MissionControlBuilding RnDBuilding SpacePlaneHangarBuilding TrackingStationBuilding VehicleAssemblyBuilding

Public Member Functions

void ColliderHover (bool hover)
 
void DemolishFacility ()
 
void Despawntooltip ()
 
void EnterBuilding ()
 
List< ProtoVesselFindVesselsAtFacility (FlightState st, IEnumerable< DestructibleBuilding > structuresToCheck)
 Returns a list of any protovessels found to be landed on structures belonging to this building More...
 
List< ProtoVesselFindVesselsAtGrounds (FlightState st, Transform facilityRoot)
 
float GetCollapseReputationHit ()
 
float GetRepairsCost ()
 
float GetStructureDamage ()
 
void HighLightBuilding (bool mouseOverIcon)
 
bool IsFacilityOperational (float damage)
 
virtual bool IsOpen ()
 
void OnLeftClick ()
 
void OnRightClick ()
 
bool OnTooltipAboutToDespawn ()
 
bool OnTooltipAboutToSpawn ()
 
void OnTooltipDespawned (Tooltip instance)
 
void OnTooltipSpawned (Tooltip instance)
 
bool OnTooltipUpdate (Tooltip instance)
 
void RepairFacility (bool deduceFunds)
 
void SetupColliders ()
 
void SetupRenderers ()
 
void SpawnTooltip ()
 

Static Public Member Functions

static string GetStructureDamageLevel (float lvl)
 

Public Attributes

GameObject additionalColliderPrefab
 
string buildingDescription
 
string buildingInfoName
 
MeshRenderer[] buildingRenderers
 
string[] colliderIgnoreMaterialNames = new string[] { "grass" }
 
DestructibleBuilding[] destructibles
 
string facilityName
 
EventData< bool > OnClick = new EventData<bool>("OnClick")
 
EventData< bool > OnInViewChange = new EventData<bool>("OnInViewChange")
 
Tooltip_TitleAndText tooltipPrefab
 

Static Public Attributes

static Color highlightColor = new Color(0.7f, 0.7f, 0.7f)
 
static float highlightRimFalloff = 3f
 
static bool useColliderIgnoreMaterials = false
 

Protected Member Functions

virtual void OnClicked ()
 
virtual AnchoredDialog OnContextMenuSpawn ()
 
virtual void OnOnDestroy ()
 
virtual void OnStart ()
 

Protected Attributes

PopupDialog facilityClosedDialog
 
PopupDialog facilityLockedDialog
 

Properties

Transform BuildingTransform [get]
 
UpgradeableFacility Facility [get]
 
bool InView [get]
 
bool Operational [get]
 
float StructuralDamage [get]
 
Tooltip TooltipPrefabInstance [get, set]
 
RectTransform TooltipPrefabInstanceTransform [get, set]
 
Tooltip TooltipPrefabType [get, set]
 
- Properties inherited from KSP.UI.ITooltipController
string name [get, set]
 
Tooltip TooltipPrefabInstance [get, set]
 
RectTransform TooltipPrefabInstanceTransform [get, set]
 
Tooltip TooltipPrefabType [get, set]
 

Member Function Documentation

void SpaceCenterBuilding.ColliderHover ( bool  hover)
inline
void SpaceCenterBuilding.DemolishFacility ( )
inline
void SpaceCenterBuilding.Despawntooltip ( )
inline
void SpaceCenterBuilding.EnterBuilding ( )
inline
List<ProtoVessel> SpaceCenterBuilding.FindVesselsAtFacility ( FlightState  st,
IEnumerable< DestructibleBuilding structuresToCheck 
)
inline

Returns a list of any protovessels found to be landed on structures belonging to this building

Parameters
st
Returns
List<ProtoVessel> SpaceCenterBuilding.FindVesselsAtGrounds ( FlightState  st,
Transform  facilityRoot 
)
inline
float SpaceCenterBuilding.GetCollapseReputationHit ( )
inline
float SpaceCenterBuilding.GetRepairsCost ( )
inline
float SpaceCenterBuilding.GetStructureDamage ( )
inline
static string SpaceCenterBuilding.GetStructureDamageLevel ( float  lvl)
inlinestatic
void SpaceCenterBuilding.HighLightBuilding ( bool  mouseOverIcon)
inline
bool SpaceCenterBuilding.IsFacilityOperational ( float  damage)
inline
virtual bool SpaceCenterBuilding.IsOpen ( )
inlinevirtual
virtual void SpaceCenterBuilding.OnClicked ( )
inlineprotectedvirtual
virtual AnchoredDialog SpaceCenterBuilding.OnContextMenuSpawn ( )
inlineprotectedvirtual
void SpaceCenterBuilding.OnLeftClick ( )
inline
virtual void SpaceCenterBuilding.OnOnDestroy ( )
inlineprotectedvirtual
void SpaceCenterBuilding.OnRightClick ( )
inline
virtual void SpaceCenterBuilding.OnStart ( )
inlineprotectedvirtual

Reimplemented in LaunchSiteFacility.

bool SpaceCenterBuilding.OnTooltipAboutToDespawn ( )
inline
bool SpaceCenterBuilding.OnTooltipAboutToSpawn ( )
inline
void SpaceCenterBuilding.OnTooltipDespawned ( Tooltip  instance)
inline
void SpaceCenterBuilding.OnTooltipSpawned ( Tooltip  instance)
inline
bool SpaceCenterBuilding.OnTooltipUpdate ( Tooltip  instance)
inline
void SpaceCenterBuilding.RepairFacility ( bool  deduceFunds)
inline
void SpaceCenterBuilding.SetupColliders ( )
inline
void SpaceCenterBuilding.SetupRenderers ( )
inline
void SpaceCenterBuilding.SpawnTooltip ( )
inline

Member Data Documentation

GameObject SpaceCenterBuilding.additionalColliderPrefab
string SpaceCenterBuilding.buildingDescription
string SpaceCenterBuilding.buildingInfoName
MeshRenderer [] SpaceCenterBuilding.buildingRenderers
string [] SpaceCenterBuilding.colliderIgnoreMaterialNames = new string[] { "grass" }
DestructibleBuilding [] SpaceCenterBuilding.destructibles
PopupDialog SpaceCenterBuilding.facilityClosedDialog
protected
PopupDialog SpaceCenterBuilding.facilityLockedDialog
protected
string SpaceCenterBuilding.facilityName
Color SpaceCenterBuilding.highlightColor = new Color(0.7f, 0.7f, 0.7f)
static
float SpaceCenterBuilding.highlightRimFalloff = 3f
static
EventData<bool> SpaceCenterBuilding.OnClick = new EventData<bool>("OnClick")
EventData<bool> SpaceCenterBuilding.OnInViewChange = new EventData<bool>("OnInViewChange")
Tooltip_TitleAndText SpaceCenterBuilding.tooltipPrefab
bool SpaceCenterBuilding.useColliderIgnoreMaterials = false
static

Property Documentation

Transform SpaceCenterBuilding.BuildingTransform
get
UpgradeableFacility SpaceCenterBuilding.Facility
get
bool SpaceCenterBuilding.InView
get
bool SpaceCenterBuilding.Operational
get
float SpaceCenterBuilding.StructuralDamage
get
Tooltip SpaceCenterBuilding.TooltipPrefabInstance
getset
RectTransform SpaceCenterBuilding.TooltipPrefabInstanceTransform
getset
Tooltip SpaceCenterBuilding.TooltipPrefabType
getset

The documentation for this class was generated from the following file: