LeviLamina
Loading...
Searching...
No Matches
DirectoryPackSource.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/resource/PackOrigin.h"
8#include "mc/deps/core/resource/PackType.h"
9#include "mc/deps/core/utility/NonOwnerPointer.h"
10#include "mc/platform/brstd/function_ref.h"
11#include "mc/resources/PackSource.h"
12
13// auto generated forward declare list
14// clang-format off
15class IPackIOProvider;
19namespace Core { class Path; }
20namespace PackCommand { class IPackCommandPipeline; }
21// clang-format on
22
23class DirectoryPackSource : public ::PackSource {
24public:
25 // member variables
26 // NOLINTBEGIN
27 ::ll::TypedStorage<8, 32, ::Core::PathBuffer<::std::string>> mPath;
28 ::ll::TypedStorage<1, 1, ::PackType const> mPackType;
29 ::ll::TypedStorage<1, 1, ::PackOrigin const> mPackOrigin;
30 ::ll::TypedStorage<1, 1, bool> mDiscovered;
31 ::ll::TypedStorage<1, 1, bool const> mIsRediscoverable;
32 ::ll::TypedStorage<1, 1, bool const> mIsDevDirectory;
33 ::ll::TypedStorage<8, 24, ::Bedrock::NonOwnerPointer<::PackCommand::IPackCommandPipeline>> mCommands;
34 // NOLINTEND
35
36public:
37 // prevent constructor by default
38 DirectoryPackSource();
39
40public:
41 // virtual functions
42 // NOLINTBEGIN
43 virtual ~DirectoryPackSource() /*override*/ = default;
44
45 virtual ::PackOrigin getPackOrigin() const /*override*/;
46
47 virtual ::PackType getPackType() const /*override*/;
48
49 virtual ::PackSourceLoadResult _loadImpl(::PackSourceLoadOptions&& options) /*override*/;
50 // NOLINTEND
51
52public:
53 // member functions
54 // NOLINTBEGIN
55 MCAPI explicit DirectoryPackSource(::DirectoryPackSourceOptions options);
56
57 MCAPI void deleteAllPacksAndReset();
58 // NOLINTEND
59
60public:
61 // static functions
62 // NOLINTBEGIN
63 MCAPI static void checkAndRemoveIncompletePacks(::Core::Path const& path);
64
65 MCAPI static void checkAndRemoveIncompletePacks(
66 ::Core::Path const& path,
67 ::IPackIOProvider const& io,
68 bool saveEncryptedWorldTemplatePacksAsZips
69 );
70
71 MCAPI static void purgeOptimizedPremiumPacksIfRequested(
72 bool purgeRequested,
73 ::Core::Path const& path,
74 ::IPackIOProvider const* io,
76 void(::std::string_view, ::std::string const&, ::PackType, ::PackOrigin, ::std::string const&, int64)>
77 reportPackDeleted
78 );
79 // NOLINTEND
80
81public:
82 // constructor thunks
83 // NOLINTBEGIN
84 MCAPI void* $ctor(::DirectoryPackSourceOptions options);
85 // NOLINTEND
86
87public:
88 // virtual function thunks
89 // NOLINTBEGIN
90 MCFOLD ::PackOrigin $getPackOrigin() const;
91
92 MCFOLD ::PackType $getPackType() const;
93
94 MCAPI ::PackSourceLoadResult $_loadImpl(::PackSourceLoadOptions&& options);
95
96
97 // NOLINTEND
98
99public:
100 // vftables
101 // NOLINTBEGIN
102 MCNAPI static void** $vftable();
103 // NOLINTEND
104};
Definition Path.h:11
static MCAPI void ** $vftable()
Definition IPackIOProvider.h:16
Definition IPackCommandPipeline.h:19
Definition function_ref.h:60
Definition DirectoryPackSourceOptions.h:5
Definition PackSourceLoadOptions.h:5
Definition PackSourceLoadResult.h:5