LeviLamina
Loading...
Searching...
No Matches
HudHungerRenderer.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/minecraft_renderer/renderer/Mesh.h"
8#include "mc/deps/minecraft_renderer/renderer/TexturePtr.h"
9
10// auto generated forward declare list
11// clang-format off
12class IClientInstance;
14class ScreenContext;
15class UIControl;
17class UIScene;
18namespace mce { class TextureGroup; }
19// clang-format on
20
22public:
23 // HudHungerRenderer inner types define
24 enum class HungerType : int {
25 Background = 0,
26 BackgroundEffect = 1,
27 Full = 2,
28 FullEffect = 3,
29 Half = 4,
30 HalfEffect = 5,
31 Count = 6,
32 };
33
34public:
35 // member variables
36 // NOLINTBEGIN
37 ::ll::TypedStorage<4, 4, int> mTickCount;
38 ::ll::TypedStorage<1, 1, bool> mHasLoadedTextures;
39 ::ll::TypedStorage<1, 1, bool> mShouldRender;
40 ::ll::TypedStorage<1, 1, bool> mUseHungerEffect;
41 ::ll::TypedStorage<1, 1, bool> mAnimatedLastFrame;
42 ::ll::TypedStorage<8, 8, uint64> mNumFullIcons;
43 ::ll::TypedStorage<8, 8, uint64> mNumHalfIcons;
44 ::ll::TypedStorage<8, 192, ::std::array<::mce::TexturePtr, 6>> mHungerTextures;
45 ::ll::TypedStorage<8, 3168, ::std::array<::mce::Mesh, 6>> mHungerMeshes;
46 ::ll::TypedStorage<4, 120, ::std::array<::glm::vec3, 10>> mIconPosition;
47 // NOLINTEND
48
49public:
50 // virtual functions
51 // NOLINTBEGIN
52 virtual ~HudHungerRenderer() /*override*/ = default;
53
54 virtual ::std::shared_ptr<::UICustomRenderer> clone() const /*override*/;
55
56 virtual void
57 render(::MinecraftUIRenderContext& renderContext, ::IClientInstance&, ::UIControl& owner, int) /*override*/;
58
59 virtual bool update(::IClientInstance& client, ::UIControl& owner, ::UIScene const& scene) /*override*/;
60 // NOLINTEND
61
62public:
63 // member functions
64 // NOLINTBEGIN
65 MCAPI HudHungerRenderer();
66
67 MCAPI void _loadHungerTextures(::std::shared_ptr<::mce::TextureGroup> textureGroup);
68
69 MCAPI bool _validateHungerMeshes(::ScreenContext& screenContext);
70 // NOLINTEND
71
72public:
73 // constructor thunks
74 // NOLINTBEGIN
75 MCAPI void* $ctor();
76 // NOLINTEND
77
78public:
79 // virtual function thunks
80 // NOLINTBEGIN
81 MCAPI ::std::shared_ptr<::UICustomRenderer> $clone() const;
82
83 MCAPI void $render(::MinecraftUIRenderContext& renderContext, ::IClientInstance&, ::UIControl& owner, int);
84
85 MCAPI bool $update(::IClientInstance& client, ::UIControl& owner, ::UIScene const& scene);
86 // NOLINTEND
87
88public:
89 // vftables
90 // NOLINTBEGIN
91 MCNAPI static void** $vftable();
92 // NOLINTEND
93};
Definition HudHungerRenderer.h:5
static MCAPI void ** $vftable()
Definition IClientInstance.h:5
Definition MinecraftUICustomRenderer.h:5
Definition MinecraftUIRenderContext.h:5
Definition ScreenContext.h:5
Definition UIControl.h:5
Definition UICustomRenderer.h:5
Definition UIScene.h:5
Definition TextureGroup.h:7