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