LeviLamina
Loading...
Searching...
No Matches
StoreProgressHandler.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/world/actor/player/LoadingState.h"
8
9// auto generated forward declare list
10// clang-format off
12// clang-format on
13
15public:
16 // member variables
17 // NOLINTBEGIN
18 ::ll::TypedStorage<8, 64, ::std::function<void(bool&)>> mOnTick;
19 ::ll::TypedStorage<8, 64, ::std::function<void()>> mOnCancel;
20 ::ll::TypedStorage<8, 32, ::std::string> mTitleText;
21 ::ll::TypedStorage<1, 1, bool> mDone;
22 // NOLINTEND
23
24public:
25 // prevent constructor by default
26 StoreProgressHandler();
27
28public:
29 // virtual functions
30 // NOLINTBEGIN
31 virtual ~StoreProgressHandler() /*override*/ = default;
32
33 virtual void onStart(::MinecraftScreenModel&) /*override*/;
34
35 virtual void tick(::MinecraftScreenModel&) /*override*/;
36
37 virtual void onCancel(::MinecraftScreenModel&) /*override*/;
38
39 virtual void onExit(::MinecraftScreenModel& minecraftScreenModel) /*override*/;
40
41 virtual ::LoadingState getLoadingState(::MinecraftScreenModel&) const /*override*/;
42
43 virtual ::std::string getProgressMessage(::MinecraftScreenModel&) const /*override*/;
44
45 virtual ::std::string getTitleText() const /*override*/;
46
47 virtual ::std::string getName() const /*override*/;
48 // NOLINTEND
49
50public:
51 // member functions
52 // NOLINTBEGIN
53 MCAPI StoreProgressHandler(
54 ::std::string const& title,
55 ::std::function<void(bool&)> tickCallback,
56 ::std::function<void()> cancelCallback
57 );
58 // NOLINTEND
59
60public:
61 // constructor thunks
62 // NOLINTBEGIN
63 MCAPI void* $ctor(
64 ::std::string const& title,
65 ::std::function<void(bool&)> tickCallback,
66 ::std::function<void()> cancelCallback
67 );
68 // NOLINTEND
69
70public:
71 // virtual function thunks
72 // NOLINTBEGIN
73 MCFOLD void $onStart(::MinecraftScreenModel&);
74
75 MCAPI void $tick(::MinecraftScreenModel&);
76
77 MCFOLD void $onCancel(::MinecraftScreenModel&);
78
79 MCFOLD void $onExit(::MinecraftScreenModel& minecraftScreenModel);
80
81 MCAPI ::LoadingState $getLoadingState(::MinecraftScreenModel&) const;
82
83 MCAPI ::std::string $getProgressMessage(::MinecraftScreenModel&) const;
84
85 MCFOLD ::std::string $getTitleText() const;
86
87 MCAPI ::std::string $getName() const;
88 // NOLINTEND
89
90public:
91 // vftables
92 // NOLINTBEGIN
93 MCNAPI static void** $vftable();
94 // NOLINTEND
95};
Definition MinecraftScreenModel.h:5
Definition ProgressHandler.h:5
Definition StoreProgressHandler.h:5
static MCAPI void ** $vftable()