LeviLamina
Loading...
Searching...
No Matches
RequestPermissionsPacket.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/network/MinecraftPacketIds.h"
7#include "mc/network/packet/Packet.h"
8#include "mc/platform/Result.h"
9#include "mc/server/commands/PlayerPermissionLevel.h"
10#include "mc/world/actor/player/AbilitiesIndex.h"
11
12// auto generated forward declare list
13// clang-format off
14class BinaryStream;
16struct ActorUniqueID;
17// clang-format on
18
20public:
21 // RequestPermissionsPacket inner types define
22 enum class CustomPermissions : ushort {
23 // bitfield representation
24 Build = 1 << 0,
25 Mine = 1 << 1,
26 DoorsAndSwitches = 1 << 2,
27 OpenContainers = 1 << 3,
28 AttackPlayers = 1 << 4,
29 AttackMobs = 1 << 5,
30 OperatorCommands = 1 << 6,
31 Teleport = 1 << 7,
32 };
33
34public:
35 // member variables
36 // NOLINTBEGIN
37 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mTargetPlayerId;
38 ::ll::TypedStorage<1, 1, ::PlayerPermissionLevel> mPlayerPermissions;
39 ::ll::TypedStorage<2, 2, ushort> mCustomPermissionFlags;
40 // NOLINTEND
41
42public:
43 // virtual functions
44 // NOLINTBEGIN
45 // vIndex: 1
46 virtual ::MinecraftPacketIds getId() const /*override*/;
47
48 // vIndex: 2
49 virtual ::std::string getName() const /*override*/;
50
51 // vIndex: 4
52 virtual void write(::BinaryStream& stream) const /*override*/;
53
54 // vIndex: 8
55 virtual ::Bedrock::Result<void> _read(::ReadOnlyBinaryStream& stream) /*override*/;
56
57 // vIndex: 0
58 virtual ~RequestPermissionsPacket() /*override*/ = default;
59 // NOLINTEND
60
61public:
62 // member functions
63 // NOLINTBEGIN
64 MCAPI bool getCustomAbilityValue(::AbilitiesIndex ability) const;
65 // NOLINTEND
66
67public:
68 // destructor thunk
69 // NOLINTBEGIN
70
71 // NOLINTEND
72
73public:
74 // virtual function thunks
75 // NOLINTBEGIN
76 MCAPI ::MinecraftPacketIds $getId() const;
77
78 MCAPI ::std::string $getName() const;
79
80 MCAPI void $write(::BinaryStream& stream) const;
81
82 MCAPI ::Bedrock::Result<void> $_read(::ReadOnlyBinaryStream& stream);
83 // NOLINTEND
84
85public:
86 // vftables
87 // NOLINTBEGIN
88 MCAPI static void** $vftable();
89 // NOLINTEND
90};
Definition BinaryStream.h:10
Definition Packet.h:26
Definition ReadOnlyBinaryStream.h:8
Definition RequestPermissionsPacket.h:19
Definition ActorUniqueID.h:5