Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
LevelSummary.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/common/GameVersion.h"
7#include "mc/common/editor/WorldType.h"
8#include "mc/deps/core/file/PathBuffer.h"
9#include "mc/deps/core/resource/ContentIdentity.h"
10#include "mc/deps/shared_types/legacy/Difficulty.h"
11#include "mc/network/GamePublishSetting.h"
12#include "mc/options/EduSharedUriResource.h"
13#include "mc/options/EducationEditionOffer.h"
14#include "mc/options/EducationEditionOfferValue.h"
15#include "mc/util/BaseGameVersion.h"
16#include "mc/world/level/GameType.h"
17#include "mc/world/level/LevelSeed64.h"
18#include "mc/world/level/storage/CloudSaveLevelInfo.h"
19#include "mc/world/level/storage/Experiments.h"
20#include "mc/world/level/storage/StorageVersion.h"
21#include "mc/world/level/storage/WorldIconType.h"
22#include "mc/world/level/storage/edu_cloud/WorldSyncState.h"
23
24// auto generated forward declare list
25// clang-format off
26class LevelData;
27namespace Core { class Path; }
28// clang-format on
29
31public:
32 // member variables
33 // NOLINTBEGIN
34 ::ll::TypedStorage<8, 32, ::std::string> mId;
35 ::ll::TypedStorage<8, 32, ::std::string> mName;
36 ::ll::TypedStorage<8, 8, int64> mLastSaved;
37 ::ll::TypedStorage<4, 4, ::GameType> mGameType;
38 ::ll::TypedStorage<1, 1, bool> mIsHardcore;
39 ::ll::TypedStorage<1, 1, bool> mPlayerHasDied;
40 ::ll::TypedStorage<4, 4, int> mTime;
41 ::ll::TypedStorage<1, 1, bool> mShowDaysPlayed;
42 ::ll::TypedStorage<4, 4, ::SharedTypes::Legacy::Difficulty> mGameDifficulty;
43 ::ll::TypedStorage<8, 8, ::LevelSeed64> mSeed;
44 ::ll::TypedStorage<4, 4, int> mNetworkProtocolVersion;
45 ::ll::TypedStorage<8, 8, uint64> mSizeOnDisk;
46 ::ll::TypedStorage<1, 1, bool> mConfirmedPlatformLockedContent;
47 ::ll::TypedStorage<1, 1, bool> mIsMultiplayerEnabled;
48 ::ll::TypedStorage<1, 1, bool> mLANBroadcastIntent;
49 ::ll::TypedStorage<4, 4, ::Social::GamePublishSetting> mXBLBroadcastIntent;
50 ::ll::TypedStorage<1, 1, bool> mCommandsEnabled;
51 ::ll::TypedStorage<4, 4, ::EducationEditionOfferValue> mEducationEditionOffer;
52 ::ll::TypedStorage<8, 56, ::GameVersion> mLastLoadedGameVersion;
53 ::ll::TypedStorage<8, 56, ::GameVersion> mMinCompatibleClientVersion;
54 ::ll::TypedStorage<4, 4, ::StorageVersion> mStorageVersion;
55 ::ll::TypedStorage<8, 32, ::Core::PathBuffer<::std::string>> mWorldDirectoryPath;
56 ::ll::TypedStorage<8, 32, ::Core::PathBuffer<::std::string>> mWorldIconPath;
57 ::ll::TypedStorage<8, 32, ::Core::PathBuffer<::std::string>> mWorldIconTargetPath;
58 ::ll::TypedStorage<4, 4, ::WorldIconType> mWorldIconType;
59 ::ll::TypedStorage<8, 24, ::ContentIdentity> mPremiumTemplateContentIdentity;
60 ::ll::TypedStorage<8, 32, ::std::string> mMessUserId;
61 ::ll::TypedStorage<8, 72, ::Experiments> mExperiments;
62 ::ll::TypedStorage<8, 32, ::BaseGameVersion> mBaseGameVersion;
63 ::ll::TypedStorage<1, 1, bool> mIsSingleUseWorld;
64 ::ll::TypedStorage<1, 1, bool> mIsBetaRetailLevel;
65 ::ll::TypedStorage<8, 64, ::EduSharedUriResource> mEduSharedUriResource;
66 ::ll::TypedStorage<4, 4, ::Editor::WorldType> mEditorWorldType;
67 ::ll::TypedStorage<8, 176, ::std::optional<::CloudSaveLevelInfo>> mCloudSaveInfo;
68 ::ll::TypedStorage<4, 4, ::EduCloud::WorldSyncState> mEduCloudWorldSyncState;
69 ::ll::TypedStorage<1, 1, bool> mHasUncompleteWorldFileOnDisk;
70 ::ll::TypedStorage<8, 32, ::std::string> mEducationCreatorId;
71 ::ll::TypedStorage<8, 32, ::std::string> mEducationCreatorWorldId;
72 // NOLINTEND
73
74#ifdef LL_PLAT_S
75public:
76 // prevent constructor by default
77 LevelSummary& operator=(LevelSummary const&);
78
79#else // LL_PLAT_C
80#endif
81public:
82 // member functions
83 // NOLINTBEGIN
84 MCNAPI LevelSummary();
85
87
89 ::std::string const& levelId,
90 ::LevelData const& levelData,
91 ::Core::Path const& levelDirectory,
92 ::Core::Path const& levelInfoDirectory,
93 bool isBetaRetailLevel
94 );
95
96#ifdef LL_PLAT_C
97 MCNAPI LevelSummary(
98 ::std::string const& id,
99 ::std::string const& name,
100 int64 lastSaved,
101 ::GameType gameType,
102 bool isHardcore,
103 bool playerHasDied,
104 int time,
105 bool showDaysPlayed,
106 ::SharedTypes::Legacy::Difficulty gameDifficulty,
107 ::LevelSeed64 seed,
108 int npv,
109 uint64 sizeOnDisk,
110 bool confirmedPlatformLockedContent,
111 bool isMultiplayerEnabled,
112 bool lanBroadcastIntent,
113 ::Social::GamePublishSetting xblBroadcastIntent,
114 bool commandsEnabled,
115 ::EducationEditionOffer eduOffer,
116 ::GameVersion const& lastLoadedWithGameVersion,
117 ::GameVersion const& minCompatibleClientVersion,
118 ::StorageVersion storageVersion,
119 ::Core::Path const& path,
120 ::ContentIdentity const& premiumContentIdentity,
121 ::std::string const& messUserId,
122 bool isSingleUseWorld,
123 ::EduSharedUriResource const& eduSharedUriResource,
124 ::Experiments const& experiments,
125 ::BaseGameVersion const& baseGameVersion,
126 ::Editor::WorldType editorWorldType,
127 bool uncompleteWorldFileOnDisk,
128 ::std::optional<::CloudSaveLevelInfo> cloudSaveInfo
129 );
130#endif
131
132 MCNAPI void _initializeWorldIconPath(::Core::Path const& directory);
133
134#ifdef LL_PLAT_C
135 MCNAPI ::std::string getEducationCreatorId() const;
136
137 MCNAPI ::std::string getEducationCreatorWorldId() const;
138
139 MCNAPI bool hasCloudSaveAssociation() const;
140
141 MCNAPI bool isEditionCompatible() const;
142
143 MCNAPI bool isGameVersionCompatible() const;
144
145 MCNAPI ::LevelSummary& operator=(::LevelSummary const&);
146
147 MCNAPI bool operator==(::LevelSummary const& rhs) const;
148
149 MCNAPI void setCloudSave(::CloudSaveLevelInfo const& value);
150
151 MCNAPI ::LevelSummary& setId(::std::string Id);
152#endif
153
154 MCNAPI ::LevelSummary& setName(::std::string Name);
155
157 // NOLINTEND
158
159public:
160 // static functions
161 // NOLINTBEGIN
162#ifdef LL_PLAT_C
163 MCNAPI static ::Core::PathBuffer<::std::string>
164 buildScreenshotIconPath(::Core::Path const& worldDirectory, ::Core::Path const& previousScreenshotIconPath);
165#endif
166 // NOLINTEND
167
168public:
169 // static variables
170 // NOLINTBEGIN
171 MCNAPI static ::Core::PathBuffer<::std::string> const& CUSTOM_ICON_FILENAME();
172
173 MCNAPI static ::std::string const& DEFAULT_EDU_CLOUD_WORLD_ICON_FILENAME();
174
175 MCNAPI static ::std::string const& DEFAULT_WORLD_ICON_FILENAME();
176
177 MCNAPI static ::std::string const& INVALID_LEVEL_ID();
178
179 MCNAPI static ::std::string const& SCREENSHOT_WORLD_ICON_FILENAME_EXTENSION();
180
181 MCNAPI static ::std::string const& SCREENSHOT_WORLD_ICON_FILENAME_PREFIX();
182
183 MCNAPI static ::Core::PathBuffer<::std::string> const& WORLD_ICON_FILENAME();
184 // NOLINTEND
185
186public:
187 // constructor thunks
188 // NOLINTBEGIN
189 MCNAPI void* $ctor();
190
191 MCNAPI void* $ctor(::LevelSummary const&);
192
193 MCNAPI void* $ctor(
194 ::std::string const& levelId,
195 ::LevelData const& levelData,
196 ::Core::Path const& levelDirectory,
197 ::Core::Path const& levelInfoDirectory,
198 bool isBetaRetailLevel
199 );
200
201#ifdef LL_PLAT_C
202 MCNAPI void* $ctor(
203 ::std::string const& id,
204 ::std::string const& name,
205 int64 lastSaved,
206 ::GameType gameType,
207 bool isHardcore,
208 bool playerHasDied,
209 int time,
210 bool showDaysPlayed,
211 ::SharedTypes::Legacy::Difficulty gameDifficulty,
212 ::LevelSeed64 seed,
213 int npv,
214 uint64 sizeOnDisk,
215 bool confirmedPlatformLockedContent,
216 bool isMultiplayerEnabled,
217 bool lanBroadcastIntent,
218 ::Social::GamePublishSetting xblBroadcastIntent,
219 bool commandsEnabled,
220 ::EducationEditionOffer eduOffer,
221 ::GameVersion const& lastLoadedWithGameVersion,
222 ::GameVersion const& minCompatibleClientVersion,
223 ::StorageVersion storageVersion,
224 ::Core::Path const& path,
225 ::ContentIdentity const& premiumContentIdentity,
226 ::std::string const& messUserId,
227 bool isSingleUseWorld,
228 ::EduSharedUriResource const& eduSharedUriResource,
229 ::Experiments const& experiments,
230 ::BaseGameVersion const& baseGameVersion,
231 ::Editor::WorldType editorWorldType,
232 bool uncompleteWorldFileOnDisk,
233 ::std::optional<::CloudSaveLevelInfo> cloudSaveInfo
234 );
235#endif
236 // NOLINTEND
237
238public:
239 // destructor thunk
240 // NOLINTBEGIN
241 MCNAPI void $dtor();
242 // NOLINTEND
243};
Definition BaseGameVersion.h:8
Definition CloudSaveLevelInfo.h:10
Definition ContentIdentity.h:8
Definition Path.h:10
Definition Experiments.h:14
Definition GameVersion.h:10
Definition LevelData.h:57
Definition LevelSeed64.h:5
Definition EduSharedUriResource.h:10
MCAPI LevelSummary()
MCAPI LevelSummary(::LevelSummary const &)
MCAPI::LevelSummary & setName(::std::string Name)
MCAPI void * $ctor(::LevelSummary const &)
static MCAPI ::std::string const & SCREENSHOT_WORLD_ICON_FILENAME_PREFIX()
MCAPI void _initializeWorldIconPath(::Core::Path const &directory)
MCAPI void * $ctor()
static MCAPI ::std::string const & DEFAULT_WORLD_ICON_FILENAME()
static MCAPI ::Core::PathBuffer<::std::string > const & CUSTOM_ICON_FILENAME()
static MCAPI ::std::string const & INVALID_LEVEL_ID()
MCAPI LevelSummary(::std::string const &levelId, ::LevelData const &levelData, ::Core::Path const &levelDirectory, ::Core::Path const &levelInfoDirectory, bool isBetaRetailLevel)
MCAPI void * $ctor(::std::string const &levelId, ::LevelData const &levelData, ::Core::Path const &levelDirectory, ::Core::Path const &levelInfoDirectory, bool isBetaRetailLevel)
static MCAPI ::std::string const & DEFAULT_EDU_CLOUD_WORLD_ICON_FILENAME()
static MCAPI ::std::string const & SCREENSHOT_WORLD_ICON_FILENAME_EXTENSION()
MCAPI void $dtor()
MCAPI ~LevelSummary()
static MCAPI ::Core::PathBuffer<::std::string > const & WORLD_ICON_FILENAME()