3#include "mc/_HeaderOutputPredefine.h"
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"
17namespace mce {
class UUID; }
22class EditorMinimapFacet :
public ::OreUI::FacetBase_DEPRECATED<::OreUI::EditorMinimapFacet> {
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;
50 MCNAPI static ::std::add_lvalue_reference_t<char const[24]>
NAME();
58 ::ll::TypedStorage<4, 4, int> mWidth;
59 ::ll::TypedStorage<4, 4, int> mHeight;
65 MCNAPI static ::std::add_lvalue_reference_t<char const[20]>
NAME();
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;
84 MCNAPI static ::std::add_lvalue_reference_t<char const[18]>
NAME();
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;
101 MCNAPI static ::std::add_lvalue_reference_t<char const[23]>
NAME();
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>>
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;
124 EditorMinimapFacet();
129 virtual ~EditorMinimapFacet() =
default;
131 virtual bool update() ;
143 MCNAPI ::std::vector<::OreUI::EditorMinimapFacet::MinimapOreUIMarkerData>
const&
getGlobalMarkers();
145 MCNAPI ::std::unordered_map<::std::string, ::OreUI::EditorMinimapFacet::MinimapData>
const&
getMinimaps();
147 MCNAPI ::OreUI::EditorMinimapFacet::MinimapHoverInfo
158 MCNAPI static ::std::add_lvalue_reference_t<char const[]>
NAME();
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 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()