3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/deps/core/file/PathBuffer.h"
7#include "mc/deps/core/utility/NonOwnerPointer.h"
8#include "mc/platform/Result.h"
17namespace Core {
class Path; }
18namespace Core {
class Result; }
21namespace ExternalFileLevelStorage {
24MCNAPI ::Bedrock::Result<void>
25_readLevelDataFromFile(::Core::Path
const& datFilename, ::std::string
const& worldID, ::LevelData& levelData);
27MCNAPI
bool _writeLevelDat(::Core::Path
const& datFilename, ::LevelData
const& levelData);
29MCNAPI
void copyLevelInfoToDiskCache(::Core::Path
const& levelRootPath,
bool onlyIfNotExisting);
31MCNAPI ::std::unique_ptr<::PackAccessStrategy> getAccessStrategy(
32 ::Core::Path
const& levelDirectory,
33 ::ContentIdentity
const& contentIdentity,
34 ::Bedrock::NotNullNonOwnerPtr<::IContentKeyProvider const>
const& keyProvider
38MCNAPI
bool isLevelCloudSave(::Core::Path
const& directory);
40MCNAPI
bool isLevelCloudSaveOptOut(::Core::Path
const& directory);
43MCNAPI
void makeReadableLevelnameFile(::Core::Path
const& fullPath, ::std::string
const& name);
46MCNAPI
void markLevelAsCloudSave(::Core::Path
const& directory);
48MCNAPI
void markLevelAsCloudSaveOptOut(::Core::Path
const& directory);
51MCNAPI ::Core::Result readLevelDataFromData(::std::string
const& dataStr, ::LevelData& levelData);
53MCNAPI ::Bedrock::Result<bool>
54readLevelDataFromFile(::Core::Path
const& directory, ::std::string
const& levelId, ::LevelData& levelData);
56MCNAPI
bool readShallowLevelSummaryFromSyncFile(
57 ::Core::Path
const& directory,
58 ::std::string
const& levelId,
59 ::LevelSummary& summary
63MCNAPI
bool readSyncFileData(
64 ::Core::Path
const& directory,
65 ::std::string& levelName,
67 int64& remoteTimestamp,
72MCNAPI
void saveLevelData(
73 ::Core::Path
const& levelPath,
74 ::std::string
const& levelId,
75 ::LevelData
const& levelData,
79MCNAPI
void saveLevelDataToPath(::Core::Path
const& fullPath, ::LevelData
const& levelData);
82MCNAPI
void syncLevelInfoCache(::std::unordered_set<::Core::PathBuffer<::std::string>>
const& levelRootPaths);
84MCNAPI ::Core::Result unMarkLevelAsCloudSave(::Core::Path
const& directory);
86MCNAPI ::Core::Result unMarkLevelAsCloudSaveOptOut(::Core::Path
const& directory);
88MCNAPI ::Core::Result unMarkLevelForSync(::Core::Path
const& directory,
bool deleteWorldFolderIfEmpty);
91MCNAPI ::Core::Result validateLevelDat(::Core::Path filePath);
Definition ContentIdentity.h:8
Definition IContentKeyProvider.h:13
Definition LevelData.h:57
Definition PackAccessStrategy.h:25
Definition LevelSummary.h:30