C# Класс FlatRedBall.Glue.SaveClasses.CustomVariableExtensionMethods

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Описание методов

CustomVariableToString() публичный статический Метод

public static CustomVariableToString ( CustomVariable cv ) : string
cv CustomVariable
Результат string

FixEnumerationTypes() публичный статический Метод

public static FixEnumerationTypes ( this customVariable ) : void
customVariable this
Результат void

GetDefiningCustomVariable() публичный статический Метод

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.
Результат CustomVariable

GetIsAnimationChain() публичный статический Метод

public static GetIsAnimationChain ( this variable ) : bool
variable this
Результат bool

GetIsCsv() публичный статический Метод

public static GetIsCsv ( this customVariable ) : bool
customVariable this
Результат bool

GetIsEnumeration() публичный статический Метод

public static GetIsEnumeration ( this customVariable ) : bool
customVariable this
Результат bool

GetIsExposingVariable() публичный статический Метод

public static GetIsExposingVariable ( this customVariable, IElement container ) : bool
customVariable this
container IElement
Результат bool

GetIsFile() публичный статический Метод

public static GetIsFile ( Type runtimeType ) : bool
runtimeType System.Type
Результат bool

GetIsFile() публичный статический Метод

public static GetIsFile ( string typeName ) : bool
typeName string
Результат bool

GetIsFile() публичный статический Метод

public static GetIsFile ( this customVariable ) : bool
customVariable this
Результат bool

GetIsListCsv() публичный статический Метод

public static GetIsListCsv ( this customVariable ) : bool
customVariable this
Результат bool

GetIsNewVariable() публичный статический Метод

public static GetIsNewVariable ( this customVariable, IElement container ) : bool
customVariable this
container IElement
Результат bool

GetIsSourceFile() публичный статический Метод

public static GetIsSourceFile ( this customVariable, IElement container ) : bool
customVariable this
container IElement
Результат bool

GetIsTunneling() публичный статический Метод

public static GetIsTunneling ( this customVariable ) : bool
customVariable this
Результат bool

GetIsVariableState() публичный статический Метод

public static GetIsVariableState ( this customVariable, IElement containingElement = null ) : bool
customVariable this
containingElement IElement
Результат bool

GetRuntimeType() публичный статический Метод

public static GetRuntimeType ( this customVariable ) : Type
customVariable this
Результат Type

GetTypeConverter() публичный статический Метод

public static GetTypeConverter ( this customVariable, IElement containingElement ) : TypeConverter
customVariable this
containingElement IElement
Результат TypeConverter

GetTypeConverter() публичный статический Метод

public static GetTypeConverter ( this customVariable, IElement containingElement, StateSave stateSave, FlatRedBall glueState ) : TypeConverter
customVariable this
containingElement IElement
stateSave StateSave
glueState FlatRedBall
Результат TypeConverter

HasAccompanyingVelocityConsideringTunneling() публичный статический Метод

public static HasAccompanyingVelocityConsideringTunneling ( this variable, IElement container, int maxDepth ) : bool
variable this
container IElement
maxDepth int
Результат bool

SetDefaultValueAccordingToType() публичный статический Метод

public static SetDefaultValueAccordingToType ( this customVariable, string typeAsString ) : void
customVariable this
typeAsString string
Результат void