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