LeviLamina
Loading...
Searching...
No Matches
PlayerMovement.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/entity/components/PlayerPositionModeComponent.h"
7
8// auto generated forward declare list
9// clang-format off
10class EntityContext;
11class Vec2;
16struct MoveInputState;
18struct Tick;
20// clang-format on
21
22namespace PlayerMovement {
23// functions
24// NOLINTBEGIN
25MCAPI void applyInputLocks(::ClientInputLockComponent const& lockComponent, ::MoveInputState& inputState);
26
27#ifdef LL_PLAT_C
28MCAPI ::Vec2 calculateButtonMoveVector(::MoveInputState const& inputState);
29#endif
30
31MCAPI ::Vec2 calculateMoveVector(
32 ::MoveInputState const& inputState,
33 bool playerIsFlying,
34 ::ActorDataFlagComponent const& playerData,
35 bool playerIsInWater,
36 ::SneakingComponent const* sneakComponent
37);
38
39#ifdef LL_PLAT_C
40MCAPI void clearInputState(::MoveInputComponent& input);
41
42MCAPI float getBob(::EntityContext const& provider);
43
44MCAPI float getBobPrev(::EntityContext const& provider);
45#endif
46
47MCAPI ::PlayerPositionModeComponent::PositionMode getPositionMode(::EntityContext const& provider);
48
49MCAPI void initializePlayer(::EntityContext& provider);
50
51MCAPI void resetBob(::EntityContext& provider);
52
53MCAPI void setElytraFlightTimeTicks(::EntityContext& provider, ::Tick const& value);
54
55MCAPI void setPositionMode(::EntityContext& provider, ::PlayerPositionModeComponent::PositionMode positionMode);
56
57MCAPI bool shouldStopEmoting(
58 ::Vec2 rawMove,
59 ::ActorDataFlagComponent& actorDataFlag,
60 ::ActorDataDirtyFlagsComponent& actorDataDirtyFlags,
61 ::ClientInputLockComponent& lockComponent,
62 ::VanillaClientGameplayComponent& vanillaClientGameplayComponent
63);
64// NOLINTEND
65
66} // namespace PlayerMovement
Definition EntityContext.h:15
Definition Vec2.h:5
Definition ActorDataDirtyFlagsComponent.h:5
Definition ActorDataFlagComponent.h:9
Definition ClientInputLockComponent.h:10
Definition MoveInputComponent.h:11
Definition MoveInputState.h:9
Definition SneakingComponent.h:5
Definition Tick.h:5
Definition VanillaClientGameplayComponent.h:8