LeviLamina
Loading...
Searching...
No Matches
ClientBindingFactory.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/input/BindingFactory.h"
7#include "mc/deps/input/RectangleArea.h"
8#include "mc/options/option_types/OptionID.h"
9
10// auto generated forward declare list
11// clang-format off
13class IClientInstance;
14// clang-format on
15
17public:
18 // member variables
19 // NOLINTBEGIN
20 ::ll::TypedStorage<8, 16, ::std::map<uint, ::std::function<float()>>> mFloatBindings;
21 ::ll::TypedStorage<8, 16, ::std::map<uint, ::std::function<void(float)>>> mFloatSetters;
22 ::ll::TypedStorage<8, 16, ::std::map<uint, ::std::function<bool()>>> mBoolBindings;
23 ::ll::TypedStorage<8, 16, ::std::map<uint, ::std::function<::RectangleArea()>>> mAreaBindings;
24 ::ll::TypedStorage<8, 16, ::std::map<uint, ::std::function<::std::string()>>> mStringBindings;
25 ::ll::TypedStorage<8, 16, ::std::map<uint, ::std::function<::glm::vec2()>>> mPointBindings;
26 ::ll::TypedStorage<8, 16, ::std::map<uint, ::std::function<void(::RectangleArea)>>> mDynamicAreaBindings;
27 ::ll::TypedStorage<8, 8, ::ClientInputHandler const&> mClientInputHandler;
28 ::ll::TypedStorage<8, 8, ::IClientInstance&> mClient;
29 ::ll::TypedStorage<4, 16, ::RectangleArea> mEmpty;
30 ::ll::TypedStorage<4, 16, ::RectangleArea> mTurnInteract;
31 ::ll::TypedStorage<4, 16, ::RectangleArea> mDPadNoTurnInteractArea;
32 ::ll::TypedStorage<4, 16, ::RectangleArea> mGuiPassthrough;
33 ::ll::TypedStorage<4, 16, ::RectangleArea> mHotbarGuiPassthrough;
34 ::ll::TypedStorage<4, 16, ::RectangleArea> mChangingFlightHeight;
35 ::ll::TypedStorage<4, 16, ::RectangleArea> mLeft;
36 ::ll::TypedStorage<4, 16, ::RectangleArea> mRight;
37 ::ll::TypedStorage<4, 16, ::RectangleArea> mUpInvisible;
38 ::ll::TypedStorage<4, 16, ::RectangleArea> mDownInvisible;
39 ::ll::TypedStorage<4, 16, ::RectangleArea> mUp;
40 ::ll::TypedStorage<4, 16, ::RectangleArea> mDown;
41 ::ll::TypedStorage<4, 16, ::RectangleArea> mAscend;
42 ::ll::TypedStorage<4, 16, ::RectangleArea> mMiddleRight;
43 ::ll::TypedStorage<4, 16, ::RectangleArea> mDescend;
44 ::ll::TypedStorage<4, 16, ::RectangleArea> mPause;
45 ::ll::TypedStorage<4, 16, ::RectangleArea> mEmote;
46 ::ll::TypedStorage<4, 16, ::RectangleArea> mChat;
47 ::ll::TypedStorage<4, 16, ::RectangleArea> mTogglePerspective;
48 ::ll::TypedStorage<4, 16, ::RectangleArea> mJump;
49 ::ll::TypedStorage<4, 16, ::RectangleArea> mUpLeft;
50 ::ll::TypedStorage<4, 16, ::RectangleArea> mUpRight;
51 ::ll::TypedStorage<4, 16, ::RectangleArea> mDownLeft;
52 ::ll::TypedStorage<4, 16, ::RectangleArea> mDownRight;
53 ::ll::TypedStorage<4, 16, ::RectangleArea> mPlayerEffects;
54 ::ll::TypedStorage<4, 16, ::RectangleArea> mPaddleRight;
55 ::ll::TypedStorage<4, 16, ::RectangleArea> mPaddleLeft;
56 ::ll::TypedStorage<4, 16, ::RectangleArea> mSneak;
57 ::ll::TypedStorage<4, 16, ::RectangleArea> mMobEffects;
58 ::ll::TypedStorage<4, 16, ::RectangleArea> mToastArea;
59 ::ll::TypedStorage<4, 16, ::RectangleArea> mCodeBuilder;
60 ::ll::TypedStorage<4, 16, ::RectangleArea> mImmersiveReader;
61 ::ll::TypedStorage<4, 16, ::RectangleArea> mDestroyOrAttack;
62 ::ll::TypedStorage<4, 16, ::RectangleArea> mBuildOrInteract;
63 ::ll::TypedStorage<4, 16, ::RectangleArea> mBlockSelect;
64 ::ll::TypedStorage<4, 16, ::RectangleArea> mBlockSelectNewControls;
65 ::ll::TypedStorage<4, 16, ::RectangleArea> mDefaultMoveStickArea;
66 ::ll::TypedStorage<8, 64, ::std::function<void(::RectangleArea)>> mInteractSetter;
67 ::ll::TypedStorage<4, 16, ::RectangleArea> mInteractSize;
68 ::ll::TypedStorage<4, 16, ::RectangleArea> mSneakNewControls;
69 ::ll::TypedStorage<4, 16, ::RectangleArea> mJumpNewControls;
70 ::ll::TypedStorage<4, 16, ::RectangleArea> mSprintNewControls;
71 ::ll::TypedStorage<8, 16, ::std::map<uint, ::std::shared_ptr<::RectangleArea>>> mCustomRectangleAreas;
72 ::ll::TypedStorage<8, 16, ::std::map<uint, ::RectangleArea>> mCustomAreaFractions;
73 ::ll::TypedStorage<4, 8, ::glm::vec2> mInteractCreative;
74 ::ll::TypedStorage<4, 8, ::glm::vec2> mInteractSurvival;
75 ::ll::TypedStorage<4, 16, ::RectangleArea> mFinalSafeScreenArea;
76 // NOLINTEND
77
78public:
79 // prevent constructor by default
80 ClientBindingFactory& operator=(ClientBindingFactory const&);
81 ClientBindingFactory(ClientBindingFactory const&);
82 ClientBindingFactory();
83
84public:
85 // virtual functions
86 // NOLINTBEGIN
87 virtual ~ClientBindingFactory() /*override*/ = default;
88
89 virtual ::std::function<bool()> getBooleanBinding(uint name) const /*override*/;
90
91 virtual ::std::function<float()> getFloatBinding(uint name) const /*override*/;
92
93 virtual ::std::function<::std::string()> getStringBinding(uint name) const /*override*/;
94
95 virtual ::std::function<::glm::vec2()> getPointBinding(uint name) const /*override*/;
96
97 virtual ::std::function<::RectangleArea()> getAreaBinding(uint name) const /*override*/;
98
99 virtual ::std::function<void(::RectangleArea)> getDynamicAreaBinding(uint name) const /*override*/;
100
101 virtual ::std::function<void(float)> getFloatSetter(uint name) const /*override*/;
102
103 virtual void setCustomAreaBinding(::std::string const& name, ::RectangleArea area) /*override*/;
104
105 virtual void removeCustomAreaBinding(::std::string const& name) /*override*/;
106
107 virtual ::std::vector<uint> getCustomAreaBindingNames() const /*override*/;
108 // NOLINTEND
109
110public:
111 // member functions
112 // NOLINTBEGIN
113 MCAPI ::RectangleArea
114 _calculateClassicButtonRectangleWithOptionIDs(::OptionID posX, ::OptionID posY, ::OptionID scale) const;
115
116 MCAPI ::RectangleArea _calculateClassicDpadRectangle() const;
117
118 MCAPI ::RectangleArea _fitToScreen(::RectangleArea const& rectangle) const;
119
120 MCAPI bool _isInputSprinting() const;
121
122 MCAPI bool _touchButtonsVisible() const;
123
124 MCAPI void setupAreaBindings();
125
126 MCAPI void setupBoolBindings();
127
128 MCAPI void setupFloatBindings();
129
130 MCAPI void setupFloatSetters();
131 // NOLINTEND
132
133public:
134 // virtual function thunks
135 // NOLINTBEGIN
136 MCAPI ::std::function<bool()> $getBooleanBinding(uint name) const;
137
138 MCAPI ::std::function<float()> $getFloatBinding(uint name) const;
139
140 MCAPI ::std::function<::std::string()> $getStringBinding(uint name) const;
141
142 MCAPI ::std::function<::glm::vec2()> $getPointBinding(uint name) const;
143
144 MCAPI ::std::function<::RectangleArea()> $getAreaBinding(uint name) const;
145
146 MCAPI ::std::function<void(::RectangleArea)> $getDynamicAreaBinding(uint name) const;
147
148 MCAPI ::std::function<void(float)> $getFloatSetter(uint name) const;
149
150 MCAPI void $setCustomAreaBinding(::std::string const& name, ::RectangleArea area);
151
152 MCAPI void $removeCustomAreaBinding(::std::string const& name);
153
154 MCAPI ::std::vector<uint> $getCustomAreaBindingNames() const;
155 // NOLINTEND
156};
Definition BindingFactory.h:5
Definition ClientBindingFactory.h:5
Definition ClientInputHandler.h:5
Definition IClientInstance.h:5