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 virtual bool load(::ResourceLocation const& resourceLocation, ::std::string& resourceStream) const /*override*/;
29
30 virtual bool load(
31 ::ResourceLocation const& resourceLocation,
32 ::std::string& resourceStream,
33 ::gsl::span<::std::string const> extensionList
34 ) const /*override*/;
35
36 virtual bool load(
37 ::ResourceLocationPair const& resourceLocation,
38 ::std::string& resourceStream,
39 ::gsl::span<::std::string const> extensionList
40 ) const /*override*/;
41
42 virtual ::std::vector<::LoadedResourceData> loadAllVersionsOf(::ResourceLocation const& resourceLocation) const
43 /*override*/;
44
45 virtual ::std::pair<int, ::std::string_view> getPackStackIndexOfResource(
46 ::ResourceLocation const& resourceLocation,
47 ::gsl::span<::std::string const> extensionList
48 ) const /*override*/;
49
50#ifdef LL_PLAT_C
51 virtual ::mce::Image loadTexture(::ResourceLocation const& resourceLocation) const /*override*/;
52
53#endif
54 virtual ~AppResourceLoader() /*override*/ = default;
55 // NOLINTEND
56
57public:
58 // member functions
59 // NOLINTBEGIN
60#ifdef LL_PLAT_C
61 MCNAPI explicit AppResourceLoader(::std::function<::Core::PathBuffer<::std::string>()> getPath);
62#endif
63 // NOLINTEND
64
65public:
66 // constructor thunks
67 // NOLINTBEGIN
68#ifdef LL_PLAT_C
69 MCNAPI void* $ctor(::std::function<::Core::PathBuffer<::std::string>()> getPath);
70#endif
71 // NOLINTEND
72
73public:
74 // virtual function thunks
75 // NOLINTBEGIN
76#ifdef LL_PLAT_C
77 MCNAPI bool $load(::ResourceLocation const& resourceLocation, ::std::string& resourceStream) const;
78
79 MCNAPI bool $load(
80 ::ResourceLocation const& resourceLocation,
81 ::std::string& resourceStream,
82 ::gsl::span<::std::string const> extensionList
83 ) const;
84
85 MCNAPI bool $load(
86 ::ResourceLocationPair const& resourceLocation,
87 ::std::string& resourceStream,
88 ::gsl::span<::std::string const> extensionList
89 ) const;
90
91 MCNAPI ::std::vector<::LoadedResourceData> $loadAllVersionsOf(::ResourceLocation const& resourceLocation) const;
92
93 MCNAPI ::std::pair<int, ::std::string_view> $getPackStackIndexOfResource(
94 ::ResourceLocation const& resourceLocation,
95 ::gsl::span<::std::string const> extensionList
96 ) const;
97
98 MCNAPI ::mce::Image $loadTexture(::ResourceLocation const& resourceLocation) const;
99#endif
100
101
102 // NOLINTEND
103
104public:
105 // vftables
106 // NOLINTBEGIN
107 MCNAPI static void** $vftable();
108 // NOLINTEND
109};
static MCAPI void ** $vftable()
Definition PathBuffer.h:8
Definition LoadedResourceData.h:5
Definition ResourceLoader.h:17
Definition ResourceLocationPair.h:11
Definition ResourceLocation.h:15
Definition Image.h:12