C# Класс Nanook.TheGhost.FileManager

Manages files being imported and eported to and from TheGHOST respectively
Показать файл Открыть проект Примеры использования класса

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

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

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

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

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

AddNew() публичный Метод

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

ChangedFiles() публичный Метод

public ChangedFiles ( ) : Nanook.TheGhost.GameFile[]
Результат Nanook.TheGhost.GameFile[]

CopyFilesToProject() публичный Метод

Copy files to a project folder
public CopyFilesToProject ( ProjectSettings settings, DirectoryInfo pDir ) : void
settings ProjectSettings
pDir System.IO.DirectoryInfo
Результат void

CountAllChanged() публичный Метод

Returns how many items are to be updated, useful for calculating progress
public CountAllChanged ( ) : int
Результат int

DeleteFilesInWorkingFolders() публичный Метод

public DeleteFilesInWorkingFolders ( ) : void
Результат void

Export() публичный Метод

Write files to the game
public Export ( GameFile gameFiles, FileCopyProgress callback ) : Nanook.TheGhost.GameFile[]
gameFiles GameFile
callback FileCopyProgress
Результат Nanook.TheGhost.GameFile[]

ExportAllChanged() публичный Метод

Writes all modified files that have been read with FileImport or added with FileAddNew
public ExportAllChanged ( FileCopyProgress callback ) : Nanook.TheGhost.GameFile[]
callback FileCopyProgress
Результат Nanook.TheGhost.GameFile[]

ExportAllChangedSmart() публичный Метод

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
Результат Nanook.TheGhost.GameFile[]

File() публичный Метод

public File ( string gameName ) : GameFile
gameName string
Результат GameFile

Import() публичный Метод

public Import ( GameFile gameFiles, FileCopyProgress callback ) : Nanook.TheGhost.GameFile[]
gameFiles GameFile
callback FileCopyProgress
Результат Nanook.TheGhost.GameFile[]

Import() публичный Метод

public Import ( GameFileType gameFileType, FileCopyProgress callback ) : Nanook.TheGhost.GameFile[]
gameFileType GameFileType
callback FileCopyProgress
Результат Nanook.TheGhost.GameFile[]

ImportBackgroundAudio() публичный Метод

Imports the notes PAK files for all songs in the EditSongs
public ImportBackgroundAudio ( FileCopyProgress callback ) : Nanook.TheGhost.GameFile[]
callback FileCopyProgress
Результат Nanook.TheGhost.GameFile[]

ImportNotesPaks() публичный Метод

Imports the notes PAK files for all changed songs
public ImportNotesPaks ( FileCopyProgress callback ) : Nanook.TheGhost.GameFile[]
callback FileCopyProgress
Результат Nanook.TheGhost.GameFile[]

ImportPaks() публичный Метод

Imports the QB/PAB/DBG paks
public ImportPaks ( FileCopyProgress callback ) : Nanook.TheGhost.GameFile[]
callback FileCopyProgress
Результат Nanook.TheGhost.GameFile[]

LoadQbFile() публичный Метод

public LoadQbFile ( string qbFilename ) : QbFile
qbFilename string
Результат Nanook.QueenBee.Parser.QbFile

RemoveAndDeleteAllFiles() публичный Метод

public RemoveAndDeleteAllFiles ( ) : void
Результат void

RemoveAndDeleteFiles() публичный Метод

public RemoveAndDeleteFiles ( GameFileType type ) : void
type GameFileType
Результат void

RemoveFiles() публичный Метод

public RemoveFiles ( GameFileType type ) : void
type GameFileType
Результат void

UpdatePaks() публичный Метод

public UpdatePaks ( ) : void
Результат void