Table of Contents

Class PropertyDerived<TOutput, TInput>

Namespace
KSP.Api.CoreTypes
Assembly
Assembly-CSharp.dll
public class PropertyDerived<TOutput, TInput> : IProperty<TOutput>, IProperty

Type Parameters

TOutput
TInput
Inheritance
PropertyDerived<TOutput, TInput>
Implements
IProperty<TOutput>
Inherited Members
Extension Methods

Constructors

PropertyDerived(EvaluationCallback)

public PropertyDerived(PropertyDerived<TOutput, TInput>.EvaluationCallback evaluator)

Parameters

evaluator PropertyDerived<TOutput, TInput>.EvaluationCallback

PropertyDerived(Func<TInput>, EvaluationCallback)

public PropertyDerived(Func<TInput> getter, PropertyDerived<TOutput, TInput>.EvaluationCallback evaluator)

Parameters

getter Func<TInput>
evaluator PropertyDerived<TOutput, TInput>.EvaluationCallback

Properties

EnumIndices

public int[] EnumIndices { get; }

Property Value

int[]

EnumNames

public string[] EnumNames { get; }

Property Value

string[]

StoredType

public Type StoredType { get; }

Property Value

Type

Methods

GetObject()

public object GetObject()

Returns

object

GetValue()

public TOutput GetValue()

Returns

TOutput

InvokeValueChanged(TOutput)

public virtual void InvokeValueChanged(TOutput newValue)

Parameters

newValue TOutput

SetEnumValues(string[], int[])

public void SetEnumValues(string[] newEnumNames, int[] newEnumIndices = null)

Parameters

newEnumNames string[]
newEnumIndices int[]

UpdateDerived()

public void UpdateDerived()

UpdateDerived(TInput)

public void UpdateDerived(TInput source)

Parameters

source TInput

Events

OnChanged

public event Action OnChanged

Event Type

Action

OnChangedObject

public event Action<object> OnChangedObject

Event Type

Action<object>

OnChangedValue

public event Action<TOutput> OnChangedValue

Event Type

Action<TOutput>