LeviLamina
Loading...
Searching...
No Matches
GameRuleCommand.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 CommandOrigin;
11class CommandOutput;
12class CommandRegistry;
13class GameRule;
14namespace Json { class Value; }
15// clang-format on
16
17class GameRuleCommand : public ::Command {
18public:
19 // GameRuleCommand inner types declare
20 // clang-format off
21 struct InitProxy;
22 // clang-format on
23
24 // GameRuleCommand inner types define
25 struct InitProxy {
26 public:
27 // member variables
28 // NOLINTBEGIN
30 // NOLINTEND
31
32 public:
33 // prevent constructor by default
34 InitProxy& operator=(InitProxy const&);
35 InitProxy(InitProxy const&);
36 InitProxy();
37 };
38
39public:
40 // member variables
41 // NOLINTBEGIN
49 // NOLINTEND
50
51public:
52 // prevent constructor by default
53 GameRuleCommand& operator=(GameRuleCommand const&);
56
57public:
58 // virtual functions
59 // NOLINTBEGIN
60 // vIndex: 2
61 virtual void execute(::CommandOrigin const& origin, ::CommandOutput& output) const /*override*/;
62
63 // vIndex: 0
64 virtual ~GameRuleCommand() /*override*/ = default;
65 // NOLINTEND
66
67public:
68 // member functions
69 // NOLINTBEGIN
70 MCAPI void getGameRule(::CommandOrigin const& origin, ::CommandOutput& output) const;
71
72 MCAPI void setGameRule(::CommandOrigin const& origin, ::CommandOutput& output) const;
73 // NOLINTEND
74
75public:
76 // static functions
77 // NOLINTBEGIN
78 MCAPI static void
79 createJsonIndex(::std::string const& ruleName, ::GameRule const& rule, ::Json::Value& json, ::std::string* value);
80
81 MCAPI static void setup(::CommandRegistry& registry, ::GameRuleCommand::InitProxy&& dependencies);
82 // NOLINTEND
83
84public:
85 // destructor thunk
86 // NOLINTBEGIN
87
88 // NOLINTEND
89
90public:
91 // virtual function thunks
92 // NOLINTBEGIN
93 MCAPI void $execute(::CommandOrigin const& origin, ::CommandOutput& output) const;
94 // NOLINTEND
95
96public:
97 // vftables
98 // NOLINTBEGIN
99 MCAPI static void** $vftable();
100 // NOLINTEND
101};
Definition CommandOrigin.h:32
Definition CommandOutput.h:19
Definition CommandRegistry.h:44
Definition Command.h:17
Definition GameRuleCommand.h:17
Definition GameRule.h:10
Definition Value.h:16
Definition GameRuleCommand.h:25
Definition Alias.h:14