59 virtual void addLevel(::std::string
const& levelId,
::LevelData&& levelData) ;
62 virtual void deleteLevel(::std::string
const& levelId) ;
65 virtual void refreshLevel(::std::string
const& levelId) ;
68 virtual void deleteLevelFiles(::std::string
const& levelId) ;
71 virtual void postDeleteLevel(::std::string
const& levelId) ;
74 virtual void renameLevel(::std::string
const& levelId, ::std::string
const& newLevelName) ;
77 virtual void renameAndSaveLevelData(
78 ::std::string
const& levelId,
79 ::std::string
const& newLevelName,
84 virtual void saveLevelData(::std::string
const& levelId,
::LevelData const& levelData) ;
87 virtual void createBackupCopyOfWorld(
88 ::std::string
const& levelId,
89 ::std::string
const& newLevelId,
90 ::std::string
const& newName
94 virtual bool hasLevelWithId(::std::string
const& levelId) ;
97 virtual bool checkIfLevelIsCorruptOrMissing(::std::string
const& levelId) ;
106 virtual ::Bedrock::UniqueOwnerPointer<::LevelStorage> createLevelStorage(
108 ::std::string
const& levelId,
110 ::Bedrock::NotNullNonOwnerPtr<::IContentKeyProvider const>
const& keyProvider,
111 ::std::chrono::nanoseconds
const& writeFlushInterval,
112 ::Bedrock::NotNullNonOwnerPtr<::LevelDbEnv> levelDbEnv,
113 ::std::unique_ptr<::LevelStorageEventing> levelStorageEventing
117 virtual ::std::unique_ptr<::LevelLooseFileStorage> createLevelLooseStorage(
118 ::std::string
const& levelId,
120 ::Bedrock::NotNullNonOwnerPtr<::IContentKeyProvider const>
const& keyProvider
124 virtual ::LevelSummary* getLevelSummary(::std::string
const& levelId) ;
127 virtual ::LevelSummary
const* getLevelSummaryByName(::std::string
const& levelName) ;
130 virtual ::LevelSummary* getOrCreateLevelSummary(
::Core::Path const& directory) ;
133 virtual ::LevelData* getLevelData(::std::string
const& levelId) ;
136 virtual ::Bedrock::NonOwnerPointer<::LevelData> getLevelDataNonOwnerPointer(::std::string
const& levelId
140 virtual ::LevelSummary* getShallowLevelSummary(::std::string
const& levelId) ;
143 virtual void getLevelList(
144 ::std::vector<::LevelSummary>& dest,
145 bool includeShallowSummaries,
146 bool includePartiallyCopiedLevels,
147 bool includeBetaRetailLevels
151 virtual bool hasCachedLevels(
bool includeShallowSummaries)
const ;
154 virtual void updateLevelCache(::std::string
const& levelId) ;
157 virtual ::std::unique_ptr<::LevelStorageObserver> createLevelStorageObserver() ;
160 virtual void onSave(::std::string
const& levelId) ;
163 virtual void onStorageChanged() ;
166 virtual ::Core::PathBuffer<::std::string>
const getBasePath()
const ;
174 ::Bedrock::NotNullNonOwnerPtr<::AppPlatform const> appPlatform,
175 ::std::function<
bool()>&& checkIsSafeToFlushCache
178 MCAPI ::LevelCache* _addOrReplaceCache(
::Core::Path const& path);
180 MCAPI ::LevelCache* _addToCache(
::Core::Path const& path);
182 MCAPI ::LevelCache* _addToCache(::std::string
const& levelId,
::LevelCache&& levelCache);
184 MCAPI ::LevelCache* _createAndAddToCache(::std::string
const& levelId,
::Core::Path const& directory);
186 MCAPI ::LevelSummary* _getLevelSummary(::std::string
const& levelId);
188 MCAPI
void _notifyLevelUpdated(::std::string
const& levelId);
190 MCAPI
void _refreshSummary(::std::string
const& levelId,
::LevelCache& cache);
198 ::Bedrock::NotNullNonOwnerPtr<::AppPlatform const> appPlatform,
199 ::std::function<
bool()>&& checkIsSafeToFlushCache
212 MCAPI
void $addLevel(::std::string
const& levelId,
::LevelData&& levelData);
214 MCAPI
void $deleteLevel(::std::string
const& levelId);
216 MCAPI
void $refreshLevel(::std::string
const& levelId);
218 MCAPI
void $deleteLevelFiles(::std::string
const& levelId);
220 MCAPI
void $postDeleteLevel(::std::string
const& levelId);
222 MCAPI
void $renameLevel(::std::string
const& levelId, ::std::string
const& newLevelName);
224 MCAPI
void $renameAndSaveLevelData(
225 ::std::string
const& levelId,
226 ::std::string
const& newLevelName,
230 MCAPI
void $saveLevelData(::std::string
const& levelId,
::LevelData const& levelData);
232 MCAPI
void $createBackupCopyOfWorld(
233 ::std::string
const& levelId,
234 ::std::string
const& newLevelId,
235 ::std::string
const& newName
238 MCAPI
bool $hasLevelWithId(::std::string
const& levelId);
240 MCAPI
bool $checkIfLevelIsCorruptOrMissing(::std::string
const& levelId);
246 MCAPI ::Bedrock::UniqueOwnerPointer<::LevelStorage> $createLevelStorage(
248 ::std::string
const& levelId,
250 ::Bedrock::NotNullNonOwnerPtr<::IContentKeyProvider const>
const& keyProvider,
251 ::std::chrono::nanoseconds
const& writeFlushInterval,
252 ::Bedrock::NotNullNonOwnerPtr<::LevelDbEnv> levelDbEnv,
253 ::std::unique_ptr<::LevelStorageEventing> levelStorageEventing
256 MCAPI ::std::unique_ptr<::LevelLooseFileStorage> $createLevelLooseStorage(
257 ::std::string
const& levelId,
259 ::Bedrock::NotNullNonOwnerPtr<::IContentKeyProvider const>
const& keyProvider
262 MCAPI ::LevelSummary* $getLevelSummary(::std::string
const& levelId);
264 MCAPI ::LevelSummary
const* $getLevelSummaryByName(::std::string
const& levelName);
266 MCAPI ::LevelSummary* $getOrCreateLevelSummary(
::Core::Path const& directory);
268 MCAPI ::LevelData* $getLevelData(::std::string
const& levelId);
270 MCAPI ::Bedrock::NonOwnerPointer<::LevelData> $getLevelDataNonOwnerPointer(::std::string
const& levelId);
272 MCAPI ::LevelSummary* $getShallowLevelSummary(::std::string
const& levelId);
274 MCAPI
void $getLevelList(
275 ::std::vector<::LevelSummary>& dest,
276 bool includeShallowSummaries,
277 bool includePartiallyCopiedLevels,
278 bool includeBetaRetailLevels
281 MCAPI
bool $hasCachedLevels(
bool includeShallowSummaries)
const;
283 MCAPI
void $updateLevelCache(::std::string
const& levelId);
285 MCAPI ::std::unique_ptr<::LevelStorageObserver> $createLevelStorageObserver();
287 MCAPI
void $onSave(::std::string
const& levelId);
289 MCAPI
void $onStorageChanged();
291 MCAPI ::Core::PathBuffer<::std::string>
const $getBasePath()
const;
297 MCAPI
static void** $vftableForILevelListCache();
299 MCAPI
static void** $vftableForEnableQueueForMainThread();
Definition ContentIdentity.h:10
Definition IContentKeyProvider.h:13