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;
14class GameRules;
15namespace Json { class Value; }
16// clang-format on
17
18class GameRuleCommand : public ::Command {
19public:
20 // GameRuleCommand inner types declare
21 // clang-format off
22 struct InitProxy;
23 // clang-format on
24
25 // GameRuleCommand inner types define
26 struct InitProxy {
27 public:
28 // member variables
29 // NOLINTBEGIN
30 ::ll::TypedStorage<8, 8, ::GameRules&> mGameRules;
31 // NOLINTEND
32
33 public:
34 // prevent constructor by default
35 InitProxy& operator=(InitProxy const&);
36 InitProxy(InitProxy const&);
37 InitProxy();
38 };
39
40public:
41 // member variables
42 // NOLINTBEGIN
43 ::ll::TypedStorage<8, 32, ::std::string> mGameRule;
44 ::ll::TypedStorage<4, 4, float> mFloatValue;
45 ::ll::TypedStorage<4, 4, int> mIntValue;
46 ::ll::TypedStorage<1, 1, bool> mBoolValue;
47 ::ll::TypedStorage<1, 1, bool> mBoolValueSet;
48 ::ll::TypedStorage<1, 1, bool> mIntValueSet;
49 ::ll::TypedStorage<1, 1, bool> mFloatValueSet;
50 // NOLINTEND
51
52public:
53 // virtual functions
54 // NOLINTBEGIN
55 virtual void execute(::CommandOrigin const& origin, ::CommandOutput& output) const /*override*/;
56
57 virtual ~GameRuleCommand() /*override*/ = default;
58 // NOLINTEND
59
60public:
61 // member functions
62 // NOLINTBEGIN
63 MCAPI void getGameRule(::CommandOrigin const& origin, ::CommandOutput& output) const;
64
65 MCAPI void setGameRule(::CommandOrigin const& origin, ::CommandOutput& output) const;
66 // NOLINTEND
67
68public:
69 // static functions
70 // NOLINTBEGIN
71 MCAPI static void
72 createJsonIndex(::std::string const& ruleName, ::GameRule const& rule, ::Json::Value& json, ::std::string* value);
73
74 MCAPI static void setup(::CommandRegistry& registry, ::GameRuleCommand::InitProxy&& dependencies);
75 // NOLINTEND
76
77public:
78 // virtual function thunks
79 // NOLINTBEGIN
80 MCAPI void $execute(::CommandOrigin const& origin, ::CommandOutput& output) const;
81
82
83 // NOLINTEND
84
85public:
86 // vftables
87 // NOLINTBEGIN
88 MCNAPI static void** $vftable();
89 // NOLINTEND
90};
Definition CommandOrigin.h:32
Definition CommandOutput.h:20
Definition CommandRegistry.h:50
Definition Command.h:17
Definition GameRuleCommand.h:18
static MCAPI void ** $vftable()
Definition GameRule.h:13
Definition GameRules.h:24
Definition Value.h:16
Definition GameRuleCommand.h:26