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