LeviLamina
Loading...
Searching...
No Matches
Impl.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/application/IAppPlatformImpl.h"
7#include "mc/deps/application/IPlatformScreenshots.h"
8#include "mc/deps/core/platform/UIScalingRules.h"
9#include "mc/deps/core/threading/Async.h"
10#include "mc/deps/core/utility/NonOwnerPointer.h"
11#include "mc/options/UIProfile.h"
12
13// auto generated forward declare list
14// clang-format off
15class AppPlatform;
17class SuspendHandler;
21namespace AppPlatformImpl { class IDependencies; }
22namespace Bedrock::PubSub { class Subscription; }
23namespace Core { class DiskAccessTracker; }
24namespace Core { class LoadTimeProfiler; }
25// clang-format on
26
27namespace AppPlatformImpl {
28
29class Impl : public ::IAppPlatformImpl, public ::IPlatformScreenshots {
30public:
31 // member variables
32 // NOLINTBEGIN
39 // NOLINTEND
40
41public:
42 // prevent constructor by default
43 Impl& operator=(Impl const&);
44 Impl(Impl const&);
45 Impl();
46
47public:
48 // virtual functions
49 // NOLINTBEGIN
50 virtual ~Impl() /*override*/;
51
52 virtual ::IPlatformScreenshots& getPlatformScreenshots() /*override*/;
53
54 virtual bool mouseInputHandledByImGui() /*override*/;
55
56 virtual bool keyboardInputHandledByImGui() /*override*/;
57
58 virtual void updateImGuiMousePosition(float x, float y) /*override*/;
59
60 virtual void updateImGuiMouseButton(uchar button, bool isDown) /*override*/;
61
62 virtual void updateImGuiMouseScrollBar(float value) /*override*/;
63
64 virtual void imGuiAddInputChar(ushort c) /*override*/;
65
66 virtual bool updateImGuiKeyboard(uchar param, bool isDown) /*override*/;
67
68 virtual void setServiceLocators(::AppPlatform& platform) /*override*/;
69
70 virtual void resetServiceLocators() /*override*/;
71
72 virtual void setDiskAccessEventing(::Core::DiskAccessTracker& diskAccessTracker) /*override*/;
73
74 virtual bool isRealmsEnabled() const /*override*/;
75
76 virtual ::Bedrock::PubSub::Subscription initializeLoadProfiler(::Core::LoadTimeProfiler& profiler) /*override*/;
77
78 virtual ::Bedrock::Threading::Async<::IntegrityTokenResult>
79 requestIntegrityToken(::std::string const&) /*override*/;
80
81 virtual ::std::string getFullLanguageCode() /*override*/;
82
83 virtual ::UIProfile getDefaultUIProfile(::UIScalingRules uiScalingRules) const /*override*/;
84
85#ifdef LL_PLAT_S
86 virtual ::std::optional<::ScreenshotOptions> getExtraLevelSaveDataIconParams(::std::string const&) const
87 /*override*/;
88#else // LL_PLAT_C
89 virtual ::std::optional<::ScreenshotOptions> getExtraLevelSaveDataIconParams(::std::string const&) const
90 /*override*/;
91
92 virtual ::Bedrock::NonOwnerPointer<::SuspendHandler>
93 getSuspendHandler(bool updateCachedValue, ::AppPlatform& appPlatform) /*override*/;
94
95 virtual ::BatteryMonitorInterface const& getBatteryMonitorInterface() const /*override*/;
96
97 virtual ::ThermalMonitorInterface const& getThermalMonitorInterface() const /*override*/;
98#endif
99
100 // NOLINTEND
101
102public:
103 // member functions
104 // NOLINTBEGIN
105 MCNAPI explicit Impl(::std::unique_ptr<::AppPlatformImpl::IDependencies> deps);
106 // NOLINTEND
107
108public:
109 // constructor thunks
110 // NOLINTBEGIN
111 MCNAPI void* $ctor(::std::unique_ptr<::AppPlatformImpl::IDependencies> deps);
112 // NOLINTEND
113
114public:
115 // destructor thunk
116 // NOLINTBEGIN
117 MCNAPI void $dtor();
118 // NOLINTEND
119
120public:
121 // virtual function thunks
122 // NOLINTBEGIN
123 MCNAPI ::IPlatformScreenshots& $getPlatformScreenshots();
124
126
128
129 MCNAPI void $updateImGuiMousePosition(float x, float y);
130
131 MCNAPI void $updateImGuiMouseButton(uchar button, bool isDown);
132
133 MCNAPI void $updateImGuiMouseScrollBar(float value);
134
135 MCNAPI void $imGuiAddInputChar(ushort c);
136
137 MCNAPI bool $updateImGuiKeyboard(uchar param, bool isDown);
138
139 MCNAPI void $setServiceLocators(::AppPlatform& platform);
140
142
143 MCNAPI void $setDiskAccessEventing(::Core::DiskAccessTracker& diskAccessTracker);
144
145 MCNAPI bool $isRealmsEnabled() const;
146
147 MCNAPI ::Bedrock::PubSub::Subscription $initializeLoadProfiler(::Core::LoadTimeProfiler& profiler);
148
149 MCNAPI ::Bedrock::Threading::Async<::IntegrityTokenResult> $requestIntegrityToken(::std::string const&);
150
151 MCNAPI ::std::string $getFullLanguageCode();
152
153 MCNAPI ::UIProfile $getDefaultUIProfile(::UIScalingRules uiScalingRules) const;
154
155 MCNAPI ::std::optional<::ScreenshotOptions> $getExtraLevelSaveDataIconParams(::std::string const&) const;
156
157#ifdef LL_PLAT_C
158 MCNAPI ::Bedrock::NonOwnerPointer<::SuspendHandler>
159 $getSuspendHandler(bool updateCachedValue, ::AppPlatform& appPlatform);
160
161 MCNAPI ::BatteryMonitorInterface const& $getBatteryMonitorInterface() const;
162
163 MCNAPI ::ThermalMonitorInterface const& $getThermalMonitorInterface() const;
164#endif
165
166
167 // NOLINTEND
168
169public:
170 // vftables
171 // NOLINTBEGIN
172 MCNAPI static void** $vftableForIPlatformScreenshots();
173
174 MCNAPI static void** $vftableForIAppPlatformImpl();
175 // NOLINTEND
176};
177
178} // namespace AppPlatformImpl
Definition IDependencies.h:20
MCAPI void $updateImGuiMousePosition(float x, float y)
static MCAPI void ** $vftableForIAppPlatformImpl()
MCAPI ::Bedrock::Threading::Async<::IntegrityTokenResult > $requestIntegrityToken(::std::string const &)
MCAPI::IPlatformScreenshots & $getPlatformScreenshots()
MCAPI void * $ctor(::std::unique_ptr<::AppPlatformImpl::IDependencies > deps)
MCAPI::Bedrock::PubSub::Subscription $initializeLoadProfiler(::Core::LoadTimeProfiler &profiler)
MCAPI void $setDiskAccessEventing(::Core::DiskAccessTracker &diskAccessTracker)
MCAPI Impl(::std::unique_ptr<::AppPlatformImpl::IDependencies > deps)
MCAPI::std::string $getFullLanguageCode()
MCAPI void $updateImGuiMouseButton(uchar button, bool isDown)
MCAPI bool $isRealmsEnabled() const
MCAPI bool $updateImGuiKeyboard(uchar param, bool isDown)
MCAPI bool $keyboardInputHandledByImGui()
static MCAPI void ** $vftableForIPlatformScreenshots()
MCAPI void $setServiceLocators(::AppPlatform &platform)
MCAPI void $resetServiceLocators()
MCAPI::UIProfile $getDefaultUIProfile(::UIScalingRules uiScalingRules) const
MCAPI void $imGuiAddInputChar(ushort c)
MCAPI bool $mouseInputHandledByImGui()
MCAPI void $updateImGuiMouseScrollBar(float value)
MCAPI ::std::optional<::ScreenshotOptions > $getExtraLevelSaveDataIconParams(::std::string const &) const
Definition AppPlatform.h:76
Definition BatteryMonitorInterface.h:9
Definition Subscription.h:10
Definition DiskAccessTracker.h:18
Definition LoadTimeProfiler.h:10
Definition IAppPlatformImpl.h:24
Definition IPlatformScreenshots.h:10
Definition SuspendHandler.h:14
Definition ThermalMonitorInterface.h:8
Definition IntegrityTokenResult.h:5
Definition ScreenshotOptions.h:5
Definition Alias.h:14