Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
CloudSyncObserverProgressHandler.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<bool()>> mIsSyncRunning;
19 ::ll::TypedStorage<8, 64, ::std::function<bool()>> mHasSyncFailed;
20 ::ll::TypedStorage<8, 64, ::std::function<void()>> mOnCancelRequested;
21 ::ll::TypedStorage<8, 8, ::std::chrono::steady_clock::time_point const> mStartTimestamp;
22 ::ll::TypedStorage<8, 32, ::std::string> mScreenName;
23 // NOLINTEND
24
25public:
26 // prevent constructor by default
27 CloudSyncObserverProgressHandler();
28
29public:
30 // virtual functions
31 // NOLINTBEGIN
32 virtual ~CloudSyncObserverProgressHandler() /*override*/ = default;
33
34 virtual void onStart(::MinecraftScreenModel&) /*override*/;
35
36 virtual void tick(::MinecraftScreenModel& minecraftScreenModel) /*override*/;
37
38 virtual void onCancel(::MinecraftScreenModel&) /*override*/;
39
40 virtual void onExit(::MinecraftScreenModel& minecraftScreenModel) /*override*/;
41
42 virtual ::LoadingState getLoadingState(::MinecraftScreenModel&) const /*override*/;
43
44 virtual ::std::string getProgressMessage(::MinecraftScreenModel&) const /*override*/;
45
46 virtual ::std::string getTitleText() const /*override*/;
47
48 virtual ::std::string getName() const /*override*/;
49 // NOLINTEND
50
51public:
52 // member functions
53 // NOLINTBEGIN
54 MCNAPI CloudSyncObserverProgressHandler(
55 ::std::function<bool()> isSyncRunning,
56 ::std::function<bool()> hasSyncFailed,
57 ::std::function<void()> onCancelRequested,
58 ::std::string const& screenName
59 );
60 // NOLINTEND
61
62public:
63 // constructor thunks
64 // NOLINTBEGIN
65 MCNAPI void* $ctor(
66 ::std::function<bool()> isSyncRunning,
67 ::std::function<bool()> hasSyncFailed,
68 ::std::function<void()> onCancelRequested,
69 ::std::string const& screenName
70 );
71 // NOLINTEND
72
73public:
74 // virtual function thunks
75 // NOLINTBEGIN
77
78 MCNAPI void $tick(::MinecraftScreenModel& minecraftScreenModel);
79
81
82 MCNAPI void $onExit(::MinecraftScreenModel& minecraftScreenModel);
83
84 MCNAPI ::LoadingState $getLoadingState(::MinecraftScreenModel&) const;
85
86 MCNAPI ::std::string $getProgressMessage(::MinecraftScreenModel&) const;
87
88 MCNAPI ::std::string $getTitleText() const;
89
90 MCNAPI ::std::string $getName() const;
91 // NOLINTEND
92};
Definition CloudSyncObserverProgressHandler.h:5
MCAPI void $onExit(::MinecraftScreenModel &minecraftScreenModel)
MCAPI void * $ctor(::std::function< bool()> isSyncRunning, ::std::function< bool()> hasSyncFailed, ::std::function< void()> onCancelRequested, ::std::string const &screenName)
MCAPI void $onStart(::MinecraftScreenModel &)
MCAPI::std::string $getName() const
MCAPI::std::string $getTitleText() const
MCAPI void $tick(::MinecraftScreenModel &minecraftScreenModel)
MCAPI::std::string $getProgressMessage(::MinecraftScreenModel &) const
MCAPI::LoadingState $getLoadingState(::MinecraftScreenModel &) const
MCAPI void $onCancel(::MinecraftScreenModel &)
Definition MinecraftScreenModel.h:5
Definition ProgressHandler.h:5
STL namespace.