LeviLamina
Loading...
Searching...
No Matches
ResourcePackFileUploadManager.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/PackType.h"
8#include "mc/deps/core/threading/Async.h"
9#include "mc/deps/core/threading/SharedAsync.h"
10#include "mc/util/FileUploadManager.h"
11
12// auto generated forward declare list
13// clang-format off
16class TaskGroup;
17namespace Core { class Path; }
18namespace Json { class Value; }
19namespace ResourcePackPathLifetimeHelpers { class ResourcePackPathCache; }
20namespace ResourcePackPathLifetimeHelpers { class ScopeDestroyedPath; }
21// clang-format on
22
24public:
25 // member variables
26 // NOLINTBEGIN
27 ::ll::TypedStorage<
28 8,
29 24,
30 ::std::vector<::std::shared_ptr<::ResourcePackPathLifetimeHelpers::ScopeDestroyedPath const>>>
31 mZipPaths;
32 ::ll::TypedStorage<8, 8, ::ResourcePackPathLifetimeHelpers::ResourcePackPathCache&> mResourcePackPathCache;
33 ::ll::TypedStorage<8, 16, ::gsl::not_null<::std::shared_ptr<::Bedrock::Threading::SharedAsync<void>>>>
34 mPreviousUpload;
35 // NOLINTEND
36
37public:
38 // prevent constructor by default
42
43public:
44 // virtual functions
45 // NOLINTBEGIN
46 // vIndex: 2
47 virtual void archiveAndUploadFileToRealmStorage(
48 ::std::string const& uploadId,
49 ::Core::Path const& path,
50 int const slotIndex,
51 ::std::string const& realmsGuid
52 ) /*override*/;
53
54 // vIndex: 3
55 virtual void
56 uploadFileToRealmStorage(::std::string const& uploadId, ::Core::Path const& path, int const slotIndex) /*override*/;
57
58 // vIndex: 0
59 virtual ~ResourcePackFileUploadManager() /*override*/ = default;
60 // NOLINTEND
61
62public:
63 // member functions
64 // NOLINTBEGIN
66 ::TaskGroup& taskGroup,
67 ::std::shared_ptr<::IFileChunkUploader> fileUploader,
68 ::std::shared_ptr<::Bedrock::Threading::SharedAsync<void>> previousUpload,
70 );
71
72 MCAPI void _archiveAndUploadPackToRealmStorage(
73 ::std::string const& uploadId,
74 ::Core::Path const& path,
75 int slotIndex,
76 ::std::string const&
77 );
78
79 MCAPI void _extractPackFromZipAndUpload(
80 ::std::string const& resourcePack,
81 ::ResourceLocation const& resourcePackLocation,
82 ::Core::PathBuffer<::std::string> const& relativePathWithinZip,
83 ::Core::PathBuffer<::std::string> const& resourceZipPath,
84 ::Json::Value const& uploadOptions
85 );
86
87 MCAPI ::Bedrock::Threading::Async<void> _uploadResourcePackFolder(
88 ::std::string const& resourcePack,
89 ::ResourceLocation const& resourcePackLocation,
90 ::Core::PathBuffer<::std::string> const& resourceZipPath,
91 ::Json::Value const& uploadOptions
92 );
93
94 MCAPI void uploadResourcePack(
95 ::std::string const& resourcePackName,
96 ::ResourceLocation const& resourceLocation,
97 bool isZipped,
98 ::Core::PathBuffer<::std::string> const& relativePathWithinZip,
99 bool isPremium,
100 ::PackType packType
101 );
102 // NOLINTEND
103
104public:
105 // constructor thunks
106 // NOLINTBEGIN
107 MCAPI void* $ctor(
108 ::TaskGroup& taskGroup,
109 ::std::shared_ptr<::IFileChunkUploader> fileUploader,
110 ::std::shared_ptr<::Bedrock::Threading::SharedAsync<void>> previousUpload,
112 );
113 // NOLINTEND
114
115public:
116 // virtual function thunks
117 // NOLINTBEGIN
118 MCAPI void $archiveAndUploadFileToRealmStorage(
119 ::std::string const& uploadId,
120 ::Core::Path const& path,
121 int const slotIndex,
122 ::std::string const& realmsGuid
123 );
124
125 MCAPI void $uploadFileToRealmStorage(::std::string const& uploadId, ::Core::Path const& path, int const slotIndex);
126 // NOLINTEND
127
128public:
129 // vftables
130 // NOLINTBEGIN
131 MCNAPI static void** $vftable();
132 // NOLINTEND
133};
Definition SharedAsync.h:8
Definition PathBuffer.h:8
Definition Path.h:11
Definition FileUploadManager.h:14
Definition IFileChunkUploader.h:15
Definition Value.h:16
Definition Path.h:16
Definition ResourceLocation.h:14
Definition ResourcePackFileUploadManager.h:23
static MCAPI void ** $vftable()
Definition ResourcePackPathCache.h:7
Definition TaskGroup.h:48