LeviLamina
Loading...
Searching...
No Matches
ILevelListCache.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/file/PathBuffer.h"
7#include "mc/deps/core/utility/EnableNonOwnerReferences.h"
8#include "mc/deps/core/utility/NonOwnerPointer.h"
9#include "mc/deps/core/utility/UniqueOwnerPointer.h"
10
11// auto generated forward declare list
12// clang-format off
13class ContentIdentity;
15class LevelData;
16class LevelDbEnv;
19class LevelStorage;
22class Scheduler;
23struct LevelSummary;
24namespace Core { class Path; }
25// clang-format on
26
28public:
29 // virtual functions
30 // NOLINTBEGIN
31 virtual ~ILevelListCache() /*override*/;
32
33 virtual void addLevel(::std::string const&, ::LevelData&&) = 0;
34
35 virtual void deleteLevel(::std::string const&) = 0;
36
37 virtual void refreshLevel(::std::string const&) = 0;
38
39 virtual void deleteLevelFiles(::std::string const&) = 0;
40
41 virtual void postDeleteLevel(::std::string const&) = 0;
42
43 virtual void renameLevel(::std::string const&, ::std::string const&) = 0;
44
45 virtual void renameAndSaveLevelData(::std::string const&, ::std::string const&, ::LevelData const&) = 0;
46
47 virtual void saveLevelData(::std::string const& levelId, ::LevelData const& data) = 0;
48
49 virtual void createBackupCopyOfWorld(::std::string const&, ::std::string const&, ::std::string const&) = 0;
50
51 virtual bool hasLevelWithId(::std::string const&) = 0;
52
53 virtual bool checkIfLevelIsCorruptOrMissing(::std::string const&) = 0;
54
55 virtual void addObserver(::LevelListCacheObserver&) = 0;
56
57 virtual void removeObserver(::LevelListCacheObserver&) = 0;
58
59 virtual ::Bedrock::UniqueOwnerPointer<::LevelStorage> createLevelStorage(
61 ::std::string const&,
62 ::ContentIdentity const&,
63 ::Bedrock::NotNullNonOwnerPtr<::IContentKeyProvider const> const&,
64 ::std::chrono::nanoseconds const&,
65 ::Bedrock::NotNullNonOwnerPtr<::LevelDbEnv>,
66 ::std::unique_ptr<::LevelStorageEventing>
67 ) = 0;
68
69 virtual ::std::unique_ptr<::LevelLooseFileStorage> createLevelLooseStorage(
70 ::std::string const&,
71 ::ContentIdentity const&,
72 ::Bedrock::NotNullNonOwnerPtr<::IContentKeyProvider const> const&
73 ) = 0;
74
75 virtual ::LevelSummary* getLevelSummary(::std::string const&) = 0;
76
77 virtual ::LevelSummary const* getLevelSummaryByName(::std::string const&) = 0;
78
79 virtual ::LevelSummary* getOrCreateLevelSummary(::Core::Path const&) = 0;
80
81 virtual ::LevelData* getLevelData(::std::string const& levelID) = 0;
82
83 virtual ::Bedrock::NonOwnerPointer<::LevelData> getLevelDataNonOwnerPointer(::std::string const&) = 0;
84
85 virtual ::LevelSummary* getShallowLevelSummary(::std::string const&) = 0;
86
87 virtual void getLevelList(::std::vector<::LevelSummary>&, bool, bool, bool, bool) = 0;
88
89 virtual bool hasCachedLevels(bool) const = 0;
90
91 virtual void updateLevelCache(::std::string const&) = 0;
92
93 virtual ::std::unique_ptr<::LevelStorageObserver> createLevelStorageObserver() = 0;
94
95 virtual void onSave(::std::string const&) = 0;
96
97 virtual void onStorageChanged() = 0;
98
99 virtual ::Core::PathBuffer<::std::string> const getBasePath() const = 0;
100 // NOLINTEND
101
102public:
103 // destructor thunk
104 // NOLINTBEGIN
105 MCNAPI void $dtor();
106 // NOLINTEND
107
108public:
109 // virtual function thunks
110 // NOLINTBEGIN
111
112 // NOLINTEND
113
114public:
115 // vftables
116 // NOLINTBEGIN
117 MCNAPI static void** $vftable();
118 // NOLINTEND
119};
Definition EnableNonOwnerReferences.h:7
Definition ContentIdentity.h:8
Definition Path.h:10
Definition IContentKeyProvider.h:13
Definition ILevelListCache.h:27
static MCAPI void ** $vftable()
MCAPI void $dtor()
Definition LevelData.h:50
Definition LevelDbEnv.h:8
Definition LevelListCacheObserver.h:13
Definition LevelLooseFileStorage.h:15
Definition LevelStorageEventing.h:15
Definition LevelStorageObserver.h:5
Definition LevelStorage.h:25
Definition Scheduler.h:14
Definition LevelSummary.h:27