20 using ResourceFileExtensionSetType = ::gsl::span<::std::string const>;
25 ::ll::TypedStorage<8, 64, ::std::function<::Core::PathBuffer<::std::string>()>> mGetPath;
35 virtual ~ResourceLoader() =
default;
37 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> extensionList
51 virtual bool loadText(
::ResourceLocation const& resourceLocation, ::std::string& resourceStream)
const;
53 virtual ::std::vector<::LoadedResourceData> loadAllVersionsOf(
::ResourceLocation const& resourceLocation)
const = 0;
56 virtual ::mce::Image loadTexture(
::ResourceLocation const& resourceLocation)
const = 0;
61 virtual bool isInStreamableLocation(
63 ::gsl::span<::std::string const> extensionList
66 virtual ::Core::PathBuffer<::std::string> getPath(
::ResourceLocation const& resourceLocation)
const;
68 virtual ::Core::PathBuffer<::std::string>
69 getPath(
::ResourceLocation const& resourceLocation, ::gsl::span<::std::string const> extensionList)
const;
71 virtual ::Core::PathBuffer<::std::string>
74 virtual ::Core::PathBuffer<::std::string> getPathContainingResource(
76 ::gsl::span<::std::string const> extensionList
79 virtual ::std::pair<int, ::std::string_view> getPackStackIndexOfResource(
81 ::gsl::span<::std::string const> extensionList
102 ::std::string& resourceStream,
103 ::gsl::span<::std::string const> extensionList
106 MCFOLD
bool $loadText(
::ResourceLocation const& resourceLocation, ::std::string& resourceStream)
const;
108 MCFOLD
bool $isInStreamableLocation(
::ResourceLocation const& resourceLocation)
const;
110 MCFOLD
bool $isInStreamableLocation(
112 ::gsl::span<::std::string const> extensionList
115 MCAPI ::Core::PathBuffer<::std::string> $getPath(
::ResourceLocation const& resourceLocation)
const;
117 MCFOLD ::Core::PathBuffer<::std::string>
118 $getPath(
::ResourceLocation const& resourceLocation, ::gsl::span<::std::string const> extensionList)
const;
120 MCFOLD ::Core::PathBuffer<::std::string>
123 MCFOLD ::Core::PathBuffer<::std::string> $getPathContainingResource(
125 ::gsl::span<::std::string const> extensionList
128 MCAPI ::std::pair<int, ::std::string_view> $getPackStackIndexOfResource(
130 ::gsl::span<::std::string const> extensionList