added llGetEnv() implementation

Signed-off-by: BlueWall <jamesh@bluewallgroup.com>
inv-download
Freaky Tech 2015-03-02 20:52:21 +01:00 committed by BlueWall
parent b519a5e62a
commit 7f0995ae31
3 changed files with 39 additions and 6 deletions

View File

@ -5620,6 +5620,39 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
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>
/// Insert the list identified by <paramref name="src"/> into the
/// 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
//
public void llGetEnv(LSL_String name)
{
m_host.AddScriptLPS(1);
NotImplemented("llGetEnv");
}
public void llSetSoundQueueing(int queue)
{
m_host.AddScriptLPS(1);

View File

@ -124,6 +124,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
LSL_String llGetCreator();
LSL_String llGetDate();
LSL_Float llGetEnergy();
LSL_String llGetEnv(LSL_String name);
LSL_Vector llGetForce();
LSL_Integer llGetFreeMemory();
LSL_Integer llGetFreeURLs();

View File

@ -464,6 +464,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
return m_LSL_Functions.llGetEnergy();
}
public LSL_String llGetEnv(LSL_String name)
{
return m_LSL_Functions.llGetEnv(name);
}
public LSL_Vector llGetForce()
{
return m_LSL_Functions.llGetForce();