LeviLamina
Loading...
Searching...
No Matches
FacetRegistryFactory.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/gui/oreui/binding/ScreenModelProvider.h"
7#include "mc/client/gui/oreui/interface/FacetAvailability.h"
8#include "mc/client/gui/oreui/interface/FacetRegistryLocation.h"
9#include "mc/deps/core/utility/NonOwnerPointer.h"
10
11// auto generated forward declare list
12// clang-format off
14class IAppPlatform;
15class IClientInstance;
16class IMinecraftGame;
17namespace OreUI { class IFacet; }
18namespace OreUI { class IFacetRegistry; }
19// clang-format on
20
21namespace OreUI {
22
24public:
25 // FacetRegistryFactory inner types declare
26 // clang-format off
27 struct FacetData;
28 // clang-format on
29
30 // FacetRegistryFactory inner types define
31 struct FacetData {
32 public:
33 // member variables
34 // NOLINTBEGIN
35 ::ll::TypedStorage<8, 32, ::std::string const> mName;
36 ::ll::TypedStorage<4, 4, ::OreUI::FacetAvailability const> mAvailability;
37 ::ll::TypedStorage<
38 8,
39 64,
40 ::std::function<::std::unique_ptr<::OreUI::IFacet>(::OreUI::FacetRegistryLocation)> const>
41 mConstructor;
42 // NOLINTEND
43
44 public:
45 // prevent constructor by default
46 FacetData();
47
48 public:
49 // member functions
50 // NOLINTBEGIN
51 MCAPI FacetData(
52 char const* name,
53 ::OreUI::FacetAvailability availability,
54 ::std::function<::std::unique_ptr<::OreUI::IFacet>(::OreUI::FacetRegistryLocation)> constructor
55 );
56 // NOLINTEND
57
58 public:
59 // constructor thunks
60 // NOLINTBEGIN
61 MCAPI void* $ctor(
62 char const* name,
63 ::OreUI::FacetAvailability availability,
64 ::std::function<::std::unique_ptr<::OreUI::IFacet>(::OreUI::FacetRegistryLocation)> constructor
65 );
66 // NOLINTEND
67 };
68
69 using FacetConstructor = ::std::function<::std::unique_ptr<::OreUI::IFacet>(::OreUI::FacetRegistryLocation)>;
70
71public:
72 // member variables
73 // NOLINTBEGIN
74 ::ll::TypedStorage<8, 24, ::std::vector<::OreUI::FacetRegistryFactory::FacetData>> mFacets;
75 ::ll::TypedStorage<8, 24, ::Bedrock::NotNullNonOwnerPtr<::IClientInstance>> mClientInstance;
76 ::ll::TypedStorage<8, 8, ::IMinecraftGame&> mMinecraft;
77 ::ll::TypedStorage<8, 24, ::Bedrock::NonOwnerPointer<::IAppPlatform>> mAppPlatform;
78 ::ll::TypedStorage<8, 88, ::OreUI::ScreenModelProvider> mScreenModelProvider;
79 // NOLINTEND
80
81public:
82 // prevent constructor by default
83 FacetRegistryFactory& operator=(FacetRegistryFactory const&);
84 FacetRegistryFactory(FacetRegistryFactory const&);
85 FacetRegistryFactory();
86
87public:
88 // member functions
89 // NOLINTBEGIN
90 MCAPI FacetRegistryFactory(
91 ::Bedrock::NotNullNonOwnerPtr<::IClientInstance> const& clientInstance,
92 ::Bedrock::NotNullNonOwnerPtr<::IAdvancedGraphicsOptions> const& advancedGraphicsOptions,
93 ::Bedrock::NonOwnerPointer<::IAppPlatform> const& appPlatform
94 );
95
96 MCAPI void _registerCoreFacets();
97
98 MCAPI void _registerVanillaFacets();
99
100 MCAPI void _registerVanillaGameplayFacets();
101
102 MCAPI ::std::unique_ptr<::OreUI::IFacetRegistry> createFacetRegistry(::OreUI::FacetRegistryLocation location);
103
104 MCAPI ~FacetRegistryFactory();
105 // NOLINTEND
106
107public:
108 // constructor thunks
109 // NOLINTBEGIN
110 MCAPI void* $ctor(
111 ::Bedrock::NotNullNonOwnerPtr<::IClientInstance> const& clientInstance,
112 ::Bedrock::NotNullNonOwnerPtr<::IAdvancedGraphicsOptions> const& advancedGraphicsOptions,
113 ::Bedrock::NonOwnerPointer<::IAppPlatform> const& appPlatform
114 );
115 // NOLINTEND
116
117public:
118 // destructor thunk
119 // NOLINTBEGIN
120 MCAPI void $dtor();
121 // NOLINTEND
122};
123
124} // namespace OreUI
Definition IAdvancedGraphicsOptions.h:16
Definition IAppPlatform.h:15
Definition IClientInstance.h:5
Definition IMinecraftGame.h:5
Definition FacetRegistryFactory.h:7
Definition IFacetRegistry.h:7
Definition IFacet.h:7
Definition FacetRegistryFactory.h:15