LeviLamina
Loading...
Searching...
No Matches
ResourcePackProgressHandler.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/gui/GameEventNotification.h"
7#include "mc/client/gui/ProgressHandler.h"
8#include "mc/client/services/download/IContentAcquisition.h"
9#include "mc/world/actor/player/LoadingState.h"
10
11// auto generated forward declare list
12// clang-format off
13class DlcId;
15// clang-format on
16
18public:
19 // member variables
20 // NOLINTBEGIN
21 ::ll::TypedStorage<1, 1, bool> mDone;
22 ::ll::TypedStorage<8, 32, ::std::string> mPackProgress;
23 ::ll::TypedStorage<4, 4, float> mProgress;
24 ::ll::TypedStorage<8, 32, ::std::string> mProgressMessage;
25 ::ll::TypedStorage<4, 4, ::LoadingState> mLoadingState;
26 ::ll::TypedStorage<1, 1, bool> mDisconnected;
27 ::ll::TypedStorage<8, 16, ::std::optional<::std::chrono::steady_clock::time_point>> mStartTimestamp;
28 ::ll::TypedStorage<1, 1, bool> mLocalServer;
29 ::ll::TypedStorage<8, 16, ::std::shared_ptr<bool>> mPackImportExistenceTracker;
30 ::ll::TypedStorage<8, 8, ::IContentAcquisition::ImportCallbackId> mImportCallbackId;
31 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::std::vector<::DlcId>>> mFailedPackImports;
32 // NOLINTEND
33
34public:
35 // prevent constructor by default
36 ResourcePackProgressHandler();
37
38public:
39 // virtual functions
40 // NOLINTBEGIN
41 virtual ~ResourcePackProgressHandler() /*override*/;
42
43 virtual void onStart(::MinecraftScreenModel& minecraftScreenModel) /*override*/;
44
45 virtual void onGameEventNotification(
46 ::MinecraftScreenModel& minecraftScreenModel,
47 ::ui::GameEventNotification const& notification
48 ) /*override*/;
49
50 virtual void tick(::MinecraftScreenModel& minecraftScreenModel) /*override*/;
51
52 virtual void onCancel(::MinecraftScreenModel& minecraftScreenModel) /*override*/;
53
54 virtual void onExit(::MinecraftScreenModel& minecraftScreenModel) /*override*/;
55
56 virtual ::LoadingState getLoadingState(::MinecraftScreenModel& minecraftScreenModel) const /*override*/;
57
58 virtual ::std::string getProgressMessage(::MinecraftScreenModel& minecraftScreenModel) const /*override*/;
59
60 virtual float getLoadingProgress(::MinecraftScreenModel& minecraftScreenModel) const /*override*/;
61
62 virtual ::std::string getTitleText() const /*override*/;
63
64 virtual ::std::string getName() const /*override*/;
65 // NOLINTEND
66
67public:
68 // member functions
69 // NOLINTBEGIN
70 MCAPI explicit ResourcePackProgressHandler(bool localServer);
71
72 MCAPI void _resetCDNState(::MinecraftScreenModel& minecraftScreenModel, bool revertToServerBackend);
73 // NOLINTEND
74
75public:
76 // constructor thunks
77 // NOLINTBEGIN
78 MCAPI void* $ctor(bool localServer);
79 // NOLINTEND
80
81public:
82 // destructor thunk
83 // NOLINTBEGIN
84 MCAPI void $dtor();
85 // NOLINTEND
86
87public:
88 // virtual function thunks
89 // NOLINTBEGIN
90 MCAPI void $onStart(::MinecraftScreenModel& minecraftScreenModel);
91
92 MCAPI void $onGameEventNotification(
93 ::MinecraftScreenModel& minecraftScreenModel,
94 ::ui::GameEventNotification const& notification
95 );
96
97 MCAPI void $tick(::MinecraftScreenModel& minecraftScreenModel);
98
99 MCAPI void $onCancel(::MinecraftScreenModel& minecraftScreenModel);
100
101 MCAPI void $onExit(::MinecraftScreenModel& minecraftScreenModel);
102
103 MCAPI ::LoadingState $getLoadingState(::MinecraftScreenModel& minecraftScreenModel) const;
104
105 MCAPI ::std::string $getProgressMessage(::MinecraftScreenModel& minecraftScreenModel) const;
106
107 MCFOLD float $getLoadingProgress(::MinecraftScreenModel& minecraftScreenModel) const;
108
109 MCAPI ::std::string $getTitleText() const;
110
111 MCAPI ::std::string $getName() const;
112 // NOLINTEND
113
114public:
115 // vftables
116 // NOLINTBEGIN
117 MCNAPI static void** $vftable();
118 // NOLINTEND
119};
Definition DlcId.h:5
Definition MinecraftScreenModel.h:5
Definition ProgressHandler.h:5
Definition ResourcePackProgressHandler.h:5
static MCAPI void ** $vftable()