C# 클래스 FlatRedBall.Glue.SaveClasses.NamedObjectSaveExtensionMethods

파일 보기 프로젝트 열기: vchelaru/FlatRedBall 1 사용 예제들

공개 메소드들

메소드 설명
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