Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
ViewBindings.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/gui/oreui/binding/interface/IBindable.h"
7#include "mc/client/gui/oreui/binding/interface/debug/IBindingsDataProvider.h"
8
9// auto generated forward declare list
10// clang-format off
11namespace OreUI { class FacetBinder; }
12namespace OreUI { class FocusShortcutRegistry; }
13namespace OreUI { class IFacetRegistry; }
14namespace OreUI { class Router; }
15namespace OreUI { class RouterBinding; }
16namespace OreUI::Debug { struct QueryInformation; }
17namespace OreUI::Detail { class Binder; }
18namespace OreUI::Detail { class BindingRegistryFactory; }
19namespace OreUI::Detail { class CommandRegistry; }
20namespace OreUI::Detail { class ICommandGroup; }
21namespace OreUI::Detail { class QueryRegistry; }
22namespace OreUI::Experimental::Detail { class GameplayModelBinder; }
23namespace OreUI::Experimental::Detail { class GameplayModelRegistry; }
24namespace cohtml { class View; }
25// clang-format on
26
27namespace OreUI::Detail {
28
29class ViewBindings : public ::OreUI::Detail::IBindable, public ::OreUI::Debug::IBindingsDataProvider {
30public:
31 // member variables
32 // NOLINTBEGIN
33 ::ll::TypedStorage<8, 8, ::cohtml::View&> mView;
34 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::OreUI::FacetBinder>> mFacetBinder;
35 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::OreUI::Detail::Binder>> mBinder;
36 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::OreUI::Experimental::Detail::GameplayModelBinder>>
37 mGameplayModelBinder;
38 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::OreUI::IFacetRegistry>> mFacetRegistry;
39 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::OreUI::Detail::QueryRegistry>> mQueries;
40 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::OreUI::Detail::CommandRegistry>> mCommands;
41 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::OreUI::Experimental::Detail::GameplayModelRegistry>> mGameplayModels;
42 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::OreUI::RouterBinding>> mRouterBinding;
43 ::ll::TypedStorage<8, 24, ::std::vector<::std::string>> mUpdatedFacets;
44 // NOLINTEND
45
46public:
47 // prevent constructor by default
48 ViewBindings& operator=(ViewBindings const&);
49 ViewBindings(ViewBindings const&);
50 ViewBindings();
51
52public:
53 // virtual functions
54 // NOLINTBEGIN
55 virtual ~ViewBindings() /*override*/;
56
57 virtual void onReadyForBindings() /*override*/;
58
59 virtual void onSuspend() /*override*/;
60
61 virtual void onBindingsReleased() /*override*/;
62
63 virtual void update(double time) /*override*/;
64
65 virtual ::std::vector<::std::string> const& getUpdatedFacets() const /*override*/;
66
67 virtual ::std::vector<::OreUI::Debug::QueryInformation> getQueryInformation() const /*override*/;
68
69 virtual ::std::vector<::OreUI::Detail::ICommandGroup*> getCommands() const /*override*/;
70 // NOLINTEND
71
72public:
73 // member functions
74 // NOLINTBEGIN
75 MCNAPI ViewBindings(
76 ::cohtml::View& view,
77 ::OreUI::Detail::BindingRegistryFactory& bindingRegistryFactory,
78 ::std::unique_ptr<::OreUI::IFacetRegistry> facets,
79 ::OreUI::Router& router,
80 ::OreUI::FocusShortcutRegistry& focusShortcuts
81 );
82 // NOLINTEND
83
84public:
85 // constructor thunks
86 // NOLINTBEGIN
87 MCNAPI void* $ctor(
88 ::cohtml::View& view,
89 ::OreUI::Detail::BindingRegistryFactory& bindingRegistryFactory,
90 ::std::unique_ptr<::OreUI::IFacetRegistry> facets,
91 ::OreUI::Router& router,
92 ::OreUI::FocusShortcutRegistry& focusShortcuts
93 );
94 // NOLINTEND
95
96public:
97 // destructor thunk
98 // NOLINTBEGIN
99 MCNAPI void $dtor();
100 // NOLINTEND
101
102public:
103 // virtual function thunks
104 // NOLINTBEGIN
105 MCNAPI void $onReadyForBindings();
106
107 MCNAPI void $onSuspend();
108
109 MCNAPI void $onBindingsReleased();
110
111 MCNAPI void $update(double time);
112
113 MCNAPI ::std::vector<::std::string> const& $getUpdatedFacets() const;
114
115 MCNAPI ::std::vector<::OreUI::Debug::QueryInformation> $getQueryInformation() const;
116
117 MCNAPI ::std::vector<::OreUI::Detail::ICommandGroup*> $getCommands() const;
118 // NOLINTEND
119};
120
121} // namespace OreUI::Detail
Definition Binder.h:7
Definition BindingRegistryFactory.h:7
Definition CommandRegistry.h:7
Definition ICommandGroup.h:7
Definition QueryRegistry.h:7
Definition ViewBindings.h:7
MCAPI void $onBindingsReleased()
MCAPI void $update(double time)
MCAPI void $onReadyForBindings()
MCAPI ::std::vector<::std::string > const & $getUpdatedFacets() const
MCAPI void * $ctor(::cohtml::View &view, ::OreUI::Detail::BindingRegistryFactory &bindingRegistryFactory, ::std::unique_ptr<::OreUI::IFacetRegistry > facets, ::OreUI::Router &router, ::OreUI::FocusShortcutRegistry &focusShortcuts)
MCAPI ::std::vector<::OreUI::Detail::ICommandGroup * > $getCommands() const
MCAPI ::std::vector<::OreUI::Debug::QueryInformation > $getQueryInformation() const
Definition GameplayModelBinder.h:7
Definition GameplayModelRegistry.h:7
Definition FacetBinder.h:7
Definition FocusShortcutRegistry.h:7
Definition IFacetRegistry.h:7
Definition RouterBinding.h:7
Definition Router.h:7
Definition View.h:7
Definition View.h:7
STL namespace.
Definition QueryInformation.h:7