LeviLamina
Loading...
Searching...
No Matches
EditorMinimapFacet.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/gui/oreui/binding/FacetBase.h"
7#include "mc/deps/core/math/Color.h"
8#include "mc/deps/core/utility/pub_sub/Subscription.h"
9
10// auto generated forward declare list
11// clang-format off
12namespace Editor { class ServiceProviderCollection; }
13namespace Editor::Services { class EditorMinimapServiceProvider; }
14namespace mce { class UUID; }
15// clang-format on
16
17namespace OreUI {
18
19class EditorMinimapFacet : public ::OreUI::FacetBase<::OreUI::EditorMinimapFacet> {
20public:
21 // EditorMinimapFacet inner types declare
22 // clang-format off
23 struct PlayerMarkerData;
24 struct MapDimensions;
25 struct MinimapData;
26 // clang-format on
27
28 // EditorMinimapFacet inner types define
29 struct PlayerMarkerData {
30 public:
31 // member variables
32 // NOLINTBEGIN
33 ::ll::TypedStorage<4, 4, float> mX;
34 ::ll::TypedStorage<4, 4, float> mZ;
35 ::ll::TypedStorage<4, 4, float> mRotation;
36 ::ll::TypedStorage<4, 16, ::mce::Color> mColor;
37 ::ll::TypedStorage<1, 1, bool> mIsOnMap;
38 // NOLINTEND
39
40 public:
41 // static variables
42 // NOLINTBEGIN
43 MCAPI static ::std::add_lvalue_reference_t<char const[]> NAME();
44 // NOLINTEND
45 };
46
47 struct MapDimensions {
48 public:
49 // member variables
50 // NOLINTBEGIN
51 ::ll::TypedStorage<4, 4, int> mWidth;
52 ::ll::TypedStorage<4, 4, int> mHeight;
53 // NOLINTEND
54
55 public:
56 // static variables
57 // NOLINTBEGIN
58 MCAPI static ::std::add_lvalue_reference_t<char const[]> NAME();
59 // NOLINTEND
60 };
61
62 struct MinimapData {
63 public:
64 // member variables
65 // NOLINTBEGIN
66 ::ll::TypedStorage<8, 32, ::std::string> mMapImage;
67 ::ll::TypedStorage<4, 8, ::OreUI::EditorMinimapFacet::MapDimensions> mDimensions;
68 // NOLINTEND
69
70 public:
71 // member functions
72 // NOLINTBEGIN
73 MCAPI ~MinimapData();
74 // NOLINTEND
75
76 public:
77 // static variables
78 // NOLINTBEGIN
79 MCAPI static ::std::add_lvalue_reference_t<char const[]> NAME();
80 // NOLINTEND
81
82 public:
83 // destructor thunk
84 // NOLINTBEGIN
85 MCFOLD void $dtor();
86 // NOLINTEND
87 };
88
89public:
90 // member variables
91 // NOLINTBEGIN
92 ::ll::TypedStorage<1, 1, bool> mIsDirty;
93 ::ll::TypedStorage<8, 8, ::Editor::Services::EditorMinimapServiceProvider*> mMinimapService;
94 ::ll::TypedStorage<8, 8, ::Editor::ServiceProviderCollection*> mServices;
95 ::ll::TypedStorage<8, 64, ::std::unordered_map<::std::string, ::OreUI::EditorMinimapFacet::MinimapData>> mMinimaps;
96 ::ll::TypedStorage<
97 8,
98 64,
99 ::std::unordered_map<::std::string, ::std::vector<::OreUI::EditorMinimapFacet::PlayerMarkerData>>>
100 mPlayerMarkers;
101 ::ll::TypedStorage<4, 32, ::OreUI::EditorMinimapFacet::PlayerMarkerData> mMeMarker;
102 ::ll::TypedStorage<8, 64, ::std::unordered_set<::std::string>> mVisibleMinimapUIs;
103 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mMinimapDataChangedSub;
104 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mPlayerMarkersChangedSub;
105 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mMeMarkerChangedSub;
106 // NOLINTEND
107
108public:
109 // prevent constructor by default
110 EditorMinimapFacet();
111
112public:
113 // virtual functions
114 // NOLINTBEGIN
115 virtual ~EditorMinimapFacet() /*override*/;
116
117 virtual bool update() /*override*/;
118 // NOLINTEND
119
120public:
121 // member functions
122 // NOLINTBEGIN
123 MCAPI explicit EditorMinimapFacet(::Editor::ServiceProviderCollection* services);
124
125 MCAPI void _handleMeMarkerChanged();
126
127 MCAPI void _handleMinimapDataChanged(::mce::UUID const& minimapId);
128
129 MCAPI void _handlePlayerMarkersChanged(::mce::UUID const& minimapId);
130
131 MCAPI void _updateMinimapData(::mce::UUID const& minimapId);
132
133 MCAPI void _updatePlayerMarkers(::mce::UUID const& minimapId);
134
135 MCFOLD ::OreUI::EditorMinimapFacet::PlayerMarkerData const& getMeMarker();
136
137 MCFOLD ::std::unordered_map<::std::string, ::OreUI::EditorMinimapFacet::MinimapData> const& getMinimaps();
138
139 MCFOLD ::std::unordered_map<::std::string, ::std::vector<::OreUI::EditorMinimapFacet::PlayerMarkerData>> const&
140 getPlayerMarkers();
141
142 MCAPI void registerMinimapUI(::std::string const& mapId);
143
144 MCAPI void unregisterMinimapUI(::std::string const& mapId);
145 // NOLINTEND
146
147public:
148 // static variables
149 // NOLINTBEGIN
150 MCAPI static ::std::add_lvalue_reference_t<char const[]> NAME();
151 // NOLINTEND
152
153public:
154 // constructor thunks
155 // NOLINTBEGIN
156 MCAPI void* $ctor(::Editor::ServiceProviderCollection* services);
157 // NOLINTEND
158
159public:
160 // destructor thunk
161 // NOLINTBEGIN
162 MCAPI void $dtor();
163 // NOLINTEND
164
165public:
166 // virtual function thunks
167 // NOLINTBEGIN
168 MCFOLD bool $update();
169 // NOLINTEND
170
171public:
172 // vftables
173 // NOLINTBEGIN
174 MCNAPI static void** $vftable();
175 // NOLINTEND
176};
177
178} // namespace OreUI
Definition ServiceProviderCollection.h:7
Definition EditorMinimapServiceProvider.h:25
Definition EditorMinimapFacet.h:7
static MCAPI void ** $vftable()
Definition UUID.h:7
Definition EditorMinimapFacet.h:19
Definition EditorMinimapFacet.h:21
Definition EditorMinimapFacet.h:17