LeviLamina
Loading...
Searching...
No Matches
MovementInterpolatorComponent.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
9// auto generated forward declare list
10// clang-format off
11class EntityContext;
12// clang-format on
13
15public:
16 // member variables
17 // NOLINTBEGIN
18 ::ll::TypedStorage<4, 12, ::Vec3> mPos;
19 ::ll::TypedStorage<4, 8, ::Vec2> mRot;
20 ::ll::TypedStorage<4, 4, float> mHeadYaw;
21 ::ll::TypedStorage<4, 4, int> mPositionSteps;
22 ::ll::TypedStorage<4, 4, int> mRotationSteps;
23 ::ll::TypedStorage<4, 4, int> mHeadYawSteps;
24 ::ll::TypedStorage<1, 1, bool> mMustBeCompleted;
25 ::ll::TypedStorage<1, 1, bool> mPlayerControlServerVehicle;
26 // NOLINTEND
27
28public:
29 // member functions
30 // NOLINTBEGIN
31 MCAPI bool canStartLerpTo(bool mustBeCompleted) const;
32
33 MCAPI bool isActive() const;
34
35 MCAPI void lerpTo(::Vec3 const& pos, ::Vec2 const& rot, int steps);
36
37 MCAPI void lerpToRotation(::Vec2 const& rot, int steps);
38
39 MCAPI void reset();
40
41 MCAPI void setHeadYawLerpTarget(float headYaw, int steps);
42 // NOLINTEND
43
44public:
45 // static functions
46 // NOLINTBEGIN
47#ifdef LL_PLAT_C
48 MCAPI static void
49 startLerpTo(::EntityContext& entity, ::Vec3 const& pos, ::Vec2 const& rot, int steps, bool mustBeCompleted);
50#endif
51 // NOLINTEND
52};
Definition EntityContext.h:17
Definition Vec2.h:5
Definition Vec3.h:10
Definition MovementInterpolatorComponent.h:14