C# Class FlatRedBall.Glue.SaveClasses.NamedObjectSaveExtensionMethods

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

Méthodes publiques

Méthode Description
AddNewGenericInstructionFor ( this instance, string member, Type type ) : CustomVariableInNamedObject
CanBeInList ( this instance, NamedObjectSave listNos ) : bool
Clone ( this instance ) : NamedObjectSave
DoesMemberNeedToBeSetByContainer ( this instance, string memberName ) : bool
FixEnumerationTypes ( this instance ) : void
GetAdditionsNeededForChangingType ( string oldType, string newType, List valuesToBeSet, List neededVariables, List neededStates, List neededCategories ) : void
GetAssetTypeInfo ( this instance ) : AssetTypeInfo
GetContainer ( this instance ) : IElement
GetContainerType ( this instance ) : ContainerType
GetCustomVariable ( this namedObject, string variableName ) : CustomVariableInNamedObject
GetDefiningNamedObjectSave ( this instance, IElement container ) : NamedObjectSave
GetEffectiveValue ( this instance, string variableName ) : object

Returns the value of a variable either set in the NamedObjectSave (if it is set there) or in the underlying Entity if not

GetIsScalableEntity ( this instance ) : bool
GetMessageWhySwitchMightCauseProblems ( this namedObjectSave, string oldType ) : string
GetQualifiedClassType ( this instance ) : string
GetReferencedElement ( this instance ) : IElement
NamedObjectSaveToString ( NamedObjectSave nos ) : string
PostLoadLogic ( this instance ) : void
ResetVariablesReferencing ( this namedObject, ReferencedFileSave rfs ) : void
SetPropertyValue ( this instance, string propertyName, object valueToSet ) : InstructionSave
UpdateCustomProperties ( this instance ) : void

Updates the InstructionSaves in the argument NamedObject according to the source type. This method will never remove instructions, but will add them if the NOS comes from a type that has properties that are currently not represented in the NOS's Instructions.

Private Methods

Méthode Description
UpdateTypedMembers ( NamedObjectSave instance ) : void

Method Details

AddNewGenericInstructionFor() public static méthode

public static AddNewGenericInstructionFor ( this instance, string member, Type type ) : CustomVariableInNamedObject
instance this
member string
type System.Type
Résultat CustomVariableInNamedObject

CanBeInList() public static méthode

public static CanBeInList ( this instance, NamedObjectSave listNos ) : bool
instance this
listNos NamedObjectSave
Résultat bool

Clone() public static méthode

public static Clone ( this instance ) : NamedObjectSave
instance this
Résultat NamedObjectSave

DoesMemberNeedToBeSetByContainer() public static méthode

public static DoesMemberNeedToBeSetByContainer ( this instance, string memberName ) : bool
instance this
memberName string
Résultat bool

FixEnumerationTypes() public static méthode

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

GetAdditionsNeededForChangingType() public static méthode

public static GetAdditionsNeededForChangingType ( string oldType, string newType, List valuesToBeSet, List neededVariables, List neededStates, List neededCategories ) : void
oldType string
newType string
valuesToBeSet List
neededVariables List
neededStates List
neededCategories List
Résultat void

GetAssetTypeInfo() public static méthode

public static GetAssetTypeInfo ( this instance ) : AssetTypeInfo
instance this
Résultat AssetTypeInfo

GetContainer() public static méthode

public static GetContainer ( this instance ) : IElement
instance this
Résultat IElement

GetContainerType() public static méthode

public static GetContainerType ( this instance ) : ContainerType
instance this
Résultat ContainerType

GetCustomVariable() public static méthode

public static GetCustomVariable ( this namedObject, string variableName ) : CustomVariableInNamedObject
namedObject this
variableName string
Résultat CustomVariableInNamedObject

GetDefiningNamedObjectSave() public static méthode

public static GetDefiningNamedObjectSave ( this instance, IElement container ) : NamedObjectSave
instance this
container IElement
Résultat NamedObjectSave

GetEffectiveValue() public static méthode

Returns the value of a variable either set in the NamedObjectSave (if it is set there) or in the underlying Entity if not
public static GetEffectiveValue ( this instance, string variableName ) : object
instance this The NamedObjectSave to get the variable from.
variableName string The name of the variable, such as "ScaleX"
Résultat object

GetIsScalableEntity() public static méthode

public static GetIsScalableEntity ( this instance ) : bool
instance this
Résultat bool

GetMessageWhySwitchMightCauseProblems() public static méthode

public static GetMessageWhySwitchMightCauseProblems ( this namedObjectSave, string oldType ) : string
namedObjectSave this
oldType string
Résultat string

GetQualifiedClassType() public static méthode

public static GetQualifiedClassType ( this instance ) : string
instance this
Résultat string

GetReferencedElement() public static méthode

public static GetReferencedElement ( this instance ) : IElement
instance this
Résultat IElement

NamedObjectSaveToString() public static méthode

public static NamedObjectSaveToString ( NamedObjectSave nos ) : string
nos NamedObjectSave
Résultat string

PostLoadLogic() public static méthode

public static PostLoadLogic ( this instance ) : void
instance this
Résultat void

ResetVariablesReferencing() public static méthode

public static ResetVariablesReferencing ( this namedObject, ReferencedFileSave rfs ) : void
namedObject this
rfs ReferencedFileSave
Résultat void

SetPropertyValue() public static méthode

public static SetPropertyValue ( this instance, string propertyName, object valueToSet ) : InstructionSave
instance this
propertyName string
valueToSet object
Résultat InstructionSave

UpdateCustomProperties() public static méthode

Updates the InstructionSaves in the argument NamedObject according to the source type. This method will never remove instructions, but will add them if the NOS comes from a type that has properties that are currently not represented in the NOS's Instructions.
public static UpdateCustomProperties ( this instance ) : void
instance this The NamedObject to update properties on.
Résultat void