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
16class AllowListCommand : public ::Command {
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 // NOLINTEND
40
41public:
42 // static functions
43 // NOLINTBEGIN
44 MCAPI static void setup(::CommandRegistry& registry, ::AllowListFile& allowListFile);
45 // NOLINTEND
46
47public:
48 // static variables
49 // NOLINTBEGIN
50 MCAPI static ::AllowListFile*& mAllowListFile();
51 // NOLINTEND
52
53public:
54 // virtual function thunks
55 // NOLINTBEGIN
56 MCAPI void $execute(::CommandOrigin const& origin, ::CommandOutput& output) const;
57 // NOLINTEND
58
59public:
60 // vftables
61 // NOLINTBEGIN
62 MCNAPI static void** $vftable();
63 // NOLINTEND
64};
65
66// clang-format off
67template <>
68MCAPI ::ll::type_id_ref Bedrock::typeid_storage_impl<class CommandRegistry, ::AllowListCommand::Action>();
69// clang-format on
Definition AllowListCommand.h:16
static MCAPI void ** $vftable()
Definition AllowListFile.h:14
Definition CommandOrigin.h:32
Definition CommandOutput.h:20
Definition CommandRegistry.h:51