CONVERGENCE!!!!!!
The entire LSL API is now in the single, shared file OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api_Base.cs This is for both engines. The OSSL function are still separate.0.6.0-stable
parent
f3c8963c86
commit
a3fcaef890
File diff suppressed because it is too large
Load Diff
|
@ -40,10 +40,13 @@ namespace OpenSim.Region.ScriptEngine.Common
|
||||||
{
|
{
|
||||||
public class OSSL_BuilIn_Commands : LSL_BuiltIn_Commands, OSSL_BuilIn_Commands_Interface
|
public class OSSL_BuilIn_Commands : LSL_BuiltIn_Commands, OSSL_BuilIn_Commands_Interface
|
||||||
{
|
{
|
||||||
|
internal ScriptEngineBase.ScriptEngine m_ScriptEngineDirect;
|
||||||
|
|
||||||
public OSSL_BuilIn_Commands(ScriptEngineBase.ScriptEngine scriptEngine, SceneObjectPart host, uint localID,
|
public OSSL_BuilIn_Commands(ScriptEngineBase.ScriptEngine scriptEngine, SceneObjectPart host, uint localID,
|
||||||
UUID itemID)
|
UUID itemID)
|
||||||
: base(scriptEngine, host, localID, itemID)
|
: base(scriptEngine, host, localID, itemID)
|
||||||
{
|
{
|
||||||
|
m_ScriptEngineDirect = scriptEngine;
|
||||||
Prim = new OSSLPrim(this);
|
Prim = new OSSLPrim(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -577,7 +580,7 @@ namespace OpenSim.Region.ScriptEngine.Common
|
||||||
{
|
{
|
||||||
UUID channelID = xmlrpcMod.OpenXMLRPCChannel(m_localID, m_itemID, new UUID(channel));
|
UUID channelID = xmlrpcMod.OpenXMLRPCChannel(m_localID, m_itemID, new UUID(channel));
|
||||||
object[] resobj = new object[] { new LSL_Types.LSLInteger(1), new LSL_Types.LSLString(channelID.ToString()), new LSL_Types.LSLString(UUID.Zero.ToString()), new LSL_Types.LSLString(String.Empty), new LSL_Types.LSLInteger(0), new LSL_Types.LSLString(String.Empty) };
|
object[] resobj = new object[] { new LSL_Types.LSLInteger(1), new LSL_Types.LSLString(channelID.ToString()), new LSL_Types.LSLString(UUID.Zero.ToString()), new LSL_Types.LSLString(String.Empty), new LSL_Types.LSLInteger(0), new LSL_Types.LSLString(String.Empty) };
|
||||||
m_ScriptEngine.m_EventQueueManager.AddToScriptQueue(m_localID, m_itemID, "remote_data", new DetectParams[0], resobj);
|
m_ScriptEngineDirect.m_EventQueueManager.AddToScriptQueue(m_localID, m_itemID, "remote_data", new DetectParams[0], resobj);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -605,16 +608,16 @@ namespace OpenSim.Region.ScriptEngine.Common
|
||||||
|
|
||||||
int scriptEngineNameIndex = 0;
|
int scriptEngineNameIndex = 0;
|
||||||
|
|
||||||
if (!String.IsNullOrEmpty(m_ScriptEngine.ScriptEngineName))
|
if (!String.IsNullOrEmpty(m_ScriptEngineDirect.ScriptEngineName))
|
||||||
{
|
{
|
||||||
// parse off the "ScriptEngine."
|
// parse off the "ScriptEngine."
|
||||||
scriptEngineNameIndex = m_ScriptEngine.ScriptEngineName.IndexOf(".", scriptEngineNameIndex);
|
scriptEngineNameIndex = m_ScriptEngineDirect.ScriptEngineName.IndexOf(".", scriptEngineNameIndex);
|
||||||
scriptEngineNameIndex++; // get past delimiter
|
scriptEngineNameIndex++; // get past delimiter
|
||||||
|
|
||||||
int scriptEngineNameLength = m_ScriptEngine.ScriptEngineName.Length - scriptEngineNameIndex;
|
int scriptEngineNameLength = m_ScriptEngineDirect.ScriptEngineName.Length - scriptEngineNameIndex;
|
||||||
|
|
||||||
// create char array then a string that is only the script engine name
|
// create char array then a string that is only the script engine name
|
||||||
Char[] scriptEngineNameCharArray = m_ScriptEngine.ScriptEngineName.ToCharArray(scriptEngineNameIndex, scriptEngineNameLength);
|
Char[] scriptEngineNameCharArray = m_ScriptEngineDirect.ScriptEngineName.ToCharArray(scriptEngineNameIndex, scriptEngineNameLength);
|
||||||
String scriptEngineName = new String(scriptEngineNameCharArray);
|
String scriptEngineName = new String(scriptEngineNameCharArray);
|
||||||
|
|
||||||
return scriptEngineName;
|
return scriptEngineName;
|
||||||
|
@ -805,5 +808,10 @@ namespace OpenSim.Region.ScriptEngine.Common
|
||||||
|
|
||||||
return jsondata;
|
return jsondata;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
internal void LSLError(string msg)
|
||||||
|
{
|
||||||
|
throw new Exception("LSL Runtime Error: " + msg);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -220,6 +220,11 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase
|
||||||
|
|
||||||
return det[number];
|
return det[number];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public int GetStartParameter(UUID itemID)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -54,5 +54,8 @@ namespace OpenSim.Region.ScriptEngine.Interfaces
|
||||||
/// Post event to an entire prim
|
/// Post event to an entire prim
|
||||||
/// </summary>
|
/// </summary>
|
||||||
bool PostObjectEvent(uint localID, EventParams parms);
|
bool PostObjectEvent(uint localID, EventParams parms);
|
||||||
|
|
||||||
|
DetectParams GetDetectParams(UUID item, int number);
|
||||||
|
int GetStartParameter(UUID itemID);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -51,7 +51,6 @@ namespace OpenSim.Region.ScriptEngine.Interfaces
|
||||||
void SetScriptState(UUID itemID, bool state);
|
void SetScriptState(UUID itemID, bool state);
|
||||||
bool GetScriptState(UUID itemID);
|
bool GetScriptState(UUID itemID);
|
||||||
void SetState(UUID itemID, string newState);
|
void SetState(UUID itemID, string newState);
|
||||||
int GetStartParameter(UUID itemID);
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Queue an event for execution
|
/// Queue an event for execution
|
||||||
|
@ -59,7 +58,5 @@ namespace OpenSim.Region.ScriptEngine.Interfaces
|
||||||
IScriptWorkItem QueueEventHandler(object parms);
|
IScriptWorkItem QueueEventHandler(object parms);
|
||||||
|
|
||||||
IScriptApi GetApi(UUID itemID, string name);
|
IScriptApi GetApi(UUID itemID, string name);
|
||||||
|
|
||||||
DetectParams GetDetectParams(UUID item, int number);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue