LeviLamina
Loading...
Searching...
No Matches
PlayerMoveInput.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/input/InputMode.h"
7
8// auto generated forward declare list
9// clang-format off
10class EntityContext;
12// clang-format on
13
14namespace PlayerMoveInput {
15// functions
16// NOLINTBEGIN
17#ifdef LL_PLAT_C
18MCAPI void clearInputState(::MoveInputComponent& input);
19
20MCAPI void clearMovementState(::EntityContext& entity);
21
22MCAPI void clearMovementState(::MoveInputComponent& input);
23#endif
24
25MCAPI void initializePlayer(::EntityContext& entity);
26
27#ifdef LL_PLAT_C
28MCAPI void initializeRemotePlayer(::EntityContext& entity);
29
30MCAPI bool isAutoJumpEnabled(::EntityContext const& entity);
31#endif
32
33MCAPI bool isDescending(::EntityContext const& entity);
34
35#ifdef LL_PLAT_C
36MCAPI bool isInputBackward(::MoveInputComponent const& input);
37
38MCAPI bool isInputForward(::MoveInputComponent const& input);
39
40MCAPI bool isInputLeft(::MoveInputComponent const& input);
41
42MCAPI bool isInputRight(::MoveInputComponent const& input);
43
44MCAPI bool isJumping(::EntityContext const& entity);
45
46MCAPI bool isPlayerMoving(::EntityContext const& entity);
47#endif
48
49MCAPI bool isSneakDown(::EntityContext const& entity);
50
51#ifdef LL_PLAT_C
52MCAPI bool isSprintDown(::MoveInputComponent const& input);
53
54MCAPI void setAutoJumpEnabled(::EntityContext& entity, bool autoJumpEnabled);
55
56MCAPI void setSneakDown(::MoveInputComponent& input, bool isDown);
57
58MCAPI void setupPersistentControls(::MoveInputComponent& input, ::InputMode currentMode);
59#endif
60// NOLINTEND
61
62} // namespace PlayerMoveInput
Definition EntityContext.h:17
Definition MoveInputComponent.h:11