LeviLamina
Loading...
Searching...
No Matches
RequestPermissionsPacketPayload.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/legacy/ActorUniqueID.h"
7#include "mc/server/commands/PlayerPermissionLevel.h"
8
9// auto generated forward declare list
10// clang-format off
11class Abilities;
12// clang-format on
13
15public:
16 // RequestPermissionsPacketPayload inner types define
17 enum class CustomPermissions : ushort {
18 // bitfield representation
19 Build = 1 << 0,
20 Mine = 1 << 1,
21 DoorsAndSwitches = 1 << 2,
22 OpenContainers = 1 << 3,
23 AttackPlayers = 1 << 4,
24 AttackMobs = 1 << 5,
25 OperatorCommands = 1 << 6,
26 Teleport = 1 << 7,
27 };
28
29public:
30 // member variables
31 // NOLINTBEGIN
32 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mTargetPlayerId;
33 ::ll::TypedStorage<1, 1, ::PlayerPermissionLevel> mPlayerPermissions;
34 ::ll::TypedStorage<2, 2, ushort> mCustomPermissionFlags;
35 // NOLINTEND
36
37public:
38 // member functions
39 // NOLINTBEGIN
40#ifdef LL_PLAT_C
41 MCAPI void _setFromAbilities(::Abilities const& abilities);
42#endif
43 // NOLINTEND
44};
Definition Abilities.h:15
Definition RequestPermissionsPacketPayload.h:14