LeviLamina
Loading...
Searching...
No Matches
IResourcePackFileDownloaderManager.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/resource/PackType.h"
7#include "mc/deps/core/threading/SharedAsync.h"
8#include "mc/util/ResourcePackFileDownloadError.h"
9
10// auto generated forward declare list
11// clang-format off
12class TaskGroup;
13struct FileChunkInfo;
14namespace Core { class Path; }
15// clang-format on
16
18public:
19 // virtual functions
20 // NOLINTBEGIN
21 // vIndex: 0
22 virtual ~IResourcePackFileDownloaderManager() = default;
23
24 // vIndex: 1
25 virtual void tryStartDownloadingFile(
27 ::std::string const&,
28 uint,
29 int,
30 uint64,
31 ::std::string const&,
32 bool,
33 ::PackType,
34 ::std::function<void()>,
35 ::std::function<void(float, uint64)>,
36 ::std::function<void(::Core::Path const&)>,
37 ::std::function<void(::ResourcePackFileDownloadError)>
38 ) = 0;
39
40 // vIndex: 2
41 virtual ::Bedrock::Threading::SharedAsync<void>
42 chunkReceived(::TaskGroup&, ::std::string const&, ::FileChunkInfo const&, ::std::vector<uchar>) = 0;
43
44 // vIndex: 3
45 virtual void cleanup() = 0;
46 // NOLINTEND
47
48public:
49 // virtual function thunks
50 // NOLINTBEGIN
51
52 // NOLINTEND
53};
Definition Path.h:11
Definition IResourcePackFileDownloaderManager.h:17
Definition Path.h:16
Definition TaskGroup.h:48
Definition FileChunkInfo.h:5