3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/client/gui/oreui/ViewCacheMode.h"
7#include "mc/client/gui/oreui/views/FramesToPaintQueue.h"
8#include "mc/common/SubClientId.h"
9#include "mc/deps/core/utility/NonOwnerPointer.h"
17namespace Core {
class Path; }
28namespace OreUI {
struct ViewId; }
34namespace cohtml {
class Library; }
35namespace cohtml {
class System; }
58 ::ll::TypedStorage<8, 104, ::OreUI::FramesToPaintQueue> mFramesToPaint;
65 ::ll::TypedStorage<8, 8, ::gsl::not_null<::std::unique_ptr<::OreUI::Library::Impl>>> mImpl;
66 ::ll::TypedStorage<8, 8, ::cohtml::System*> mSystem;
67 ::ll::TypedStorage<8, 8, ::cohtml::SystemRenderer*> mSystemRenderer;
68 ::ll::TypedStorage<8, 8, ::cohtml::Library*> mLibrary;
69 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::cohtml::IAllocator>> mAllocator;
70 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::cohtml::IFileSystemReader>> mFileSystemReader;
71 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::Gameface::ResourceHandlerBroker>> mResourceHandler;
72 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::OreUI::InternationalizationManager>> mInternationalizationManager;
73 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::OreUI::IRenderingBackend>> mRenderingBackend;
74 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::cohtml::Logging::ILogHandler>> mLogHandler;
75 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::cohtml::Profile::IPerformanceHandler>> mPerformanceHandler;
76 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::cohtml::ITimeZoneProvider>> mTimeZoneProvider;
77 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::OreUI::LayoutScheduler>> mLayoutScheduler;
78 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::OreUI::ViewsCoordinator>> mViews;
79 ::ll::TypedStorage<8, 8, ::Gameface::TemporaryTextureHolder&> mTemporaryTextureHolder;
80 ::ll::TypedStorage<8, 8, ::gsl::not_null<::std::unique_ptr<::OreUI::ILiveViewCollectionConsumer>>>
82 ::ll::TypedStorage<8, 8, ::OreUI::DebugData&> mDebugData;
83 ::ll::TypedStorage<8, 24, ::std::vector<::std::string>> mRegisteredFonts;
84 ::ll::TypedStorage<1, 1, bool> mDoCompleteUninitialization;
85 ::ll::TypedStorage<1, 1, bool> mSuspended;
86 ::ll::TypedStorage<1, 1, bool> mICUDataInitialized;
87 ::ll::TypedStorage<8, 16, ::std::thread> mResourceThread;
92 Library& operator=(Library
const&);
93 Library(Library
const&);
100 ::cohtml::PlatformSpecificParams
const& platformParams,
101 ::std::unique_ptr<::cohtml::IAllocator> allocator,
102 ::std::unique_ptr<::cohtml::IFileSystemReader> fileSystemReader,
103 ::Core::Path
const& packagePath,
104 ::std::unique_ptr<::Gameface::ResourceHandlerBroker> resourceHandler,
105 ::std::unique_ptr<::cohtml::Logging::ILogHandler> logHandler,
106 ::Gameface::TemporaryTextureHolder& temporaryTextureHolder,
107 ::OreUI::DebugData& debugData,
108 ::std::unique_ptr<::OreUI::ILiveViewCollectionConsumer> liveViewConsumer
111 MCAPI
void _initializeSystem(::cohtml::PlatformSpecificParams
const&);
113 MCAPI
void _loadFonts(::Core::Path
const& packagePath);
115 MCAPI
void _loadICUData(::TaskGroup& taskGroup, ::Core::Path
const& packagePath);
117 MCAPI
bool assetsInitialized()
const;
119 MCAPI
void clearUnusedCachedViews(::SubClientId subClientId);
121 MCAPI ::OreUI::ViewId createView(
122 ::OreUI::Detail::ViewContextFactory& contextFactory,
123 ::std::string
const& viewPath,
124 ::std::unique_ptr<::OreUI::IFacetRegistry> facets,
125 ::IClientInstance& clientInstance,
126 ::OreUI::ViewCacheMode viewCacheMode
129 MCAPI ::std::unique_ptr<::IGamefaceTextInputProxy> getTextInputProxy();
131 MCAPI ::Bedrock::NotNullNonOwnerPtr<::OreUI::IViewProvider> getViewProvider();
133 MCAPI
void initializeAssetsAsynchronously(::TaskGroup& taskGroup, ::Core::Path
const& packagePath);
135 MCAPI
void initializeRendering(
136 ::Bedrock::NonOwnerPointer<::mce::ShaderGroup> shaderGroup,
137 ::mce::RenderContext& renderContext
140 MCAPI
void initializeViewsCoordinator();
142 MCFOLD
void onActiveResourcePacksChanged();
144 MCAPI
void onAppPreSuspended(::mce::RenderContext&);
146 MCAPI
void onAppResumed(::Bedrock::NonOwnerPointer<::mce::ShaderGroup>
const& shaderGroup);
148 MCAPI
void onKeyboardDismissed();
150 MCFOLD
void reloadAllViews();
152 MCAPI
void setCompleteUninitialization();
154 MCAPI
void setTextBoxState(::TextBoxStateChange
const& stateChange);
156 MCAPI
void update(
double time);
164 MCAPI static ::std::unique_ptr<::cohtml::IVirtualAllocator>& mVirtualAllocator();
171 ::cohtml::PlatformSpecificParams
const& platformParams,
172 ::std::unique_ptr<::cohtml::IAllocator> allocator,
173 ::std::unique_ptr<::cohtml::IFileSystemReader> fileSystemReader,
174 ::Core::Path
const& packagePath,
175 ::std::unique_ptr<::Gameface::ResourceHandlerBroker> resourceHandler,
176 ::std::unique_ptr<::cohtml::Logging::ILogHandler> logHandler,
177 ::Gameface::TemporaryTextureHolder& temporaryTextureHolder,
178 ::OreUI::DebugData& debugData,
179 ::std::unique_ptr<::OreUI::ILiveViewCollectionConsumer> liveViewConsumer
Definition ResourceHandlerBroker.h:7
Definition TemporaryTextureHolder.h:7
Definition IClientInstance.h:5
Definition IGamefaceTextInputProxy.h:5
Definition ViewContextFactory.h:7
Definition IFacetRegistry.h:7
Definition ILiveViewCollectionConsumer.h:7
Definition IRenderingBackend.h:7
Definition IViewProvider.h:7
Definition InternationalizationManager.h:7
Definition LayoutScheduler.h:7
Definition ViewsCoordinator.h:7
Definition TaskGroup.h:55
Definition IAllocator.h:7
Definition IFileSystemReader.h:7
Definition ITimeZoneProvider.h:7
Definition IVirtualAllocator.h:7
Definition ILogHandler.h:7
Definition SystemRenderer.h:7
Definition RenderContext.h:7
Definition ShaderGroup.h:7
Definition TextBoxStateChange.h:5