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() =
default;
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 MCNAPI ResourcePackCopyProgressHandler(::
std::
string const& levelID, ::
std::function<
void()> callback);
61 MCNAPI ::Bedrock::Threading::Async<
void>
start(
62 ::Core::PathBuffer<::
std::
string> const& worldPath,
64 ::Bedrock::NotNullNonOwnerPtr<::IEntitlementManager> entitlementManager
71 MCNAPI
void*
$ctor(::
std::
string const& levelID, ::
std::function<
void()> callback);
Definition IResourcePackRepository.h:36
Definition MinecraftScreenModel.h:5
Definition ProgressHandler.h:5
Definition ResourcePackCopyProgressHandler.h:5
MCAPI void $onStart(::MinecraftScreenModel &minecraftScreenModel)
MCAPI void * $ctor(::std::string const &levelID, ::std::function< void()> callback)
MCAPI void $onExit(::MinecraftScreenModel &minecraftScreenModel)
MCAPI void $onCancel(::MinecraftScreenModel &minecraftScreenModel)
MCAPI ::Bedrock::Threading::Async< void > start(::Core::PathBuffer<::std::string > const &worldPath, ::IResourcePackRepository &resourcePackRepository, ::Bedrock::NotNullNonOwnerPtr<::IEntitlementManager > entitlementManager) const
MCAPI::std::string $getProgressMessage(::MinecraftScreenModel &minecraftScreenModel) const
MCAPI void $tick(::MinecraftScreenModel &minecraftScreenModel)
MCAPI::LoadingState $getLoadingState(::MinecraftScreenModel &minecraftScreenModel) const
MCAPI::std::string $getName() const
MCAPI::std::string $getTitleText() const
Definition TaskGroup.h:85