#include <io.hpp>
Definition at line 132 of file io.hpp.
◆ PackageManager() [1/2]
Eng3D::IO::PackageManager::PackageManager |
( |
| ) |
|
|
delete |
◆ PackageManager() [2/2]
Eng3D::IO::PackageManager::PackageManager |
( |
Eng3D::State & |
s, |
|
|
const std::vector< std::string > & |
pkg_paths |
|
) |
| |
◆ ~PackageManager()
Eng3D::IO::PackageManager::~PackageManager |
( |
| ) |
|
|
default |
◆ get_multiple()
Obtains multiple assets iff they share a common path (useful for concating files that might clash, such as lua scripts)
- Parameters
-
- Returns
- std::vector<std::shared_ptr<Eng3D::IO::Asset::Base>>
Definition at line 157 of file io.cpp.
◆ get_multiple_prefix()
Obtains all assets starting with a given prefix.
- Parameters
-
prefix | The prefix to check for |
- Returns
- std::vector<std::shared_ptr<Eng3D::IO::Asset::Base>>
Definition at line 169 of file io.cpp.
◆ get_paths()
std::vector< std::string > Eng3D::IO::PackageManager::get_paths |
( |
void |
| ) |
const |
Obtain all the paths that are currently under the management of a package, that is return the absolute root directory of all packages.
- Returns
- std::vector<std::string> The list of paths
Definition at line 181 of file io.cpp.
◆ get_unique()
Obtaining an unique asset means the "first-found" policy applies.
- Parameters
-
- Returns
- std::shared_ptr<Eng3D::IO::Asset::Base> Obtained asset object
Definition at line 146 of file io.cpp.
◆ recursive_filesystem_walk()
void Eng3D::IO::PackageManager::recursive_filesystem_walk |
( |
Eng3D::IO::Package & |
package, |
|
|
const std::string & |
root, |
|
|
const std::string & |
current |
|
) |
| |
◆ packages
std::vector<Package> Eng3D::IO::PackageManager::packages |
The documentation for this class was generated from the following files: