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/resource/ResourceLocation.h"
9#include "mc/world/actor/player/LoadingState.h"
15namespace Core {
class Path; }
22 ::ll::TypedStorage<8, 32, ::std::string> mTitle;
23 ::ll::TypedStorage<8, 32, ::Core::PathBuffer<::std::string>> mDestPath;
24 ::ll::TypedStorage<8, 16, ::std::shared_ptr<bool>> mExistenceTracker;
25 ::ll::TypedStorage<8, 64, ::std::function<void(
bool)>> mCallback;
26 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::TaskGroup>> mIOTaskGroup;
27 ::ll::TypedStorage<8, 56, ::ResourceLocation> mSrcLocation;
28 ::ll::TypedStorage<1, 1, bool> mSrcZip;
29 ::ll::TypedStorage<1, 1, bool> mDestZip;
30 ::ll::TypedStorage<1, 1, bool> mCopyComplete;
31 ::ll::TypedStorage<1, 1, bool> mCopySuccess;
32 ::ll::TypedStorage<8, 24, ::std::vector<::std::string>> mExcludeDirs;
37 FileCopyProgressHandler();
42 virtual void onStart(::MinecraftScreenModel& minecraftScreenModel) ;
44 virtual void tick(::MinecraftScreenModel& minecraftScreenModel) ;
46 virtual void onCancel(::MinecraftScreenModel& minecraftScreenModel) ;
48 virtual void onExit(::MinecraftScreenModel& minecraftScreenModel) ;
50 virtual ::LoadingState getLoadingState(::MinecraftScreenModel& minecraftScreenModel)
const ;
52 virtual ::std::string getProgressMessage(::MinecraftScreenModel& minecraftScreenModel)
const ;
54 virtual ::std::string getTitleText() const ;
56 virtual ::std::
string getName() const ;
62 MCAPI FileCopyProgressHandler(
63 ::std::
string const& title,
64 ::ResourceLocation const& srcPath,
66 ::Core::Path const& dstPath,
68 ::std::vector<::std::
string> const& excludeDirs,
69 ::std::function<
void(
bool)> callback
77 ::std::
string const& title,
78 ::ResourceLocation const& srcPath,
80 ::Core::Path const& dstPath,
82 ::std::vector<::std::
string> const& excludeDirs,
83 ::std::function<
void(
bool)> callback
90 MCAPI
void $onStart(::MinecraftScreenModel& minecraftScreenModel);
92 MCAPI
void $tick(::MinecraftScreenModel& minecraftScreenModel);
94 MCFOLD
void $onCancel(::MinecraftScreenModel& minecraftScreenModel);
96 MCFOLD
void $onExit(::MinecraftScreenModel& minecraftScreenModel);
98 MCAPI ::LoadingState $getLoadingState(::MinecraftScreenModel& minecraftScreenModel) const;
100 MCFOLD ::std::
string $getProgressMessage(::MinecraftScreenModel& minecraftScreenModel) const;
102 MCFOLD ::std::
string $getTitleText() const;
104 MCAPI ::std::
string $getName() const;
Definition FileCopyProgressHandler.h:5
Definition MinecraftScreenModel.h:5
Definition ProgressHandler.h:5
Definition TaskGroup.h:86