LeviLamina
Loading...
Searching...
No Matches
Command.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/server/commands/CommandFlag.h"
7#include "mc/server/commands/CommandPermissionLevel.h"
8
9// auto generated forward declare list
10// clang-format off
11class CommandOrigin;
12class CommandOutput;
13class CommandRegistry;
15// clang-format on
16
17class Command {
18public:
19 // member variables
20 // NOLINTBEGIN
21 ::ll::TypedStorage<4, 4, int> mVersion;
22 ::ll::TypedStorage<8, 8, ::CommandRegistry const*> mRegistry;
23 ::ll::TypedStorage<4, 4, int> mCommandSymbol;
24 ::ll::TypedStorage<1, 1, ::CommandPermissionLevel> mPermissionLevel;
25 ::ll::TypedStorage<2, 2, ::CommandFlag> mFlags;
26 // NOLINTEND
27
28 LLNDAPI std::string getCommandName() const;
29
30public:
31 // virtual functions
32 // NOLINTBEGIN
33 virtual ~Command();
34
35 virtual bool collectOptionalArguments();
36
37 virtual void execute(::CommandOrigin const&, ::CommandOutput&) const = 0;
38 // NOLINTEND
39
40public:
41 // member functions
42 // NOLINTBEGIN
43 MCAPI void run(::CommandOrigin const& origin, ::CommandOutput& output) const;
44
45 MCAPI void sendTelemetry(::CommandOrigin const& origin, ::CommandOutput& output) const;
46
47 MCAPI bool shouldSendTelemetry(::CommandOrigin const& origin) const;
48 // NOLINTEND
49
50public:
51 // static functions
52 // NOLINTBEGIN
53 MCAPI static bool isTemplateLockedAction(::CommandOrigin const& origin);
54
55 MCAPI static bool isWildcard(::CommandSelectorBase const& selector);
56
57 MCAPI static bool shouldUseCommandOriginRotation(::CommandOrigin const& origin, int version);
58
59 MCAPI static bool validRange(int input, int low, int high, ::CommandOutput& output);
60
61 MCAPI static bool validRange(float input, float low, float high, ::CommandOutput& output);
62 // NOLINTEND
63
64public:
65 // static variables
66 // NOLINTBEGIN
67 MCAPI static ::std::string const& WILDCARD_TOKEN();
68 // NOLINTEND
69
70public:
71 // destructor thunk
72 // NOLINTBEGIN
73 MCFOLD void $dtor();
74 // NOLINTEND
75
76public:
77 // virtual function thunks
78 // NOLINTBEGIN
79 MCFOLD bool $collectOptionalArguments();
80
81
82 // NOLINTEND
83
84public:
85 // vftables
86 // NOLINTBEGIN
87 MCNAPI static void** $vftable();
88 // NOLINTEND
89};
Definition CommandOrigin.h:32
Definition CommandOutput.h:19
Definition CommandRegistry.h:47
Definition CommandSelectorBase.h:28
Definition Command.h:17
static MCAPI void ** $vftable()