added llGetEnv() implementation
Signed-off-by: BlueWall <jamesh@bluewallgroup.com>inv-download
parent
b519a5e62a
commit
7f0995ae31
|
@ -5620,6 +5620,39 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
return new LSL_Vector(World.RegionInfo.WorldLocX, World.RegionInfo.WorldLocY, 0);
|
return new LSL_Vector(World.RegionInfo.WorldLocX, World.RegionInfo.WorldLocY, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public LSL_String llGetEnv(LSL_String name)
|
||||||
|
{
|
||||||
|
m_host.AddScriptLPS(1);
|
||||||
|
if (name == "dynamic_pathfinding")
|
||||||
|
{
|
||||||
|
return "0";
|
||||||
|
}
|
||||||
|
else if (name == "estate_id")
|
||||||
|
{
|
||||||
|
return World.RegionInfo.EstateSettings.EstateID.ToString();
|
||||||
|
}
|
||||||
|
else if (name == "frame_number")
|
||||||
|
{
|
||||||
|
return World.Frame.ToString();
|
||||||
|
}
|
||||||
|
else if (name == "region_idle")
|
||||||
|
{
|
||||||
|
return "0";
|
||||||
|
}
|
||||||
|
else if (name == "sim_channel")
|
||||||
|
{
|
||||||
|
return "OpenSim";
|
||||||
|
}
|
||||||
|
else if (name == "sim_version")
|
||||||
|
{
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Insert the list identified by <paramref name="src"/> into the
|
/// Insert the list identified by <paramref name="src"/> into the
|
||||||
/// list designated by <paramref name="dest"/> such that the first
|
/// list designated by <paramref name="dest"/> such that the first
|
||||||
|
@ -12324,12 +12357,6 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
// them from this region as they are completed
|
// them from this region as they are completed
|
||||||
//
|
//
|
||||||
|
|
||||||
public void llGetEnv(LSL_String name)
|
|
||||||
{
|
|
||||||
m_host.AddScriptLPS(1);
|
|
||||||
NotImplemented("llGetEnv");
|
|
||||||
}
|
|
||||||
|
|
||||||
public void llSetSoundQueueing(int queue)
|
public void llSetSoundQueueing(int queue)
|
||||||
{
|
{
|
||||||
m_host.AddScriptLPS(1);
|
m_host.AddScriptLPS(1);
|
||||||
|
|
|
@ -124,6 +124,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
|
||||||
LSL_String llGetCreator();
|
LSL_String llGetCreator();
|
||||||
LSL_String llGetDate();
|
LSL_String llGetDate();
|
||||||
LSL_Float llGetEnergy();
|
LSL_Float llGetEnergy();
|
||||||
|
LSL_String llGetEnv(LSL_String name);
|
||||||
LSL_Vector llGetForce();
|
LSL_Vector llGetForce();
|
||||||
LSL_Integer llGetFreeMemory();
|
LSL_Integer llGetFreeMemory();
|
||||||
LSL_Integer llGetFreeURLs();
|
LSL_Integer llGetFreeURLs();
|
||||||
|
|
|
@ -464,6 +464,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
|
||||||
return m_LSL_Functions.llGetEnergy();
|
return m_LSL_Functions.llGetEnergy();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public LSL_String llGetEnv(LSL_String name)
|
||||||
|
{
|
||||||
|
return m_LSL_Functions.llGetEnv(name);
|
||||||
|
}
|
||||||
|
|
||||||
public LSL_Vector llGetForce()
|
public LSL_Vector llGetForce()
|
||||||
{
|
{
|
||||||
return m_LSL_Functions.llGetForce();
|
return m_LSL_Functions.llGetForce();
|
||||||
|
|
Loading…
Reference in New Issue