Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
ResourceLoaderBase.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/file/PathBuffer.h"
7#include "mc/deps/core/resource/ResourceLoader.h"
8
9// auto generated forward declare list
10// clang-format off
13// clang-format on
14
15class ResourceLoaderBase : public ::ResourceLoader {
16public:
17 // virtual functions
18 // NOLINTBEGIN
19 virtual bool load(
20 ::ResourceLocationPair const& resourceLocationPair,
21 ::std::string& resourceStream,
22 ::gsl::span<::std::string const> extensionList
23 ) const /*override*/;
24
25 virtual ::Core::PathBuffer<::std::string> getPath(::ResourceLocation const& resourceLocation) const /*override*/;
26
27 virtual ::Core::PathBuffer<::std::string>
28 getPath(::ResourceLocation const& resourceLocation, ::gsl::span<::std::string const> extensionList) const
29 /*override*/;
30
31 virtual ::Core::PathBuffer<::std::string>
32 getPathContainingResource(::ResourceLocation const& resourceLocation) const /*override*/;
33
34 virtual ::std::pair<int, ::std::string_view> getPackStackIndexOfResource(
35 ::ResourceLocation const& resourceLocation,
36 ::gsl::span<::std::string const> extensionList
37 ) const /*override*/;
38 // NOLINTEND
39
40public:
41 // virtual function thunks
42 // NOLINTBEGIN
43#ifdef LL_PLAT_C
44 MCNAPI ::Core::PathBuffer<::std::string> $getPath(::ResourceLocation const& resourceLocation) const;
45
46 MCNAPI ::Core::PathBuffer<::std::string>
47 $getPath(::ResourceLocation const& resourceLocation, ::gsl::span<::std::string const> extensionList) const;
48
49 MCNAPI ::Core::PathBuffer<::std::string>
50 $getPathContainingResource(::ResourceLocation const& resourceLocation) const;
51#endif
52
53
54 // NOLINTEND
55};
Definition ResourceLoaderBase.h:15
Definition ResourceLocationPair.h:9
Definition ResourceLocation.h:15