Interface IViewController
- Namespace
- KSP.Sim
- Assembly
- Assembly-CSharp.dll
public interface IViewController
- Extension Methods
-
Properties
IsPaused
Property Value
- bool
TimeWarp
TimeWarp TimeWarp { get; }
Property Value
- TimeWarp
Universe
UniverseModel Universe { get; }
Property Value
- UniverseModel
CutsceneTools cutsceneTools { get; }
Property Value
- CutsceneTools
EVAInputHandler evaInputHandler { get; }
Property Value
- EVAInputHandler
FlightInputHandler flightInputHandler { get; }
Property Value
- FlightInputHandler
IInputLockManager inputLockManager { get; }
Property Value
- IInputLockManager
IKeyboardInputDriver keyboardInput { get; }
Property Value
- IKeyboardInputDriver
patchedConicsAttached
bool patchedConicsAttached { get; set; }
Property Value
- bool
ready
Property Value
- bool
universalTime
double universalTime { get; }
Property Value
- double
Methods
CreatePlayerColony(string, LegacySerializedColony, SerializedLocation, Action<IVehicle>)
bool CreatePlayerColony(string optionalGuid, LegacySerializedColony colony, SerializedLocation location, Action<IVehicle> creationCallback)
Parameters
optionalGuid string
colony LegacySerializedColony
location SerializedLocation
creationCallback Action<IVehicle>
Returns
- bool
GetActiveSimVessel(bool)
VesselComponent GetActiveSimVessel(bool requireValidInSim = true)
Parameters
requireValidInSim bool
Returns
- VesselComponent
GetActiveVehicle(bool)
IVehicle GetActiveVehicle(bool requireValidInSim = true)
Parameters
requireValidInSim bool
Returns
- IVehicle
GetBehaviorIfLoaded(CelestialBodyComponent)
CelestialBodyBehavior GetBehaviorIfLoaded(CelestialBodyComponent celestialBody)
Parameters
celestialBody CelestialBodyComponent
Returns
- CelestialBodyBehavior
GetBehaviorIfLoaded(CrewMemberComponent)
CrewMemberBehavior GetBehaviorIfLoaded(CrewMemberComponent crew)
Parameters
crew CrewMemberComponent
Returns
- CrewMemberBehavior
GetBehaviorIfLoaded(VesselComponent)
VesselBehavior GetBehaviorIfLoaded(VesselComponent vessel)
Parameters
vessel VesselComponent
Returns
- VesselBehavior
GetBodyByName(string)
CelestialBodyComponent GetBodyByName(string bodyName)
Parameters
bodyName string
Returns
- CelestialBodyComponent
GetSimulationViewIfLoaded(SimulationObjectModel)
ISimulationObjectView GetSimulationViewIfLoaded(SimulationObjectModel model)
Parameters
model SimulationObjectModel
Returns
- ISimulationObjectView
HaveActiveVehicle(bool)
bool HaveActiveVehicle(bool requireValidInSim = true)
Parameters
requireValidInSim bool
Returns
- bool
SetActiveInternalSpace(PartComponent)
void SetActiveInternalSpace(PartComponent visiblePart)
Parameters
visiblePart PartComponent
SetActiveVehicle(VesselComponent, bool, bool)
bool SetActiveVehicle(VesselComponent simVesselComponent, bool observeVessel, bool forceVesselActive)
Parameters
simVesselComponent VesselComponent
observeVessel bool
forceVesselActive bool
Returns
- bool
SetPause(bool)
void SetPause(bool newPauseState)
Parameters
newPauseState bool
Shutdown()
SyncToView(UniverseView, Action)
void SyncToView(UniverseView view, Action finishedCallback)
Parameters
view UniverseView
finishedCallback Action
TryGetActiveSimVessel(out VesselComponent, bool)
bool TryGetActiveSimVessel(out VesselComponent activeSimVessel, bool requireValidInSim = true)
Parameters
activeSimVessel VesselComponent
requireValidInSim bool
Returns
- bool
TryGetActiveVehicle(out IVehicle, bool)
bool TryGetActiveVehicle(out IVehicle activeVehicle, bool requireValidInSim = true)
Parameters
activeVehicle IVehicle
requireValidInSim bool
Returns
- bool
Events
OnViewControllerLoaded
event Action OnViewControllerLoaded
Event Type
- Action
OnViewControllerUnloaded
event Action OnViewControllerUnloaded
Event Type
- Action