Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Member Functions | Protected Member Functions | Static Protected Attributes | Properties | Events | List of all members
BaseField< K > Class Template Reference

Container class, this contains the reference to the KSPField attribute and the affected host object More...

Inheritance diagram for BaseField< K >:
Expansions.Missions.Editor.BaseAPField

Public Member Functions

 BaseField (K fieldAttrib, MemberInfo memberInfo, object host)
 
object GetValue (object host)
 
GetValue< T > (object host)
 
virtual void SetOriginalValue ()
 
bool SetValue (object newValue, object host)
 

Protected Member Functions

 BaseField ()
 

Static Protected Attributes

static Dictionary< System.Type,
bool > 
hasInterfaceDictionary = new Dictionary<System.Type, bool>()
 

Properties

Attribute [get]
 The field attribute object More...
 
FieldInfo FieldInfo [get, set]
 The reflected field info More...
 
string guiName [get, set]
 The field's gui name More...
 
bool hasInterface [get, set]
 Is this field representing a value which implements IConfigNode More...
 
object host [get, set]
 object host More...
 
MemberInfo MemberInfo [get, set]
 The generic reflected info More...
 
string name [get, set]
 The external name of this field More...
 
object originalValue [get, set]
 initial value for this field More...
 

Events

Callback< object > OnValueModified = o => { }
 Called whenever the field value is modified through SetValue More...
 

Detailed Description

Container class, this contains the reference to the KSPField attribute and the affected host object

Template Parameters
KType of the KSPField attribute to be handled
Type Constraints
K :FieldAttribute 

Constructor & Destructor Documentation

BaseField< K >.BaseField ( )
inlineprotected
BaseField< K >.BaseField ( fieldAttrib,
MemberInfo  memberInfo,
object  host 
)
inline

Member Function Documentation

object BaseField< K >.GetValue ( object  host)
inline
T BaseField< K >.GetValue< T > ( object  host)
inline
virtual void BaseField< K >.SetOriginalValue ( )
inlinevirtual
bool BaseField< K >.SetValue ( object  newValue,
object  host 
)
inline

Member Data Documentation

Dictionary<System.Type, bool> BaseField< K >.hasInterfaceDictionary = new Dictionary<System.Type, bool>()
staticprotected

Property Documentation

K BaseField< K >.Attribute
get

The field attribute object

FieldInfo BaseField< K >.FieldInfo
getset

The reflected field info

string BaseField< K >.guiName
getset

The field's gui name

bool BaseField< K >.hasInterface
getset

Is this field representing a value which implements IConfigNode

object BaseField< K >.host
getset

object host

MemberInfo BaseField< K >.MemberInfo
getset

The generic reflected info

string BaseField< K >.name
getset

The external name of this field

object BaseField< K >.originalValue
getset

initial value for this field

Event Documentation

Callback<object> BaseField< K >.OnValueModified = o => { }

Called whenever the field value is modified through SetValue


The documentation for this class was generated from the following file: