LeviLamina
Loading...
Searching...
No Matches
TimeCommand.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/utility/NonOwnerPointer.h"
7#include "mc/server/commands/Command.h"
8
9// auto generated forward declare list
10// clang-format off
11class CommandOrigin;
12class CommandOutput;
13class CommandRegistry;
14class Level;
16// clang-format on
17
18class TimeCommand : public ::Command {
19public:
20 // TimeCommand inner types declare
21 // clang-format off
22 struct InitProxy;
23 // clang-format on
24
25 // TimeCommand inner types define
26 enum class Mode : int {
27 Set = 0,
28 Add = 1,
29 Query = 2,
30 };
31
32 enum class Query : int {
33 DayTime = 0,
34 GameTime = 1,
35 Day = 2,
36 };
37
38 enum class TimeSpec : int {
39 Sunrise = 0,
40 Day = 1,
41 Noon = 2,
42 Sunset = 3,
43 Night = 4,
44 Midnight = 5,
45 Unspecified = 6,
46 };
47
48 struct InitProxy {
49 public:
50 // member variables
51 // NOLINTBEGIN
52 ::ll::TypedStorage<8, 24, ::Bedrock::NotNullNonOwnerPtr<::WorldClockRegistry const>> mWorldClockRegistry;
53 // NOLINTEND
54
55 public:
56 // prevent constructor by default
57 InitProxy();
58
59 public:
60 // member functions
61 // NOLINTBEGIN
62 MCAPI explicit InitProxy(::Level const& level);
63
64 MCAPI ~InitProxy();
65 // NOLINTEND
66
67 public:
68 // constructor thunks
69 // NOLINTBEGIN
70 MCAPI void* $ctor(::Level const& level);
71 // NOLINTEND
72
73 public:
74 // destructor thunk
75 // NOLINTBEGIN
76 MCFOLD void $dtor();
77 // NOLINTEND
78 };
79
80public:
81 // member variables
82 // NOLINTBEGIN
83 ::ll::TypedStorage<4, 4, ::TimeCommand::Mode> mMode;
84 ::ll::TypedStorage<4, 4, ::TimeCommand::Query> mQuery;
85 ::ll::TypedStorage<4, 4, ::TimeCommand::TimeSpec> mSpec;
86 ::ll::TypedStorage<4, 4, int> mValue;
87 // NOLINTEND
88
89public:
90 // virtual functions
91 // NOLINTBEGIN
92 virtual void execute(::CommandOrigin const& origin, ::CommandOutput& output) const /*override*/;
93 // NOLINTEND
94
95public:
96 // member functions
97 // NOLINTBEGIN
98 MCAPI void _addTime(::Level& level, ::CommandOutput& output) const;
99
100 MCAPI void _queryTime(::Level const& level, ::CommandOutput& output) const;
101
102 MCAPI void _setTime(::Level& level, ::CommandOutput& output) const;
103 // NOLINTEND
104
105public:
106 // static functions
107 // NOLINTBEGIN
108 MCAPI static void setup(::CommandRegistry& registry, ::TimeCommand::InitProxy&& dependencies);
109 // NOLINTEND
110
111public:
112 // virtual function thunks
113 // NOLINTBEGIN
114 MCAPI void $execute(::CommandOrigin const& origin, ::CommandOutput& output) const;
115
116
117 // NOLINTEND
118
119public:
120 // vftables
121 // NOLINTBEGIN
122 MCNAPI static void** $vftable();
123 // NOLINTEND
124};
Definition CommandOrigin.h:32
Definition CommandOutput.h:20
Definition CommandRegistry.h:51
Definition Level.h:255
Definition TimeCommand.h:18
static MCAPI void ** $vftable()
Definition WorldClockRegistry.h:17
Definition TimeCommand.h:48