LeviLamina
Loading...
Searching...
No Matches
FunctionManager.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/server/commands/CurrentCmdVersion.h"
7#include "mc/server/commands/functions/FunctionQueueOrder.h"
8
9// auto generated forward declare list
10// clang-format off
11class CommandOrigin;
12class CommandRegistry;
13class FunctionEntry;
14class GameRule;
16class IFunctionEntry;
18namespace Core { class Path; }
19namespace Json { class Value; }
20// clang-format on
21
23public:
24 // FunctionManager inner types declare
25 // clang-format off
26 struct OriginMapping;
27 struct QueuedCommand;
28 struct TickFunction;
29 // clang-format on
30
31 // FunctionManager inner types define
32 struct TickFunction {
33 public:
34 // member variables
35 // NOLINTBEGIN
38 // NOLINTEND
39
40 public:
41 // prevent constructor by default
42 TickFunction& operator=(TickFunction const&);
45 };
46
48 public:
49 // member variables
50 // NOLINTBEGIN
53 // NOLINTEND
54
55 public:
56 // prevent constructor by default
57 QueuedCommand& operator=(QueuedCommand const&);
60 };
61
63 public:
64 // member variables
65 // NOLINTBEGIN
68 // NOLINTEND
69
70 public:
71 // prevent constructor by default
72 OriginMapping& operator=(OriginMapping const&);
75
76 public:
77 // member functions
78 // NOLINTBEGIN
79 MCAPI ~OriginMapping();
80 // NOLINTEND
81
82 public:
83 // destructor thunk
84 // NOLINTBEGIN
85 MCFOLD void $dtor();
86 // NOLINTEND
87 };
88
89public:
90 // member variables
91 // NOLINTBEGIN
102 // NOLINTEND
103
104public:
105 // prevent constructor by default
106 FunctionManager& operator=(FunctionManager const&);
109
110public:
111 // virtual functions
112 // NOLINTBEGIN
113 // vIndex: 0
114 virtual ~FunctionManager();
115 // NOLINTEND
116
117public:
118 // member functions
119 // NOLINTBEGIN
120 MCAPI FunctionManager(
121 ::std::unique_ptr<::ICommandDispatcher> commandDispatcher,
122 ::std::unique_ptr<::CommandOrigin> tickOrigin,
123 ::GameRule const* gameRule
124 );
125
126 MCAPI ::CommandOrigin const& _addOriginReference(::CommandOrigin const& origin, uint amount);
127
128 MCAPI void _addTickFunctionsFromJson(::Json::Value const& arrayVal, ::CurrentCmdVersion resourceCommandVersion);
129
130 MCAPI void _loadTickFiles(::ResourcePackManager const& serverPackManager);
131
132 MCAPI void _processFunctionEntry(
133 ::std::string const& functionName,
134 ::std::vector<::std::string> const& lines,
135 ::std::vector<::std::string>& errorList,
136 ::CurrentCmdVersion commandVersion,
137 ::CommandRegistry const& registry
138 );
139
140 MCAPI void _queueCommandsAfterCaller(
141 ::std::vector<::std::unique_ptr<::IFunctionEntry>> const& toQueue,
142 ::CommandOrigin const& origin
143 );
144
145 MCAPI void _removeOriginReference(::CommandOrigin const& origin, uint amount);
146
147 MCAPI int execute(::FunctionEntry& toExecute, ::CommandOrigin const& origin, ::FunctionQueueOrder order);
148
149 MCAPI int getExecutionLimit() const;
150
151 MCAPI void load(::ResourcePackManager& serverPackManager, ::CommandRegistry& registry);
152 // NOLINTEND
153
154public:
155 // static functions
156 // NOLINTBEGIN
157 MCAPI static ::std::string getFunctionNameFromPath(::Core::Path const& filename);
158 // NOLINTEND
159
160public:
161 // constructor thunks
162 // NOLINTBEGIN
163 MCAPI void* $ctor(
164 ::std::unique_ptr<::ICommandDispatcher> commandDispatcher,
165 ::std::unique_ptr<::CommandOrigin> tickOrigin,
166 ::GameRule const* gameRule
167 );
168 // NOLINTEND
169
170public:
171 // destructor thunk
172 // NOLINTBEGIN
173 MCAPI void $dtor();
174 // NOLINTEND
175
176public:
177 // vftables
178 // NOLINTBEGIN
179 MCAPI static void** $vftable();
180 // NOLINTEND
181};
Definition CommandOrigin.h:32
Definition CommandRegistry.h:44
Definition Path.h:15
Definition FunctionEntry.h:15
Definition FunctionManager.h:22
Definition GameRule.h:10
Definition ICommandDispatcher.h:11
Definition IFunctionEntry.h:14
Definition Value.h:16
Definition Path.h:16
Definition ResourcePackManager.h:24
Definition FunctionManager.h:62
Definition FunctionManager.h:47
Definition FunctionManager.h:32
Definition Alias.h:14