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/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
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 IsCameraRelativeMovementEnabled = 54,
86 IsRotControlledByMoveDirection = 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
128
129public:
130 // virtual functions
131 // NOLINTBEGIN
132 // vIndex: 0
133 virtual ~PlayerAuthInputPacket() /*override*/;
134
135 // vIndex: 1
136 virtual ::MinecraftPacketIds getId() const /*override*/;
137
138 // vIndex: 2
139 virtual ::std::string getName() const /*override*/;
140
141 // vIndex: 4
142 virtual void write(::BinaryStream& stream) const /*override*/;
143
144 // vIndex: 7
145 virtual bool isValid() const /*override*/;
146
147 // vIndex: 8
148 virtual ::Bedrock::Result<void> _read(::ReadOnlyBinaryStream& stream) /*override*/;
149 // NOLINTEND
150
151public:
152 // member functions
153 // NOLINTBEGIN
155
156 MCAPI ::PlayerAuthInputPacket& operator=(::PlayerAuthInputPacket&&);
157
158 MCAPI ::PlayerActionComponent readIntoComponent() const;
159 // NOLINTEND
160
161public:
162 // constructor thunks
163 // NOLINTBEGIN
164 MCAPI void* $ctor(::PlayerAuthInputPacket&&);
165 // NOLINTEND
166
167public:
168 // destructor thunk
169 // NOLINTBEGIN
170 MCAPI void $dtor();
171 // NOLINTEND
172
173public:
174 // virtual function thunks
175 // NOLINTBEGIN
176 MCAPI ::MinecraftPacketIds $getId() const;
177
178 MCAPI ::std::string $getName() const;
179
180 MCAPI void $write(::BinaryStream& stream) const;
181
182 MCAPI bool $isValid() const;
183
184 MCAPI ::Bedrock::Result<void> $_read(::ReadOnlyBinaryStream& stream);
185 // NOLINTEND
186
187public:
188 // vftables
189 // NOLINTBEGIN
190 MCNAPI static void** $vftable();
191 // NOLINTEND
192};
Definition BinaryStream.h:10
Definition ItemStackRequestData.h:18
Definition Packet.h:26
Definition PlayerAuthInputPacket.h:27
static MCAPI void ** $vftable()
Definition ReadOnlyBinaryStream.h:8
Definition PackedItemUseLegacyInventoryTransaction.h:15
Definition PlayerActionComponent.h:15