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#include "mc/world/actor/player/AbilitiesIndex.h"
9
11public:
12 // RequestPermissionsPacketPayload inner types define
13 enum class CustomPermissions : ushort {
14 // bitfield representation
15 Build = 1 << 0,
16 Mine = 1 << 1,
17 DoorsAndSwitches = 1 << 2,
18 OpenContainers = 1 << 3,
19 AttackPlayers = 1 << 4,
20 AttackMobs = 1 << 5,
21 OperatorCommands = 1 << 6,
22 Teleport = 1 << 7,
23 };
24
25public:
26 // member variables
27 // NOLINTBEGIN
28 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mTargetPlayerId;
29 ::ll::TypedStorage<1, 1, ::PlayerPermissionLevel> mPlayerPermissions;
30 ::ll::TypedStorage<2, 2, ushort> mCustomPermissionFlags;
31 // NOLINTEND
32
33public:
34 // member functions
35 // NOLINTBEGIN
36 MCAPI bool getCustomAbilityValue(::AbilitiesIndex ability) const;
37 // NOLINTEND
38};
Definition RequestPermissionsPacketPayload.h:10