Extend scripts stop/start/suspend/resume console commands to allow action on a single script by giving the script item id (which can be found via scripts show).

Not an ideal way to do this on a region with many scripts.  Needs refinement later.
This commit is contained in:
Justin Clark-Casey (justincc)
2011-10-19 22:30:31 +01:00
parent 32c3faedd6
commit 601dabb1b7
2 changed files with 100 additions and 72 deletions

View File

@@ -41,12 +41,16 @@ namespace OpenSim.Region.Framework.Interfaces
bool PostScriptEvent(UUID itemID, string name, Object[] args);
bool PostObjectEvent(UUID itemID, string name, Object[] args);
// Suspend ALL scripts in a given scene object. The item ID
// is the UUID of a SOG, and the method acts on all contained
// scripts. This is different from the suspend/resume that
// can be issued by a client.
//
/// <summary>
/// Suspends a script.
/// </summary>
/// <param name="itemID">The item ID of the script.</param>
void SuspendScript(UUID itemID);
/// <summary>
/// Resumes a script.
/// </summary>
/// <param name="itemID">The item ID of the script.</param>
void ResumeScript(UUID itemID);
ArrayList GetScriptErrors(UUID itemID);