22class FunctionManager {
36 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::CommandOrigin>> mOrigin;
37 ::ll::TypedStorage<4, 4, uint> mRefCount;
57 ::ll::TypedStorage<8, 8, ::IFunctionEntry*> mFunction;
58 ::ll::TypedStorage<8, 8, ::gsl::not_null<::CommandOrigin const*>> mOrigin;
66 ::ll::TypedStorage<8, 8, ::gsl::not_null<::FunctionEntry*>> mFunction;
67 ::ll::TypedStorage<1, 1, ::FunctionQueueOrder> mOrder;
74 ::ll::TypedStorage<8, 8, ::GameRule const*> mGameRule;
75 ::ll::TypedStorage<1, 1, bool> mIsProcessingStack;
76 ::ll::TypedStorage<8, 8, uint64> mInsertPoint;
77 ::ll::TypedStorage<4, 4, int> mExecutionCount;
78 ::ll::TypedStorage<8, 24, ::std::vector<::FunctionManager::QueuedCommand>> mCommandList;
79 ::ll::TypedStorage<8, 64, ::std::unordered_map<::CommandOrigin const*, ::FunctionManager::OriginMapping>>
81 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ICommandDispatcher>> mCommandDispatcher;
82 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::CommandOrigin>> mTickOrigin;
83 ::ll::TypedStorage<8, 64, ::std::unordered_map<::std::string, ::std::unique_ptr<::FunctionEntry>>> mFunctions;
84 ::ll::TypedStorage<8, 24, ::std::vector<::FunctionManager::TickFunction>> mTickFunctions;
94 virtual ~FunctionManager();
100 MCAPI FunctionManager(
101 ::std::unique_ptr<::ICommandDispatcher> commandDispatcher,
102 ::std::unique_ptr<::CommandOrigin> tickOrigin,
106 MCAPI ::CommandOrigin
const& _addOriginReference(
::CommandOrigin const& origin, uint amount);
108 MCAPI
void _addTickFunctionsFromJson(
::Json::Value const& arrayVal, ::CurrentCmdVersion resourceCommandVersion);
112 MCAPI
void _processFunctionEntry(
113 ::std::string
const& functionName,
114 ::std::vector<::std::string>
const& lines,
115 ::std::vector<::std::string>& errorList,
116 ::CurrentCmdVersion commandVersion,
120 MCAPI
void _queueCommandsAfterCaller(
121 ::std::vector<::std::unique_ptr<::IFunctionEntry>>
const& toQueue,
125 MCAPI
void _removeOriginReference(
::CommandOrigin const& origin, uint amount);
129 MCAPI ::FunctionEntry* getFunction(::std::string
const& functionName);
139 MCAPI static ::std::string getFunctionNameFromPath(
::Core::Path const& filename);
146 ::std::unique_ptr<::ICommandDispatcher> commandDispatcher,
147 ::std::unique_ptr<::CommandOrigin> tickOrigin,
Definition FunctionEntry.h:16
Definition IFunctionEntry.h:14