C# Class FlatRedBall.Glue.SaveClasses.CustomVariableExtensionMethods

ファイルを表示 Open project: vchelaru/FlatRedBall Class Usage Examples

Public Methods

Method 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 method

public static CustomVariableToString ( CustomVariable cv ) : string
cv CustomVariable
return string

FixEnumerationTypes() public static method

public static FixEnumerationTypes ( this customVariable ) : void
customVariable this
return void

GetDefiningCustomVariable() public static method

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.
return CustomVariable

GetIsAnimationChain() public static method

public static GetIsAnimationChain ( this variable ) : bool
variable this
return bool

GetIsCsv() public static method

public static GetIsCsv ( this customVariable ) : bool
customVariable this
return bool

GetIsEnumeration() public static method

public static GetIsEnumeration ( this customVariable ) : bool
customVariable this
return bool

GetIsExposingVariable() public static method

public static GetIsExposingVariable ( this customVariable, IElement container ) : bool
customVariable this
container IElement
return bool

GetIsFile() public static method

public static GetIsFile ( Type runtimeType ) : bool
runtimeType System.Type
return bool

GetIsFile() public static method

public static GetIsFile ( string typeName ) : bool
typeName string
return bool

GetIsFile() public static method

public static GetIsFile ( this customVariable ) : bool
customVariable this
return bool

GetIsListCsv() public static method

public static GetIsListCsv ( this customVariable ) : bool
customVariable this
return bool

GetIsNewVariable() public static method

public static GetIsNewVariable ( this customVariable, IElement container ) : bool
customVariable this
container IElement
return bool

GetIsSourceFile() public static method

public static GetIsSourceFile ( this customVariable, IElement container ) : bool
customVariable this
container IElement
return bool

GetIsTunneling() public static method

public static GetIsTunneling ( this customVariable ) : bool
customVariable this
return bool

GetIsVariableState() public static method

public static GetIsVariableState ( this customVariable, IElement containingElement = null ) : bool
customVariable this
containingElement IElement
return bool

GetRuntimeType() public static method

public static GetRuntimeType ( this customVariable ) : Type
customVariable this
return Type

GetTypeConverter() public static method

public static GetTypeConverter ( this customVariable, IElement containingElement ) : TypeConverter
customVariable this
containingElement IElement
return TypeConverter

GetTypeConverter() public static method

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

HasAccompanyingVelocityConsideringTunneling() public static method

public static HasAccompanyingVelocityConsideringTunneling ( this variable, IElement container, int maxDepth ) : bool
variable this
container IElement
maxDepth int
return bool

SetDefaultValueAccordingToType() public static method

public static SetDefaultValueAccordingToType ( this customVariable, string typeAsString ) : void
customVariable this
typeAsString string
return void