Kerbal Space Program
1.12.4
|
Public Types | |
enum | AdditionalEntity { AdditionalEntity.Kerbal, AdditionalEntity.Asteroid, AdditionalEntity.Vessel, AdditionalEntity.Flag, AdditionalEntity.LaunchSite, AdditionalEntity.Objective } |
Public Member Functions | |
GAPOrbitRenderer | CreateSimpleOrbit (AdditionalEntity entityType, string name, Orbit orbit, MapNode.TypeData typeData) |
void | CreateSurfaceAreaGizmo (double latitude, double longitude, double radius) |
GAPSurfaceIcon | CreateSurfaceIcon (AdditionalEntity entityType, string name, MapNode.TypeData typeData, double latitude, double longitude, double altitude) |
virtual void | End () |
Called when the state is done, this will happen when the GAP changes state, or its Cleaned/Destroyed More... | |
virtual void | Init (GAPCelestialBody gapRef) |
Initializes the state and sets a cross reference to the state parent More... | |
virtual void | LateUpdate () |
Updates the state, its called each frame More... | |
virtual void | LoadPlanet (CelestialBody newCelestialBody) |
Called when a new planet is loaded in the GAP More... | |
virtual void | OnClick (RaycastHit?hit) |
Called when the GAP gets clicked More... | |
virtual void | OnClickUp (RaycastHit?hit) |
Called when the GAP gets clicked and the mouse button is released More... | |
virtual void | OnDrag (PointerEventData.InputButton arg0, Vector2 arg1) |
Called when the mouse is rightclick holding and dragging in the GAP window More... | |
virtual void | OnDragEnd (RaycastHit?hit) |
Called when mouse button is released after dragging More... | |
void | OnFilterButton (AdditionalEntity entityType) |
UI Button events More... | |
virtual void | OnMouseOver (Vector2 cameraPoint) |
Called when the mouse is hovered over the GAP More... | |
void | SetFilter (AdditionalEntity entityType, bool displayIcons) |
Icon toggles More... | |
virtual void | UnloadPlanet () |
Called when a new planet is unloaded in the GAP More... | |
virtual void | Update () |
Updates the state, its called each frame More... | |
Protected Attributes | |
AdditionalEntity[] | entityTypes |
GAPCelestialBody | gapRef |
|
inline |
|
inline |
|
inline |
|
inlinevirtual |
Called when the state is done, this will happen when the GAP changes state, or its Cleaned/Destroyed
Reimplemented in Expansions.Missions.Editor.GAPCelestialBodyState_Orbit, Expansions.Missions.Editor.GAPCelestialBodyState_Biomes, and Expansions.Missions.Editor.GAPCelestialBodyState_SurfaceGizmo.
|
inlinevirtual |
Initializes the state and sets a cross reference to the state parent
gapRef | The GAPCelestialbody that will use this state |
Reimplemented in Expansions.Missions.Editor.GAPCelestialBodyState_Orbit, Expansions.Missions.Editor.GAPCelestialBodyState_Biomes, and Expansions.Missions.Editor.GAPCelestialBodyState_SurfaceGizmo.
|
inlinevirtual |
Updates the state, its called each frame
Reimplemented in Expansions.Missions.Editor.GAPCelestialBodyState_Orbit.
|
inlinevirtual |
Called when a new planet is loaded in the GAP
Reimplemented in Expansions.Missions.Editor.GAPCelestialBodyState_Orbit, Expansions.Missions.Editor.GAPCelestialBodyState_Biomes, and Expansions.Missions.Editor.GAPCelestialBodyState_SurfaceGizmo.
|
inlinevirtual |
Called when the GAP gets clicked
hit | The ray is from the gap localspace, it will usually hit the planet sphere collider |
Reimplemented in Expansions.Missions.Editor.GAPCelestialBodyState_Orbit.
|
inlinevirtual |
Called when the GAP gets clicked and the mouse button is released
hit | The ray is from the gap localspace, it will usually hit the planet sphere collider |
Reimplemented in Expansions.Missions.Editor.GAPCelestialBodyState_Biomes, and Expansions.Missions.Editor.GAPCelestialBodyState_SurfaceGizmo.
|
inlinevirtual |
Called when the mouse is rightclick holding and dragging in the GAP window
Reimplemented in Expansions.Missions.Editor.GAPCelestialBodyState_Orbit, and Expansions.Missions.Editor.GAPCelestialBodyState_SurfaceGizmo.
|
inlinevirtual |
Called when mouse button is released after dragging
hit | The ray is from the gap localspace, it will usually hit the planet sphere collider |
Reimplemented in Expansions.Missions.Editor.GAPCelestialBodyState_SurfaceGizmo.
|
inline |
UI Button events
|
inlinevirtual |
Called when the mouse is hovered over the GAP
cameraPoint | The point in screenspace of the gap |
Reimplemented in Expansions.Missions.Editor.GAPCelestialBodyState_Orbit, Expansions.Missions.Editor.GAPCelestialBodyState_Biomes, and Expansions.Missions.Editor.GAPCelestialBodyState_SurfaceGizmo.
|
inline |
Icon toggles
|
inlinevirtual |
Called when a new planet is unloaded in the GAP
Reimplemented in Expansions.Missions.Editor.GAPCelestialBodyState_Orbit, Expansions.Missions.Editor.GAPCelestialBodyState_Biomes, and Expansions.Missions.Editor.GAPCelestialBodyState_SurfaceGizmo.
|
inlinevirtual |
Updates the state, its called each frame
Reimplemented in Expansions.Missions.Editor.GAPCelestialBodyState_Biomes, and Expansions.Missions.Editor.GAPCelestialBodyState_SurfaceGizmo.
|
protected |
|
protected |