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
30struct LevelSummary {
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, ::SharedTypes::Legacy::Difficulty> mGameDifficulty;
41 ::ll::TypedStorage<8, 8, ::LevelSeed64> mSeed;
42 ::ll::TypedStorage<4, 4, int> mNetworkProtocolVersion;
43 ::ll::TypedStorage<8, 8, uint64> mSizeOnDisk;
44 ::ll::TypedStorage<1, 1, bool> mConfirmedPlatformLockedContent;
45 ::ll::TypedStorage<1, 1, bool> mIsMultiplayerEnabled;
46 ::ll::TypedStorage<1, 1, bool> mLANBroadcastIntent;
47 ::ll::TypedStorage<4, 4, ::Social::GamePublishSetting> mXBLBroadcastIntent;
48 ::ll::TypedStorage<1, 1, bool> mCommandsEnabled;
49 ::ll::TypedStorage<4, 4, ::EducationEditionOfferValue> mEducationEditionOffer;
50 ::ll::TypedStorage<8, 56, ::GameVersion> mLastLoadedGameVersion;
51 ::ll::TypedStorage<8, 56, ::GameVersion> mMinCompatibleClientVersion;
52 ::ll::TypedStorage<4, 4, ::StorageVersion> mStorageVersion;
53 ::ll::TypedStorage<8, 32, ::Core::PathBuffer<::std::string>> mWorldDirectoryPath;
54 ::ll::TypedStorage<8, 32, ::Core::PathBuffer<::std::string>> mWorldIconPath;
55 ::ll::TypedStorage<8, 32, ::Core::PathBuffer<::std::string>> mWorldIconTargetPath;
56 ::ll::TypedStorage<4, 4, ::WorldIconType> mWorldIconType;
57 ::ll::TypedStorage<8, 24, ::ContentIdentity> mPremiumTemplateContentIdentity;
58 ::ll::TypedStorage<8, 32, ::std::string> mEducationOid;
59 ::ll::TypedStorage<8, 72, ::Experiments> mExperiments;
60 ::ll::TypedStorage<8, 32, ::BaseGameVersion> mBaseGameVersion;
61 ::ll::TypedStorage<1, 1, bool> mIsSingleUseWorld;
62 ::ll::TypedStorage<1, 1, bool> mIsBetaRetailLevel;
63 ::ll::TypedStorage<8, 64, ::EduSharedUriResource> mEduSharedUriResource;
64 ::ll::TypedStorage<4, 4, ::Editor::WorldType> mEditorWorldType;
65 ::ll::TypedStorage<8, 176, ::std::optional<::CloudSaveLevelInfo>> mCloudSaveInfo;
66 ::ll::TypedStorage<4, 4, ::EduCloud::WorldSyncState> mEduCloudWorldSyncState;
67 ::ll::TypedStorage<1, 1, bool> mHasUncompleteWorldFileOnDisk;
68 ::ll::TypedStorage<8, 32, ::std::string> mEducationCreatorId;
69 ::ll::TypedStorage<8, 32, ::std::string> mEducationCreatorWorldId;
70 // NOLINTEND
71
72public:
73 // member functions
74 // NOLINTBEGIN
75 MCAPI LevelSummary();
76
77 MCAPI LevelSummary(::LevelSummary const&);
78
79 MCAPI LevelSummary(
80 ::std::string const& levelId,
81 ::LevelData const& levelData,
82 ::Core::Path const& levelDirectory,
83 ::Core::Path const& levelInfoDirectory,
84 bool isBetaRetailLevel
85 );
86
87 MCAPI LevelSummary(
88 ::std::string const& id,
89 ::std::string const& name,
90 int64 lastSaved,
91 ::GameType gameType,
92 bool isHardcore,
93 bool playerHasDied,
94 ::SharedTypes::Legacy::Difficulty gameDifficulty,
95 ::LevelSeed64 seed,
96 int npv,
97 uint64 sizeOnDisk,
98 bool confirmedPlatformLockedContent,
99 bool isMultiplayerEnabled,
100 bool lanBroadcastIntent,
101 ::Social::GamePublishSetting xblBroadcastIntent,
102 bool commandsEnabled,
103 ::EducationEditionOffer eduOffer,
104 ::GameVersion const& lastLoadedWithGameVersion,
105 ::GameVersion const& minCompatibleClientVersion,
106 ::StorageVersion storageVersion,
107 ::Core::Path const& path,
108 ::ContentIdentity const& premiumContentIdentity,
109 ::std::string const& educationOid,
110 bool isSingleUseWorld,
111 ::EduSharedUriResource const& eduSharedUriResource,
112 ::Experiments const& experiments,
113 ::BaseGameVersion const& baseGameVersion,
114 ::Editor::WorldType editorWorldType,
115 bool uncompleteWorldFileOnDisk,
116 ::std::optional<::CloudSaveLevelInfo> cloudSaveInfo
117 );
118
119 MCAPI ::std::optional<::Core::PathBuffer<::std::string>> _getScreenshotIconPath(::Core::Path const& worldDirectory);
120
121 MCAPI void _initializeWorldIconPath(::Core::Path const& directory);
122
123 MCAPI_C bool cloudSaveForWorldIsEnabled() const;
124
125 MCAPI_C bool isEditionCompatible() const;
126
127 MCAPI_C bool isVersionCompatible() const;
128
129 MCAPI ::LevelSummary& operator=(::LevelSummary const&);
130
131 MCAPI_C ::LevelSummary& setId(::std::string Id);
132
133 MCAPI ::LevelSummary& setName(::std::string Name);
134
135 MCAPI ~LevelSummary();
136 // NOLINTEND
137
138public:
139 // static functions
140 // NOLINTBEGIN
141 MCAPI_C static ::Core::PathBuffer<::std::string>
142 buildScreenshotIconPath(::Core::Path const& worldDirectory, ::Core::Path const& previousScreenshotIconPath);
143 // NOLINTEND
144
145public:
146 // static variables
147 // NOLINTBEGIN
148 MCAPI static ::Core::PathBuffer<::std::string> const& CUSTOM_ICON_FILENAME();
149
150 MCAPI static ::std::string const& DEFAULT_EDU_CLOUD_WORLD_ICON_FILENAME();
151
152 MCAPI static ::std::string const& DEFAULT_WORLD_ICON_FILENAME();
153
154 MCAPI static ::std::string const& INVALID_LEVEL_ID();
155
156 MCAPI static ::std::string const& SCREENSHOT_WORLD_ICON_FILENAME_EXTENSION();
157
158 MCAPI static ::std::string const& SCREENSHOT_WORLD_ICON_FILENAME_PREFIX();
159
160 MCAPI static ::Core::PathBuffer<::std::string> const& WORLD_ICON_FILENAME();
161 // NOLINTEND
162
163public:
164 // constructor thunks
165 // NOLINTBEGIN
166 MCAPI void* $ctor();
167
168 MCAPI void* $ctor(::LevelSummary const&);
169
170 MCAPI void* $ctor(
171 ::std::string const& levelId,
172 ::LevelData const& levelData,
173 ::Core::Path const& levelDirectory,
174 ::Core::Path const& levelInfoDirectory,
175 bool isBetaRetailLevel
176 );
177
178 MCAPI void* $ctor(
179 ::std::string const& id,
180 ::std::string const& name,
181 int64 lastSaved,
182 ::GameType gameType,
183 bool isHardcore,
184 bool playerHasDied,
185 ::SharedTypes::Legacy::Difficulty gameDifficulty,
186 ::LevelSeed64 seed,
187 int npv,
188 uint64 sizeOnDisk,
189 bool confirmedPlatformLockedContent,
190 bool isMultiplayerEnabled,
191 bool lanBroadcastIntent,
192 ::Social::GamePublishSetting xblBroadcastIntent,
193 bool commandsEnabled,
194 ::EducationEditionOffer eduOffer,
195 ::GameVersion const& lastLoadedWithGameVersion,
196 ::GameVersion const& minCompatibleClientVersion,
197 ::StorageVersion storageVersion,
198 ::Core::Path const& path,
199 ::ContentIdentity const& premiumContentIdentity,
200 ::std::string const& educationOid,
201 bool isSingleUseWorld,
202 ::EduSharedUriResource const& eduSharedUriResource,
203 ::Experiments const& experiments,
204 ::BaseGameVersion const& baseGameVersion,
205 ::Editor::WorldType editorWorldType,
206 bool uncompleteWorldFileOnDisk,
207 ::std::optional<::CloudSaveLevelInfo> cloudSaveInfo
208 );
209 // NOLINTEND
210
211public:
212 // destructor thunk
213 // NOLINTBEGIN
214 MCAPI void $dtor();
215 // NOLINTEND
216};
Definition BaseGameVersion.h:8
Definition ContentIdentity.h:8
Definition Path.h:10
Definition Experiments.h:14
Definition GameVersion.h:10
Definition LevelData.h:50
Definition LevelSeed64.h:5
Definition EduSharedUriResource.h:10