LeviLamina
Loading...
Searching...
No Matches
HudLocatorBarRenderer.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/gui/controls/renderers/MinecraftUICustomRenderer.h"
7#include "mc/deps/core/math/Vec2.h"
8#include "mc/deps/minecraft_renderer/renderer/Mesh.h"
9#include "mc/deps/minecraft_renderer/renderer/TexturePtr.h"
10
11// auto generated forward declare list
12// clang-format off
13class IClientInstance;
15class NinePatchLayer;
16class ScreenContext;
17class UIControl;
19class UIScene;
20namespace mce { class TextureGroup; }
21// clang-format on
22
24public:
25 // HudLocatorBarRenderer inner types declare
26 // clang-format off
28 struct PlayerData;
29 // clang-format on
30
31 // HudLocatorBarRenderer inner types define
32 struct ActorUniqueIDCompare {};
33
34 struct PlayerData {};
35
36public:
37 // member variables
38 // NOLINTBEGIN
39 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::NinePatchLayer>> mBackgroundTexture;
40 ::ll::TypedStorage<1, 1, bool> mHasLoadedIconTextures;
41 ::ll::TypedStorage<8, 192, ::std::array<::mce::TexturePtr, 6>> mTextures;
42 ::ll::TypedStorage<8, 3312, ::std::array<::mce::Mesh, 6>> mMeshes;
43 ::ll::TypedStorage<4, 8, ::Vec2> mBackgroundSize;
44 ::ll::TypedStorage<8, 8, ::std::chrono::steady_clock::time_point> mLastRenderCall;
45 // NOLINTEND
46
47public:
48 // virtual functions
49 // NOLINTBEGIN
50 virtual ~HudLocatorBarRenderer() /*override*/;
51
52 virtual ::std::shared_ptr<::UICustomRenderer> clone() const /*override*/;
53
54 virtual void
55 render(::MinecraftUIRenderContext& renderContext, ::IClientInstance& client, ::UIControl& owner, int) /*override*/;
56
57 virtual bool update(::IClientInstance& client, ::UIControl& owner, ::UIScene const&) /*override*/;
58 // NOLINTEND
59
60public:
61 // member functions
62 // NOLINTBEGIN
63 MCAPI HudLocatorBarRenderer();
64
65 MCAPI bool _areIconTexturesValid() const;
66
67 MCAPI void _loadIconTextures(::std::shared_ptr<::mce::TextureGroup> textureGroup);
68
69 MCAPI bool _validateIconMeshes(::ScreenContext& screenContext, float barHeight);
70 // NOLINTEND
71
72public:
73 // constructor thunks
74 // NOLINTBEGIN
75 MCAPI void* $ctor();
76 // NOLINTEND
77
78public:
79 // destructor thunk
80 // NOLINTBEGIN
81 MCAPI void $dtor();
82 // NOLINTEND
83
84public:
85 // virtual function thunks
86 // NOLINTBEGIN
87 MCAPI ::std::shared_ptr<::UICustomRenderer> $clone() const;
88
89 MCAPI void $render(::MinecraftUIRenderContext& renderContext, ::IClientInstance& client, ::UIControl& owner, int);
90
91 MCAPI bool $update(::IClientInstance& client, ::UIControl& owner, ::UIScene const&);
92 // NOLINTEND
93
94public:
95 // vftables
96 // NOLINTBEGIN
97 MCNAPI static void** $vftable();
98 // NOLINTEND
99};
Definition HudLocatorBarRenderer.h:5
static MCAPI void ** $vftable()
Definition IClientInstance.h:5
Definition MinecraftUICustomRenderer.h:5
Definition MinecraftUIRenderContext.h:5
Definition NinePatchLayer.h:5
Definition ScreenContext.h:5
Definition UIControl.h:5
Definition UICustomRenderer.h:5
Definition UIScene.h:5
Definition TextureGroup.h:7
Definition HudLocatorBarRenderer.h:14
Definition HudLocatorBarRenderer.h:16