Method | Description | |
---|---|---|
DeleteModFile ( [ type, [ id ) : void |
Deletes a file in ModDir. Will not touch files in archives or in BaseDir.
|
|
FileExists ( [ type, [ id, bool searchArchives = true ) : bool |
Checks whether a certain content file exists.
|
|
GetFileList ( [ type, [ extension ) : NamedCollection |
Gets a list of all files of a certain type
|
|
GetFileStream ( [ type, [ id ) : Stream |
Gets a reading stream for a content file (searches in archives)
|
|
LoadArchives ( ) : void |
Loads any ArchiveFileExt archives in BaseDir and ModDir or specified by EnvVarNameBaseArchives or EnvVarNamerModArchives.
|
Method | Description | |
---|---|---|
AddArchivesToList ( NamedCollection |
Finds all files in archiveData ending with extension and adds them to the files collection
|
|
AddDirectoryToList ( NamedCollection |
Recursively finds all files in directory ending with extension and adds them to the files list.
|
|
AddEntry ( ContentArchiveEntry>.this |
||
AddFileToList ( NamedCollection |
Adds a specific file to the files list.
|
|
CloseArchives ( ) : void | ||
CreateDirPath ( [ type ) : string | ||
CreateFilePath ( [ type, [ id ) : string | ||
GetFilePath ( [ type, [ id ) : string | ||
LoadArchive ( string path, ContentArchiveEntry>.Dictionary |
public static DeleteModFile ( [ type, [ id ) : void | ||
type | [ | The type of file (e.g. Textures, Sounds, ...). |
id | [ | The file name of the content. |
return | void |
public static FileExists ( [ type, [ id, bool searchArchives = true ) : bool | ||
type | [ | The type of file (e.g. Textures, Sounds, ...). |
id | [ | The file name of the content. |
searchArchives | bool | Whether to search for the file in archives as well. |
return | bool |
public static GetFileList ( [ type, [ extension ) : NamedCollection |
||
type | [ | The type of files you want (e.g. Textures, Sounds, ...) |
extension | [ | The file extension to so search for |
return | NamedCollection |
public static GetFileStream ( [ type, [ id ) : Stream | ||
type | [ | The type of file (e.g. Textures, Sounds, ...). |
id | [ | The file name of the content. |
return | Stream |