Interface to get files that are part of the game data. Note that the interface does not have any save or write function. This is not meant to create persistent file systems, but to create virtual file systems from which to read.
More...
#include <IFileLoader.h>
|
| virtual bool | IsValid () const =0 |
| | Tells us if the file loader can be used at the moment.
|
| virtual std::vector< char > | GetFile (const std::string &path)=0 |
| | Give us a binary representation of a file in a filesystem.
|
| virtual bool | HasFile (const std::string &path) const =0 |
| | Tells us if the filesystem has a file.
|
| virtual std::vector< std::string > | GetAvailableFiles () const =0 |
| | Tells us which files are in the filesystem.
|
Interface to get files that are part of the game data. Note that the interface does not have any save or write function. This is not meant to create persistent file systems, but to create virtual file systems from which to read.
◆ GetAvailableFiles()
| virtual std::vector< std::string > Mochi::FS::IFileLoader::GetAvailableFiles |
( |
| ) |
const |
|
pure virtual |
◆ GetFile()
| virtual std::vector< char > Mochi::FS::IFileLoader::GetFile |
( |
const std::string & | path | ) |
|
|
pure virtual |
Give us a binary representation of a file in a filesystem.
- Exceptions
-
- Parameters
-
| path | A path, or unique identifier to the file |
- Returns
- A vector of chars, or binary representation of a file.
Implemented in Mochi::FS::PackFile, and Mochi::FS::SystemFileLoader.
◆ HasFile()
| virtual bool Mochi::FS::IFileLoader::HasFile |
( |
const std::string & | path | ) |
const |
|
pure virtual |
◆ IsValid()
| virtual bool Mochi::FS::IFileLoader::IsValid |
( |
| ) |
const |
|
pure virtual |
The documentation for this class was generated from the following file: