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> createLevelStorage(
47 ::std::string const&,
48 ::ContentIdentity const&,
49 ::Bedrock::NotNullNonOwnerPtr<::IContentKeyProvider const> const&,
50 ::std::chrono::nanoseconds const&,
51 ::Bedrock::NotNullNonOwnerPtr<::LevelDbEnv>,
52 ::std::unique_ptr<::LevelStorageEventing>
53 ) = 0;
54
55 // vIndex: 6
56 virtual ::std::unique_ptr<::LevelLooseFileStorage> createLevelLooseStorage(
57 ::std::string const&,
58 ::ContentIdentity const&,
59 ::Bedrock::NotNullNonOwnerPtr<::IContentKeyProvider const> const&
60 ) = 0;
61
62 // vIndex: 7
63 virtual void deleteLevel(::std::string const&) = 0;
64
65 // vIndex: 9
66 virtual bool renameLevel(::std::string const&, ::std::string const&) = 0;
67
68 // vIndex: 8
69 virtual void renameLevel(::LevelData&, ::Core::Path const&, ::std::string const&) = 0;
70
71 // vIndex: 10
72 virtual bool createBackupCopyOfWorld(::std::string const&, ::std::string const&, ::std::string const&) = 0;
73
74 // vIndex: 11
75 virtual bool isLevelMarkedForSync(::Core::Path const&) const = 0;
76
77 // vIndex: 12
78 virtual bool isLevelPartiallyCopied(::Core::Path const&) const = 0;
79
80 // vIndex: 13
81 virtual ::Core::PathBuffer<::std::string> getLevelDatFoundPath(::Core::Path const&) const = 0;
82
83 // vIndex: 14
84 virtual ::Core::PathBuffer<::std::string> const getBasePath() const = 0;
85
86 // vIndex: 15
87 virtual ::Core::PathBuffer<::std::string> const getPathToLevel(::std::string const&) const = 0;
88
89 // vIndex: 16
90 virtual ::Core::PathBuffer<::std::string> const getPathToLevelInfo(::std::string const&, bool) const = 0;
91
92 // vIndex: 17
93 virtual bool isBetaRetailLevel(::std::string const&) const = 0;
94 // NOLINTEND
95
96public:
97 // static variables
98 // NOLINTBEGIN
99 MCNAPI static ::std::chrono::nanoseconds const& WORLD_SAVE_FLUSH_INTERVAL();
100
101 MCNAPI static ::std::chrono::nanoseconds const& WORLD_SAVE_MENU_FLUSH_INTERVAL();
102 // NOLINTEND
103
104public:
105 // destructor thunk
106 // NOLINTBEGIN
107 MCNAPI void $dtor();
108 // NOLINTEND
109
110public:
111 // virtual function thunks
112 // NOLINTBEGIN
113
114 // NOLINTEND
115};
Definition EnableNonOwnerReferences.h:7
Definition ContentIdentity.h:8
Definition PathBuffer.h:8
Definition Path.h:17
Definition IContentKeyProvider.h:13
Definition LevelData.h:49
Definition LevelDbEnv.h:8
Definition LevelLooseFileStorage.h:15
Definition LevelStorageEventing.h:15
Definition LevelStorageSource.h:25
static MCAPI ::std::chrono::nanoseconds const & WORLD_SAVE_FLUSH_INTERVAL()
static MCAPI ::std::chrono::nanoseconds const & WORLD_SAVE_MENU_FLUSH_INTERVAL()
MCAPI void $dtor()
Definition LevelStorage.h:25
Definition Path.h:16
Definition Scheduler.h:13