LeviLamina
Loading...
Searching...
No Matches
AllowListCommand.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/server/commands/Command.h"
7
8// auto generated forward declare list
9// clang-format off
10class AllowListFile;
11class CommandOrigin;
12class CommandOutput;
13class CommandRegistry;
14// clang-format on
15
17public:
18 // AllowListCommand inner types define
19 enum class Action : int {
20 List = 0,
21 On = 1,
22 Off = 2,
23 AddName = 3,
24 RemoveName = 4,
25 Reload = 5,
26 };
27
28public:
29 // member variables
30 // NOLINTBEGIN
31 ::ll::TypedStorage<4, 4, ::AllowListCommand::Action> mAction;
32 ::ll::TypedStorage<8, 32, ::std::string> mName;
33 // NOLINTEND
34
35public:
36 // virtual functions
37 // NOLINTBEGIN
38 virtual void execute(::CommandOrigin const& origin, ::CommandOutput& output) const /*override*/;
39
40 virtual ~AllowListCommand() /*override*/ = default;
41 // NOLINTEND
42
43public:
44 // static functions
45 // NOLINTBEGIN
46 MCAPI static void setup(::CommandRegistry& registry, ::AllowListFile& allowListFile);
47 // NOLINTEND
48
49public:
50 // static variables
51 // NOLINTBEGIN
52 MCAPI static ::AllowListFile*& mAllowListFile();
53 // NOLINTEND
54
55public:
56 // virtual function thunks
57 // NOLINTBEGIN
58 MCAPI void $execute(::CommandOrigin const& origin, ::CommandOutput& output) const;
59 // NOLINTEND
60
61public:
62 // vftables
63 // NOLINTBEGIN
64 MCNAPI static void** $vftable();
65 // NOLINTEND
66};
Definition AllowListCommand.h:16
static MCAPI void ** $vftable()
Definition AllowListFile.h:13
Definition CommandOrigin.h:32
Definition CommandOutput.h:20
Definition CommandRegistry.h:50
Definition Command.h:17