LeviLamina
Loading...
Searching...
No Matches
RouteMatcher.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/gui/oreui/interface/IRouteMatcher.h"
7#include "mc/client/gui/oreui/interface/RouteMode.h"
8#include "mc/client/gui/oreui/interface/RoutePrerequisite.h"
9#include "mc/client/gui/oreui/interface/RouteType.h"
10#include "mc/client/gui/oreui/routing/RouteHistoryAction.h"
11
12namespace OreUI {
13
14class RouteMatcher : public ::OreUI::IRouteMatcher {
15public:
16 // RouteMatcher inner types declare
17 // clang-format off
18 struct RouteEntry;
19 struct DefaultRouteEntry;
20 struct RedirectEntry;
21 // clang-format on
22
23 // RouteMatcher inner types define
24 struct RouteEntry {
25 public:
26 // member variables
27 // NOLINTBEGIN
28 ::ll::UntypedStorage<8, 32> mUnkdf8093;
29 ::ll::UntypedStorage<8, 32> mUnk23955c;
30 ::ll::UntypedStorage<4, 4> mUnkbfd991;
31 ::ll::UntypedStorage<4, 4> mUnk1877f3;
32 ::ll::UntypedStorage<4, 4> mUnkcda4fa;
33 ::ll::UntypedStorage<8, 64> mUnked51b4;
34 ::ll::UntypedStorage<8, 64> mUnk2807b2;
35 // NOLINTEND
36
37 public:
38 // prevent constructor by default
39 RouteEntry& operator=(RouteEntry const&);
40 RouteEntry(RouteEntry const&);
41 RouteEntry();
42
43 public:
44 // member functions
45 // NOLINTBEGIN
46 MCAPI RouteEntry(
47 ::std::string const& baseScreenId,
48 ::std::string const& pattern,
49 ::OreUI::RouteType type,
50 ::OreUI::RouteMode mode,
51 ::OreUI::RoutePrerequisite prerequisite,
52 ::std::function<bool()> isActiveCallback,
53 ::std::function<void(::std::string const&, ::OreUI::RouteHistoryAction)> matchCallback
54 );
55
56 MCAPI ~RouteEntry();
57 // NOLINTEND
58
59 public:
60 // constructor thunks
61 // NOLINTBEGIN
62 MCAPI void* $ctor(
63 ::std::string const& baseScreenId,
64 ::std::string const& pattern,
65 ::OreUI::RouteType type,
66 ::OreUI::RouteMode mode,
67 ::OreUI::RoutePrerequisite prerequisite,
68 ::std::function<bool()> isActiveCallback,
69 ::std::function<void(::std::string const&, ::OreUI::RouteHistoryAction)> matchCallback
70 );
71 // NOLINTEND
72
73 public:
74 // destructor thunk
75 // NOLINTBEGIN
76 MCAPI void $dtor();
77 // NOLINTEND
78 };
79
80 struct DefaultRouteEntry {
81 public:
82 // member variables
83 // NOLINTBEGIN
84 ::ll::UntypedStorage<8, 32> mUnk48da59;
85 ::ll::UntypedStorage<8, 32> mUnkdb2a3f;
86 // NOLINTEND
87
88 public:
89 // prevent constructor by default
90 DefaultRouteEntry& operator=(DefaultRouteEntry const&);
91 DefaultRouteEntry(DefaultRouteEntry const&);
92 DefaultRouteEntry();
93 };
94
95 struct RedirectEntry {
96 public:
97 // member variables
98 // NOLINTBEGIN
99 ::ll::UntypedStorage<8, 32> mUnkf410e4;
100 ::ll::UntypedStorage<8, 64> mUnk5b856f;
101 ::ll::UntypedStorage<8, 64> mUnkff2432;
102 // NOLINTEND
103
104 public:
105 // prevent constructor by default
106 RedirectEntry& operator=(RedirectEntry const&);
107 RedirectEntry(RedirectEntry const&);
108 RedirectEntry();
109
110 public:
111 // member functions
112 // NOLINTBEGIN
113 MCAPI RedirectEntry(
114 ::std::string const& pattern,
115 ::std::function<bool()> isActiveCallback,
116 ::std::function<::std::string(::std::string const&)> composer
117 );
118
119 MCAPI ~RedirectEntry();
120 // NOLINTEND
121
122 public:
123 // constructor thunks
124 // NOLINTBEGIN
125 MCAPI void* $ctor(
126 ::std::string const& pattern,
127 ::std::function<bool()> isActiveCallback,
128 ::std::function<::std::string(::std::string const&)> composer
129 );
130 // NOLINTEND
131
132 public:
133 // destructor thunk
134 // NOLINTBEGIN
135 MCFOLD void $dtor();
136 // NOLINTEND
137 };
138
139public:
140 // member variables
141 // NOLINTBEGIN
142 ::ll::UntypedStorage<8, 24> mUnk372d3c;
143 ::ll::UntypedStorage<8, 24> mUnk186545;
144 ::ll::UntypedStorage<8, 24> mUnkc0d45d;
145 // NOLINTEND
146
147public:
148 // prevent constructor by default
149 RouteMatcher& operator=(RouteMatcher const&);
150 RouteMatcher(RouteMatcher const&);
151
152public:
153 // virtual functions
154 // NOLINTBEGIN
155 virtual void navigateTo(::std::string const& route, ::OreUI::RouteHistoryAction action) const /*override*/;
156
157 virtual ::std::string redirectIfNeeded(::std::string const& route) const /*override*/;
158
159 virtual bool isSupported(::std::string const& route) const /*override*/;
160
161 virtual bool areCompatible(::std::string const& routeA, ::std::string const& routeB) const /*override*/;
162
163 virtual bool isRouteInDirectory(::std::string const& directory, ::std::string const& route) const /*override*/;
164
165 virtual ::std::optional<::std::string> getDefaultRouteForFile(::std::string const& file) const /*override*/;
166
167 virtual ::OreUI::RouteType getRouteType(::std::string const& route) const /*override*/;
168
169 virtual ::OreUI::RouteMode getRouteMode(::std::string const& route) const /*override*/;
170
171 virtual ::OreUI::RoutePrerequisite getRoutePrerequisite(::std::string const& route) const /*override*/;
172
173 virtual ~RouteMatcher() /*override*/;
174 // NOLINTEND
175
176public:
177 // member functions
178 // NOLINTBEGIN
179 MCAPI RouteMatcher();
180
181 MCAPI ::std::optional<::OreUI::RouteMatcher::RedirectEntry> _matchRedirect(::std::string const& route) const;
182
183 MCAPI ::std::optional<::OreUI::RouteMatcher::RouteEntry> _matchRoute(::std::string const& route) const;
184
185 MCAPI void addRedirect(
186 ::std::string const& path,
187 ::std::function<bool()> isActiveCallback,
188 ::std::function<::std::string(::std::string const&)> composer
189 );
190
191 MCAPI void addRoute(
192 ::std::string const& baseScreenId,
193 ::std::string const& pattern,
194 ::OreUI::RouteType type,
195 ::OreUI::RouteMode mode,
196 ::OreUI::RoutePrerequisite prerequisite,
197 ::std::function<bool()> isActiveCallback,
198 ::std::function<void(::std::string const&, ::OreUI::RouteHistoryAction)> matchCallback
199 );
200 // NOLINTEND
201
202public:
203 // constructor thunks
204 // NOLINTBEGIN
205 MCAPI void* $ctor();
206 // NOLINTEND
207
208public:
209 // destructor thunk
210 // NOLINTBEGIN
211 MCAPI void $dtor();
212 // NOLINTEND
213
214public:
215 // virtual function thunks
216 // NOLINTBEGIN
217 MCAPI void $navigateTo(::std::string const& route, ::OreUI::RouteHistoryAction action) const;
218
219 MCAPI ::std::string $redirectIfNeeded(::std::string const& route) const;
220
221 MCAPI bool $isSupported(::std::string const& route) const;
222
223 MCAPI bool $areCompatible(::std::string const& routeA, ::std::string const& routeB) const;
224
225 MCAPI bool $isRouteInDirectory(::std::string const& directory, ::std::string const& route) const;
226
227 MCAPI ::std::optional<::std::string> $getDefaultRouteForFile(::std::string const& file) const;
228
229 MCAPI ::OreUI::RouteType $getRouteType(::std::string const& route) const;
230
231 MCAPI ::OreUI::RouteMode $getRouteMode(::std::string const& route) const;
232
233 MCAPI ::OreUI::RoutePrerequisite $getRoutePrerequisite(::std::string const& route) const;
234 // NOLINTEND
235
236public:
237 // vftables
238 // NOLINTBEGIN
239 MCNAPI static void** $vftable();
240 // NOLINTEND
241};
242
243} // namespace OreUI
Definition RouteMatcher.h:7
static MCAPI void ** $vftable()
Definition RouteMatcher.h:19
Definition RouteMatcher.h:21
Definition RouteMatcher.h:17