nw::Erf
-
struct Erf
Public Functions
-
Erf() = default
-
explicit Erf(const std::filesystem::path &path)
-
~Erf()
-
bool add(const std::filesystem::path &path)
Adds resources from path.
-
int extract(const std::regex &pattern, const std::filesystem::path &output) const
Extracts assets by regex.
-
bool reload()
Reloads Erf
Note
Erf::working_directory() will not change
-
bool save() const
-
Note
It’s probably best to call Erf::reload after save.
-
inline const String &name() const
-
inline const String &path() const
-
size_t size() const
-
inline bool valid() const noexcept
-
void visit(std::function<void(const Resource&)> callback, std::initializer_list<ResourceType::type> types = {}) const noexcept
-
const std::filesystem::path &working_directory() const
Get container working directory.
-
Erf() = default