LeviLamina
Loading...
Searching...
No Matches
ResourcePackCopyProgressHandler.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
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"
11
12// auto generated forward declare list
13// clang-format off
14class IEntitlementManager;
17class TaskGroup;
18// clang-format on
19
21public:
22 // member variables
23 // NOLINTBEGIN
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;
28 // NOLINTEND
29
30public:
31 // prevent constructor by default
32 ResourcePackCopyProgressHandler();
33
34public:
35 // virtual functions
36 // NOLINTBEGIN
37 virtual ~ResourcePackCopyProgressHandler() /*override*/;
38
39 virtual void onStart(::MinecraftScreenModel& minecraftScreenModel) /*override*/;
40
41 virtual void tick(::MinecraftScreenModel& minecraftScreenModel) /*override*/;
42
43 virtual void onCancel(::MinecraftScreenModel& minecraftScreenModel) /*override*/;
44
45 virtual void onExit(::MinecraftScreenModel& minecraftScreenModel) /*override*/;
46
47 virtual ::LoadingState getLoadingState(::MinecraftScreenModel& minecraftScreenModel) const /*override*/;
48
49 virtual ::std::string getProgressMessage(::MinecraftScreenModel& minecraftScreenModel) const /*override*/;
50
51 virtual ::std::string getTitleText() const /*override*/;
52
53 virtual ::std::string getName() const /*override*/;
54 // NOLINTEND
55
56public:
57 // member functions
58 // NOLINTBEGIN
59 MCAPI ResourcePackCopyProgressHandler(::std::string const& levelID, ::std::function<void()> callback);
60
61 MCAPI ::Bedrock::Threading::Async<void> start(
62 ::Core::PathBuffer<::std::string> const& levelBasePath,
63 ::IResourcePackRepository& resourcePackRepository,
64 ::Bedrock::NotNullNonOwnerPtr<::IEntitlementManager> entitlementManager
65 ) const;
66 // NOLINTEND
67
68public:
69 // constructor thunks
70 // NOLINTBEGIN
71 MCAPI void* $ctor(::std::string const& levelID, ::std::function<void()> callback);
72 // NOLINTEND
73
74public:
75 // destructor thunk
76 // NOLINTBEGIN
77 MCAPI void $dtor();
78 // NOLINTEND
79
80public:
81 // virtual function thunks
82 // NOLINTBEGIN
83 MCAPI void $onStart(::MinecraftScreenModel& minecraftScreenModel);
84
85 MCAPI void $tick(::MinecraftScreenModel& minecraftScreenModel);
86
87 MCFOLD void $onCancel(::MinecraftScreenModel& minecraftScreenModel);
88
89 MCFOLD void $onExit(::MinecraftScreenModel& minecraftScreenModel);
90
91 MCFOLD ::LoadingState $getLoadingState(::MinecraftScreenModel& minecraftScreenModel) const;
92
93 MCFOLD ::std::string $getProgressMessage(::MinecraftScreenModel& minecraftScreenModel) const;
94
95 MCAPI ::std::string $getTitleText() const;
96
97 MCAPI ::std::string $getName() const;
98 // NOLINTEND
99
100public:
101 // vftables
102 // NOLINTBEGIN
103 MCNAPI static void** $vftable();
104 // NOLINTEND
105};
Definition IResourcePackRepository.h:34
Definition MinecraftScreenModel.h:5
Definition ProgressHandler.h:5
Definition ResourcePackCopyProgressHandler.h:5
static MCAPI void ** $vftable()
Definition TaskGroup.h:57