Skip to content
LeviMC
English
AutoLightDark
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_DEPRECATED.h"
7#include "mc/deps/core/math/Color.h"
8#include "mc/deps/core/math/Vec3.h"
9#include "mc/deps/core/utility/pub_sub/Subscription.h"
10#include "mc/editor/MinimapMarkerType.h"
11#include "mc/editor/MinimapTrackingMode.h"
12
13// auto generated forward declare list
14// clang-format off
15namespace Editor { class ServiceProviderCollection; }
16namespace Editor::Services { class EditorMinimapServiceProvider; }
17namespace mce { class UUID; }
18// clang-format on
19
20namespace OreUI {
21
22class EditorMinimapFacet : public ::OreUI::FacetBase_DEPRECATED<::OreUI::EditorMinimapFacet> {
23public:
24 // EditorMinimapFacet inner types declare
25 // clang-format off
27 struct MapDimensions;
28 struct MinimapData;
29 struct MinimapHoverInfo;
30 // clang-format on
31
32 // EditorMinimapFacet inner types define
34 public:
35 // member variables
36 // NOLINTBEGIN
37 ::ll::TypedStorage<4, 4, ::Editor::Services::MinimapMarkerType> mType;
38 ::ll::TypedStorage<8, 32, ::std::string> mIconIdentifier;
39 ::ll::TypedStorage<4, 12, ::Vec3> mPosition;
40 ::ll::TypedStorage<4, 4, float> mRotation;
41 ::ll::TypedStorage<4, 16, ::mce::Color> mColor;
42 ::ll::TypedStorage<8, 32, ::std::string> mLabel;
43 ::ll::TypedStorage<8, 32, ::std::string> mTooltip;
44 ::ll::TypedStorage<1, 1, bool> mClickable;
45 // NOLINTEND
46
47 public:
48 // static variables
49 // NOLINTBEGIN
50 MCNAPI static ::std::add_lvalue_reference_t<char const[24]> NAME();
51 // NOLINTEND
52 };
53
54 struct MapDimensions {
55 public:
56 // member variables
57 // NOLINTBEGIN
58 ::ll::TypedStorage<4, 4, int> mWidth;
59 ::ll::TypedStorage<4, 4, int> mHeight;
60 // NOLINTEND
61
62 public:
63 // static variables
64 // NOLINTBEGIN
65 MCNAPI static ::std::add_lvalue_reference_t<char const[20]> NAME();
66 // NOLINTEND
67 };
68
69 struct MinimapData {
70 public:
71 // member variables
72 // NOLINTBEGIN
73 ::ll::TypedStorage<8, 32, ::std::string> mMapImage;
74 ::ll::TypedStorage<4, 8, ::OreUI::EditorMinimapFacet::MapDimensions> mDimensions;
75 ::ll::TypedStorage<4, 4, ::Editor::Services::MinimapTrackingMode> mTrackingMode;
76 ::ll::TypedStorage<4, 4, float> mViewCenterX;
77 ::ll::TypedStorage<4, 4, float> mViewCenterZ;
78 ::ll::TypedStorage<1, 1, bool> mIsMeMarkerOnMap;
79 // NOLINTEND
80
81 public:
82 // static variables
83 // NOLINTBEGIN
84 MCNAPI static ::std::add_lvalue_reference_t<char const[18]> NAME();
85 // NOLINTEND
86 };
87
88 struct MinimapHoverInfo {
89 public:
90 // member variables
91 // NOLINTBEGIN
92 ::ll::TypedStorage<4, 12, ::Vec3> mWorldPosition;
93 ::ll::TypedStorage<8, 32, ::std::string> mBiomeName;
94 ::ll::TypedStorage<8, 32, ::std::string> mBlockName;
95 ::ll::TypedStorage<1, 1, bool> mValid;
96 // NOLINTEND
97
98 public:
99 // static variables
100 // NOLINTBEGIN
101 MCNAPI static ::std::add_lvalue_reference_t<char const[23]> NAME();
102 // NOLINTEND
103 };
104
105public:
106 // member variables
107 // NOLINTBEGIN
108 ::ll::TypedStorage<1, 1, bool> mIsDirty;
109 ::ll::TypedStorage<8, 8, ::Editor::Services::EditorMinimapServiceProvider*> mMinimapService;
110 ::ll::TypedStorage<8, 8, ::Editor::ServiceProviderCollection*> mServices;
111 ::ll::TypedStorage<8, 64, ::std::unordered_map<::std::string, ::OreUI::EditorMinimapFacet::MinimapData>> mMinimaps;
112 ::ll::TypedStorage<8, 24, ::std::vector<::OreUI::EditorMinimapFacet::MinimapOreUIMarkerData>> mGlobalMarkers;
113 ::ll::TypedStorage<8, 64, ::std::unordered_map<::std::string, ::OreUI::EditorMinimapFacet::MinimapData>>
114 mMinimapsSnapshot;
115 ::ll::TypedStorage<8, 24, ::std::vector<::OreUI::EditorMinimapFacet::MinimapOreUIMarkerData>>
116 mGlobalMarkersSnapshot;
117 ::ll::TypedStorage<8, 64, ::std::unordered_set<::std::string>> mVisibleMinimapUIs;
118 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mMinimapDataChangedSub;
119 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mMeMarkerChangedSub;
120 // NOLINTEND
121
122public:
123 // prevent constructor by default
124 EditorMinimapFacet();
125
126public:
127 // virtual functions
128 // NOLINTBEGIN
129 virtual ~EditorMinimapFacet() /*override*/ = default;
130
131 virtual bool update() /*override*/;
132 // NOLINTEND
133
134public:
135 // member functions
136 // NOLINTBEGIN
138
140
141 MCNAPI void _handleMinimapDataChanged(::mce::UUID const& minimapId);
142
143 MCNAPI ::std::vector<::OreUI::EditorMinimapFacet::MinimapOreUIMarkerData> const& getGlobalMarkers();
144
145 MCNAPI ::std::unordered_map<::std::string, ::OreUI::EditorMinimapFacet::MinimapData> const& getMinimaps();
146
147 MCNAPI ::OreUI::EditorMinimapFacet::MinimapHoverInfo
148 queryMinimapPosition(::std::string const& minimapId, float worldX, float worldZ);
149
150 MCNAPI void registerMinimapUI(::std::string const& mapId);
151
152 MCNAPI void unregisterMinimapUI(::std::string const& mapId);
153 // NOLINTEND
154
155public:
156 // static variables
157 // NOLINTBEGIN
158 MCNAPI static ::std::add_lvalue_reference_t<char const[]> NAME();
159 // NOLINTEND
160
161public:
162 // constructor thunks
163 // NOLINTBEGIN
165 // NOLINTEND
166
167public:
168 // virtual function thunks
169 // NOLINTBEGIN
170 MCNAPI bool $update();
171 // NOLINTEND
172};
173
174} // namespace OreUI
Definition ServiceProviderCollection.h:7
Definition EditorMinimapServiceProvider.h:28
Definition EditorMinimapFacet.h:7
MCAPI ::std::vector<::OreUI::EditorMinimapFacet::MinimapOreUIMarkerData > const & getGlobalMarkers()
MCAPI EditorMinimapFacet(::Editor::ServiceProviderCollection *services)
MCAPI void _handleMeMarkerChanged()
MCAPI void unregisterMinimapUI(::std::string const &mapId)
MCAPI::OreUI::EditorMinimapFacet::MinimapHoverInfo queryMinimapPosition(::std::string const &minimapId, float worldX, float worldZ)
static MCAPI ::std::add_lvalue_reference_t< char const[]> NAME()
MCAPI void * $ctor(::Editor::ServiceProviderCollection *services)
MCAPI void _handleMinimapDataChanged(::mce::UUID const &minimapId)
MCAPI ::std::unordered_map<::std::string, ::OreUI::EditorMinimapFacet::MinimapData > const & getMinimaps()
MCAPI void registerMinimapUI(::std::string const &mapId)
Definition UUID.h:8
Definition EditorMinimapFacet.h:20
static MCAPI ::std::add_lvalue_reference_t< char const[20]> NAME()
Definition EditorMinimapFacet.h:24
static MCAPI ::std::add_lvalue_reference_t< char const[18]> NAME()
Definition EditorMinimapFacet.h:22
static MCAPI ::std::add_lvalue_reference_t< char const[23]> NAME()
Definition EditorMinimapFacet.h:18
static MCAPI ::std::add_lvalue_reference_t< char const[24]> NAME()