C# Class Nanook.TheGhost.FileManager

Manages files being imported and eported to and from TheGHOST respectively
ファイルを表示 Open project: Nanook/TheGHOST Class Usage Examples

Public Methods

Method Description
AddNew ( GameFile gameFiles ) : void

A new file has been created, used when new files are to be written/updated in the game.

ChangedFiles ( ) : Nanook.TheGhost.GameFile[]
CopyFilesToProject ( ProjectSettings settings, DirectoryInfo pDir ) : void

Copy files to a project folder

CountAllChanged ( ) : int

Returns how many items are to be updated, useful for calculating progress

DeleteFilesInWorkingFolders ( ) : void
Export ( GameFile gameFiles, FileCopyProgress callback ) : Nanook.TheGhost.GameFile[]

Write files to the game

ExportAllChanged ( FileCopyProgress callback ) : Nanook.TheGhost.GameFile[]

Writes all modified files that have been read with FileImport or added with FileAddNew

ExportAllChangedSmart ( FileCopyProgress callback ) : Nanook.TheGhost.GameFile[]

Writes all modified files that have been read with FileImport or added with FileAddNew, skips dats when wads failed

File ( string gameName ) : GameFile
Import ( GameFile gameFiles, FileCopyProgress callback ) : Nanook.TheGhost.GameFile[]

Import ( GameFileType gameFileType, FileCopyProgress callback ) : Nanook.TheGhost.GameFile[]

ImportBackgroundAudio ( FileCopyProgress callback ) : Nanook.TheGhost.GameFile[]

Imports the notes PAK files for all songs in the EditSongs

ImportNotesPaks ( FileCopyProgress callback ) : Nanook.TheGhost.GameFile[]

Imports the notes PAK files for all changed songs

ImportPaks ( FileCopyProgress callback ) : Nanook.TheGhost.GameFile[]

Imports the QB/PAB/DBG paks

LoadQbFile ( string qbFilename ) : QbFile
RemoveAndDeleteAllFiles ( ) : void
RemoveAndDeleteFiles ( GameFileType type ) : void
RemoveFiles ( GameFileType type ) : void
UpdatePaks ( ) : void

Private Methods

Method Description
FileManager ( Project project, IPluginFileCopy fileCopyPlugin, string gameLocation ) : System
ProjectSongSettingsFolder ( ProjectTierSong pts, DirectoryInfo pDir ) : DirectoryInfo
addFile ( FileInfo s, DirectoryInfo dd, List srcFiles, List outFiles ) : FileInfo
copyMoveProjectFiles ( DirectoryInfo pDir, List srcFiles, List dstFiles ) : void
loadDbgQBFile ( string qbFilename ) : string
localGameFilename ( string gameFilename ) : string

Method Details

AddNew() public method

A new file has been created, used when new files are to be written/updated in the game.
public AddNew ( GameFile gameFiles ) : void
gameFiles GameFile
return void

ChangedFiles() public method

public ChangedFiles ( ) : Nanook.TheGhost.GameFile[]
return Nanook.TheGhost.GameFile[]

CopyFilesToProject() public method

Copy files to a project folder
public CopyFilesToProject ( ProjectSettings settings, DirectoryInfo pDir ) : void
settings ProjectSettings
pDir System.IO.DirectoryInfo
return void

CountAllChanged() public method

Returns how many items are to be updated, useful for calculating progress
public CountAllChanged ( ) : int
return int

DeleteFilesInWorkingFolders() public method

public DeleteFilesInWorkingFolders ( ) : void
return void

Export() public method

Write files to the game
public Export ( GameFile gameFiles, FileCopyProgress callback ) : Nanook.TheGhost.GameFile[]
gameFiles GameFile
callback FileCopyProgress
return Nanook.TheGhost.GameFile[]

ExportAllChanged() public method

Writes all modified files that have been read with FileImport or added with FileAddNew
public ExportAllChanged ( FileCopyProgress callback ) : Nanook.TheGhost.GameFile[]
callback FileCopyProgress
return Nanook.TheGhost.GameFile[]

ExportAllChangedSmart() public method

Writes all modified files that have been read with FileImport or added with FileAddNew, skips dats when wads failed
public ExportAllChangedSmart ( FileCopyProgress callback ) : Nanook.TheGhost.GameFile[]
callback FileCopyProgress
return Nanook.TheGhost.GameFile[]

File() public method

public File ( string gameName ) : GameFile
gameName string
return GameFile

Import() public method

public Import ( GameFile gameFiles, FileCopyProgress callback ) : Nanook.TheGhost.GameFile[]
gameFiles GameFile
callback FileCopyProgress
return Nanook.TheGhost.GameFile[]

Import() public method

public Import ( GameFileType gameFileType, FileCopyProgress callback ) : Nanook.TheGhost.GameFile[]
gameFileType GameFileType
callback FileCopyProgress
return Nanook.TheGhost.GameFile[]

ImportBackgroundAudio() public method

Imports the notes PAK files for all songs in the EditSongs
public ImportBackgroundAudio ( FileCopyProgress callback ) : Nanook.TheGhost.GameFile[]
callback FileCopyProgress
return Nanook.TheGhost.GameFile[]

ImportNotesPaks() public method

Imports the notes PAK files for all changed songs
public ImportNotesPaks ( FileCopyProgress callback ) : Nanook.TheGhost.GameFile[]
callback FileCopyProgress
return Nanook.TheGhost.GameFile[]

ImportPaks() public method

Imports the QB/PAB/DBG paks
public ImportPaks ( FileCopyProgress callback ) : Nanook.TheGhost.GameFile[]
callback FileCopyProgress
return Nanook.TheGhost.GameFile[]

LoadQbFile() public method

public LoadQbFile ( string qbFilename ) : QbFile
qbFilename string
return Nanook.QueenBee.Parser.QbFile

RemoveAndDeleteAllFiles() public method

public RemoveAndDeleteAllFiles ( ) : void
return void

RemoveAndDeleteFiles() public method

public RemoveAndDeleteFiles ( GameFileType type ) : void
type GameFileType
return void

RemoveFiles() public method

public RemoveFiles ( GameFileType type ) : void
type GameFileType
return void

UpdatePaks() public method

public UpdatePaks ( ) : void
return void