missing file

master
UbitUmarov 2020-05-25 14:50:10 +01:00
parent 1c5b9e5af8
commit d460a3fc86
1 changed files with 6 additions and 2 deletions

View File

@ -1898,31 +1898,35 @@ namespace OpenSim.Region.ScriptEngine.Yengine
/**
* @brief Block script from dequeuing events.
*/
public void SuspendScript(UUID itemID)
public bool SuspendScript(UUID itemID)
{
XMRInstance instance = GetInstance(itemID);
if(instance != null)
{
TraceCalls("[YEngine]: YEngine.SuspendScript({0})", itemID.ToString());
instance.SuspendIt();
return true;
}
return false;
}
/**
* @brief Allow script to dequeue events.
*/
public void ResumeScript(UUID itemID)
public bool ResumeScript(UUID itemID)
{
XMRInstance instance = GetInstance(itemID);
if(instance != null)
{
TraceCalls("[YEngine]: YEngine.ResumeScript({0})", itemID.ToString());
instance.ResumeIt();
return true;
}
else
{
// probably an XEngine script
}
return false;
}
/**