LeviLamina
Loading...
Searching...
No Matches
PlayScreenModel.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/gui/screens/models/MainMenuScreenModel.h"
7#include "mc/client/gui/screens/models/WorldType.h"
8#include "mc/client/gui/screens/models/interface/IWorldsProvider.h"
9#include "mc/client/world/NetworkWorldType.h"
10#include "mc/world/level/LevelListCacheObserver.h"
11
12// auto generated forward declare list
13// clang-format off
15class LevelSettings;
16struct LocalWorldInfo;
17struct NetworkWorldInfo;
18namespace Realms { struct RealmId; }
19namespace Realms { struct World; }
20// clang-format on
21
23public:
24 // PlayScreenModel inner types declare
25 // clang-format off
26 struct LiveServer;
28 // clang-format on
29
30 // PlayScreenModel inner types define
31 struct LiveServer {
32 public:
33 // member variables
34 // NOLINTBEGIN
39 // NOLINTEND
40
41 public:
42 // prevent constructor by default
43 LiveServer& operator=(LiveServer const&);
44 LiveServer(LiveServer const&);
45 LiveServer();
46 };
47
49 public:
50 // member variables
51 // NOLINTBEGIN
53 // NOLINTEND
54
55 public:
56 // prevent constructor by default
60
61 public:
62 // virtual functions
63 // NOLINTBEGIN
64 // vIndex: 2
65 virtual void onLevelAdded(::std::string const&) /*override*/;
66
67 // vIndex: 3
68 virtual void onLevelUpdated(::std::string const&) /*override*/;
69
70 // vIndex: 4
71 virtual void onLevelDeleted(::std::string const&) /*override*/;
72
73 // vIndex: 6
74 virtual void onStorageChanged() /*override*/;
75
76 // vIndex: 0
77 virtual ~PlayScreenLevelListCacheObserver() /*override*/ = default;
78 // NOLINTEND
79
80 public:
81 // virtual function thunks
82 // NOLINTBEGIN
83
84 // NOLINTEND
85 };
86
87 enum class FetchOutcome : int {
88 Success = 0,
89 Failure = 1,
90 Cancelled = 2,
91 };
92
93public:
94 // member variables
95 // NOLINTBEGIN
158 // NOLINTEND
159
160public:
161 // prevent constructor by default
162 PlayScreenModel& operator=(PlayScreenModel const&);
165
166public:
167 // virtual functions
168 // NOLINTBEGIN
169 // vIndex: 0
170 virtual ~PlayScreenModel() /*override*/ = default;
171
172 // vIndex: 1
173 virtual int getWorldCount(::WorldType, ::NetworkWorldType) const /*override*/;
174
175 // vIndex: 2
176 virtual ::LocalWorldInfo const* getLocalWorldAtIndex(int const) const /*override*/;
177
178 // vIndex: 3
179 virtual ::LocalWorldInfo const* getLocalWorldById(::std::string const&) const /*override*/;
180
181 // vIndex: 4
182 virtual bool refresh(::WorldType) /*override*/;
183
184 // vIndex: 5
185 virtual void startLocalWorld(::LocalWorldInfo, ::LevelSettings const*) /*override*/;
186
187 // vIndex: 11
188 virtual bool isDirty() const /*override*/;
189
190 // vIndex: 14
191 virtual ::IMinecraftEventing& getMinecraftEventing() const /*override*/;
192 // NOLINTEND
193
194public:
195 // virtual function thunks
196 // NOLINTBEGIN
197
198 // NOLINTEND
199};
Definition IMinecraftEventing.h:145
Definition IWorldsProvider.h:15
Definition LevelListCacheObserver.h:13
Definition LevelSettings.h:37
Definition MainMenuScreenModel.h:21
Definition PlayScreenModel.h:22
Definition LocalWorldInfo.h:8
Definition NetworkWorldInfo.h:8
Definition PlayScreenModel.h:31
Definition Alias.h:14