LeviLamina
Loading...
Searching...
No Matches
AppResourceLoader.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
14namespace mce { struct Image; }
15// clang-format on
16
17class AppResourceLoader : public ::ResourceLoader {
18#ifdef LL_PLAT_S
19#else // LL_PLAT_C
20public:
21 // prevent constructor by default
22 AppResourceLoader();
23
24#endif
25public:
26 // virtual functions
27 // NOLINTBEGIN
28#ifdef LL_PLAT_S
29 virtual bool load(::ResourceLocation const&, ::std::string&) const /*override*/;
30#else // LL_PLAT_C
31 virtual bool load(::ResourceLocation const& resourceLocation, ::std::string& resourceStream) const /*override*/;
32
33 virtual bool load(
34 ::ResourceLocation const& resourceLocation,
35 ::std::string& resourceStream,
36 ::gsl::span<::std::string const> extensionList
37 ) const /*override*/;
38#endif
39
40#ifdef LL_PLAT_S
41 virtual bool load(::ResourceLocation const&, ::std::string&, ::gsl::span<::std::string const>) const /*override*/;
42#else // LL_PLAT_C
43 virtual bool load(
44 ::ResourceLocationPair const& resourceLocation,
45 ::std::string& resourceStream,
46 ::gsl::span<::std::string const> extensionList
47 ) const /*override*/;
48#endif
49
50#ifdef LL_PLAT_S
51 virtual bool load(::ResourceLocationPair const&, ::std::string&, ::gsl::span<::std::string const>) const
52 /*override*/;
53#else // LL_PLAT_C
54 virtual ::std::vector<::LoadedResourceData> loadAllVersionsOf(::ResourceLocation const& resourceLocation) const
55 /*override*/;
56#endif
57
58#ifdef LL_PLAT_S
59 virtual ::std::vector<::LoadedResourceData> loadAllVersionsOf(::ResourceLocation const&) const /*override*/;
60#else // LL_PLAT_C
61 virtual ::std::pair<int, ::std::string_view> getPackStackIndexOfResource(
62 ::ResourceLocation const& resourceLocation,
63 ::gsl::span<::std::string const> extensionList
64 ) const /*override*/;
65#endif
66
67#ifdef LL_PLAT_S
68 virtual ::std::pair<int, ::std::string_view>
69 getPackStackIndexOfResource(::ResourceLocation const&, ::gsl::span<::std::string const>) const /*override*/;
70#else // LL_PLAT_C
71 virtual ::mce::Image loadTexture(::ResourceLocation const& resourceLocation) const /*override*/;
72#endif
73
74 // NOLINTEND
75
76public:
77 // member functions
78 // NOLINTBEGIN
79#ifdef LL_PLAT_C
80 MCNAPI explicit AppResourceLoader(::std::function<::Core::PathBuffer<::std::string>()> getPath);
81#endif
82 // NOLINTEND
83
84public:
85 // constructor thunks
86 // NOLINTBEGIN
87#ifdef LL_PLAT_C
88 MCNAPI void* $ctor(::std::function<::Core::PathBuffer<::std::string>()> getPath);
89#endif
90 // NOLINTEND
91
92public:
93 // virtual function thunks
94 // NOLINTBEGIN
95#ifdef LL_PLAT_C
96 MCNAPI bool $load(::ResourceLocation const& resourceLocation, ::std::string& resourceStream) const;
97
98 MCNAPI bool $load(
99 ::ResourceLocation const& resourceLocation,
100 ::std::string& resourceStream,
101 ::gsl::span<::std::string const> extensionList
102 ) const;
103
104 MCNAPI bool $load(
105 ::ResourceLocationPair const& resourceLocation,
106 ::std::string& resourceStream,
107 ::gsl::span<::std::string const> extensionList
108 ) const;
109
110 MCNAPI ::std::vector<::LoadedResourceData> $loadAllVersionsOf(::ResourceLocation const& resourceLocation) const;
111
112 MCNAPI ::std::pair<int, ::std::string_view> $getPackStackIndexOfResource(
113 ::ResourceLocation const& resourceLocation,
114 ::gsl::span<::std::string const> extensionList
115 ) const;
116
117 MCNAPI ::mce::Image $loadTexture(::ResourceLocation const& resourceLocation) const;
118#endif
119
120
121 // NOLINTEND
122
123public:
124 // vftables
125 // NOLINTBEGIN
126 MCNAPI static void** $vftable();
127 // NOLINTEND
128};
static MCAPI void ** $vftable()
Definition PathBuffer.h:8
Definition LoadedResourceData.h:5
Definition ResourceLocationPair.h:9
Definition ResourceLocation.h:15
Definition Image.h:12