LeviLamina
Loading...
Searching...
No Matches
ProgressHandler.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/ProgressAnimation.h"
8#include "mc/client/gui/ProgressHandlerType.h"
9#include "mc/world/actor/player/LoadingState.h"
10
11// auto generated forward declare list
12// clang-format off
14// clang-format on
15
16class ProgressHandler {
17public:
18 // member variables
19 // NOLINTBEGIN
20 ::ll::TypedStorage<4, 4, ::ProgressHandlerType const> mType;
21 ::ll::TypedStorage<4, 4, ::ProgressAnimation> mProgressAnimation;
22 // NOLINTEND
23
24public:
25 // virtual functions
26 // NOLINTBEGIN
27 virtual ~ProgressHandler() = default;
28
29 virtual void onStart(::MinecraftScreenModel& minecraftScreenModel) = 0;
30
31 virtual void onGameEventNotification(
32 ::MinecraftScreenModel& minecraftScreenModel,
33 ::ui::GameEventNotification const& notification
34 );
35
36 virtual void tick(::MinecraftScreenModel& minecraftScreenModel) = 0;
37
38 virtual void onCancel(::MinecraftScreenModel& minecraftScreenModel) = 0;
39
40 virtual void onRetry(::MinecraftScreenModel& minecraftScreenModel);
41
42 virtual void onExit(::MinecraftScreenModel& minecraftScreenModel) = 0;
43
44 virtual ::LoadingState getLoadingState(::MinecraftScreenModel& minecraftScreenModel) const = 0;
45
46 virtual float getLoadingProgress(::MinecraftScreenModel& minecraftScreenModel) const;
47
48 virtual ::std::string getProgressMessage(::MinecraftScreenModel& minecraftScreenModel) const = 0;
49
50 virtual void addEventProperties(::std::unordered_map<::std::string, ::std::string>& eventProperties) const;
51
52 virtual ::std::string getName() const = 0;
53
54 virtual ::std::string getTTSProgressMessage() const;
55
56 virtual ::std::string getTitleText() const;
57
58 virtual ::ProgressAnimation showLoadingBar() const;
59 // NOLINTEND
60
61public:
62 // virtual function thunks
63 // NOLINTBEGIN
64 MCFOLD void $onGameEventNotification(
65 ::MinecraftScreenModel& minecraftScreenModel,
66 ::ui::GameEventNotification const& notification
67 );
68
69 MCFOLD void $onRetry(::MinecraftScreenModel& minecraftScreenModel);
70
71 MCAPI float $getLoadingProgress(::MinecraftScreenModel& minecraftScreenModel) const;
72
73 MCFOLD void $addEventProperties(::std::unordered_map<::std::string, ::std::string>& eventProperties) const;
74
75 MCAPI ::std::string $getTTSProgressMessage() const;
76
77 MCAPI ::std::string $getTitleText() const;
78
79 MCFOLD ::ProgressAnimation $showLoadingBar() const;
80 // NOLINTEND
81};
Definition MinecraftScreenModel.h:5
Definition ProgressHandler.h:5