LeviLamina
Loading...
Searching...
No Matches
Registry.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/settings/IRegistry.h"
7#include "mc/client/settings/NumberComponent.h"
8
9// auto generated forward declare list
10// clang-format off
11namespace Settings { class ActionComponent; }
12namespace Settings { class BannerComponent; }
13namespace Settings { class BooleanComponent; }
14namespace Settings { class GroupInfoComponent; }
15namespace Settings { class OptionComponent; }
16namespace Settings { class StringComponent; }
17namespace Settings { class TextComponent; }
18// clang-format on
19
20namespace Settings {
21
22class Registry : public ::Settings::IRegistry {
23public:
24 // Registry inner types define
25 using SettingsFactory = ::std::function<::std::vector<::std::unique_ptr<::std::variant<
26 ::Settings::BooleanComponent,
27 ::Settings::NumberComponent<int>,
28 ::Settings::NumberComponent<float>,
29 ::Settings::OptionComponent,
30 ::Settings::StringComponent,
31 ::Settings::ActionComponent,
32 ::Settings::TextComponent,
33 ::Settings::GroupInfoComponent,
34 ::Settings::BannerComponent>>>()>;
35
36public:
37 // member variables
38 // NOLINTBEGIN
39 ::ll::TypedStorage<
40 8,
41 64,
42 ::std::unordered_map<
43 ::std::string,
44 ::std::function<::std::vector<::std::unique_ptr<::std::variant<
45 ::Settings::BooleanComponent,
46 ::Settings::NumberComponent<int>,
47 ::Settings::NumberComponent<float>,
48 ::Settings::OptionComponent,
49 ::Settings::StringComponent,
50 ::Settings::ActionComponent,
51 ::Settings::TextComponent,
52 ::Settings::GroupInfoComponent,
53 ::Settings::BannerComponent>>>()>>>
54 mSettingsFactories;
55 ::ll::TypedStorage<
56 8,
57 64,
58 ::std::unordered_map<
59 ::std::string,
60 ::std::vector<::std::unique_ptr<::std::variant<
61 ::Settings::BooleanComponent,
62 ::Settings::NumberComponent<int>,
63 ::Settings::NumberComponent<float>,
64 ::Settings::OptionComponent,
65 ::Settings::StringComponent,
66 ::Settings::ActionComponent,
67 ::Settings::TextComponent,
68 ::Settings::GroupInfoComponent,
69 ::Settings::BannerComponent>>>>>
70 mSettingsMap;
71 // NOLINTEND
72
73public:
74 // virtual functions
75 // NOLINTBEGIN
76 virtual ~Registry() /*override*/;
77
78 virtual ::std::vector<::std::string_view> getSettingsGroups() const /*override*/;
79
80 virtual ::std::optional<::std::vector<::Settings::IRegistry::SettingId>>
81 getSettingsGroup(::std::string_view settingsGroupId) /*override*/;
82
83 virtual ::std::optional<::std::reference_wrapper<::std::variant<
84 ::Settings::BooleanComponent,
85 ::Settings::NumberComponent<int>,
86 ::Settings::NumberComponent<float>,
87 ::Settings::OptionComponent,
88 ::Settings::StringComponent,
89 ::Settings::ActionComponent,
90 ::Settings::TextComponent,
91 ::Settings::GroupInfoComponent,
92 ::Settings::BannerComponent>>>
93 getSetting(::std::string_view settingId) const /*override*/;
94 // NOLINTEND
95
96public:
97 // member functions
98 // NOLINTBEGIN
99 MCAPI void refresh();
100
101 MCAPI void refresh(::std::string_view id);
102 // NOLINTEND
103
104public:
105 // destructor thunk
106 // NOLINTBEGIN
107 MCAPI void $dtor();
108 // NOLINTEND
109
110public:
111 // virtual function thunks
112 // NOLINTBEGIN
113 MCAPI ::std::vector<::std::string_view> $getSettingsGroups() const;
114
115 MCAPI ::std::optional<::std::vector<::Settings::IRegistry::SettingId>>
116 $getSettingsGroup(::std::string_view settingsGroupId);
117
118 MCAPI ::std::optional<::std::reference_wrapper<::std::variant<
119 ::Settings::BooleanComponent,
120 ::Settings::NumberComponent<int>,
121 ::Settings::NumberComponent<float>,
122 ::Settings::OptionComponent,
123 ::Settings::StringComponent,
124 ::Settings::ActionComponent,
125 ::Settings::TextComponent,
126 ::Settings::GroupInfoComponent,
127 ::Settings::BannerComponent>>>
128 $getSetting(::std::string_view settingId) const;
129 // NOLINTEND
130
131public:
132 // vftables
133 // NOLINTBEGIN
134 MCNAPI static void** $vftable();
135 // NOLINTEND
136};
137
138} // namespace Settings
Definition ActionComponent.h:7
Definition BannerComponent.h:7
Definition BooleanComponent.h:7
Definition GroupInfoComponent.h:7
Definition OptionComponent.h:7
Definition Registry.h:7
static MCAPI void ** $vftable()
Definition StringComponent.h:7
Definition TextComponent.h:7
Definition IRegistry.h:15