19 using ResourceFileExtensionSetType = ::gsl::span<::std::string const>;
24 ::ll::TypedStorage<8, 64, ::std::function<::Core::PathBuffer<::std::string>()>> mGetPath;
34 virtual ~ResourceLoader() =
default;
36 virtual bool load(
::ResourceLocation const& resourceLocation, ::std::string& resourceStream)
const = 0;
41 ::std::string& resourceStream,
42 ::gsl::span<::std::string const> extensionList
47 ::std::string& resourceStream,
48 ::gsl::span<::std::string const> extensions
55 ::std::string& resourceStream,
56 ::gsl::span<::std::string const> extensionList
61 ::std::string& resourceStream,
62 ::gsl::span<::std::string const> extensions
65 virtual ::mce::Image loadTexture(
::ResourceLocation const& resourceLocation)
const = 0;
68 virtual ::Core::PathBuffer<::std::string> getPath(
::ResourceLocation const& resourceLocation)
const = 0;
71 virtual ::Core::PathBuffer<::std::string>
72 getPath(
::ResourceLocation const& resourceLocation, ::gsl::span<::std::string const> extensionList)
const = 0;
74 virtual ::Core::PathBuffer<::std::string>
75 getPath(
::ResourceLocation const& resourceLocation, ::gsl::span<::std::string const> extensions)
const = 0;
78 virtual ::Core::PathBuffer<::std::string>
82 virtual ::std::pair<int, ::std::string_view> getPackStackIndexOfResource(
84 ::gsl::span<::std::string const> extensionList
87 virtual ::std::pair<int, ::std::string_view> getPackStackIndexOfResource(
89 ::gsl::span<::std::string const> extensions