33 virtual void addLevel(::std::string
const& levelId,
::LevelData&& levelData) = 0;
35 virtual void deleteLevel(::std::string
const& levelId) = 0;
37 virtual void refreshLevel(::std::string
const& levelId) = 0;
39 virtual void deleteLevelFiles(::std::string
const& levelId) = 0;
41 virtual void postDeleteLevel(::std::string
const& levelId) = 0;
43 virtual void renameLevel(::std::string
const& levelId, ::std::string
const& newLevelName) = 0;
45 virtual void renameAndSaveLevelData(
46 ::std::string
const& levelId,
47 ::std::string
const& newLevelName,
51 virtual void saveLevelData(::std::string
const& levelId,
::LevelData const& levelData) = 0;
53 virtual void createBackupCopyOfWorld(
54 ::std::string
const& levelId,
55 ::std::string
const& newLevelId,
56 ::std::string
const& newName
59 virtual bool hasLevelWithId(::std::string
const& levelId) = 0;
63 virtual bool checkIfLevelIsCorruptOrMissing(::std::string
const& levelId) = 0;
69 virtual ::Bedrock::UniqueOwnerPointer<::LevelStorage> createLevelStorage(
71 ::std::string
const& levelId,
73 ::Bedrock::NotNullNonOwnerPtr<::IContentKeyProvider const>
const& keyProvider,
74 ::std::chrono::nanoseconds
const& writeFlushInterval,
75 ::Bedrock::NotNullNonOwnerPtr<::LevelDbEnv> levelDbEnv,
76 ::std::unique_ptr<::LevelStorageEventing> levelStorageEventing
79 virtual ::std::unique_ptr<::LevelLooseFileStorage> createLevelLooseStorage(
80 ::std::string
const& levelId,
82 ::Bedrock::NotNullNonOwnerPtr<::IContentKeyProvider const>
const& keyProvider
85 virtual ::LevelSummary* getLevelSummary(::std::string
const& levelId) = 0;
87 virtual ::LevelSummary
const* getLevelSummaryByName(::std::string
const& levelName) = 0;
89 virtual ::LevelSummary* getOrCreateLevelSummary(
::Core::Path const& directory) = 0;
91 virtual ::LevelData* getLevelData(::std::string
const& levelId) = 0;
93 virtual ::Bedrock::NonOwnerPointer<::LevelData> getLevelDataNonOwnerPointer(::std::string
const& levelId) = 0;
95 virtual ::LevelSummary* getShallowLevelSummary(::std::string
const& levelId) = 0;
97 virtual void getLevelList(
98 ::std::vector<::LevelSummary>& dest,
99 bool includeShallowSummaries,
100 bool includePartiallyCopiedLevels,
101 bool includeBetaRetailLevels,
102 bool includeInvalidLevelDataLevels
105 virtual bool hasCachedLevels(
bool includeShallowSummaries)
const = 0;
107 virtual void updateLevelCache(::std::string
const& levelId) = 0;
109 virtual ::std::unique_ptr<::LevelStorageObserver> createLevelStorageObserver() = 0;
111 virtual void onSave(::std::string
const& levelId) = 0;
113 virtual void onStorageChanged() = 0;
115 virtual ::Core::PathBuffer<::std::string>
const getBasePath()
const = 0;
Definition ContentIdentity.h:8
Definition IContentKeyProvider.h:13