Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
TagCommand.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/server/commands/Command.h"
7#include "mc/server/commands/WildcardCommandSelector.h"
8
9// auto generated forward declare list
10// clang-format off
11class Actor;
12class CommandOrigin;
13class CommandOutput;
14class CommandRegistry;
15// clang-format on
16
17class TagCommand : public ::Command {
18public:
19 // TagCommand inner types define
20 enum class Action : uchar {
21 Add = 0,
22 Remove = 1,
23 List = 2,
24 };
25
26 using ActorRefList = ::std::vector<::std::reference_wrapper<::Actor>>;
27
28public:
29 // member variables
30 // NOLINTBEGIN
31 ::ll::TypedStorage<1, 1, ::TagCommand::Action> mAction;
32 ::ll::TypedStorage<8, 200, ::WildcardCommandSelector<::Actor>> mSelector;
33 ::ll::TypedStorage<8, 32, ::std::string> mTagString;
34 // NOLINTEND
35
36public:
37 // virtual functions
38 // NOLINTBEGIN
39 virtual void execute(::CommandOrigin const& origin, ::CommandOutput& output) const /*override*/;
40 // NOLINTEND
41
42public:
43 // member functions
44 // NOLINTBEGIN
45 MCNAPI ::std::string _getTagWithPercentageFixed() const;
46 // NOLINTEND
47
48public:
49 // static functions
50 // NOLINTBEGIN
51 MCAPI static void setup(::CommandRegistry& registry);
52 // NOLINTEND
53
54public:
55 // virtual function thunks
56 // NOLINTBEGIN
57 MCNAPI void $execute(::CommandOrigin const& origin, ::CommandOutput& output) const;
58
59
60 // NOLINTEND
61};
Definition Actor.h:116
Definition CommandOrigin.h:32
Definition CommandOutput.h:20
Definition CommandRegistry.h:51
Definition Command.h:17
Definition TagCommand.h:17
MCAPI::std::string _getTagWithPercentageFixed() const
MCAPI void $execute(::CommandOrigin const &origin, ::CommandOutput &output) const