22class FunctionManager {
32 struct OriginMapping {
42 OriginMapping& operator=(OriginMapping
const&);
43 OriginMapping(OriginMapping
const&);
59 struct QueuedCommand {
69 QueuedCommand& operator=(QueuedCommand
const&);
70 QueuedCommand(QueuedCommand
const&);
84 TickFunction& operator=(TickFunction
const&);
85 TickFunction(TickFunction
const&);
92 ::ll::TypedStorage<8, 8, ::GameRule const*> mGameRule;
93 ::ll::TypedStorage<1, 1, bool> mIsProcessingStack;
94 ::ll::TypedStorage<8, 8, uint64> mInsertPoint;
95 ::ll::TypedStorage<4, 4, int> mExecutionCount;
96 ::ll::TypedStorage<8, 24, ::std::vector<::FunctionManager::QueuedCommand>> mCommandList;
97 ::ll::TypedStorage<8, 64, ::std::unordered_map<::CommandOrigin const*, ::FunctionManager::OriginMapping>>
99 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ICommandDispatcher>> mCommandDispatcher;
100 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::CommandOrigin>> mTickOrigin;
101 ::ll::TypedStorage<8, 64, ::std::unordered_map<::std::string, ::std::unique_ptr<::FunctionEntry>>> mFunctions;
102 ::ll::TypedStorage<8, 24, ::std::vector<::FunctionManager::TickFunction>> mTickFunctions;
112 virtual ~FunctionManager();
119 ::std::unique_ptr<::ICommandDispatcher> commandDispatcher,
120 ::std::unique_ptr<::CommandOrigin> tickOrigin,
131 ::std::string
const& functionName,
132 ::std::vector<::std::string>
const& lines,
133 ::std::vector<::std::string>& errorList,
134 ::CurrentCmdVersion commandVersion,
139 ::std::vector<::std::unique_ptr<::IFunctionEntry>>
const& toQueue,
147 MCNAPI ::FunctionEntry*
getFunction(::std::string
const& functionName);
164 ::std::unique_ptr<::ICommandDispatcher> commandDispatcher,
165 ::std::unique_ptr<::CommandOrigin> tickOrigin,
Definition FunctionEntry.h:15
MCAPI void _processFunctionEntry(::std::string const &functionName, ::std::vector<::std::string > const &lines, ::std::vector<::std::string > &errorList, ::CurrentCmdVersion commandVersion, ::CommandRegistry const ®istry)
Definition IFunctionEntry.h:14