Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
InputPermissionCommand.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/entity/enums/ClientInputLockCategory.h"
7#include "mc/server/commands/Command.h"
8#include "mc/server/commands/CommandSelector.h"
9
10// auto generated forward declare list
11// clang-format off
12class CommandOrigin;
13class CommandOutput;
14class CommandRegistry;
15class Player;
16// clang-format on
17
19public:
20 // InputPermissionCommand inner types define
21 enum class CommandActionType : int {
22 Set = 0,
23 Query = 1,
24 };
25
26 enum class CommandValueType : int {
27 Undefined = 0,
28 Enabled = 1,
29 Disabled = 2,
30 };
31
32public:
33 // member variables
34 // NOLINTBEGIN
35 ::ll::TypedStorage<4, 4, ::InputPermissionCommand::CommandActionType> mActionType;
36 ::ll::TypedStorage<8, 200, ::CommandSelector<::Player>> mTargets;
37 ::ll::TypedStorage<1, 1, ::ClientInputLockCategory> mPermission;
38 ::ll::TypedStorage<4, 4, ::InputPermissionCommand::CommandValueType> mValueType;
39 // NOLINTEND
40
41public:
42 // virtual functions
43 // NOLINTBEGIN
44 virtual void execute(::CommandOrigin const& origin, ::CommandOutput& output) const /*override*/;
45 // NOLINTEND
46
47public:
48 // static functions
49 // NOLINTBEGIN
50 MCAPI static void setup(::CommandRegistry& registry);
51 // NOLINTEND
52
53public:
54 // virtual function thunks
55 // NOLINTBEGIN
56 MCNAPI void $execute(::CommandOrigin const& origin, ::CommandOutput& output) const;
57
58
59 // NOLINTEND
60};
Definition CommandOrigin.h:32
Definition CommandOutput.h:20
Definition CommandRegistry.h:51
Definition Command.h:17
Definition InputPermissionCommand.h:18
MCAPI void $execute(::CommandOrigin const &origin, ::CommandOutput &output) const
Definition Player.h:131