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<8, 32, ::std::string> mEnumStringValue;
45 ::ll::TypedStorage<4, 4, float> mFloatValue;
46 ::ll::TypedStorage<4, 4, int> mIntValue;
47 ::ll::TypedStorage<1, 1, bool> mBoolValue;
48 ::ll::TypedStorage<1, 1, bool> mBoolValueSet;
49 ::ll::TypedStorage<1, 1, bool> mIntValueSet;
50 ::ll::TypedStorage<1, 1, bool> mFloatValueSet;
51 ::ll::TypedStorage<1, 1, bool> mEnumStringValueSet;
52 // NOLINTEND
53
54public:
55 // virtual functions
56 // NOLINTBEGIN
57 virtual void execute(::CommandOrigin const& origin, ::CommandOutput& output) const /*override*/;
58 // NOLINTEND
59
60public:
61 // static functions
62 // NOLINTBEGIN
63 MCAPI static void
64 createJsonIndex(::std::string const& ruleName, ::GameRule const& rule, ::Json::Value& json, ::std::string* value);
65
66 MCAPI static void setup(::CommandRegistry& registry, ::GameRuleCommand::InitProxy&& dependencies);
67 // NOLINTEND
68
69public:
70 // virtual function thunks
71 // NOLINTBEGIN
72 MCAPI void $execute(::CommandOrigin const& origin, ::CommandOutput& output) const;
73
74
75 // NOLINTEND
76};
Definition CommandOrigin.h:32
Definition CommandOutput.h:20
Definition CommandRegistry.h:51
Definition Command.h:17
Definition GameRuleCommand.h:18
Definition GameRule.h:14
Definition GameRules.h:21
Definition Value.h:16
Definition GameRuleCommand.h:26