LeviLamina
Loading...
Searching...
No Matches
DownloadableTemplateManagerBase.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/world/DownloadWorldTemplateError.h"
7#include "mc/deps/core/utility/EnableNonOwnerReferences.h"
8#include "mc/deps/core/utility/NonOwnerPointer.h"
9
10// auto generated forward declare list
11// clang-format off
13class IDlcBatcher;
14class IStoreCatalogRepository;
15// clang-format on
16
17namespace World {
18
19class DownloadableTemplateManagerBase : public ::Bedrock::EnableNonOwnerReferences {
20public:
21 // member variables
22 // NOLINTBEGIN
23 ::ll::TypedStorage<8, 16, ::std::shared_ptr<bool>> mExistenceTracker;
24 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::IDlcBatcher>> mDLCBatcher;
25 ::ll::TypedStorage<
26 8,
27 16,
28 ::std::map<::std::string, ::std::function<void(::std::optional<::World::DownloadWorldTemplateError>)>>>
29 mDownloadCallbacks;
30 ::ll::TypedStorage<1, 1, bool> mCancelDownloadRequestedByUser;
31 ::ll::TypedStorage<8, 8, ::IContentAcquisition&> mContentAquisition;
32 // NOLINTEND
33
34public:
35 // prevent constructor by default
36 DownloadableTemplateManagerBase& operator=(DownloadableTemplateManagerBase const&);
37 DownloadableTemplateManagerBase(DownloadableTemplateManagerBase const&);
38 DownloadableTemplateManagerBase();
39
40public:
41 // virtual functions
42 // NOLINTBEGIN
43 virtual ~DownloadableTemplateManagerBase() /*override*/;
44
45 virtual ::std::optional<::World::DownloadWorldTemplateError> downloadWorldTemplate(
46 ::std::string const& templateId,
47 ::std::function<void(::std::optional<::World::DownloadWorldTemplateError>)> callback
48 );
49
50 virtual void _templateDownloadedCallback(::std::string const& templateId, bool success);
51 // NOLINTEND
52
53public:
54 // member functions
55 // NOLINTBEGIN
56 MCAPI DownloadableTemplateManagerBase(
57 ::Bedrock::NotNullNonOwnerPtr<::IStoreCatalogRepository> storeCatalogRepository,
58 ::IContentAcquisition& contentAquisition
59 );
60
61 MCAPI bool canDownloadBeCancelled(::std::string const& templateId) const;
62
63 MCAPI void cancelDownload(::std::string const& templateId);
64
65 MCAPI float getDownloadProgress(::std::string const& templateId) const;
66
67 MCAPI ::std::string getDownloadTotalBytes(::std::string const& templateId) const;
68
69 MCAPI ::std::string getDownloadingProgressBytes(::std::string const& templateId) const;
70
71 MCAPI bool isDownloadingStep2Started(::std::string const& templateId) const;
72 // NOLINTEND
73
74public:
75 // constructor thunks
76 // NOLINTBEGIN
77 MCAPI void* $ctor(
78 ::Bedrock::NotNullNonOwnerPtr<::IStoreCatalogRepository> storeCatalogRepository,
79 ::IContentAcquisition& contentAquisition
80 );
81 // NOLINTEND
82
83public:
84 // destructor thunk
85 // NOLINTBEGIN
86 MCAPI void $dtor();
87 // NOLINTEND
88
89public:
90 // virtual function thunks
91 // NOLINTBEGIN
92 MCAPI ::std::optional<::World::DownloadWorldTemplateError> $downloadWorldTemplate(
93 ::std::string const& templateId,
94 ::std::function<void(::std::optional<::World::DownloadWorldTemplateError>)> callback
95 );
96
97 MCAPI void $_templateDownloadedCallback(::std::string const& templateId, bool success);
98 // NOLINTEND
99
100public:
101 // vftables
102 // NOLINTBEGIN
103 MCNAPI static void** $vftable();
104 // NOLINTEND
105};
106
107} // namespace World
Definition IContentAcquisition.h:5
Definition IDlcBatcher.h:5
Definition DownloadableTemplateManagerBase.h:7