Add plumbing for the SceneObjectDeleter to wait for the script engine to

allow final deletion of objects. Meant to support the attach(NULL_KEY) event,
This commit is contained in:
Melanie
2009-08-04 03:17:13 +01:00
parent 679cce6178
commit 17bdc45c5c
10 changed files with 72 additions and 3 deletions

View File

@@ -476,5 +476,10 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine
{
return "";
}
public bool CanBeDeleted(UUID itemID)
{
return true;
}
}
}

View File

@@ -95,6 +95,7 @@ namespace OpenSim.Region.ScriptEngine.Interfaces
UUID GetDetectID(int idx);
void SaveState(string assembly);
void DestroyScriptInstance();
bool CanBeDeleted();
IScriptApi GetApi(string name);

View File

@@ -991,5 +991,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
{
get { return m_RegionID; }
}
public bool CanBeDeleted()
{
return true;
}
}
}

View File

@@ -1241,5 +1241,14 @@ namespace OpenSim.Region.ScriptEngine.XEngine
return "";
return instance.GetXMLState();
}
public bool CanBeDeleted(UUID itemID)
{
IScriptInstance instance = GetInstance(itemID);
if (instance == null)
return true;
return instance.CanBeDeleted();
}
}
}