20 using ResourceFileExtensionSetType = ::gsl::span<::std::string const>;
25 ::ll::TypedStorage<8, 64, ::std::function<::Core::PathBuffer<::std::string>()>> mGetPath;
35 virtual ~ResourceLoader() ;
37 virtual bool load(
::ResourceLocation const& resourceLocation, ::std::string& resourceStream)
const = 0;
41 ::std::string& resourceStream,
42 ::gsl::span<::std::string const> extensionList
48 ::std::string& resourceStream,
49 ::gsl::span<::std::string const> extensionList
54 ::std::string& resourceStream,
55 ::gsl::span<::std::string const> extensionList
59 virtual bool loadText(
::ResourceLocation const& resourceLocation, ::std::string& resourceStream)
const;
61 virtual ::std::vector<::LoadedResourceData> loadAllVersionsOf(
::ResourceLocation const& resourceLocation)
const = 0;
64 virtual ::mce::Image loadTexture(
::ResourceLocation const& resourceLocation)
const = 0;
69 virtual bool isInStreamableLocation(
71 ::gsl::span<::std::string const> extensionList
74 virtual ::Core::PathBuffer<::std::string> getPath(
::ResourceLocation const& resourceLocation)
const;
76 virtual ::Core::PathBuffer<::std::string>
77 getPath(
::ResourceLocation const& resourceLocation, ::gsl::span<::std::string const> extensionList)
const;
79 virtual ::Core::PathBuffer<::std::string>
82 virtual ::Core::PathBuffer<::std::string> getPathContainingResource(
84 ::gsl::span<::std::string const> extensionList
87 virtual ::std::pair<int, ::std::string_view> getPackStackIndexOfResource(
89 ::gsl::span<::std::string const> extensionList
116 ::std::string& resourceStream,
117 ::gsl::span<::std::string const> extensionList
120 MCFOLD
bool $loadText(
::ResourceLocation const& resourceLocation, ::std::string& resourceStream)
const;
122 MCFOLD
bool $isInStreamableLocation(
::ResourceLocation const& resourceLocation)
const;
124 MCFOLD
bool $isInStreamableLocation(
126 ::gsl::span<::std::string const> extensionList
129 MCAPI ::Core::PathBuffer<::std::string> $getPath(
::ResourceLocation const& resourceLocation)
const;
131 MCFOLD ::Core::PathBuffer<::std::string>
132 $getPath(
::ResourceLocation const& resourceLocation, ::gsl::span<::std::string const> extensionList)
const;
134 MCFOLD ::Core::PathBuffer<::std::string>
137 MCFOLD ::Core::PathBuffer<::std::string> $getPathContainingResource(
139 ::gsl::span<::std::string const> extensionList
142 MCAPI ::std::pair<int, ::std::string_view> $getPackStackIndexOfResource(
144 ::gsl::span<::std::string const> extensionList