wren
Vulkan-based game engine
Loading...
Searching...
No Matches
manager.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <filesystem>
4#include <optional>
5#include <vector>
7
8namespace wren::assets {
9
10class Manager {
11 public:
12 Manager() = default;
13 Manager(const std::vector<std::filesystem::path>& asset_paths,
14 const std::optional<std::filesystem::path>& project_path = {})
15 : asset_paths_(asset_paths), project_path_(project_path) {}
16
17 [[nodiscard]] auto find_asset(const std::filesystem::path&) const
19
20 private:
21 std::vector<std::filesystem::path> asset_paths_;
22 std::optional<std::filesystem::path> project_path_;
23};
24
25} // namespace wren::assets
Definition manager.hpp:10
std::optional< std::filesystem::path > project_path_
Definition manager.hpp:22
Manager(const std::vector< std::filesystem::path > &asset_paths, const std::optional< std::filesystem::path > &project_path={})
Definition manager.hpp:13
auto find_asset(const std::filesystem::path &) const -> expected< std::filesystem::path >
Definition manager.cpp:7
std::vector< std::filesystem::path > asset_paths_
Definition manager.hpp:21
Definition manager.cpp:5
std::expected< T, Err > expected
Definition result.hpp:49