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/resources/PackSource.h"
11
12// auto generated forward declare list
13// clang-format off
14class IPackIOProvider;
15class Pack;
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*/;
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#ifdef LL_PLAT_C
58 MCAPI void addPack(::std::shared_ptr<::Pack>&& pack);
59#endif
60
61 MCAPI void deleteAllPacksAndReset();
62 // NOLINTEND
63
64public:
65 // static functions
66 // NOLINTBEGIN
67 MCAPI static void checkAndRemoveIncompletePacks(
68 ::Core::Path const& path,
69 ::IPackIOProvider const& io,
70 bool saveEncryptedWorldTemplatePacksAsZips
71 );
72 // NOLINTEND
73
74public:
75 // constructor thunks
76 // NOLINTBEGIN
77 MCAPI void* $ctor(::DirectoryPackSourceOptions options);
78 // NOLINTEND
79
80public:
81 // destructor thunk
82 // NOLINTBEGIN
83 MCAPI void $dtor();
84 // NOLINTEND
85
86public:
87 // virtual function thunks
88 // NOLINTBEGIN
89 MCFOLD ::PackOrigin $getPackOrigin() const;
90
91 MCFOLD ::PackType $getPackType() const;
92
93 MCAPI ::PackSourceLoadResult $_loadImpl(::PackSourceLoadOptions&& options);
94
95
96 // NOLINTEND
97
98public:
99 // vftables
100 // NOLINTBEGIN
101 MCNAPI static void** $vftable();
102 // NOLINTEND
103};
Definition Path.h:17
static MCAPI void ** $vftable()
Definition IPackIOProvider.h:15
Definition IPackCommandPipeline.h:19
Definition Pack.h:27
Definition DirectoryPackSourceOptions.h:5
Definition PackSourceLoadOptions.h:5
Definition PackSourceLoadResult.h:5