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