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

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

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

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

Приватные методы

Метод Описание
UpdateTypedMembers ( NamedObjectSave instance ) : void

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

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

public static AddNewGenericInstructionFor ( this instance, string member, Type type ) : CustomVariableInNamedObject
instance this
member string
type System.Type
Результат CustomVariableInNamedObject

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

public static CanBeInList ( this instance, NamedObjectSave listNos ) : bool
instance this
listNos NamedObjectSave
Результат bool

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

public static Clone ( this instance ) : NamedObjectSave
instance this
Результат NamedObjectSave

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

public static DoesMemberNeedToBeSetByContainer ( this instance, string memberName ) : bool
instance this
memberName string
Результат bool

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

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

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

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

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

public static GetAssetTypeInfo ( this instance ) : AssetTypeInfo
instance this
Результат AssetTypeInfo

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

public static GetContainer ( this instance ) : IElement
instance this
Результат IElement

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

public static GetContainerType ( this instance ) : ContainerType
instance this
Результат ContainerType

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

public static GetCustomVariable ( this namedObject, string variableName ) : CustomVariableInNamedObject
namedObject this
variableName string
Результат CustomVariableInNamedObject

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

public static GetDefiningNamedObjectSave ( this instance, IElement container ) : NamedObjectSave
instance this
container IElement
Результат NamedObjectSave

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

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

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

public static GetIsScalableEntity ( this instance ) : bool
instance this
Результат bool

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

public static GetMessageWhySwitchMightCauseProblems ( this namedObjectSave, string oldType ) : string
namedObjectSave this
oldType string
Результат string

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

public static GetQualifiedClassType ( this instance ) : string
instance this
Результат string

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

public static GetReferencedElement ( this instance ) : IElement
instance this
Результат IElement

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

public static NamedObjectSaveToString ( NamedObjectSave nos ) : string
nos NamedObjectSave
Результат string

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

public static PostLoadLogic ( this instance ) : void
instance this
Результат void

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

public static ResetVariablesReferencing ( this namedObject, ReferencedFileSave rfs ) : void
namedObject this
rfs ReferencedFileSave
Результат void

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

public static SetPropertyValue ( this instance, string propertyName, object valueToSet ) : InstructionSave
instance this
propertyName string
valueToSet object
Результат InstructionSave

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

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