Table of Contents

Class StageDataContext

Namespace
KSP.Game
Assembly
Assembly-CSharp.dll
public class StageDataContext : DataContext, IDisposable, IDataContext, IDataContextReadonly, IDataContextWritable
Inheritance
StageDataContext
Implements
Inherited Members
Extension Methods

Constructors

StageDataContext(int, int, StagingDataProvider)

public StageDataContext(int displayStageID, int vesselStageID, StagingDataProvider stagingDataProvider)

Parameters

displayStageID int
vesselStageID int
stagingDataProvider StagingDataProvider

Fields

CanBeRemoved

public bool CanBeRemoved

Field Value

bool

DeltaV

public PropertyExternal<double> DeltaV

Field Value

PropertyExternal<double>

DisplayedStageID

public Property<int> DisplayedStageID

Field Value

Property<int>

HasThrust

public PropertyExternal<bool> HasThrust

Field Value

PropertyExternal<bool>

PartGroupCount

public PropertyExternal<int> PartGroupCount

Field Value

PropertyExternal<int>

VesselStageID

public Property<int> VesselStageID

Field Value

Property<int>

Properties

HighlightIndex

public Property<int> HighlightIndex { get; }

Property Value

Property<int>

IsActiveStageFlight

public Property<bool> IsActiveStageFlight { get; set; }

Property Value

Property<bool>

IsDragging

public Property<bool> IsDragging { get; }

Property Value

Property<bool>

IsEmpty

public PropertyExternal<bool> IsEmpty { get; }

Property Value

PropertyExternal<bool>

IsExpanded

public Property<bool> IsExpanded { get; }

Property Value

Property<bool>

IsHighlighted

public Property<bool> IsHighlighted { get; }

Property Value

Property<bool>

PartGroups

public ContextListProperty<StagePartGroupDataContext> PartGroups { get; }

Property Value

ContextListProperty<StagePartGroupDataContext>

Methods

EnumeratePartsRemoveIf(Func<StagePartDataContext, bool>, bool)

public void EnumeratePartsRemoveIf(Func<StagePartDataContext, bool> removeIfPredicate, bool fireEvent)

Parameters

removeIfPredicate Func<StagePartDataContext, bool>
fireEvent bool

IsStageEmpty()

public bool IsStageEmpty()

Returns

bool

RebuildPartGroups()

public void RebuildPartGroups()

SetActiveStage(bool)

public void SetActiveStage(bool isActive)

Parameters

isActive bool

SetIsExpanded(bool)

public void SetIsExpanded(bool expanded)

Parameters

expanded bool

ToggleExpandPartFolder(int)

public void ToggleExpandPartFolder(int partFolderIndex)

Parameters

partFolderIndex int

TryAddPart(StagePartDataContext)

public void TryAddPart(StagePartDataContext partToAdd)

Parameters

partToAdd StagePartDataContext

TryRemovePart(StagePartDataContext)

public void TryRemovePart(StagePartDataContext partToRemove)

Parameters

partToRemove StagePartDataContext

UpdateStageDeltaV(bool)

public void UpdateStageDeltaV(bool forceUpdate)

Parameters

forceUpdate bool