![]() |
Kerbal Space Program
1.12.4
|
This class is used to manage the CoM, CoL, CoT vessel marker/overlays in the Flight scene. More...
Public Member Functions | |
| void | AddColMarker (Vessel vessel) |
| Will create a CoL marker for vessel. Checks if one exists already and that the vessel is a ValidVessel. More... | |
| void | AddComMarker (Vessel vessel) |
| Will create a CoM marker for vessel. Checks if one exists already and that the vessel is a ValidVessel. More... | |
| void | AddCotMarker (Vessel vessel) |
| Will create a CoT marker for vessel. Checks if one exists already and that the vessel is a ValidVessel. More... | |
| void | SetCamera (bool state) |
| Set the CoM CoT CoL camera state active or inactive (true/false). More... | |
| void | TerminateColMarkers () |
| Terminates all CoL Markers in the scene and removes from the dictionary list. More... | |
| void | TerminateComMarkers () |
| Terminates all CoM Markers in the scene and removes from the dictionary list. More... | |
| void | TerminateCotMarkers () |
| Terminates all CoT Markers in the scene and removes from the dictionary list. More... | |
| void | ToggleCoL () |
| Toggle CoL markers for all loaded vessels On or Off. (Toggles from current state). More... | |
| void | ToggleCoM () |
| Toggle CoM markers for all loaded vessels On or Off. (Toggles from current state). More... | |
| void | ToggleCoT () |
| Toggle CoT markers for all loaded vessels On or Off. (Toggles from current state). More... | |
| delegate bool | ValidVesselOverride (Vessel vessel, bool checkEngine, bool checkLift) |
| Delegate that can be used to override the ValidVessel Method in this singleton class. More... | |
| bool | ValidVesselType (Vessel vessel, bool checkEngine, bool checkLift) |
| Checks if the vessel is a valid type for CoM, CoL, CoT markers. Can be overridden by assigned validVesselOverride delegate. More... | |
Public Attributes | |
| EditorMarker_CoL | CoLmarker |
| CoL Marker Prefab. More... | |
| DictionaryValueList< Vessel, EditorMarker_CoL > | ColMarkers |
| Dictionary list of CoL Markers. More... | |
| bool | ColMarkersActive |
| True if CoL markers are active in the scene. This toggle is only Set true if the ToggleCoL method is called. More... | |
| EditorMarker_CoM | CoMmarker |
| CoM Marker Prefab. More... | |
| DictionaryValueList< Vessel, EditorMarker_CoM > | ComMarkers |
| Dictionary list of CoM Markers. More... | |
| bool | ComMarkersActive |
| True if CoM markers are active in the scene. This toggle is only Set true if the ToggleCoM method is called. More... | |
| EditorMarker_CoT | CoTmarker |
| CoL Marker Prefab. More... | |
| DictionaryValueList< Vessel, EditorMarker_CoT > | CotMarkers |
| Dictionary list of CoT Markers. More... | |
| bool | CotMarkersActive |
| True if CoT markers are active in the scene. This toggle is only Set true if the ToggleCoT method is called. More... | |
| Camera | overlayCamera |
| Camera used to draw the CoL, CoM, CoT markers in editor scene. More... | |
| ValidVesselOverride | validVesselOverride |
| Set this to the VesselOverride method you want used to override the ValidVessel check in this singleton class. More... | |
Static Public Attributes | |
| static FlightVesselOverlays | fetch |
| Singleton instance of this Class in the Flight scene. More... | |
Protected Member Functions | |
| void | Awake () |
This class is used to manage the CoM, CoL, CoT vessel marker/overlays in the Flight scene.
|
inline |
Will create a CoL marker for vessel. Checks if one exists already and that the vessel is a ValidVessel.
| vessel |
|
inline |
Will create a CoM marker for vessel. Checks if one exists already and that the vessel is a ValidVessel.
| vessel |
|
inline |
Will create a CoT marker for vessel. Checks if one exists already and that the vessel is a ValidVessel.
| vessel |
|
inlineprotected |
|
inline |
Set the CoM CoT CoL camera state active or inactive (true/false).
| state |
|
inline |
Terminates all CoL Markers in the scene and removes from the dictionary list.
|
inline |
Terminates all CoM Markers in the scene and removes from the dictionary list.
|
inline |
Terminates all CoT Markers in the scene and removes from the dictionary list.
|
inline |
Toggle CoL markers for all loaded vessels On or Off. (Toggles from current state).
|
inline |
Toggle CoM markers for all loaded vessels On or Off. (Toggles from current state).
|
inline |
Toggle CoT markers for all loaded vessels On or Off. (Toggles from current state).
| delegate bool FlightVesselOverlays.ValidVesselOverride | ( | Vessel | vessel, |
| bool | checkEngine, | ||
| bool | checkLift | ||
| ) |
Delegate that can be used to override the ValidVessel Method in this singleton class.
| vessel | The Vessel we are checking |
| checkEngine | Set True to check for CoT validity eg: Vessel has engines |
| checkLift | Set True to check for CoL validity eg: Vessel has lifting surfaces |
|
inline |
Checks if the vessel is a valid type for CoM, CoL, CoT markers. Can be overridden by assigned validVesselOverride delegate.
| vessel | The Vessel we are checking |
| checkEngine | Set True to check for CoT validity eg: Vessel has engines |
| checkLift | Set True to check for CoL validity eg: Vessel has lifting surfaces |
| EditorMarker_CoL FlightVesselOverlays.CoLmarker |
CoL Marker Prefab.
| DictionaryValueList<Vessel, EditorMarker_CoL> FlightVesselOverlays.ColMarkers |
Dictionary list of CoL Markers.
| bool FlightVesselOverlays.ColMarkersActive |
True if CoL markers are active in the scene. This toggle is only Set true if the ToggleCoL method is called.
| EditorMarker_CoM FlightVesselOverlays.CoMmarker |
CoM Marker Prefab.
| DictionaryValueList<Vessel, EditorMarker_CoM> FlightVesselOverlays.ComMarkers |
Dictionary list of CoM Markers.
| bool FlightVesselOverlays.ComMarkersActive |
True if CoM markers are active in the scene. This toggle is only Set true if the ToggleCoM method is called.
| EditorMarker_CoT FlightVesselOverlays.CoTmarker |
CoL Marker Prefab.
| DictionaryValueList<Vessel, EditorMarker_CoT> FlightVesselOverlays.CotMarkers |
Dictionary list of CoT Markers.
| bool FlightVesselOverlays.CotMarkersActive |
True if CoT markers are active in the scene. This toggle is only Set true if the ToggleCoT method is called.
|
static |
Singleton instance of this Class in the Flight scene.
| Camera FlightVesselOverlays.overlayCamera |
Camera used to draw the CoL, CoM, CoT markers in editor scene.
| ValidVesselOverride FlightVesselOverlays.validVesselOverride |
Set this to the VesselOverride method you want used to override the ValidVessel check in this singleton class.
1.8.7