LeviLamina
Loading...
Searching...
No Matches
ResourceLoader.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/utility/EnableNonOwnerReferences.h"
8
9// auto generated forward declare list
10// clang-format off
14// clang-format on
15
17public:
18 // member variables
19 // NOLINTBEGIN
21 // NOLINTEND
22
23public:
24 // prevent constructor by default
25 ResourceLoader& operator=(ResourceLoader const&);
28
29public:
30 // virtual functions
31 // NOLINTBEGIN
32 // vIndex: 0
33 virtual ~ResourceLoader() /*override*/;
34
35 // vIndex: 3
36 virtual bool load(::ResourceLocation const&, ::std::string&) const = 0;
37
38 // vIndex: 2
39 virtual bool load(::ResourceLocation const&, ::std::string&, ::gsl::span<::std::string const>) const = 0;
40
41 // vIndex: 1
42 virtual bool load(
43 ::ResourceLocationPair const& resourceLocation,
44 ::std::string& resourceStream,
45 ::gsl::span<::std::string const> extensions
46 ) const;
47
48 // vIndex: 4
49 virtual ::std::vector<::LoadedResourceData> loadAllVersionsOf(::ResourceLocation const&) const = 0;
50
51 // vIndex: 6
52 virtual bool isInStreamableLocation(::ResourceLocation const& resourceLocation) const;
53
54 // vIndex: 5
55 virtual bool isInStreamableLocation(
56 ::ResourceLocation const& resourceLocation,
57 ::gsl::span<::std::string const> extensions
58 ) const;
59
60 // vIndex: 8
61 virtual ::Core::PathBuffer<::std::string> getPath(::ResourceLocation const& resourceLocation) const;
62
63 // vIndex: 7
64 virtual ::Core::PathBuffer<::std::string>
65 getPath(::ResourceLocation const& resourceLocation, ::gsl::span<::std::string const> extensions) const;
66
67 // vIndex: 10
68 virtual ::Core::PathBuffer<::std::string> getPathContainingResource(::ResourceLocation const& resourceLocation
69 ) const;
70
71 // vIndex: 9
72 virtual ::Core::PathBuffer<::std::string> getPathContainingResource(
73 ::ResourceLocation const& resourceLocation,
74 ::gsl::span<::std::string const> extensions
75 ) const;
76
77 // vIndex: 11
78 virtual ::std::pair<int, ::std::string_view> getPackStackIndexOfResource(
79 ::ResourceLocation const& resourceLocation,
80 ::gsl::span<::std::string const> extensions
81 ) const;
82 // NOLINTEND
83
84public:
85 // destructor thunk
86 // NOLINTBEGIN
87 MCFOLD void $dtor();
88 // NOLINTEND
89
90public:
91 // virtual function thunks
92 // NOLINTBEGIN
93 MCFOLD bool $load(
94 ::ResourceLocationPair const& resourceLocation,
95 ::std::string& resourceStream,
96 ::gsl::span<::std::string const> extensions
97 ) const;
98
99 MCFOLD bool $isInStreamableLocation(::ResourceLocation const& resourceLocation) const;
100
101 MCFOLD bool $isInStreamableLocation(
102 ::ResourceLocation const& resourceLocation,
103 ::gsl::span<::std::string const> extensions
104 ) const;
105
106 MCAPI ::Core::PathBuffer<::std::string> $getPath(::ResourceLocation const& resourceLocation) const;
107
108 MCFOLD ::Core::PathBuffer<::std::string>
109 $getPath(::ResourceLocation const& resourceLocation, ::gsl::span<::std::string const> extensions) const;
110
111 MCFOLD ::Core::PathBuffer<::std::string> $getPathContainingResource(::ResourceLocation const& resourceLocation
112 ) const;
113
114 MCFOLD ::Core::PathBuffer<::std::string> $getPathContainingResource(
115 ::ResourceLocation const& resourceLocation,
116 ::gsl::span<::std::string const> extensions
117 ) const;
118
119 MCAPI ::std::pair<int, ::std::string_view> $getPackStackIndexOfResource(
120 ::ResourceLocation const& resourceLocation,
121 ::gsl::span<::std::string const> extensions
122 ) const;
123 // NOLINTEND
124
125public:
126 // vftables
127 // NOLINTBEGIN
128 MCAPI static void** $vftable();
129 // NOLINTEND
130};
Definition EnableNonOwnerReferences.h:7
Definition LoadedResourceData.h:5
Definition ResourceLoader.h:16
Definition ResourceLocationPair.h:5
Definition ResourceLocation.h:15
Definition Alias.h:14