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&);
54 GameRuleCommand(GameRuleCommand const&);
55 GameRuleCommand();
56
57public:
58 // virtual functions
59 // NOLINTBEGIN
60 virtual void execute(::CommandOrigin const& origin, ::CommandOutput& output) const /*override*/;
61
62 virtual ~GameRuleCommand() /*override*/ = default;
63 // NOLINTEND
64
65public:
66 // member functions
67 // NOLINTBEGIN
68 MCAPI void getGameRule(::CommandOrigin const& origin, ::CommandOutput& output) const;
69
70 MCAPI void setGameRule(::CommandOrigin const& origin, ::CommandOutput& output) const;
71 // NOLINTEND
72
73public:
74 // static functions
75 // NOLINTBEGIN
76 MCAPI static void
77 createJsonIndex(::std::string const& ruleName, ::GameRule const& rule, ::Json::Value& json, ::std::string* value);
78
79 MCAPI static void setup(::CommandRegistry& registry, ::GameRuleCommand::InitProxy&& dependencies);
80 // NOLINTEND
81
82public:
83 // virtual function thunks
84 // NOLINTBEGIN
85 MCAPI void $execute(::CommandOrigin const& origin, ::CommandOutput& output) const;
86
87
88 // NOLINTEND
89
90public:
91 // vftables
92 // NOLINTBEGIN
93 MCNAPI static void** $vftable();
94 // NOLINTEND
95};
Definition CommandOrigin.h:32
Definition CommandOutput.h:19
Definition CommandRegistry.h:47
Definition Command.h:17
static MCAPI void ** $vftable()
Definition GameRule.h:13
Definition Value.h:16
Definition GameRuleCommand.h:25
Definition Alias.h:14