LeviLamina
Loading...
Searching...
No Matches
MockLevelStorage.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/common/CompactionStatus.h"
7#include "mc/deps/core/file/PathBuffer.h"
8#include "mc/deps/core/threading/Async.h"
9#include "mc/world/level/storage/LevelStorage.h"
10#include "mc/world/level/storage/StorageVersion.h"
11#include "mc/world/level/storage/db_helpers/Category.h"
12
13// auto generated forward declare list
14// clang-format off
15class ChunkSource;
16class CompoundTag;
17class ContentIdentity;
18class LevelData;
22namespace Core { struct LevelStorageResult; }
23// clang-format on
24
26public:
27 // virtual functions
28 // NOLINTBEGIN
29 // vIndex: 0
30 virtual ~MockLevelStorage() /*override*/ = default;
31
32 // vIndex: 1
33 virtual void addStorageObserver(::std::unique_ptr<::LevelStorageObserver>) /*override*/;
34
35 // vIndex: 3
36 virtual ::std::unique_ptr<::CompoundTag> getCompoundTag(::std::string const&, ::DBHelpers::Category) /*override*/;
37
38 // vIndex: 4
39 virtual bool hasKey(::std::string_view, ::DBHelpers::Category) const /*override*/;
40
41 // vIndex: 5
42 virtual void forEachKeyWithPrefix(
43 ::std::string_view,
44 ::DBHelpers::Category,
45 ::std::function<void(::std::string_view, ::std::string_view)> const&
46 ) const /*override*/;
47
48 // vIndex: 6
49 virtual bool loadLevelData(::LevelData&) /*override*/;
50
51 // vIndex: 7
52 virtual ::std::unique_ptr<::ChunkSource>
53 createChunkStorage(::std::unique_ptr<::ChunkSource>, ::StorageVersion) /*override*/;
54
55 // vIndex: 8
56 virtual void saveLevelData(::LevelData const&) /*override*/;
57
58 // vIndex: 9
59 virtual ::Core::PathBuffer<::std::string> const& getFullPath() const /*override*/;
60
61 // vIndex: 11
62 virtual ::Bedrock::Threading::Async<void>
63 saveData(::std::string const&, ::std::string&&, ::DBHelpers::Category) /*override*/;
64
65 // vIndex: 10
66 virtual ::Bedrock::Threading::Async<void> saveData(::LevelStorageWriteBatch const&) /*override*/;
67
68 // vIndex: 12
69 virtual ::Bedrock::Threading::Async<void> deleteData(::std::string const&, ::DBHelpers::Category) /*override*/;
70
71 // vIndex: 13
72 virtual void getStatistics(::std::string&, ::LevelStorage::StatsType) const /*override*/;
73
74 // vIndex: 15
75 virtual ::Core::LevelStorageResult getLevelStorageState() const /*override*/;
76
77 // vIndex: 16
78 virtual ::ContentIdentity const* getContentIdentity() const /*override*/;
79
80 // vIndex: 17
81 virtual void startShutdown() /*override*/;
82
83 // vIndex: 18
84 virtual bool isShuttingDown() const /*override*/;
85
86 // vIndex: 19
87 virtual bool checkShutdownDone() /*override*/;
88
89 // vIndex: 21
90 virtual ::Core::LevelStorageResult getState() const /*override*/;
91
92 // vIndex: 22
93 virtual ::std::vector<::SnapshotFilenameAndLength> createSnapshot(::std::string const&, bool) /*override*/;
94
95 // vIndex: 23
96 virtual void releaseSnapshot() /*override*/;
97
98 // vIndex: 24
99 virtual ::Bedrock::Threading::Async<void> compactStorage() /*override*/;
100
101 // vIndex: 25
102 virtual void syncAndSuspendStorage() /*override*/;
103
104 // vIndex: 26
105 virtual void resumeStorage() /*override*/;
106
107 // vIndex: 27
108 virtual void setFlushAllowed(bool) /*override*/;
109
110 // vIndex: 28
111 virtual void flushToPermanentStorage() /*override*/;
112
113 // vIndex: 30
114 virtual void setCompactionCallback(::std::function<void(::CompactionStatus)>) /*override*/;
115
116 // vIndex: 31
117 virtual void setCriticalSyncSaveCallback(::std::function<void()>) /*override*/;
118 // NOLINTEND
119
120public:
121 // virtual function thunks
122 // NOLINTBEGIN
123
124 // NOLINTEND
125};
Definition ChunkSource.h:34
Definition CompoundTag.h:13
Definition ContentIdentity.h:8
Definition LevelData.h:49
Definition LevelStorageObserver.h:5
Definition LevelStorageWriteBatch.h:14
Definition LevelStorage.h:25
Definition MockLevelStorage.h:25
Definition SnapshotFilenameAndLength.h:5