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/input/InputMode.h"
7#include "mc/input/ClientPlayMode.h"
8#include "mc/input/NewInteractionModel.h"
9#include "mc/network/MinecraftPacketIds.h"
10#include "mc/network/packet/Packet.h"
11#include "mc/platform/Result.h"
12
13// auto generated forward declare list
14// clang-format off
15class BinaryStream;
19class Vec2;
20class Vec3;
21struct ActorUniqueID;
24struct PlayerInputTick;
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
127
128public:
129 // virtual functions
130 // NOLINTBEGIN
131 // vIndex: 0
132 virtual ~PlayerAuthInputPacket() /*override*/;
133
134 // vIndex: 1
135 virtual ::MinecraftPacketIds getId() const /*override*/;
136
137 // vIndex: 2
138 virtual ::std::string getName() const /*override*/;
139
140 // vIndex: 4
141 virtual void write(::BinaryStream& stream) const /*override*/;
142
143 // vIndex: 7
144 virtual bool isValid() const /*override*/;
145
146 // vIndex: 8
147 virtual ::Bedrock::Result<void> _read(::ReadOnlyBinaryStream& stream) /*override*/;
148 // NOLINTEND
149
150public:
151 // member functions
152 // NOLINTBEGIN
154
155 MCAPI ::PlayerAuthInputPacket& operator=(::PlayerAuthInputPacket&&);
156
157 MCAPI ::PlayerActionComponent readIntoComponent() const;
158 // NOLINTEND
159
160public:
161 // constructor thunks
162 // NOLINTBEGIN
163 MCAPI void* $ctor(::PlayerAuthInputPacket&&);
164 // NOLINTEND
165
166public:
167 // destructor thunk
168 // NOLINTBEGIN
169 MCAPI void $dtor();
170 // NOLINTEND
171
172public:
173 // virtual function thunks
174 // NOLINTBEGIN
175 MCAPI ::MinecraftPacketIds $getId() const;
176
177 MCAPI ::std::string $getName() const;
178
179 MCAPI void $write(::BinaryStream& stream) const;
180
181 MCAPI bool $isValid() const;
182
183 MCAPI ::Bedrock::Result<void> $_read(::ReadOnlyBinaryStream& stream);
184 // NOLINTEND
185
186public:
187 // vftables
188 // NOLINTBEGIN
189 MCAPI static void** $vftable();
190 // NOLINTEND
191};
Definition BinaryStream.h:10
Definition ItemStackRequestData.h:18
Definition Packet.h:26
Definition PlayerAuthInputPacket.h:27
Definition PlayerBlockActions.h:14
Definition ReadOnlyBinaryStream.h:8
Definition Vec2.h:5
Definition Vec3.h:10
Definition ActorUniqueID.h:5
Definition PackedItemUseLegacyInventoryTransaction.h:5
Definition PlayerActionComponent.h:13
Definition PlayerInputTick.h:5