Refactor XScriptInstance to IScriptInstance and move into Shared/. Now

engines that want to use the XEngine's instance handling and state
persistence can do so. IScriptInstance is optional, but it does
require the SmartThreadPool if it is used.
This commit is contained in:
Melanie Thielker
2008-08-27 22:38:36 +00:00
parent a2985b5655
commit 6e3367d68c
6 changed files with 1274 additions and 1048 deletions

View File

@@ -32,6 +32,7 @@ using OpenSim.Region.Environment.Scenes;
using libsecondlife;
using Nini.Config;
using OpenSim.Region.ScriptEngine.Interfaces;
using Amib.Threading;
namespace OpenSim.Region.ScriptEngine.Interfaces
{
@@ -47,6 +48,7 @@ namespace OpenSim.Region.ScriptEngine.Interfaces
Object AsyncCommands { get; }
ILog Log { get; }
string ScriptEngineName { get; }
int MaxScriptQueue { get; }
bool PostScriptEvent(LLUUID itemID, EventParams parms);
bool PostObjectEvent(uint localID, EventParams parms);
@@ -56,6 +58,7 @@ namespace OpenSim.Region.ScriptEngine.Interfaces
bool GetScriptState(LLUUID itemID);
void SetState(LLUUID itemID, string newState);
int GetStartParameter(LLUUID itemID);
IWorkItemResult QueueEventHandler(object parms);
DetectParams GetDetectParams(LLUUID item, int number);
}