Class ModuleProperty<T>
- Namespace
- KSP.Sim.Definitions
- Assembly
- Assembly-CSharp.dll
public class ModuleProperty<T> : Property<T>, IPropertyEnumValues, IPropertyWritable<T>, IProperty<T>, IModuleProperty, IPropertyWritable, IProperty, IModuleDataContext
Type Parameters
T
- Inheritance
-
Property<T>ModuleProperty<T>
- Implements
-
IProperty<T>
- Inherited Members
- Extension Methods
Constructors
ModuleProperty(T)
public ModuleProperty(T initialValue)
Parameters
initialValueT
ModuleProperty(T, ToStringDelegate)
public ModuleProperty(T initialValue, ToStringDelegate toStringDelegate)
Parameters
initialValueTtoStringDelegateToStringDelegate
ModuleProperty(T, bool)
public ModuleProperty(T initialValue, bool isReadOnly)
Parameters
initialValueTisReadOnlybool
ModuleProperty(T, bool, ToStringDelegate)
public ModuleProperty(T initialValue, bool isReadOnly, ToStringDelegate toStringDelegate)
Parameters
initialValueTisReadOnlybooltoStringDelegateToStringDelegate
ModuleProperty(T, Func<T, T>, bool, ToStringDelegate)
public ModuleProperty(T initialValue, Func<T, T> validator, bool isReadOnly, ToStringDelegate toStringDelegate)
Parameters
initialValueTvalidatorFunc<T, T>isReadOnlybooltoStringDelegateToStringDelegate
Properties
ContextKey
public string ContextKey { get; set; }
Property Value
IsReadOnly
public bool IsReadOnly { get; }
Property Value
ToStringDelegate
public ToStringDelegate ToStringDelegate { get; }
Property Value
Methods
GetContextKey()
public string GetContextKey()