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/deps/input/InputMode.h"
7
8// auto generated forward declare list
9// clang-format off
10class EntityContext;
11class Vec2;
16struct MoveInputState;
17struct Tick;
19// clang-format on
20
21namespace PlayerMovement {
22// functions
23// NOLINTBEGIN
24MCAPI void applyInputLocks(::ClientInputLockComponent const& lockComponent, ::MoveInputState& inputState);
25
26MCAPI ::Vec2 calculateButtonMoveVector(::MoveInputState const& inputState);
27
28MCAPI void clearInputState(::MoveInputComponent& input);
29
30MCAPI_C ::InputMode getInputMode(::EntityContext const& provider);
31
32MCAPI void initializePlayer(::EntityContext& provider);
33
34MCAPI void setElytraFlightTimeTicks(::EntityContext& provider, ::Tick const& value);
35
36MCAPI_C bool shouldStopEmoting(
37 ::Vec2 rawMove,
38 ::ActorDataFlagComponent& actorDataFlag,
39 ::ActorDataDirtyFlagsComponent& actorDataDirtyFlags,
40 ::ClientInputLockComponent& lockComponent,
41 ::VanillaClientGameplayComponent& vanillaClientGameplayComponent
42);
43// NOLINTEND
44
45} // namespace PlayerMovement
Definition EntityContext.h:16
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 Tick.h:5
Definition VanillaClientGameplayComponent.h:8