LeviLamina
Loading...
Searching...
No Matches
MarketplacePassWorldTemplateManager.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/world/DownloadableTemplateManagerBase.h"
7#include "mc/deps/core/utility/NonOwnerPointer.h"
8#include "mc/deps/core/utility/pub_sub/Subscription.h"
9
10// auto generated forward declare list
11// clang-format off
12class DateManager;
14class IEntitlementManager;
16class IStoreCatalogRepository;
18class MarketplaceServicesManager;
19class ServicesManager;
20namespace World { struct MarketplaceWorldTemplateData; }
21// clang-format on
22
23namespace World {
24
25class MarketplacePassWorldTemplateManager : public ::World::DownloadableTemplateManagerBase {
26public:
27 // member variables
28 // NOLINTBEGIN
29 ::ll::TypedStorage<1, 1, bool> mIsDirty;
30 ::ll::TypedStorage<8, 24, ::Bedrock::NotNullNonOwnerPtr<::IStoreCatalogRepository>> mStoreCatalogRepository;
31 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::IMarketplaceContentOffersProvider>> mSuggestedContentOffersProvider;
32 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mOfferPurchaseSuccessSubscription;
33 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mTemplateManagerModificationSubscription;
34 ::ll::TypedStorage<8, 24, ::std::vector<::World::MarketplaceWorldTemplateData>> mMarketplacePassWorldTemplateList;
35 // NOLINTEND
36
37public:
38 // prevent constructor by default
39 MarketplacePassWorldTemplateManager();
40
41public:
42 // virtual functions
43 // NOLINTBEGIN
44 virtual ~MarketplacePassWorldTemplateManager() /*override*/ = default;
45
46 virtual void _templateDownloadedCallback(::std::string const& templateId, bool success) /*override*/;
47 // NOLINTEND
48
49public:
50 // member functions
51 // NOLINTBEGIN
52 MCAPI MarketplacePassWorldTemplateManager(
53 ::Bedrock::NotNullNonOwnerPtr<::IStoreCatalogRepository> storeCatalogRepository,
54 ::Bedrock::NotNullNonOwnerPtr<::DateManager> dateManager,
55 ::Bedrock::NotNullNonOwnerPtr<::IEntitlementManager> entitlementManager,
56 ::Bedrock::NotNullNonOwnerPtr<::IWorldTemplateManager> worldTemplateManager,
57 ::ServicesManager& servicesManager,
58 ::IContentAcquisition& contentAquisition,
59 ::MarketplaceServicesManager& marketplaceServicesManager
60 );
61
62 MCAPI void _localWorldUpdateCallback(::std::pair<::std::string, bool> const& updatedTemplateData);
63
64 MCAPI void _onOfferPurchased(::std::string const& productId);
65
66 MCAPI void _prepareOffers();
67
68 MCAPI void isTemplateOwnedThroughPassOnly(::std::string const& templateId, ::std::function<void(bool)> callback);
69
70 MCAPI void update(double);
71 // NOLINTEND
72
73public:
74 // static variables
75 // NOLINTBEGIN
76 MCAPI static ::std::add_lvalue_reference_t<char const[]> MARKETPLACE_PASS_TEMPLATES_TITLE();
77
78 MCAPI static ::std::add_lvalue_reference_t<char const[]> REALMS_PLUS_QUERY_NAME();
79 // NOLINTEND
80
81public:
82 // constructor thunks
83 // NOLINTBEGIN
84 MCAPI void* $ctor(
85 ::Bedrock::NotNullNonOwnerPtr<::IStoreCatalogRepository> storeCatalogRepository,
86 ::Bedrock::NotNullNonOwnerPtr<::DateManager> dateManager,
87 ::Bedrock::NotNullNonOwnerPtr<::IEntitlementManager> entitlementManager,
88 ::Bedrock::NotNullNonOwnerPtr<::IWorldTemplateManager> worldTemplateManager,
89 ::ServicesManager& servicesManager,
90 ::IContentAcquisition& contentAquisition,
91 ::MarketplaceServicesManager& marketplaceServicesManager
92 );
93 // NOLINTEND
94
95public:
96 // virtual function thunks
97 // NOLINTBEGIN
98 MCAPI void $_templateDownloadedCallback(::std::string const& templateId, bool success);
99 // NOLINTEND
100};
101
102} // namespace World
Definition DateManager.h:14
Definition IContentAcquisition.h:5
Definition IMarketplaceContentOffersProvider.h:5
Definition IWorldTemplateManager.h:17
Definition MarketplacePassWorldTemplateManager.h:7
Definition MarketplaceWorldTemplateData.h:7