LeviLamina
Loading...
Searching...
No Matches
RouterHistoryAdapter.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/gui/oreui/routing/RouterAction.h"
7#include "mc/client/gui/oreui/routing/RouterLocation.h"
8
9// auto generated forward declare list
10// clang-format off
11namespace Bedrock::PubSub { class Subscription; }
12namespace OreUI { class Router; }
13// clang-format on
14
15namespace OreUI {
16
18public:
19 // member variables
20 // NOLINTBEGIN
21 ::ll::TypedStorage<8, 8, ::std::reference_wrapper<::OreUI::Router>> mRouter;
22 ::ll::TypedStorage<8, 152, ::OreUI::RouterLocation> mCurrentLocationCache;
23 ::ll::TypedStorage<8, 152, ::OreUI::RouterLocation> mFallbackLocation;
24 // NOLINTEND
25
26public:
27 // prevent constructor by default
28 RouterHistoryAdapter();
29
30public:
31 // member functions
32 // NOLINTBEGIN
33 MCAPI explicit RouterHistoryAdapter(::OreUI::Router& router);
34
35 MCAPI ::Bedrock::PubSub::Subscription addObserver(
36 ::std::function<void(
37 ::std::optional<::OreUI::RouterLocation> const&,
38 ::std::optional<::OreUI::RouterLocation> const&,
39 ::OreUI::RouterAction
40 )> callback
41 ) const;
42
43 MCAPI ::std::string const& getAction() const;
44
45 MCFOLD ::std::vector<::OreUI::RouterLocation> const& getFullRouterLocationHistory() const;
46
47 MCAPI uint getLength() const;
48
49 MCAPI ::OreUI::RouterLocation const& getLocation() const;
50
51 MCAPI void go(int n);
52
53 MCAPI void goBack();
54
55 MCFOLD void goForward();
56
57 MCAPI void push(::std::string const& route);
58
59 MCAPI void replace(::std::string const& route);
60 // NOLINTEND
61
62public:
63 // constructor thunks
64 // NOLINTBEGIN
65 MCAPI void* $ctor(::OreUI::Router& router);
66 // NOLINTEND
67};
68
69} // namespace OreUI
Definition Subscription.h:10
Definition RouterHistoryAdapter.h:7
Definition Router.h:7