LeviLamina
Loading...
Searching...
No Matches
PlayerAuthInputPacket.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/MinecraftPacketIds.h"
14#include "mc/network/Packet.h"
15#include "mc/network/packet/PlayerInputTick.h"
16#include "mc/platform/Result.h"
17
18// auto generated forward declare list
19// clang-format off
20class BinaryStream;
25// clang-format on
26
27class PlayerAuthInputPacket : public ::Packet {
28public:
29 // PlayerAuthInputPacket inner types define
30 enum class InputData : int {
31 Ascend = 0,
32 Descend = 1,
33 NorthJumpDeprecated = 2,
34 JumpDown = 3,
35 SprintDown = 4,
36 ChangeHeight = 5,
37 Jumping = 6,
38 AutoJumpingInWater = 7,
39 Sneaking = 8,
40 SneakDown = 9,
41 Up = 10,
42 Down = 11,
43 Left = 12,
44 Right = 13,
45 UpLeft = 14,
46 UpRight = 15,
47 WantUp = 16,
48 WantDown = 17,
49 WantDownSlow = 18,
50 WantUpSlow = 19,
51 Sprinting = 20,
52 AscendBlock = 21,
53 DescendBlock = 22,
54 SneakToggleDown = 23,
55 PersistSneak = 24,
56 StartSprinting = 25,
57 StopSprinting = 26,
58 StartSneaking = 27,
59 StopSneaking = 28,
60 StartSwimming = 29,
61 StopSwimming = 30,
62 StartJumping = 31,
63 StartGliding = 32,
64 StopGliding = 33,
65 PerformItemInteraction = 34,
66 PerformBlockActions = 35,
67 PerformItemStackRequest = 36,
68 HandledTeleport = 37,
69 Emoting = 38,
70 MissedSwing = 39,
71 StartCrawling = 40,
72 StopCrawling = 41,
73 StartFlying = 42,
74 StopFlying = 43,
75 ClientAckServerData = 44,
76 IsInClientPredictedVehicle = 45,
77 PaddlingLeft = 46,
78 PaddlingRight = 47,
79 BlockBreakingDelayEnabled = 48,
80 HorizontalCollision = 49,
81 VerticalCollision = 50,
82 DownLeft = 51,
83 DownRight = 52,
84 StartUsingItem = 53,
85 IsCameraRelativeMovementEnabledDeprecated = 54,
86 IsRotControlledByMoveDirectionDeprecated = 55,
87 StartSpinAttack = 56,
88 StopSpinAttack = 57,
89 IsHotbarOnlyTouch = 58,
90 JumpReleasedRaw = 59,
91 JumpPressedRaw = 60,
92 JumpCurrentRaw = 61,
93 SneakReleasedRaw = 62,
94 SneakPressedRaw = 63,
95 SneakCurrentRaw = 64,
96 InputNum = 65,
97 };
98
99public:
100 // member variables
101 // NOLINTBEGIN
102 ::ll::TypedStorage<4, 8, ::Vec2> mRot;
103 ::ll::TypedStorage<4, 12, ::Vec3> mPos;
104 ::ll::TypedStorage<4, 4, float> mYHeadRot;
105 ::ll::TypedStorage<4, 12, ::Vec3> mPosDelta;
106 ::ll::TypedStorage<4, 8, ::Vec2> mVehicleRot;
107 ::ll::TypedStorage<4, 8, ::Vec2> mAnalogMoveVector;
108 ::ll::TypedStorage<4, 8, ::Vec2> mMove;
109 ::ll::TypedStorage<4, 8, ::Vec2> mInteractRotation;
110 ::ll::TypedStorage<4, 12, ::Vec3> mCameraOrientation;
111 ::ll::TypedStorage<4, 8, ::Vec2> mRawMoveVector;
112 ::ll::TypedStorage<8, 16, ::std::bitset<65>> mInputData;
113 ::ll::TypedStorage<4, 4, ::InputMode> mInputMode;
114 ::ll::TypedStorage<4, 4, ::ClientPlayMode> mPlayMode;
115 ::ll::TypedStorage<4, 4, ::NewInteractionModel> mNewInteractionModel;
116 ::ll::TypedStorage<8, 8, ::PlayerInputTick> mClientTick;
117 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::PackedItemUseLegacyInventoryTransaction>> mItemUseTransaction;
118 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ItemStackRequestData>> mItemStackRequest;
119 ::ll::TypedStorage<8, 24, ::PlayerBlockActions> mPlayerBlockActions;
120 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mClientPredictedVehicle;
121 // NOLINTEND
122
123public:
124 // prevent constructor by default
125 PlayerAuthInputPacket& operator=(PlayerAuthInputPacket const&);
126 PlayerAuthInputPacket(PlayerAuthInputPacket const&);
127 PlayerAuthInputPacket();
128
129public:
130 // virtual functions
131 // NOLINTBEGIN
132 virtual ~PlayerAuthInputPacket() /*override*/;
133
134 virtual ::MinecraftPacketIds getId() const /*override*/;
135
136 virtual ::std::string getName() const /*override*/;
137
138 virtual void write(::BinaryStream& stream) const /*override*/;
139
140 virtual bool isValid() const /*override*/;
141
142 virtual ::Bedrock::Result<void> _read(::ReadOnlyBinaryStream& stream) /*override*/;
143 // NOLINTEND
144
145public:
146 // member functions
147 // NOLINTBEGIN
148 MCAPI PlayerAuthInputPacket(::PlayerAuthInputPacket&&);
149
150 MCAPI ::PlayerAuthInputPacket& operator=(::PlayerAuthInputPacket&&);
151
152 MCAPI ::PlayerActionComponent readIntoComponent() const;
153
154 MCAPI_C void setFromComponent(::PlayerActionComponent& input);
155 // NOLINTEND
156
157public:
158 // constructor thunks
159 // NOLINTBEGIN
160 MCAPI void* $ctor(::PlayerAuthInputPacket&&);
161 // NOLINTEND
162
163public:
164 // destructor thunk
165 // NOLINTBEGIN
166 MCAPI void $dtor();
167 // NOLINTEND
168
169public:
170 // virtual function thunks
171 // NOLINTBEGIN
172 MCAPI ::MinecraftPacketIds $getId() const;
173
174 MCAPI ::std::string $getName() const;
175
176 MCAPI void $write(::BinaryStream& stream) const;
177
178 MCAPI bool $isValid() const;
179
180 MCAPI ::Bedrock::Result<void> $_read(::ReadOnlyBinaryStream& stream);
181
182
183 // NOLINTEND
184
185public:
186 // vftables
187 // NOLINTBEGIN
188 MCNAPI static void** $vftable();
189 // NOLINTEND
190};
Definition BinaryStream.h:11
Definition ItemStackRequestData.h:18
static MCAPI void ** $vftable()
Definition ReadOnlyBinaryStream.h:8
Definition PackedItemUseLegacyInventoryTransaction.h:15
Definition PlayerActionComponent.h:15