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