LeviLamina
Loading...
Searching...
No Matches
ActorRenderData.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/math/Vec2.h"
7#include "mc/deps/core/math/Vec3.h"
8#include "mc/deps/minecraft_renderer/framebuilder/CustomSurfaceShaderMetadata.h"
9
10// auto generated forward declare list
11// clang-format off
12class Actor;
15class ItemStack;
16class Mob;
18class RenderParams;
19class Vec4;
20namespace mce { class Color; }
21// clang-format on
22
23class ActorRenderData {
24public:
25 // member variables
26 // NOLINTBEGIN
27 ::ll::TypedStorage<8, 8, ::Actor*> mActor;
28 ::ll::TypedStorage<8, 8, ::ItemStack const*> mItemStack;
29 ::ll::TypedStorage<4, 12, ::Vec3> position;
30 ::ll::TypedStorage<4, 8, ::Vec2> rotation;
31 ::ll::TypedStorage<4, 8, ::Vec2> mHeadRot;
32 ::ll::TypedStorage<1, 1, bool> glint;
33 ::ll::TypedStorage<1, 1, bool> mIgnoreLighting;
34 ::ll::TypedStorage<1, 1, bool> mIsInUI;
35 ::ll::TypedStorage<4, 4, float> mDeltaTime;
36 ::ll::TypedStorage<8, 8, ::AnimationComponent&> mAnimationComponent;
37 ::ll::TypedStorage<8, 8, ::MolangVariableMap&> mVariables;
38 ::ll::TypedStorage<4, 8, ::mce::framebuilder::CustomSurfaceShaderMetadata> mCSSMetadata;
39 // NOLINTEND
40
41public:
42 // prevent constructor by default
43 ActorRenderData& operator=(ActorRenderData const&);
44 ActorRenderData(ActorRenderData const&);
45 ActorRenderData();
46
47public:
48 // member functions
49 // NOLINTBEGIN
50 MCAPI ActorRenderData(
51 bool isInUI,
52 ::AnimationComponent& animationComponent,
53 ::MolangVariableMap& variables,
54 ::Vec3 const& cameraTargetPosition,
55 float frameAlpha
56 );
57
58 MCAPI void _UI_setupShading(
59 ::BaseActorRenderContext& renderContext,
60 ::mce::Color const&,
61 ::mce::Color const&,
62 ::mce::Color const&,
63 ::Vec4 const& uvAnim,
64 float,
65 bool,
66 bool
67 ) const;
68
69 MCAPI void update(float frameAlpha, ::Vec3 const& cameraTargetPosition);
70
71 MCAPI void updateMolangVariables(::RenderParams& renderParams) const;
72 // NOLINTEND
73
74public:
75 // static functions
76 // NOLINTBEGIN
77 MCAPI static ::std::optional<::std::pair<float, float>>
78 getDamageOrGlidingXYRotation(::Mob const& mob, float actorFrameAlpha, bool isFirstPersonPlayer);
79
80 MCAPI static float getDeathRotation(::Mob const& mob, float actorFrameAlpha);
81
82 MCAPI static bool getIsFirstPersonPlayer(::Mob& mob);
83
84 MCAPI static ::std::optional<::std::pair<float, float>> getNamedRotationAndOffset(::Mob const& mob);
85 // NOLINTEND
86
87public:
88 // constructor thunks
89 // NOLINTBEGIN
90 MCAPI void* $ctor(
91 bool isInUI,
92 ::AnimationComponent& animationComponent,
93 ::MolangVariableMap& variables,
94 ::Vec3 const& cameraTargetPosition,
95 float frameAlpha
96 );
97 // NOLINTEND
98};
Definition ActorRenderData.h:5
Definition Actor.h:105
Definition AnimationComponent.h:36
Definition BaseActorRenderContext.h:34
Definition ItemStack.h:26
Definition Mob.h:50
Definition MolangVariableMap.h:17
Definition RenderParams.h:30
Definition Vec4.h:5
Definition Color.h:13