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 ::ll::TypedStorage<1, 1, bool> mAttemptedServerFallback;
33 // NOLINTEND
34
35public:
36 // prevent constructor by default
37 ResourcePackProgressHandler();
38
39public:
40 // virtual functions
41 // NOLINTBEGIN
42 virtual ~ResourcePackProgressHandler() /*override*/ = default;
43
44 virtual void onStart(::MinecraftScreenModel& minecraftScreenModel) /*override*/;
45
46 virtual void onGameEventNotification(
47 ::MinecraftScreenModel& minecraftScreenModel,
48 ::ui::GameEventNotification const& notification
49 ) /*override*/;
50
51 virtual void tick(::MinecraftScreenModel& minecraftScreenModel) /*override*/;
52
53 virtual void onCancel(::MinecraftScreenModel& minecraftScreenModel) /*override*/;
54
55 virtual void onExit(::MinecraftScreenModel& minecraftScreenModel) /*override*/;
56
57 virtual ::LoadingState getLoadingState(::MinecraftScreenModel& minecraftScreenModel) const /*override*/;
58
59 virtual ::std::string getProgressMessage(::MinecraftScreenModel& minecraftScreenModel) const /*override*/;
60
61 virtual float getLoadingProgress(::MinecraftScreenModel& minecraftScreenModel) const /*override*/;
62
63 virtual ::std::string getTitleText() const /*override*/;
64
65 virtual ::std::string getName() const /*override*/;
66 // NOLINTEND
67
68public:
69 // member functions
70 // NOLINTBEGIN
71 MCAPI explicit ResourcePackProgressHandler(bool localServer);
72 // NOLINTEND
73
74public:
75 // constructor thunks
76 // NOLINTBEGIN
77 MCAPI void* $ctor(bool localServer);
78 // NOLINTEND
79
80public:
81 // virtual function thunks
82 // NOLINTBEGIN
83 MCAPI void $onStart(::MinecraftScreenModel& minecraftScreenModel);
84
85 MCAPI void $onGameEventNotification(
86 ::MinecraftScreenModel& minecraftScreenModel,
87 ::ui::GameEventNotification const& notification
88 );
89
90 MCAPI void $tick(::MinecraftScreenModel& minecraftScreenModel);
91
92 MCAPI void $onCancel(::MinecraftScreenModel& minecraftScreenModel);
93
94 MCAPI void $onExit(::MinecraftScreenModel& minecraftScreenModel);
95
96 MCAPI ::LoadingState $getLoadingState(::MinecraftScreenModel& minecraftScreenModel) const;
97
98 MCAPI ::std::string $getProgressMessage(::MinecraftScreenModel& minecraftScreenModel) const;
99
100 MCAPI float $getLoadingProgress(::MinecraftScreenModel& minecraftScreenModel) const;
101
102 MCAPI ::std::string $getTitleText() const;
103
104 MCAPI ::std::string $getName() const;
105 // NOLINTEND
106
107public:
108 // vftables
109 // NOLINTBEGIN
110 MCNAPI static void** $vftable();
111 // NOLINTEND
112};
Definition DlcId.h:5
Definition MinecraftScreenModel.h:5
Definition ProgressHandler.h:5
Definition ResourcePackProgressHandler.h:5
static MCAPI void ** $vftable()