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 Matrix;
17class Mob;
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 void _Level_setupShading(
51 ::BaseActorRenderContext& renderContext,
52 ::mce::Color const& overlayColor,
53 ::mce::Color const& changeColor,
54 ::mce::Color const& changeColor2,
55 ::Vec4 const& uvAnim,
56 float br,
57 bool ignoreLighting,
58 bool filterLighting,
59 bool isEnchanted
60 ) const;
61
62 MCAPI void _UI_setupShading(
63 ::BaseActorRenderContext& renderContext,
64 ::mce::Color const&,
65 ::mce::Color const&,
66 ::mce::Color const&,
67 ::Vec4 const& uvAnim,
68 float,
69 bool,
70 bool
71 ) const;
72
73 MCAPI void applyGlobalAnims(::Matrix& worldMatrix, ::BaseActorRenderContext& renderContext) const;
74 // NOLINTEND
75
76public:
77 // static functions
78 // NOLINTBEGIN
79 MCAPI static ::std::optional<::std::pair<float, float>>
80 getDamageOrGlidingXYRotation(::Mob const& mob, float actorFrameAlpha, bool isFirstPersonPlayer);
81
82 MCAPI static ::std::optional<::std::pair<float, float>> getNamedRotationAndOffset(::Mob const& mob);
83 // NOLINTEND
84};
Definition ActorRenderData.h:5
Definition Actor.h:113
Definition AnimationComponent.h:38
Definition BaseActorRenderContext.h:5
Definition ItemStack.h:26
Definition Matrix.h:10
Definition Mob.h:56
Definition MolangVariableMap.h:17
Definition Vec4.h:5
Definition Color.h:13