3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/client/gui/ProgressHandler.h"
7#include "mc/deps/core/file/PathBuffer.h"
8#include "mc/deps/core/threading/Async.h"
9#include "mc/deps/core/utility/NonOwnerPointer.h"
10#include "mc/world/actor/player/LoadingState.h"
14class IEntitlementManager;
24 ::ll::TypedStorage<8, 32, ::std::string> mLevelID;
25 ::ll::TypedStorage<8, 16, ::Bedrock::Threading::Async<void>> mFuture;
26 ::ll::TypedStorage<8, 64, ::std::function<void()>> mCallback;
27 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::TaskGroup>> mIOTaskGroup;
32 ResourcePackCopyProgressHandler();
37 virtual ~ResourcePackCopyProgressHandler() ;
39 virtual void onStart(::MinecraftScreenModel& minecraftScreenModel) ;
41 virtual void tick(::MinecraftScreenModel& minecraftScreenModel) ;
43 virtual void onCancel(::MinecraftScreenModel& minecraftScreenModel) ;
45 virtual void onExit(::MinecraftScreenModel& minecraftScreenModel) ;
47 virtual ::LoadingState getLoadingState(::MinecraftScreenModel& minecraftScreenModel)
const ;
49 virtual ::std::string getProgressMessage(::MinecraftScreenModel& minecraftScreenModel)
const ;
51 virtual ::std::string getTitleText() const ;
53 virtual ::std::
string getName() const ;
59 MCAPI ResourcePackCopyProgressHandler(::std::
string const& levelID, ::std::function<
void()> callback);
61 MCAPI ::Bedrock::Threading::Async<
void> start(
62 ::Core::PathBuffer<::std::
string> const& levelBasePath,
63 ::IResourcePackRepository& resourcePackRepository,
64 ::Bedrock::NotNullNonOwnerPtr<::IEntitlementManager> entitlementManager
71 MCAPI
void* $ctor(::std::
string const& levelID, ::std::function<
void()> callback);
83 MCAPI
void $onStart(::MinecraftScreenModel& minecraftScreenModel);
85 MCAPI
void $tick(::MinecraftScreenModel& minecraftScreenModel);
87 MCFOLD
void $onCancel(::MinecraftScreenModel& minecraftScreenModel);
89 MCFOLD
void $onExit(::MinecraftScreenModel& minecraftScreenModel);
91 MCFOLD ::LoadingState $getLoadingState(::MinecraftScreenModel& minecraftScreenModel) const;
93 MCFOLD ::std::
string $getProgressMessage(::MinecraftScreenModel& minecraftScreenModel) const;
95 MCAPI ::std::
string $getTitleText() const;
97 MCAPI ::std::
string $getName() const;
Definition IResourcePackRepository.h:34
Definition MinecraftScreenModel.h:5
Definition ProgressHandler.h:5
Definition ResourcePackCopyProgressHandler.h:5
static MCAPI void ** $vftable()
Definition TaskGroup.h:57