LeviLamina
Loading...
Searching...
No Matches
ScheduleCommand.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 Dimension;
14class FunctionManager;
15class ServerLevel;
16// clang-format on
17
18class ScheduleCommand : public ::Command {
19public:
20 // ScheduleCommand inner types declare
21 // clang-format off
22 struct FunctionInfo;
23 // clang-format on
24
25 // ScheduleCommand inner types define
26 enum class ScheduleAction : int {
27 Clear = 0,
28 Delay = 1,
29 OnAreaLoaded = 2,
30 };
31
32 enum class RequestAction : int {
33 Add = 0,
34 Clear = 1,
35 };
36
37 enum class DelayMode : int {
38 Append = 0,
39 Replace = 1,
40 };
41
42 enum class ClearType : int {
43 FunctionName = 0,
44 TickingAreaName = 1,
45 };
46
47 struct FunctionInfo {
48 public:
49 // member variables
50 // NOLINTBEGIN
54 // NOLINTEND
55
56 public:
57 // prevent constructor by default
58 FunctionInfo& operator=(FunctionInfo const&);
61
62 public:
63 // member functions
64 // NOLINTBEGIN
65 MCAPI ~FunctionInfo();
66 // NOLINTEND
67
68 public:
69 // destructor thunk
70 // NOLINTBEGIN
71 MCFOLD void $dtor();
72 // NOLINTEND
73 };
74
75public:
76 // member variables
77 // NOLINTBEGIN
91 // NOLINTEND
92
93public:
94 // prevent constructor by default
95 ScheduleCommand& operator=(ScheduleCommand const&);
98
99public:
100 // virtual functions
101 // NOLINTBEGIN
102 // vIndex: 2
103 virtual void execute(::CommandOrigin const& origin, ::CommandOutput& output) const /*override*/;
104
105 // vIndex: 0
106 virtual ~ScheduleCommand() /*override*/ = default;
107 // NOLINTEND
108
109public:
110 // member functions
111 // NOLINTBEGIN
112 MCAPI void _clear(::ServerLevel& serverLevel, ::Dimension& dimension, ::CommandOutput& output) const;
113
114 MCAPI void _delayAdd(::ServerLevel& serverLevel, ::Dimension& dimension, ::CommandOutput& output) const;
115
116 MCAPI void _delayClear(::ServerLevel& serverLevel, ::Dimension& dimension, ::CommandOutput& output) const;
117
118 MCAPI void _onAreaLoadedAdd(
119 ::CommandOrigin const& origin,
120 ::ServerLevel& serverLevel,
121 ::Dimension& dimension,
122 ::CommandOutput& output
123 ) const;
124
125 MCAPI void _onAreaLoadedClear(::ServerLevel& serverLevel, ::Dimension& dimension, ::CommandOutput& output) const;
126
127 MCAPI ::ScheduleCommand::FunctionInfo
128 _tryGetFunction(::FunctionManager& functionManager, ::CommandOutput& output) const;
129 // NOLINTEND
130
131public:
132 // static functions
133 // NOLINTBEGIN
134 MCAPI static void setup(::CommandRegistry& registry);
135 // NOLINTEND
136
137public:
138 // destructor thunk
139 // NOLINTBEGIN
140
141 // NOLINTEND
142
143public:
144 // virtual function thunks
145 // NOLINTBEGIN
146 MCAPI void $execute(::CommandOrigin const& origin, ::CommandOutput& output) const;
147 // NOLINTEND
148
149public:
150 // vftables
151 // NOLINTBEGIN
152 MCAPI static void** $vftable();
153 // NOLINTEND
154};
Definition CommandOrigin.h:32
Definition CommandOutput.h:19
Definition CommandRegistry.h:44
Definition Command.h:17
Definition Dimension.h:83
Definition FunctionManager.h:22
Definition ScheduleCommand.h:18
Definition ServerLevel.h:52
Definition ScheduleCommand.h:47
Definition Alias.h:14