LeviLamina
Loading...
Searching...
No Matches
RenderParams.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/math/Vec3.h"
7#include "mc/deps/minecraft_renderer/game/ShadowContext.h"
8#include "mc/util/MolangScriptArg.h"
9#include "mc/world/actor/animation/AttachableSlotIndex.h"
10#include "mc/world/level/BlockPos.h"
11#include "mc/world/response/ResponseParameterContext.h"
12
13// auto generated forward declare list
14// clang-format off
15class Actor;
17class Block;
18class BlockSource;
20class ILevel;
21class ItemStackBase;
23class ActorRenderData;
25class DataDrivenModel;
26namespace ParticleSystem { class ParticleEmitter; }
27// clang-format on
28
29class RenderParams {
30public:
31 // RenderParams inner types declare
32 // clang-format off
33 struct Flags;
34 // clang-format on
35
36 // RenderParams inner types define
37 struct Flags {
38 public:
39 // member variables
40 // NOLINTBEGIN
41 ::ll::TypedStorage<4, 4, uint> mIsChild;
42 // NOLINTEND
43 };
44
45public:
46 // member variables
47 // NOLINTBEGIN
48 ::ll::TypedStorage<8, 8, ::BaseActorRenderContext*> mBaseActorRenderContext;
49 ::ll::TypedStorage<8, 8, ::MolangVariableMap*> mVariables;
50 ::ll::TypedStorage<8, 8, ::AnimationComponent*> mAnimationComponent;
51 ::ll::TypedStorage<8, 8, ::AnimationComponent*> mRootAnimationComponent;
52 ::ll::TypedStorage<8, 16, ::std::weak_ptr<::DataDrivenModel>> mModel;
53 ::ll::TypedStorage<4, 4, ::ResponseParameterContext> mSourceContext;
54 ::ll::TypedStorage<8, 8, ::Actor*> mActor;
55 ::ll::TypedStorage<8, 8, ::Actor*> mOther;
56 ::ll::TypedStorage<8, 8, ::Actor*> mPlayer;
57 ::ll::TypedStorage<8, 8, ::Actor*> mTarget;
58 ::ll::TypedStorage<8, 8, ::Actor*> mParent;
59 ::ll::TypedStorage<8, 8, ::Actor*> mBaby;
60 ::ll::TypedStorage<8, 8, ::Actor*> mDamager;
61 ::ll::TypedStorage<8, 8, ::ILevel*> mLevel;
62 ::ll::TypedStorage<8, 8, ::ItemStackBase*> mItemStackBasePtr;
63 ::ll::TypedStorage<8, 8, ::Block const*> mBlock;
64 ::ll::TypedStorage<4, 12, ::BlockPos> mBlockPos;
65 ::ll::TypedStorage<8, 8, ::BlockSource*> mBlockSource;
66 ::ll::TypedStorage<8, 8, ::ActorRenderData*> mActorRenderData;
67 ::ll::TypedStorage<8, 8, ::ParticleSystem::ParticleEmitter*> mParticleEmitter;
68 ::ll::TypedStorage<8, 8, ::IBlockWorldGenAPI*> mBlockPlacementTarget;
69 ::ll::TypedStorage<2, 2, ushort> mSubRenderLayerIndex;
70 ::ll::TypedStorage<8, 64, ::std::function<float()>> mRandomFunction;
71 ::ll::TypedStorage<4, 4, float> mCameraDistance;
72 ::ll::TypedStorage<1, 1, ::ShadowContext> mShadowContext;
73 ::ll::TypedStorage<4, 32, float[8]> mParams;
74#ifdef LL_PLAT_S
75 ::ll::TypedStorage<8, 88, ::MolangScriptArg> mThisValue;
76 ::ll::TypedStorage<8, 88, ::MolangScriptArg> mScratchValue;
77#else // LL_PLAT_C
78 ::ll::TypedStorage<8, 96, ::MolangScriptArg> mThisValue;
79 ::ll::TypedStorage<8, 96, ::MolangScriptArg> mScratchValue;
80#endif
81 ::ll::TypedStorage<4, 4, float> mHeldItemScale;
82 ::ll::TypedStorage<4, 4, ::RenderParams::Flags> mFlags;
83 ::ll::TypedStorage<4, 12, ::Vec3> mClickPos;
84 ::ll::TypedStorage<4, 4, ::AttachableSlotIndex> mSlotIndex;
85 ::ll::TypedStorage<1, 1, bool> mIsDitheringEnabled;
86 // NOLINTEND
87
88#ifdef LL_PLAT_S
89public:
90 // prevent constructor by default
91 RenderParams& operator=(RenderParams const&) = default;
92 RenderParams() = default;
93
94#else // LL_PLAT_C
95public:
96 // prevent constructor by default
97 RenderParams() = default;
98
99#endif
100public:
101 // member functions
102 // NOLINTBEGIN
103 MCAPI RenderParams(::RenderParams const&);
104
105 MCAPI ::RenderParams& init(
106 ::BaseActorRenderContext* baseActorRenderContext,
107 ::Actor* actor,
108 ::AnimationComponent* animationComponent,
109 ::MolangVariableMap* variableMap,
110 ::std::shared_ptr<::DataDrivenModel> model,
111 float frameAlpha,
112 float modelScale,
113 bool isDitheringEnabled
114 );
115
116#ifdef LL_PLAT_C
117 MCAPI ::RenderParams& operator=(::RenderParams const&);
118#endif
119
120 MCAPI ~RenderParams();
121 // NOLINTEND
122
123public:
124 // constructor thunks
125 // NOLINTBEGIN
126 MCAPI void* $ctor(::RenderParams const&);
127 // NOLINTEND
128
129public:
130 // destructor thunk
131 // NOLINTBEGIN
132 MCAPI void $dtor();
133 // NOLINTEND
134};
Definition ActorRenderData.h:5
Definition Actor.h:113
Definition AnimationComponent.h:38
Definition BaseActorRenderContext.h:5
Definition BlockSource.h:71
Definition Block.h:41
Definition DataDrivenModel.h:5
Definition IBlockWorldGenAPI.h:25
Definition ILevel.h:221
Definition ItemStackBase.h:44
Definition MolangVariableMap.h:17
Definition ParticleEmitter.h:7
Definition RenderParams.h:37