Merge branch 'master' into careminster

avinationmerge
Melanie 2009-12-22 15:48:41 +00:00
commit 30f59370d3
2 changed files with 9 additions and 0 deletions

View File

@ -76,6 +76,7 @@ namespace OpenSim.Region.ScriptEngine.Interfaces
void SetScriptState(UUID itemID, bool state);
bool GetScriptState(UUID itemID);
void SetState(UUID itemID, string newState);
void ApiResetScript(UUID itemID);
void ResetScript(UUID itemID);
IConfig Config { get; }

View File

@ -1264,6 +1264,14 @@ namespace OpenSim.Region.ScriptEngine.XEngine
return UUID.Zero;
}
public void SetState(UUID itemID, string newState)
{
IScriptInstance instance = GetInstance(itemID);
if (instance == null)
return;
instance.SetState(newState);
}
public int GetStartParameter(UUID itemID)
{
IScriptInstance instance = GetInstance(itemID);