C# Class FlatRedBall.Glue.SaveClasses.CustomVariableExtensionMethods

Afficher le fichier Open project: vchelaru/FlatRedBall Class Usage Examples

Méthodes publiques

Méthode Description
CustomVariableToString ( CustomVariable cv ) : string
FixEnumerationTypes ( this customVariable ) : void
GetDefiningCustomVariable ( this customVariable ) : CustomVariable

If a CustomVariable has its SetByDerived to true, then any Elements that inherit from the Element that has this CustomVariable will also have CustomVariables with matching name that have their DefinedByBase set to true. The variable with DefinedByBase often has incomplete information (like whether it is tunneling or not) so sometimes we need the defining variable for information like state types.

GetIsAnimationChain ( this variable ) : bool
GetIsCsv ( this customVariable ) : bool
GetIsEnumeration ( this customVariable ) : bool
GetIsExposingVariable ( this customVariable, IElement container ) : bool
GetIsFile ( Type runtimeType ) : bool
GetIsFile ( string typeName ) : bool
GetIsFile ( this customVariable ) : bool
GetIsListCsv ( this customVariable ) : bool
GetIsNewVariable ( this customVariable, IElement container ) : bool
GetIsSourceFile ( this customVariable, IElement container ) : bool
GetIsTunneling ( this customVariable ) : bool
GetIsVariableState ( this customVariable, IElement containingElement = null ) : bool
GetRuntimeType ( this customVariable ) : Type
GetTypeConverter ( this customVariable, IElement containingElement ) : TypeConverter
GetTypeConverter ( this customVariable, IElement containingElement, StateSave stateSave, FlatRedBall glueState ) : TypeConverter
HasAccompanyingVelocityConsideringTunneling ( this variable, IElement container, int maxDepth ) : bool
SetDefaultValueAccordingToType ( this customVariable, string typeAsString ) : void

Method Details

CustomVariableToString() public static méthode

public static CustomVariableToString ( CustomVariable cv ) : string
cv CustomVariable
Résultat string

FixEnumerationTypes() public static méthode

public static FixEnumerationTypes ( this customVariable ) : void
customVariable this
Résultat void

GetDefiningCustomVariable() public static méthode

If a CustomVariable has its SetByDerived to true, then any Elements that inherit from the Element that has this CustomVariable will also have CustomVariables with matching name that have their DefinedByBase set to true. The variable with DefinedByBase often has incomplete information (like whether it is tunneling or not) so sometimes we need the defining variable for information like state types.
public static GetDefiningCustomVariable ( this customVariable ) : CustomVariable
customVariable this The variable to get the defining variable for.
Résultat CustomVariable

GetIsAnimationChain() public static méthode

public static GetIsAnimationChain ( this variable ) : bool
variable this
Résultat bool

GetIsCsv() public static méthode

public static GetIsCsv ( this customVariable ) : bool
customVariable this
Résultat bool

GetIsEnumeration() public static méthode

public static GetIsEnumeration ( this customVariable ) : bool
customVariable this
Résultat bool

GetIsExposingVariable() public static méthode

public static GetIsExposingVariable ( this customVariable, IElement container ) : bool
customVariable this
container IElement
Résultat bool

GetIsFile() public static méthode

public static GetIsFile ( Type runtimeType ) : bool
runtimeType System.Type
Résultat bool

GetIsFile() public static méthode

public static GetIsFile ( string typeName ) : bool
typeName string
Résultat bool

GetIsFile() public static méthode

public static GetIsFile ( this customVariable ) : bool
customVariable this
Résultat bool

GetIsListCsv() public static méthode

public static GetIsListCsv ( this customVariable ) : bool
customVariable this
Résultat bool

GetIsNewVariable() public static méthode

public static GetIsNewVariable ( this customVariable, IElement container ) : bool
customVariable this
container IElement
Résultat bool

GetIsSourceFile() public static méthode

public static GetIsSourceFile ( this customVariable, IElement container ) : bool
customVariable this
container IElement
Résultat bool

GetIsTunneling() public static méthode

public static GetIsTunneling ( this customVariable ) : bool
customVariable this
Résultat bool

GetIsVariableState() public static méthode

public static GetIsVariableState ( this customVariable, IElement containingElement = null ) : bool
customVariable this
containingElement IElement
Résultat bool

GetRuntimeType() public static méthode

public static GetRuntimeType ( this customVariable ) : Type
customVariable this
Résultat Type

GetTypeConverter() public static méthode

public static GetTypeConverter ( this customVariable, IElement containingElement ) : TypeConverter
customVariable this
containingElement IElement
Résultat TypeConverter

GetTypeConverter() public static méthode

public static GetTypeConverter ( this customVariable, IElement containingElement, StateSave stateSave, FlatRedBall glueState ) : TypeConverter
customVariable this
containingElement IElement
stateSave StateSave
glueState FlatRedBall
Résultat TypeConverter

HasAccompanyingVelocityConsideringTunneling() public static méthode

public static HasAccompanyingVelocityConsideringTunneling ( this variable, IElement container, int maxDepth ) : bool
variable this
container IElement
maxDepth int
Résultat bool

SetDefaultValueAccordingToType() public static méthode

public static SetDefaultValueAccordingToType ( this customVariable, string typeAsString ) : void
customVariable this
typeAsString string
Résultat void