C# 클래스 FlatRedBall.Glue.ProjectManager

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

Private Properties

프로퍼티 타입 설명
AddFileToContentProject void
AddScreen void
AddScreen void
AddSyncedProject void
FindGameClass string
FindGameClass void
InheritanceVerificationHelper CheckResult
LoadOrCreateProjectSpecificSettings bool
ProjectManager System
ReferenceVerificationHelper CheckResult
RemoveItemFromAllProjects void
RemoveItemFromAllProjects void
RemoveItemFromProject void
RemoveItemFromProject void
RemoveSyncedProject void
RemoveTypeAtEndOfName string
ShouldFileBeInContentProject bool
UpdateCurrentTreeNodeAndCodeAndSave void
VerifyInheritanceGraph CheckResult
VerifyReferenceGraph CheckResult
VersionIsOutdated bool

공개 메소드들

메소드 설명
AddScreen ( string screenName ) : ScreenSave
AddSyncedProject ( string fileName ) : ProjectBase
CollectionContains ( ICollection collection, string itemToSearchFor ) : bool
GetProjectByName ( string name ) : ProjectBase
GetProjectByTypeId ( string projectId ) : ProjectBase
Initialize ( ) : void
IsContent ( string file ) : bool
MakeAbsolute ( string relativePath ) : string
MakeAbsolute ( string relativePath, bool forceAsContent ) : string

Converts a relative path to an absolute path assuming that the relative path is relative to the base Project's directory. This determines whether to use the base project or the content project according to the extension of the file or whether forceAsContent is true.

MakeRelativeContent ( string relativePath ) : string
RemoveCodeFilesForElement ( List filesThatCouldBeRemoved, IElement element ) : void
RemoveCustomVariable ( CustomVariable customVariable, List additionalFilesToRemove ) : void
RemoveNamedObject ( NamedObjectSave namedObjectToRemove ) : void
RemoveNamedObject ( NamedObjectSave namedObjectToRemove, bool performSave, bool updateUi, List additionalFilesToRemove ) : void
SaveProjects ( ) : void
SortAndUpdateUI ( EntitySave entitySave ) : void
SortAndUpdateUI ( ScreenSave screenSave ) : void
StatusCheck ( ) : CheckResult
UnloadProject ( bool isExiting ) : void
UpdateAllDerivedElementFromBaseValues ( bool performSave, bool regenerateCode ) : void
UpdateExternallyBuiltFile ( string changedFile ) : bool
UpdateFileMembershipInProject ( ProjectBase project, string fileRelativeToProject, bool useContentPipeline, bool shouldLink, string parentFile = null ) : bool

Adds the argument fileRelativeToProject to the argument project if it's not already part of the project.

UpdateFileMembershipInProject ( ReferencedFileSave referencedFileSave ) : bool

Updates the presence of the RFS in the main project. If the RFS has project specific files, then those files are updated in the appropriate synced project.

This method does not update synced projects if the synced projects use the same file. The reason is because this is taken care of when the projects are saved later on.

비공개 메소드들

메소드 설명
AddFileToContentProject ( ProjectBase project, bool useContentPipeline, bool shouldLink, string fileToAddAbsolute ) : void
AddScreen ( ScreenSave screenSave ) : void
AddScreen ( ScreenSave screenSave, bool suppressAlreadyExistingFileMessage ) : void
AddSyncedProject ( VSHelpers vsp ) : void
FindGameClass ( ProjectBase projectBase ) : string
FindGameClass ( ) : void
InheritanceVerificationHelper ( INamedObjectContainer &node, string &cycleString ) : CheckResult
LoadOrCreateProjectSpecificSettings ( string projectFolder ) : bool
ProjectManager ( ) : System
ReferenceVerificationHelper ( IElement element, string &cycleString, Stack visitedElements ) : CheckResult
RemoveItemFromAllProjects ( string itemName ) : void
RemoveItemFromAllProjects ( string itemName, bool performSave ) : void
RemoveItemFromProject ( ProjectBase projectBaseToRemoveFrom, string itemName ) : void
RemoveItemFromProject ( ProjectBase projectBaseToRemoveFrom, string itemName, bool performSave ) : void
RemoveSyncedProject ( VSHelpers project ) : void
RemoveTypeAtEndOfName ( string name ) : string
ShouldFileBeInContentProject ( string fileToAddAbsolute ) : bool
UpdateCurrentTreeNodeAndCodeAndSave ( bool generateAndSave ) : void
VerifyInheritanceGraph ( INamedObjectContainer node ) : CheckResult
VerifyReferenceGraph ( IElement element ) : CheckResult
VersionIsOutdated ( string projectVersion, string webVersion ) : bool

메소드 상세

AddScreen() 공개 정적인 메소드

public static AddScreen ( string screenName ) : ScreenSave
screenName string
리턴 FlatRedBall.Glue.SaveClasses.ScreenSave

