diff options
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 39 |
1 files changed, 33 insertions, 6 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index 41b18d6..2149f2b 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -5620,6 +5620,39 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
5620 | return new LSL_Vector(World.RegionInfo.WorldLocX, World.RegionInfo.WorldLocY, 0); | 5620 | return new LSL_Vector(World.RegionInfo.WorldLocX, World.RegionInfo.WorldLocY, 0); |
5621 | } | 5621 | } |
5622 | 5622 | ||
5623 | public LSL_String llGetEnv(LSL_String name) | ||
5624 | { | ||
5625 | m_host.AddScriptLPS(1); | ||
5626 | if (name == "dynamic_pathfinding") | ||
5627 | { | ||
5628 | return "0"; | ||
5629 | } | ||
5630 | else if (name == "estate_id") | ||
5631 | { | ||
5632 | return World.RegionInfo.EstateSettings.EstateID.ToString(); | ||
5633 | } | ||
5634 | else if (name == "frame_number") | ||
5635 | { | ||
5636 | return World.Frame.ToString(); | ||
5637 | } | ||
5638 | else if (name == "region_idle") | ||
5639 | { | ||
5640 | return "0"; | ||
5641 | } | ||
5642 | else if (name == "sim_channel") | ||
5643 | { | ||
5644 | return "OpenSim"; | ||
5645 | } | ||
5646 | else if (name == "sim_version") | ||
5647 | { | ||
5648 | return ""; | ||
5649 | } | ||
5650 | else | ||
5651 | { | ||
5652 | return ""; | ||
5653 | } | ||
5654 | } | ||
5655 | |||
5623 | /// <summary> | 5656 | /// <summary> |
5624 | /// Insert the list identified by <paramref name="src"/> into the | 5657 | /// Insert the list identified by <paramref name="src"/> into the |
5625 | /// list designated by <paramref name="dest"/> such that the first | 5658 | /// list designated by <paramref name="dest"/> such that the first |
@@ -12324,12 +12357,6 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
12324 | // them from this region as they are completed | 12357 | // them from this region as they are completed |
12325 | // | 12358 | // |
12326 | 12359 | ||
12327 | public void llGetEnv(LSL_String name) | ||
12328 | { | ||
12329 | m_host.AddScriptLPS(1); | ||
12330 | NotImplemented("llGetEnv"); | ||
12331 | } | ||
12332 | |||
12333 | public void llSetSoundQueueing(int queue) | 12360 | public void llSetSoundQueueing(int queue) |
12334 | { | 12361 | { |
12335 | m_host.AddScriptLPS(1); | 12362 | m_host.AddScriptLPS(1); |