LeviLamina
Loading...
Searching...
No Matches
ContentCatalogPackSource.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/resources/IContentCatalogPackSource.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/deps/core/utility/NonOwnerPointer.h"
11
12// auto generated forward declare list
13// clang-format off
15class TaskGroup;
18struct IEntitlementManager;
21namespace ContentManagerUtils { class ISourcesAsyncReloader; }
22// clang-format on
23
25 public ::std::enable_shared_from_this<::ContentCatalogPackSource> {
26public:
27 // member variables
28 // NOLINTBEGIN
29 ::ll::TypedStorage<8, 24, ::Bedrock::NotNullNonOwnerPtr<::IEntitlementManager>> mEntitlementManager;
30 ::ll::TypedStorage<1, 1, bool> mEnabled;
31 ::ll::TypedStorage<1, 1, ::PackType const> mPackType;
32 ::ll::TypedStorage<1, 1, bool const> mHighPriorityIconRequests;
33 ::ll::TypedStorage<8, 16, ::Bedrock::Threading::SharedAsync<void>> mActiveFetch;
34 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::TaskGroup>> mTaskGroup;
35 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::IContentCatalogPackSourceService>> mCatalogService;
36 ::ll::TypedStorage<8, 16, ::std::weak_ptr<::ContentManagerUtils::ISourcesAsyncReloader>> mWeakSourcesAsyncReloader;
37 // NOLINTEND
38
39public:
40 // prevent constructor by default
41 ContentCatalogPackSource();
42
43public:
44 // virtual functions
45 // NOLINTBEGIN
46 virtual ~ContentCatalogPackSource() /*override*/;
47
48 virtual void setEnabled(bool enabled) /*override*/;
49
50 virtual ::PackSourceLoadResult _loadImpl(::PackSourceLoadOptions&&) /*override*/;
51
52 virtual ::PackType getPackType() const /*override*/;
53
54 virtual void refreshCatalogItems(::IPackManifestFactory&) /*override*/;
55 // NOLINTEND
56
57public:
58 // member functions
59 // NOLINTBEGIN
60 MCAPI explicit ContentCatalogPackSource(::ContentCatalogPackSourceOptions options);
61
62 MCAPI ::Bedrock::Threading::Async<void> _collectAllCatalogItems();
63
64 MCAPI ::Bedrock::Threading::Async<void> _load();
65 // NOLINTEND
66
67public:
68 // constructor thunks
69 // NOLINTBEGIN
70 MCAPI void* $ctor(::ContentCatalogPackSourceOptions options);
71 // NOLINTEND
72
73public:
74 // destructor thunk
75 // NOLINTBEGIN
76 MCAPI void $dtor();
77 // NOLINTEND
78
79public:
80 // virtual function thunks
81 // NOLINTBEGIN
82 MCFOLD void $setEnabled(bool enabled);
83
84 MCAPI ::PackSourceLoadResult $_loadImpl(::PackSourceLoadOptions&&);
85
86 MCFOLD ::PackType $getPackType() const;
87
88 MCAPI void $refreshCatalogItems(::IPackManifestFactory&);
89 // NOLINTEND
90
91public:
92 // vftables
93 // NOLINTBEGIN
94 MCNAPI static void** $vftable();
95 // NOLINTEND
96};
Definition ContentCatalogPackSource.h:5
static MCAPI void ** $vftable()
Definition ISourcesAsyncReloader.h:7
Definition IContentCatalogPackSource.h:5
Definition IPackManifestFactory.h:17
Definition TaskGroup.h:53
Definition ContentCatalogPackSourceOptions.h:5
Definition IContentCatalogPackSourceService.h:5
Definition PackSourceLoadOptions.h:5
Definition PackSourceLoadResult.h:5