Table of Contents

Class OABProvider

Namespace
KSP.Game
Assembly
Assembly-CSharp.dll
public class OABProvider
Inheritance
OABProvider
Inherited Members
Extension Methods

Constructors

OABProvider(GameInstance)

public OABProvider(GameInstance game)

Parameters

game GameInstance

Fields

DEFAULT_APPROXIMATE_RANGE_CHECK

public const double DEFAULT_APPROXIMATE_RANGE_CHECK = 100

Field Value

double

DEFAULT_LAUNCHPAD_ID

public const string DEFAULT_LAUNCHPAD_ID = "LaunchPad_spawn_01"

Field Value

string

DEFAULT_LAUNCH_OVERLAP_RADIUS

public const double DEFAULT_LAUNCH_OVERLAP_RADIUS = 100

Field Value

double

DEFAULT_LAUNCH_OVERLAP_RADIUS_SQUARED

public const double DEFAULT_LAUNCH_OVERLAP_RADIUS_SQUARED = 10000

Field Value

double

DEFAULT_PART_SEED_COUNTER_VALUE

public const int DEFAULT_PART_SEED_COUNTER_VALUE = 0

Field Value

int

KERBIN_ID

public const string KERBIN_ID = "Kerbin"

Field Value

string

KSC_CAMERA_LOOK_AT

public const string KSC_CAMERA_LOOK_AT = "KSCCameraLookAt"

Field Value

string

KSC_CAMERA_ORIGIN

public const string KSC_CAMERA_ORIGIN = "KSCCameraOrigin"

Field Value

string

KSC_SURF_OBJ_NAME

public const string KSC_SURF_OBJ_NAME = "KSC - Updated"

Field Value

string

LAUNCH_LOCATIONS

public readonly Dictionary<OABProvider.LaunchLocation, string> LAUNCH_LOCATIONS

Field Value

Dictionary<OABProvider.LaunchLocation, string>

OAB_ADDRESSABLE_PATH

public const string OAB_ADDRESSABLE_PATH = "OAB.prefab"

Field Value

string

OAB_ID

public const string OAB_ID = "ksc_vab_center"

Field Value

string

Properties

BusyInfo

public OABProvider.BusyInfoData BusyInfo { get; }

Property Value

OABProvider.BusyInfoData

Current

public ObjectAssemblyBuilder Current { get; }

Property Value

ObjectAssemblyBuilder

IsLoaded

public bool IsLoaded { get; }

Property Value

bool

LoadingCoroutine

public Coroutine LoadingCoroutine { get; }

Property Value

Coroutine

Methods

CheckLaunchSiteAvailabilityAndReturnVessels(string, ref List<VesselComponent>)

public bool CheckLaunchSiteAvailabilityAndReturnVessels(string launchLocation, ref List<VesselComponent> nearbyVessels)

Parameters

launchLocation string
nearbyVessels List<VesselComponent>

Returns

bool

CheckSelectedLaunchSiteAvailabilityAndReturnVessels(ref List<VesselComponent>)

public bool CheckSelectedLaunchSiteAvailabilityAndReturnVessels(ref List<VesselComponent> nearbyVessels)

Parameters

nearbyVessels List<VesselComponent>

Returns

bool

ClearBusy()

public void ClearBusy()

ClearVesselsAtLaunchSite(string)

public void ClearVesselsAtLaunchSite(string launchLocation)

Parameters

launchLocation string

ClearVesselsAtSelectedLaunchSite()

public void ClearVesselsAtSelectedLaunchSite()

DoesCollideWithNearbyParts(IObjectAssembly)

public bool DoesCollideWithNearbyParts(IObjectAssembly mainAssembly)

Parameters

mainAssembly IObjectAssembly

Returns

bool

GetCurrentLaunchLocation()

public SerializedLocation GetCurrentLaunchLocation()

Returns

SerializedLocation

GetLaunchLocationID()

public string GetLaunchLocationID()

Returns

string

GetNextPartSeedCounterValueAndAdvance()

public int GetNextPartSeedCounterValueAndAdvance()

Returns

int

GetOrbitalLaunchLocation(double)

public static SerializedLocation GetOrbitalLaunchLocation(double universalTime)

Parameters

universalTime double

Returns

SerializedLocation

GetPartSeedCounterValue()

public int GetPartSeedCounterValue()

Returns

int

GetSurfaceLaunchLocation(string)

public static SerializedLocation GetSurfaceLaunchLocation(string launchLocationName)

Parameters

launchLocationName string

Returns

SerializedLocation

GetSurfaceLaunchPosition(string, string)

public static Position GetSurfaceLaunchPosition(string celestialBodyName, string launchPadName)

Parameters

celestialBodyName string
launchPadName string

Returns

Position

HandleLaunchButtonPressforMPSpectators(string)

