Skip to content
LeviMC
English
AutoLightDark
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/resource/ResourceLoaderBase.h"
7
8// auto generated forward declare list
9// clang-format off
12namespace mce { struct Image; }
13// clang-format on
14
15class AppResourceLoader : public ::ResourceLoaderBase {
16public:
17 // member variables
18 // NOLINTBEGIN
20 // NOLINTEND
21
22public:
23 // prevent constructor by default
24 AppResourceLoader& operator=(AppResourceLoader const&);
25 AppResourceLoader(AppResourceLoader const&);
26 AppResourceLoader();
27
28public:
29 // virtual functions
30 // NOLINTBEGIN
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
39 virtual bool load(
40 ::ResourceLocationPair const& resourceLocation,
41 ::std::string& resourceStream,
42 ::gsl::span<::std::string const> extensionList
43 ) const /*override*/;
44
45#ifdef LL_PLAT_S
46 virtual ::std::pair<int, ::std::string_view> getPackStackIndexOfResource(
47 ::ResourceLocation const& resourceLocation,
48 ::gsl::span<::std::string const> extensionList
49 ) const /*override*/;
50#else // LL_PLAT_C
51 virtual ::std::pair<int, ::std::string_view> getPackStackIndexOfResource(
52 ::ResourceLocation const& resourceLocation,
53 ::gsl::span<::std::string const> extensionList
54 ) const /*override*/;
55
56 virtual ::mce::Image loadTexture(::ResourceLocation const& resourceLocation) const /*override*/;
57#endif
58
59 // NOLINTEND
60
61public:
62 // virtual function thunks
63 // NOLINTBEGIN
64#ifdef LL_PLAT_C
65 MCNAPI bool $load(::ResourceLocation const& resourceLocation, ::std::string& resourceStream) const;
66
67 MCNAPI bool $load(
68 ::ResourceLocation const& resourceLocation,
69 ::std::string& resourceStream,
70 ::gsl::span<::std::string const> extensionList
71 ) const;
72
73 MCNAPI bool $load(
74 ::ResourceLocationPair const& resourceLocation,
75 ::std::string& resourceStream,
76 ::gsl::span<::std::string const> extensionList
77 ) const;
78
79 MCNAPI ::std::pair<int, ::std::string_view> $getPackStackIndexOfResource(
80 ::ResourceLocation const& resourceLocation,
81 ::gsl::span<::std::string const> extensionList
82 ) const;
83
84 MCNAPI ::mce::Image $loadTexture(::ResourceLocation const& resourceLocation) const;
85#endif
86
87
88 // NOLINTEND
89
90public:
91 // vftables
92 // NOLINTBEGIN
93 MCNAPI static void** $vftable();
94 // NOLINTEND
95};
static MCAPI void ** $vftable()
Definition ResourceLoaderBase.h:15
Definition ResourceLocationPair.h:9
Definition ResourceLocation.h:15
Definition Alias.h:14
Definition Image.h:13