We now support LSL state

ThreadPoolClientBranch
Tedd Hansen 2008-02-10 22:25:59 +00:00
parent c935b308e6
commit 9a04e0e1c4
5 changed files with 9 additions and 7 deletions

View File

@ -80,7 +80,7 @@ namespace OpenSim.Region.ScriptEngine.Common
return;
}
string EventName = m_Script.State() + "_event_" + FunctionName;
string EventName = m_Script.State + "_event_" + FunctionName;
//cfk 2-7-08 dont need this right now and the default Linux build has DEBUG defined
///#if DEBUG

View File

@ -32,7 +32,7 @@ namespace OpenSim.Region.ScriptEngine.Common
{
public interface IScript
{
string State();
string State { get; set; }
Executor Exec { get; }
string Source { get; set; }
void Start(LSL_BuiltIn_Commands_Interface BuiltIn_Commands);

View File

@ -102,9 +102,10 @@ namespace OpenSim.Region.ScriptEngine.Common
{
}
public string State()
public string State
{
return m_LSL_Functions.State();
get { return m_LSL_Functions.State; }
set { m_LSL_Functions.State = value; }
}

View File

@ -70,9 +70,10 @@ namespace OpenSim.Region.ScriptEngine.Common
private DateTime m_timer = DateTime.Now;
private string m_state = "default";
public string State()
public string State
{
return m_state;
get { return m_state; }
set { m_state = value; }
}
// Object never expires

View File

@ -35,7 +35,7 @@ namespace OpenSim.Region.ScriptEngine.Common
// Interface used for loading and executing scripts
string State();
string State { get; set; }
double llSin(double f);
double llCos(double f);