mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 06:06:06 +08:00
We now support LSL state
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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; }
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user