LeviLamina
Loading...
Searching...
No Matches
LevelStorageSource.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;
18class LevelStorage;
20class Scheduler;
21namespace Core { class Path; }
22namespace Core { class Result; }
23// clang-format on
24
26public:
27 // virtual functions
28 // NOLINTBEGIN
29 // vIndex: 0
30 virtual ~LevelStorageSource() /*override*/;
31
32 // vIndex: 1
33 virtual ::std::string const& getName() const = 0;
34
35 // vIndex: 2
36 virtual ::Core::Result getLevelData(::std::string const&, ::LevelData&) const = 0;
37
38 // vIndex: 3
39 virtual void saveLevelData(::std::string const&, ::LevelData const&) = 0;
40
41 // vIndex: 4
42 virtual void getLevelList(::std::vector<::Core::PathBuffer<::std::string>>&) = 0;
43
44 // vIndex: 5
45 virtual ::Bedrock::UniqueOwnerPointer<::LevelStorage>
46 createLevelStorage(::Scheduler&, ::std::string const&, ::ContentIdentity const&, ::Bedrock::NotNullNonOwnerPtr<::IContentKeyProvider const> const&, ::std::chrono::nanoseconds const&, ::Bedrock::NotNullNonOwnerPtr<::LevelDbEnv>, ::std::unique_ptr<::LevelStorageEventing>) = 0;
47
48 // vIndex: 6
49 virtual ::std::unique_ptr<::LevelLooseFileStorage>
50 createLevelLooseStorage(::std::string const&, ::ContentIdentity const&, ::Bedrock::NotNullNonOwnerPtr<::IContentKeyProvider const> const&) = 0;
51
52 // vIndex: 7
53 virtual void deleteLevel(::std::string const&) = 0;
54
55 // vIndex: 9
56 virtual bool renameLevel(::std::string const&, ::std::string const&) = 0;
57
58 // vIndex: 8
59 virtual void renameLevel(::LevelData&, ::Core::Path const&, ::std::string const&) = 0;
60
61 // vIndex: 10
62 virtual bool createBackupCopyOfWorld(::std::string const&, ::std::string const&, ::std::string const&) = 0;
63
64 // vIndex: 11
65 virtual bool isLevelMarkedForSync(::Core::Path const&) const = 0;
66
67 // vIndex: 12
68 virtual bool isLevelPartiallyCopied(::Core::Path const&) const = 0;
69
70 // vIndex: 13
71 virtual ::Core::PathBuffer<::std::string> getLevelDatFoundPath(::Core::Path const&) const = 0;
72
73 // vIndex: 14
74 virtual ::Core::PathBuffer<::std::string> const getBasePath() const = 0;
75
76 // vIndex: 15
77 virtual ::Core::PathBuffer<::std::string> const getPathToLevel(::std::string const&) const = 0;
78
79 // vIndex: 16
80 virtual ::Core::PathBuffer<::std::string> const getPathToLevelInfo(::std::string const&, bool) const = 0;
81
82 // vIndex: 17
83 virtual bool isBetaRetailLevel(::std::string const&) const = 0;
84 // NOLINTEND
85
86public:
87 // static variables
88 // NOLINTBEGIN
89 MCAPI static ::std::chrono::nanoseconds const& WORLD_SAVE_FLUSH_INTERVAL();
90
91 MCAPI static ::std::chrono::nanoseconds const& WORLD_SAVE_MENU_FLUSH_INTERVAL();
92 // NOLINTEND
93
94public:
95 // destructor thunk
96 // NOLINTBEGIN
97 MCFOLD void $dtor();
98 // NOLINTEND
99
100public:
101 // virtual function thunks
102 // NOLINTBEGIN
103
104 // NOLINTEND
105};
Definition EnableNonOwnerReferences.h:7
Definition ContentIdentity.h:10
Definition PathBuffer.h:8
Definition Path.h:15
Definition IContentKeyProvider.h:13
Definition LevelData.h:48
Definition LevelDbEnv.h:8
Definition LevelLooseFileStorage.h:15
Definition LevelStorageEventing.h:15
Definition LevelStorageSource.h:25
Definition LevelStorage.h:24
Definition Path.h:16
Definition Result.h:6
Definition Scheduler.h:13