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 ClearType : int {
27 FunctionName = 0,
28 TickingAreaName = 1,
29 };
30
31 enum class DelayMode : int {
32 Append = 0,
33 Replace = 1,
34 };
35
36 enum class RequestAction : int {
37 Add = 0,
38 Clear = 1,
39 };
40
41 enum class ScheduleAction : int {
42 Clear = 0,
43 Delay = 1,
44 OnAreaLoaded = 2,
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&);
59 FunctionInfo(FunctionInfo const&);
60 FunctionInfo();
61
62 public:
63 // member functions
64 // NOLINTBEGIN
65 MCNAPI ~FunctionInfo();
66 // NOLINTEND
67
68 public:
69 // destructor thunk
70 // NOLINTBEGIN
71 MCNAPI 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&);
96 ScheduleCommand(ScheduleCommand const&);
97 ScheduleCommand();
98
99public:
100 // virtual functions
101 // NOLINTBEGIN
102 virtual void execute(::CommandOrigin const& origin, ::CommandOutput& output) const /*override*/;
103
104 virtual ~ScheduleCommand() /*override*/ = default;
105 // NOLINTEND
106
107public:
108 // member functions
109 // NOLINTBEGIN
110 MCAPI void _clear(::ServerLevel& serverLevel, ::Dimension& dimension, ::CommandOutput& output) const;
111
112 MCAPI void _delayAdd(::ServerLevel& serverLevel, ::Dimension& dimension, ::CommandOutput& output) const;
113
114 MCAPI void _delayClear(::ServerLevel& serverLevel, ::Dimension& dimension, ::CommandOutput& output) const;
115
116 MCAPI void _onAreaLoadedAdd(
117 ::CommandOrigin const& origin,
118 ::ServerLevel& serverLevel,
119 ::Dimension& dimension,
120 ::CommandOutput& output
121 ) const;
122
123 MCAPI void _onAreaLoadedClear(::ServerLevel& serverLevel, ::Dimension& dimension, ::CommandOutput& output) const;
124
125 MCAPI ::ScheduleCommand::FunctionInfo
126 _tryGetFunction(::FunctionManager& functionManager, ::CommandOutput& output) const;
127 // NOLINTEND
128
129public:
130 // static functions
131 // NOLINTBEGIN
132 MCAPI static void setup(::CommandRegistry& registry);
133 // NOLINTEND
134
135public:
136 // virtual function thunks
137 // NOLINTBEGIN
138 MCAPI void $execute(::CommandOrigin const& origin, ::CommandOutput& output) const;
139
140
141 // NOLINTEND
142
143public:
144 // vftables
145 // NOLINTBEGIN
146 MCNAPI static void** $vftable();
147 // NOLINTEND
148};
Definition CommandOrigin.h:32
Definition CommandOutput.h:19
Definition CommandRegistry.h:47
Definition Command.h:17
Definition Dimension.h:85
Definition FunctionManager.h:22
static MCAPI void ** $vftable()
Definition ServerLevel.h:50
Definition ScheduleCommand.h:47
Definition Alias.h:14