Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
PlayerAuthInputPacketPayload.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/container/EnumSet.h"
7#include "mc/deps/core/math/Vec2.h"
8#include "mc/deps/core/math/Vec3.h"
9#include "mc/deps/input/InputMode.h"
10#include "mc/entity/components/PlayerBlockActions.h"
11#include "mc/input/ClientPlayMode.h"
12#include "mc/input/NewInteractionModel.h"
13#include "mc/legacy/ActorUniqueID.h"
14#include "mc/network/packet/PlayerInputTick.h"
15
16// auto generated forward declare list
17// clang-format off
21// clang-format on
22
23struct PlayerAuthInputPacketPayload {
24public:
25 // PlayerAuthInputPacketPayload inner types define
26 enum class InputData : int {
27 Ascend = 0,
28 Descend = 1,
29 NorthJumpDeprecated = 2,
30 JumpDown = 3,
31 SprintDown = 4,
32 ChangeHeight = 5,
33 Jumping = 6,
34 AutoJumpingInWater = 7,
35 Sneaking = 8,
36 SneakDown = 9,
37 Up = 10,
38 Down = 11,
39 Left = 12,
40 Right = 13,
41 UpLeft = 14,
42 UpRight = 15,
43 WantUp = 16,
44 WantDown = 17,
45 WantDownSlow = 18,
46 WantUpSlow = 19,
47 Sprinting = 20,
48 AscendBlock = 21,
49 DescendBlock = 22,
50 SneakToggleDown = 23,
51 PersistSneak = 24,
52 StartSprinting = 25,
53 StopSprinting = 26,
54 StartSneaking = 27,
55 StopSneaking = 28,
56 StartSwimming = 29,
57 StopSwimming = 30,
58 StartJumping = 31,
59 StartGliding = 32,
60 StopGliding = 33,
61 PerformItemInteraction = 34,
62 PerformBlockActions = 35,
63 PerformItemStackRequest = 36,
64 HandledTeleport = 37,
65 Emoting = 38,
66 MissedSwing = 39,
67 StartCrawling = 40,
68 StopCrawling = 41,
69 StartFlying = 42,
70 StopFlying = 43,
71 ClientAckServerData = 44,
72 IsInClientPredictedVehicle = 45,
73 PaddlingLeft = 46,
74 PaddlingRight = 47,
75 BlockBreakingDelayEnabled = 48,
76 HorizontalCollision = 49,
77 VerticalCollision = 50,
78 DownLeft = 51,
79 DownRight = 52,
80 StartUsingItem = 53,
81 IsCameraRelativeMovementEnabledDeprecated = 54,
82 IsRotControlledByMoveDirectionDeprecated = 55,
83 StartSpinAttack = 56,
84 StopSpinAttack = 57,
85 IsHotbarOnlyTouch = 58,
86 JumpReleasedRaw = 59,
87 JumpPressedRaw = 60,
88 JumpCurrentRaw = 61,
89 SneakReleasedRaw = 62,
90 SneakPressedRaw = 63,
91 SneakCurrentRaw = 64,
92 InternalUpdate = 65,
93 InputNum = 66,
94 };
95
97
98public:
99 // member variables
100 // NOLINTBEGIN
101 ::ll::TypedStorage<4, 8, ::Vec2> mRot;
102 ::ll::TypedStorage<4, 12, ::Vec3> mPos;
103 ::ll::TypedStorage<4, 4, float> mYHeadRot;
104 ::ll::TypedStorage<4, 12, ::Vec3> mPosDelta;
105 ::ll::TypedStorage<4, 8, ::Vec2> mVehicleRot;
106 ::ll::TypedStorage<4, 8, ::Vec2> mAnalogMoveVector;
107 ::ll::TypedStorage<4, 8, ::Vec2> mMove;
108 ::ll::TypedStorage<4, 8, ::Vec2> mInteractRotation;
109 ::ll::TypedStorage<4, 12, ::Vec3> mCameraOrientation;
110 ::ll::TypedStorage<4, 8, ::Vec2> mRawMoveVector;
111 ::ll::TypedStorage<8, 16, ::Bedrock::EnumSet<::PlayerAuthInputPacketPayload::InputData, 66>> mInputData;
112 ::ll::TypedStorage<4, 4, ::InputMode> mInputMode;
113 ::ll::TypedStorage<4, 4, ::ClientPlayMode> mPlayMode;
114 ::ll::TypedStorage<4, 4, ::NewInteractionModel> mNewInteractionModel;
115 ::ll::TypedStorage<8, 8, ::PlayerInputTick> mClientTick;
116 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::PackedItemUseLegacyInventoryTransaction>> mItemUseTransaction;
117 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ItemStackRequestData>> mItemStackRequest;
118 ::ll::TypedStorage<8, 24, ::PlayerBlockActions> mPlayerBlockActions;
119 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mClientPredictedVehicle;
120 // NOLINTEND
121
122public:
123 // prevent constructor by default
124 PlayerAuthInputPacketPayload& operator=(PlayerAuthInputPacketPayload const&);
125 PlayerAuthInputPacketPayload(PlayerAuthInputPacketPayload const&);
126 PlayerAuthInputPacketPayload();
127
128public:
129 // member functions
130 // NOLINTBEGIN
131 MCNAPI ::PlayerAuthInputPacketPayload& operator=(::PlayerAuthInputPacketPayload&& rhs);
132
133 MCNAPI ::PlayerActionComponent readIntoComponent() const;
134
135#ifdef LL_PLAT_C
136 MCNAPI void setFromComponent(::PlayerActionComponent& input);
137#endif
138
139 MCAPI ~PlayerAuthInputPacketPayload();
140 // NOLINTEND
141
142public:
143 // destructor thunk
144 // NOLINTBEGIN
145 MCAPI void $dtor();
146 // NOLINTEND
147};
Definition EnumSet.h:9
Definition ItemStackRequestData.h:15
Definition PackedItemUseLegacyInventoryTransaction.h:15
Definition PlayerActionComponent.h:16
MCAPI::PlayerActionComponent readIntoComponent() const
MCAPI::PlayerAuthInputPacketPayload & operator=(::PlayerAuthInputPacketPayload &&rhs)