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