mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2025-07-03 16:25:35 +00:00
Add AddResultToCheck
This commit is contained in:
parent
40b23cbbe6
commit
144ccf14ec
@ -142,6 +142,11 @@ TLuaStateId TLuaEngine::GetStateIDForPlugin(const fs::path& PluginPath) {
|
|||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void TLuaEngine::AddResultToCheck(const std::shared_ptr<TLuaResult>& Result) {
|
||||||
|
std::unique_lock Lock(mResultsToCheckMutex);
|
||||||
|
mResultsToCheck.push(Result);
|
||||||
|
}
|
||||||
|
|
||||||
std::unordered_map<std::string /*event name */, std::vector<std::string> /* handlers */> TLuaEngine::Debug_GetEventsForState(TLuaStateId StateId) {
|
std::unordered_map<std::string /*event name */, std::vector<std::string> /* handlers */> TLuaEngine::Debug_GetEventsForState(TLuaStateId StateId) {
|
||||||
std::unordered_map<std::string, std::vector<std::string>> Result;
|
std::unordered_map<std::string, std::vector<std::string>> Result;
|
||||||
std::unique_lock Lock(mLuaEventsMutex);
|
std::unique_lock Lock(mLuaEventsMutex);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user