PixelBullet  0.0.1
A C++ game engine
Loading...
Searching...
No Matches
filesystem_runtime_access_internal.h
1#pragma once
2
3#include "pixelbullet/filesystem/filesystem.h"
4
5#include <memory>
6#include <utility>
7
8namespace pixelbullet::filesystem_internal
9{
11{
12public:
13 template <typename RuntimeLookupT>
14 static std::unique_ptr<Filesystem> CreateFilesystem(Filesystem::Config config, RuntimeLookupT&& runtime_lookup)
15 {
16 return std::unique_ptr<Filesystem>(
17 new Filesystem(std::move(config), Filesystem::RuntimeLookup(std::forward<RuntimeLookupT>(runtime_lookup))));
18 }
19
20 template <typename RuntimeLookupT>
21 static Filesystem CreateFilesystemValue(Filesystem::Config config, RuntimeLookupT&& runtime_lookup)
22 {
23 return Filesystem(std::move(config), Filesystem::RuntimeLookup(std::forward<RuntimeLookupT>(runtime_lookup)));
24 }
25};
26} // namespace pixelbullet::filesystem_internal
Definition filesystem.h:19
Definition filesystem_runtime_access_internal.h:11
Definition filesystem.h:25