public void HandleLaunchButtonPressforMPSpectators(string globalIdStringOfVessel)

Parameters

globalIdStringOfVessel string

HideOAB()

public void HideOAB()

IsBusy()

public bool IsBusy()

Returns

bool

IsSelectedLaunchSiteAvailable()

public bool IsSelectedLaunchSiteAvailable()

Returns

bool

IsTimelineLaunchLocation(LaunchLocation)

public static bool IsTimelineLaunchLocation(OABProvider.LaunchLocation location)

Parameters

location OABProvider.LaunchLocation

Returns

bool

LaunchLocationNameToEnum(string)

public static OABProvider.LaunchLocation LaunchLocationNameToEnum(string location)

Parameters

location string

Returns

OABProvider.LaunchLocation

LaunchLocationObjectNameToEnum(string)

public OABProvider.LaunchLocation LaunchLocationObjectNameToEnum(string spawnPointObject)

Parameters

spawnPointObject string

Returns

OABProvider.LaunchLocation

LaunchLocationToSpawnName(LaunchLocation)

public string LaunchLocationToSpawnName(OABProvider.LaunchLocation location)

Parameters

location OABProvider.LaunchLocation

Returns

string

LocationIsKSCBoatLaunch(LaunchLocation)

public static bool LocationIsKSCBoatLaunch(OABProvider.LaunchLocation location)

Parameters

location OABProvider.LaunchLocation

Returns

bool

LocationIsKSCLaunchpad(LaunchLocation)

public static bool LocationIsKSCLaunchpad(OABProvider.LaunchLocation location)

Parameters

location OABProvider.LaunchLocation

Returns

bool

LocationIsKSCRunway(LaunchLocation)

public static bool LocationIsKSCRunway(OABProvider.LaunchLocation location)

Parameters

location OABProvider.LaunchLocation

Returns

bool

OnBatchFinished()

public void OnBatchFinished()

OnBatchStarted(OABVariant, OABEnvironmentType, OABConstructionType)

public void OnBatchStarted(OABVariant variant, OABEnvironmentType environmentType, OABConstructionType constructor)

Parameters

variant OABVariant
environmentType OABEnvironmentType
constructor OABConstructionType

OnCurrentObjectAssemblyBuilderReset()

public void OnCurrentObjectAssemblyBuilderReset()

PlaneInOABNoLaunch()

public void PlaneInOABNoLaunch()

PlaneOnRunwayViaVAB(Action)

public void PlaneOnRunwayViaVAB(Action onLaunchCallback = null)

Parameters

onLaunchCallback Action

ResetPartSeedCounterValue()

public void ResetPartSeedCounterValue()

SaveOABInStateTracker(SerializedAssembly, Action<SerializedAssembly>)

public void SaveOABInStateTracker(SerializedAssembly assembly, Action<SerializedAssembly> onComplete)

Parameters

assembly SerializedAssembly
onComplete Action<SerializedAssembly>

SetBusy(OABVariant, OABEnvironmentType, OABConstructionType)

public void SetBusy(OABVariant variant, OABEnvironmentType environmentType, OABConstructionType constructor)

Parameters

variant OABVariant
environmentType OABEnvironmentType
constructor OABConstructionType

SetLaunchSite(LaunchLocation)

public void SetLaunchSite(OABProvider.LaunchLocation launchSiteID)

Parameters

launchSiteID OABProvider.LaunchLocation

SetPartSeedCounterValue(int)

public void SetPartSeedCounterValue(int partSeedCounterValue)

Parameters

partSeedCounterValue int

ShowOAB(OABConfig, OABHistoricalSnapshot, Action, Action)

public void ShowOAB(OABConfig config, OABHistoricalSnapshot snapshot = null, Action onLaunchCallback = null, Action onShowCompleteCallback = null)

Parameters

config OABConfig
snapshot OABHistoricalSnapshot
onLaunchCallback Action
onShowCompleteCallback Action

Shutdown()

public void Shutdown()

SpawnAssembly(SerializedAssembly, bool, bool, bool)

public void SpawnAssembly(SerializedAssembly assembly, bool replaceExistingSimObject = false, bool preserveOrientation = true, bool fillCommandPartsForControl = false)

Parameters

assembly SerializedAssembly
replaceExistingSimObject bool
preserveOrientation bool
fillCommandPartsForControl bool

VesselInOrbitViaVAB(Action)

public void VesselInOrbitViaVAB(Action onLaunchCallback = null)

Parameters

onLaunchCallback Action

VesselInVABNoLaunch()

public void VesselInVABNoLaunch()

VesselOnLaunchpadViaVAB(Action)

public void VesselOnLaunchpadViaVAB(Action onLaunchCallback = null)

Parameters

onLaunchCallback Action