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 ensureLevelInitialized(::std::string
const& levelId) = 0;
41 virtual void deleteLevelFiles(::std::string
const& levelId) = 0;
43 virtual void postDeleteLevel(::std::string
const& levelId) = 0;
45 virtual void renameLevel(::std::string
const& levelId, ::std::string
const& newLevelName) = 0;
47 virtual void renameAndSaveLevelData(
48 ::std::string
const& levelId,
49 ::std::string
const& newLevelName,
53 virtual void saveLevelData(::std::string
const& levelId,
::LevelData const& levelData) = 0;
55 virtual void createBackupCopyOfWorld(
56 ::std::string
const& levelId,
57 ::std::string
const& newLevelId,
58 ::std::string
const& newName
61 virtual bool hasLevelWithId(::std::string
const& levelId) = 0;
65 virtual bool checkIfLevelIsCorruptOrMissing(::std::string
const& levelId) = 0;
71 virtual ::Bedrock::UniqueOwnerPointer<::LevelStorage> createLevelStorage(
73 ::std::string
const& levelId,
75 ::Bedrock::NotNullNonOwnerPtr<::IContentKeyProvider const>
const& keyProvider,
76 ::std::chrono::nanoseconds
const& writeFlushInterval,
77 ::Bedrock::NotNullNonOwnerPtr<::LevelDbEnv> levelDbEnv,
78 ::std::unique_ptr<::LevelStorageEventing> levelStorageEventing
81 virtual ::std::unique_ptr<::LevelLooseFileStorage> createLevelLooseStorage(
82 ::std::string
const& levelId,
84 ::Bedrock::NotNullNonOwnerPtr<::IContentKeyProvider const>
const& keyProvider
87 virtual ::LevelSummary* getLevelSummary(::std::string
const& levelId) = 0;
89 virtual ::LevelSummary
const* getLevelSummaryByName(::std::string
const& levelName) = 0;
91 virtual ::LevelSummary* getOrCreateLevelSummary(
::Core::Path const& directory) = 0;
93 virtual ::LevelData* getLevelData(::std::string
const& levelId) = 0;
95 virtual ::Bedrock::NonOwnerPointer<::LevelData> getLevelDataNonOwnerPointer(::std::string
const& levelId) = 0;
97 virtual ::LevelSummary* getShallowLevelSummary(::std::string
const& levelId) = 0;
99 virtual void getLevelList(
100 ::std::vector<::LevelSummary>& dest,
101 bool includeShallowSummaries,
102 bool includePartiallyCopiedLevels,
103 bool includeBetaRetailLevels,
104 bool includeInvalidLevelDataLevels
107 virtual bool hasCachedLevels(
bool includeShallowSummaries)
const = 0;
109 virtual void updateLevelCache(::std::string
const& levelId) = 0;
111 virtual ::std::unique_ptr<::LevelStorageObserver> createLevelStorageObserver() = 0;
113 virtual void onSave(::std::string
const& levelId) = 0;
115 virtual void onStorageChanged() = 0;
117 virtual ::Core::PathBuffer<::std::string>
const getBasePath()
const = 0;
119 virtual ::Core::PathBuffer<::std::string>
const getPathToLevel(::std::string
const& levelId)
const = 0;
Definition ContentIdentity.h:8
Definition IContentKeyProvider.h:13