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 bool loadText(::ResourceLocation const& resourceLocation, ::std::string& resourceStream) const;
50
51 // vIndex: 5
52 virtual ::std::vector<::LoadedResourceData> loadAllVersionsOf(::ResourceLocation const&) const = 0;
53
54 // vIndex: 7
55 virtual bool isInStreamableLocation(::ResourceLocation const& resourceLocation) const;
56
57 // vIndex: 6
58 virtual bool isInStreamableLocation(
59 ::ResourceLocation const& resourceLocation,
60 ::gsl::span<::std::string const> extensions
61 ) const;
62
63 // vIndex: 9
64 virtual ::Core::PathBuffer<::std::string> getPath(::ResourceLocation const& resourceLocation) const;
65
66 // vIndex: 8
67 virtual ::Core::PathBuffer<::std::string>
68 getPath(::ResourceLocation const& resourceLocation, ::gsl::span<::std::string const> extensions) const;
69
70 // vIndex: 11
71 virtual ::Core::PathBuffer<::std::string>
72 getPathContainingResource(::ResourceLocation const& resourceLocation) const;
73
74 // vIndex: 10
75 virtual ::Core::PathBuffer<::std::string> getPathContainingResource(
76 ::ResourceLocation const& resourceLocation,
77 ::gsl::span<::std::string const> extensions
78 ) const;
79
80 // vIndex: 12
81 virtual ::std::pair<int, ::std::string_view> getPackStackIndexOfResource(
82 ::ResourceLocation const& resourceLocation,
83 ::gsl::span<::std::string const> extensions
84 ) const;
85 // NOLINTEND
86
87public:
88 // destructor thunk
89 // NOLINTBEGIN
90 MCNAPI void $dtor();
91 // NOLINTEND
92
93public:
94 // virtual function thunks
95 // NOLINTBEGIN
96 MCNAPI bool $load(
97 ::ResourceLocationPair const& resourceLocation,
98 ::std::string& resourceStream,
99 ::gsl::span<::std::string const> extensions
100 ) const;
101
102 MCNAPI bool $loadText(::ResourceLocation const& resourceLocation, ::std::string& resourceStream) const;
103
104 MCNAPI bool $isInStreamableLocation(::ResourceLocation const& resourceLocation) const;
105
107 ::ResourceLocation const& resourceLocation,
108 ::gsl::span<::std::string const> extensions
109 ) const;
110
111 MCNAPI ::Core::PathBuffer<::std::string> $getPath(::ResourceLocation const& resourceLocation) const;
112
113 MCNAPI ::Core::PathBuffer<::std::string>
114 $getPath(::ResourceLocation const& resourceLocation, ::gsl::span<::std::string const> extensions) const;
115
116 MCNAPI ::Core::PathBuffer<::std::string>
117 $getPathContainingResource(::ResourceLocation const& resourceLocation) const;
118
119 MCNAPI ::Core::PathBuffer<::std::string> $getPathContainingResource(
120 ::ResourceLocation const& resourceLocation,
121 ::gsl::span<::std::string const> extensions
122 ) const;
123
124 MCNAPI ::std::pair<int, ::std::string_view> $getPackStackIndexOfResource(
125 ::ResourceLocation const& resourceLocation,
126 ::gsl::span<::std::string const> extensions
127 ) const;
128 // NOLINTEND
129
130public:
131 // vftables
132 // NOLINTBEGIN
133 MCNAPI static void** $vftable();
134 // NOLINTEND
135};
Definition EnableNonOwnerReferences.h:7
Definition LoadedResourceData.h:5
Definition ResourceLoader.h:16
MCAPI ::Core::PathBuffer<::std::string > $getPath(::ResourceLocation const &resourceLocation) const
MCAPI bool $load(::ResourceLocationPair const &resourceLocation, ::std::string &resourceStream, ::gsl::span<::std::string const > extensions) const
MCAPI ::std::pair< int, ::std::string_view > $getPackStackIndexOfResource(::ResourceLocation const &resourceLocation, ::gsl::span<::std::string const > extensions) const
static MCAPI void ** $vftable()
MCAPI bool $isInStreamableLocation(::ResourceLocation const &resourceLocation, ::gsl::span<::std::string const > extensions) const
MCAPI ::Core::PathBuffer<::std::string > $getPathContainingResource(::ResourceLocation const &resourceLocation) const
MCAPI ::Core::PathBuffer<::std::string > $getPath(::ResourceLocation const &resourceLocation, ::gsl::span<::std::string const > extensions) const
MCAPI void $dtor()
MCAPI bool $loadText(::ResourceLocation const &resourceLocation, ::std::string &resourceStream) const
MCAPI bool $isInStreamableLocation(::ResourceLocation const &resourceLocation) const
MCAPI ::Core::PathBuffer<::std::string > $getPathContainingResource(::ResourceLocation const &resourceLocation, ::gsl::span<::std::string const > extensions) const
Definition ResourceLocationPair.h:5
Definition ResourceLocation.h:14
Definition Alias.h:14