Skip to content
LeviMC
English
AutoLightDark
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*/ = default;
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 MCNAPI 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 MCNAPI 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 // virtual function thunks
81 // NOLINTBEGIN
82 MCNAPI void $onStart(::MinecraftScreenModel& minecraftScreenModel);
83
84 MCNAPI void $tick(::MinecraftScreenModel& minecraftScreenModel);
85
86 MCNAPI void $onCancel(::MinecraftScreenModel& minecraftScreenModel);
87
88 MCNAPI void $onExit(::MinecraftScreenModel& minecraftScreenModel);
89
90 MCNAPI ::LoadingState $getLoadingState(::MinecraftScreenModel& minecraftScreenModel) const;
91
92 MCNAPI ::std::string $getProgressMessage(::MinecraftScreenModel& minecraftScreenModel) const;
93
94 MCNAPI ::std::string $getTitleText() const;
95
96 MCNAPI ::std::string $getName() const;
97 // NOLINTEND
98};
Definition GenericProgressHandler.h:5
MCAPI void $tick(::MinecraftScreenModel &minecraftScreenModel)
MCAPI::LoadingState $getLoadingState(::MinecraftScreenModel &minecraftScreenModel) const
MCAPI void * $ctor(::std::string title, ::std::string message, ::brstd::move_only_function< void()> startCallback, ::brstd::move_only_function< void()> tickCallback, ::brstd::move_only_function< void()> cancelCallback, bool isCancellable)
MCAPI::std::string $getName() const
MCAPI void $onExit(::MinecraftScreenModel &minecraftScreenModel)
MCAPI void $onCancel(::MinecraftScreenModel &minecraftScreenModel)
MCAPI::std::string $getTitleText() const
MCAPI::std::string $getProgressMessage(::MinecraftScreenModel &minecraftScreenModel) const
MCAPI void $onStart(::MinecraftScreenModel &minecraftScreenModel)
Definition MinecraftScreenModel.h:5
Definition ProgressHandler.h:5
STL namespace.