HKI Core
Public Member Functions | Protected Member Functions | Properties | Private Member Functions | Private Attributes | List of all members
HKI.Core.Variables.HKIVarGeneric< T > Class Template Reference

This class adds a generic implementation to HKIVar. This reduces the repetitive implementation of this common functionality. More...

Inheritance diagram for HKI.Core.Variables.HKIVarGeneric< T >:
HKI.Core.Variables.HKIVar HKI.Core.Variables.ISaveAndLoadable HKI.Core.Variables.HKIVarGenericMinMax< T >

Public Member Functions

void SetValueToDefaultValue ()
 
void SetValueToPreviousValue ()
 
void SetDefaultValueToPreviousValue ()
 
void SetDefaultValueToValue ()
 
override string ToString ()
 
- Public Member Functions inherited from HKI.Core.Variables.HKIVar
abstract void Save (XmlNode parentNode)
 
abstract void Load (XmlNode node)
 

Protected Member Functions

virtual void SetWithParameters (object[] parameters)
 
- Protected Member Functions inherited from HKI.Core.Variables.HKIVar
void RaiseOnValueChangedCallback ()
 

Properties

GetDefaultValue [get]
 
Value [get]
 
SetValue [set]
 

Private Member Functions

void OnEnable ()
 

Private Attributes

defaultValue = default(T)
 
previousValue = default(T)
 
value = default(T)
 

Additional Inherited Members

- Events inherited from HKI.Core.Variables.HKIVar
System.Action OnValueChanged
 

Detailed Description

This class adds a generic implementation to HKIVar. This reduces the repetitive implementation of this common functionality.

Template Parameters
T

Definition at line 11 of file HKIVarGeneric.cs.

Member Function Documentation

◆ OnEnable()

void HKI.Core.Variables.HKIVarGeneric< T >.OnEnable ( )
inlineprivate

Definition at line 36 of file HKIVarGeneric.cs.

◆ SetDefaultValueToPreviousValue()

void HKI.Core.Variables.HKIVarGeneric< T >.SetDefaultValueToPreviousValue ( )
inline

Definition at line 55 of file HKIVarGeneric.cs.

◆ SetDefaultValueToValue()

void HKI.Core.Variables.HKIVarGeneric< T >.SetDefaultValueToValue ( )
inline

Definition at line 60 of file HKIVarGeneric.cs.

◆ SetValueToDefaultValue()

void HKI.Core.Variables.HKIVarGeneric< T >.SetValueToDefaultValue ( )
inline

Definition at line 45 of file HKIVarGeneric.cs.

◆ SetValueToPreviousValue()

void HKI.Core.Variables.HKIVarGeneric< T >.SetValueToPreviousValue ( )
inline

Definition at line 50 of file HKIVarGeneric.cs.

◆ SetWithParameters()

virtual void HKI.Core.Variables.HKIVarGeneric< T >.SetWithParameters ( object []  parameters)
inlineprotectedvirtual

Reimplemented in HKI.Core.Variables.HKIVarGenericMinMax< T >.

Definition at line 71 of file HKIVarGeneric.cs.

◆ ToString()

override string HKI.Core.Variables.HKIVarGeneric< T >.ToString ( )
inline

Definition at line 65 of file HKIVarGeneric.cs.

Member Data Documentation

◆ defaultValue

T HKI.Core.Variables.HKIVarGeneric< T >.defaultValue = default(T)
private

Definition at line 14 of file HKIVarGeneric.cs.

◆ previousValue

T HKI.Core.Variables.HKIVarGeneric< T >.previousValue = default(T)
private

Definition at line 15 of file HKIVarGeneric.cs.

◆ value

T HKI.Core.Variables.HKIVarGeneric< T >.value = default(T)
private

Definition at line 16 of file HKIVarGeneric.cs.

Property Documentation

◆ GetDefaultValue

T HKI.Core.Variables.HKIVarGeneric< T >.GetDefaultValue
get

Definition at line 19 of file HKIVarGeneric.cs.

◆ SetValue

T HKI.Core.Variables.HKIVarGeneric< T >.SetValue
set

Definition at line 24 of file HKIVarGeneric.cs.

◆ Value

Definition at line 20 of file HKIVarGeneric.cs.


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