LeviLamina
Loading...
Searching...
No Matches
DirectoryPackWithEncryptionAccessStrategy.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/utility/NonOwnerPointer.h"
7#include "mc/resources/PackAccessAssetGenerationResult.h"
8#include "mc/resources/PackAccessStrategy.h"
9#include "mc/resources/PackAccessStrategyType.h"
10
11// auto generated forward declare list
12// clang-format off
13class ContentIdentity;
15class IFileAccess;
16class IPackIOProvider;
18namespace Core { class Path; }
19// clang-format on
20
21class DirectoryPackWithEncryptionAccessStrategy : public ::PackAccessStrategy {
22public:
23 // member variables
24 // NOLINTBEGIN
34 // NOLINTEND
35
36public:
37 // prevent constructor by default
38 DirectoryPackWithEncryptionAccessStrategy& operator=(DirectoryPackWithEncryptionAccessStrategy const&);
39 DirectoryPackWithEncryptionAccessStrategy(DirectoryPackWithEncryptionAccessStrategy const&);
40 DirectoryPackWithEncryptionAccessStrategy();
41
42public:
43 // virtual functions
44 // NOLINTBEGIN
45 virtual ~DirectoryPackWithEncryptionAccessStrategy() /*override*/;
46
47 virtual uint64 getPackSize() const /*override*/;
48
49 virtual ::ResourceLocation const& getPackLocation() const /*override*/;
50
51 virtual ::std::string const& getPackName() const /*override*/;
52
53 virtual bool isWritable() const /*override*/;
54
55 virtual bool isTrusted() const /*override*/;
56
57 virtual bool hasAsset(::Core::Path const& packRelativePath, bool trustedContentOnly, bool caseSensative) const
58 /*override*/;
59
60 virtual bool hasFolder(::Core::Path const& packRelativePath) const /*override*/;
61
62 virtual bool getAsset(::Core::Path const& packRelativePath, ::std::string& result, bool trustedContentOnly) const
63 /*override*/;
64
65 virtual void
66 forEachIn(::Core::Path const& packRelativePath, ::std::function<void(::Core::Path const&)> callback, bool) const
67 /*override*/;
68
69 virtual ::PackAccessStrategyType getStrategyType() const /*override*/;
70
71 virtual ::std::unique_ptr<::PackAccessStrategy> createSubPack(::Core::Path const& subPath) const /*override*/;
72
73 virtual ::PackAccessAssetGenerationResult generateAssetSet() /*override*/;
74
75 virtual void unload() /*override*/;
76
77 virtual ::ContentIdentity readContentIdentity() const /*override*/;
78 // NOLINTEND
79
80public:
81 // member functions
82 // NOLINTBEGIN
84 ::ResourceLocation const& packLocation,
85 ::ResourceLocation const& encryptedContentLocation,
86 ::Bedrock::NotNullNonOwnerPtr<::IContentKeyProvider const> const& keyProvider,
87 ::IFileAccess& fileAccess,
88 ::IPackIOProvider const& io
89 );
90
91 MCNAPI bool _getUnencryptedAsset(::Core::Path const& packRelativePath, ::std::string& result) const;
92 // NOLINTEND
93
94public:
95 // constructor thunks
96 // NOLINTBEGIN
97 MCNAPI void* $ctor(
98 ::ResourceLocation const& packLocation,
99 ::ResourceLocation const& encryptedContentLocation,
100 ::Bedrock::NotNullNonOwnerPtr<::IContentKeyProvider const> const& keyProvider,
101 ::IFileAccess& fileAccess,
102 ::IPackIOProvider const& io
103 );
104 // NOLINTEND
105
106public:
107 // destructor thunk
108 // NOLINTBEGIN
109 MCNAPI void $dtor();
110 // NOLINTEND
111
112public:
113 // virtual function thunks
114 // NOLINTBEGIN
115 MCNAPI uint64 $getPackSize() const;
116
117 MCNAPI ::ResourceLocation const& $getPackLocation() const;
118
119 MCNAPI ::std::string const& $getPackName() const;
120
121 MCNAPI bool $isWritable() const;
122
123 MCNAPI bool $isTrusted() const;
124
125 MCNAPI bool $hasAsset(::Core::Path const& packRelativePath, bool trustedContentOnly, bool caseSensative) const;
126
127 MCNAPI bool $hasFolder(::Core::Path const& packRelativePath) const;
128
129 MCNAPI bool $getAsset(::Core::Path const& packRelativePath, ::std::string& result, bool trustedContentOnly) const;
130
131 MCNAPI void
132 $forEachIn(::Core::Path const& packRelativePath, ::std::function<void(::Core::Path const&)> callback, bool) const;
133
134 MCNAPI ::PackAccessStrategyType $getStrategyType() const;
135
136 MCNAPI ::std::unique_ptr<::PackAccessStrategy> $createSubPack(::Core::Path const& subPath) const;
137
138 MCNAPI ::PackAccessAssetGenerationResult $generateAssetSet();
139
140 MCNAPI void $unload();
141
142 MCNAPI ::ContentIdentity $readContentIdentity() const;
143
144
145 // NOLINTEND
146
147public:
148 // vftables
149 // NOLINTBEGIN
150 MCNAPI static void** $vftable();
151 // NOLINTEND
152};
Definition ContentIdentity.h:8
Definition Path.h:17
MCAPI bool _getUnencryptedAsset(::Core::Path const &packRelativePath, ::std::string &result) const
MCAPI::std::string const & $getPackName() const
MCAPI bool $getAsset(::Core::Path const &packRelativePath, ::std::string &result, bool trustedContentOnly) const
MCAPI::PackAccessAssetGenerationResult $generateAssetSet()
MCAPI bool $hasAsset(::Core::Path const &packRelativePath, bool trustedContentOnly, bool caseSensative) const
MCAPI::ContentIdentity $readContentIdentity() const
MCAPI DirectoryPackWithEncryptionAccessStrategy(::ResourceLocation const &packLocation, ::ResourceLocation const &encryptedContentLocation, ::Bedrock::NotNullNonOwnerPtr<::IContentKeyProvider const > const &keyProvider, ::IFileAccess &fileAccess, ::IPackIOProvider const &io)
MCAPI ::std::unique_ptr<::PackAccessStrategy > $createSubPack(::Core::Path const &subPath) const
MCAPI void $forEachIn(::Core::Path const &packRelativePath, ::std::function< void(::Core::Path const &)> callback, bool) const
MCAPI void * $ctor(::ResourceLocation const &packLocation, ::ResourceLocation const &encryptedContentLocation, ::Bedrock::NotNullNonOwnerPtr<::IContentKeyProvider const > const &keyProvider, ::IFileAccess &fileAccess, ::IPackIOProvider const &io)
MCAPI::ResourceLocation const & $getPackLocation() const
MCAPI::PackAccessStrategyType $getStrategyType() const
MCAPI bool $hasFolder(::Core::Path const &packRelativePath) const
Definition IContentKeyProvider.h:13
Definition IFileAccess.h:15
Definition IPackIOProvider.h:15
Definition ResourceLocation.h:15
Definition Alias.h:14