LeviLamina
Loading...
Searching...
No Matches
PermissionCommand.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/server/commands/CommandSelector.h"
7#include "mc/server/commands/ServerCommand.h"
8
9// auto generated forward declare list
10// clang-format off
11class CommandOrigin;
12class CommandOutput;
13class CommandRegistry;
14class PermissionsFile;
15class Player;
16// clang-format on
17
19public:
20 // PermissionCommand inner types define
21 enum class Action : int {
22 List = 0,
23 Reload = 1,
24 Set = 2,
25 };
26
27 enum class AvailableCommandPermissionPresets : int {
28 Visitor = 0,
29 Member = 1,
30 Operator = 2,
31 Undefined = 3,
32 };
33
34public:
35 // member variables
36 // NOLINTBEGIN
37 ::ll::TypedStorage<4, 4, ::PermissionCommand::Action> mAction;
38 ::ll::TypedStorage<4, 4, ::PermissionCommand::AvailableCommandPermissionPresets> mPermissionLevel;
39 ::ll::TypedStorage<8, 200, ::CommandSelector<::Player>> mTargetPlayers;
40 // NOLINTEND
41
42public:
43 // virtual functions
44 // NOLINTBEGIN
45 virtual void execute(::CommandOrigin const& origin, ::CommandOutput& output) const /*override*/;
46 // NOLINTEND
47
48public:
49 // member functions
50 // NOLINTBEGIN
51 MCAPI void list(::CommandOrigin const& output, ::CommandOutput&) const;
52
53 MCAPI void reload(::CommandOrigin const& origin, ::CommandOutput& output) const;
54
55 MCAPI void set(::CommandOrigin const& origin, ::CommandOutput& output) const;
56 // NOLINTEND
57
58public:
59 // static functions
60 // NOLINTBEGIN
61 MCAPI static void setup(::CommandRegistry& registry, ::PermissionsFile* permissionsFile);
62 // NOLINTEND
63
64public:
65 // static variables
66 // NOLINTBEGIN
67 MCAPI static ::PermissionsFile*& mPermissionsFile();
68 // NOLINTEND
69
70public:
71 // virtual function thunks
72 // NOLINTBEGIN
73 MCAPI void $execute(::CommandOrigin const& origin, ::CommandOutput& output) const;
74
75
76 // NOLINTEND
77
78public:
79 // vftables
80 // NOLINTBEGIN
81 MCNAPI static void** $vftable();
82 // NOLINTEND
83};
84
85// clang-format off
86template <>
87MCAPI ::ll::type_id_ref Bedrock::typeid_storage_impl<class CommandRegistry, ::PermissionCommand::Action>();
88template <>
89MCAPI ::ll::type_id_ref Bedrock::typeid_storage_impl<class CommandRegistry, ::PermissionCommand::AvailableCommandPermissionPresets>();
90// clang-format on
Definition CommandOrigin.h:32
Definition CommandOutput.h:20
Definition CommandRegistry.h:51
Definition PermissionCommand.h:18
static MCAPI void ** $vftable()
Definition PermissionsFile.h:20
Definition Player.h:137
Definition ServerCommand.h:22