AddSyncedProject() 공개 정적인 메소드

public static AddSyncedProject ( string fileName ) : ProjectBase
fileName string
리턴 ProjectBase

CollectionContains() 공개 정적인 메소드

public static CollectionContains ( ICollection collection, string itemToSearchFor ) : bool
collection ICollection
itemToSearchFor string
리턴 bool

GetProjectByName() 공개 정적인 메소드

public static GetProjectByName ( string name ) : ProjectBase
name string
리턴 ProjectBase

GetProjectByTypeId() 공개 정적인 메소드

public static GetProjectByTypeId ( string projectId ) : ProjectBase
projectId string
리턴 ProjectBase

Initialize() 공개 정적인 메소드

public static Initialize ( ) : void
리턴 void

IsContent() 공개 정적인 메소드

public static IsContent ( string file ) : bool
file string
리턴 bool

MakeAbsolute() 공개 정적인 메소드

public static MakeAbsolute ( string relativePath ) : string
relativePath string
리턴 string

MakeAbsolute() 공개 정적인 메소드

Converts a relative path to an absolute path assuming that the relative path is relative to the base Project's directory. This determines whether to use the base project or the content project according to the extension of the file or whether forceAsContent is true.
public static MakeAbsolute ( string relativePath, bool forceAsContent ) : string
relativePath string The path to make absolute.
forceAsContent bool Whether to force as content - can be passed as true if the file should be treated as content despite its extension.
리턴 string

MakeRelativeContent() 공개 정적인 메소드

public static MakeRelativeContent ( string relativePath ) : string
relativePath string
리턴 string

RemoveCodeFilesForElement() 공개 정적인 메소드

public static RemoveCodeFilesForElement ( List filesThatCouldBeRemoved, IElement element ) : void
filesThatCouldBeRemoved List
element IElement
리턴 void

RemoveCustomVariable() 공개 정적인 메소드

public static RemoveCustomVariable ( CustomVariable customVariable, List additionalFilesToRemove ) : void
customVariable FlatRedBall.Glue.SaveClasses.CustomVariable
additionalFilesToRemove List
리턴 void

RemoveNamedObject() 공개 정적인 메소드

public static RemoveNamedObject ( NamedObjectSave namedObjectToRemove ) : void
namedObjectToRemove FlatRedBall.Glue.SaveClasses.NamedObjectSave
리턴 void

RemoveNamedObject() 공개 정적인 메소드

public static RemoveNamedObject ( NamedObjectSave namedObjectToRemove, bool performSave, bool updateUi, List additionalFilesToRemove ) : void
namedObjectToRemove FlatRedBall.Glue.SaveClasses.NamedObjectSave
performSave bool
updateUi bool
additionalFilesToRemove List
리턴 void

SaveProjects() 공개 정적인 메소드

public static SaveProjects ( ) : void
리턴 void

SortAndUpdateUI() 공개 정적인 메소드

public static SortAndUpdateUI ( EntitySave entitySave ) : void
entitySave FlatRedBall.Glue.SaveClasses.EntitySave
리턴 void

SortAndUpdateUI() 공개 정적인 메소드

public static SortAndUpdateUI ( ScreenSave screenSave ) : void
screenSave FlatRedBall.Glue.SaveClasses.ScreenSave
리턴 void

StatusCheck() 공개 정적인 메소드

public static StatusCheck ( ) : CheckResult
리턴 CheckResult

UnloadProject() 공개 정적인 메소드

public static UnloadProject ( bool isExiting ) : void
isExiting bool
리턴 void

UpdateAllDerivedElementFromBaseValues() 공개 정적인 메소드

public static UpdateAllDerivedElementFromBaseValues ( bool performSave, bool regenerateCode ) : void
performSave bool
regenerateCode bool
리턴 void

UpdateExternallyBuiltFile() 공개 정적인 메소드

public static UpdateExternallyBuiltFile ( string changedFile ) : bool
changedFile string
리턴 bool

UpdateFileMembershipInProject() 공개 정적인 메소드

Adds the argument fileRelativeToProject to the argument project if it's not already part of the project.
public static UpdateFileMembershipInProject ( ProjectBase project, string fileRelativeToProject, bool useContentPipeline, bool shouldLink, string parentFile = null ) : bool
project ProjectBase
fileRelativeToProject string
useContentPipeline bool
shouldLink bool
parentFile string
리턴 bool

UpdateFileMembershipInProject() 공개 정적인 메소드

Updates the presence of the RFS in the main project. If the RFS has project specific files, then those files are updated in the appropriate synced project.
This method does not update synced projects if the synced projects use the same file. The reason is because this is taken care of when the projects are saved later on.
public static UpdateFileMembershipInProject ( ReferencedFileSave referencedFileSave ) : bool
referencedFileSave FlatRedBall.Glue.SaveClasses.ReferencedFileSave The RFS representing the file to update membership on.
리턴 bool