aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/Api
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs34
1 files changed, 33 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index 089a5a8..8359440 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -5785,7 +5785,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
5785 public LSL_String llGetEnv(LSL_String name) 5785 public LSL_String llGetEnv(LSL_String name)
5786 { 5786 {
5787 m_host.AddScriptLPS(1); 5787 m_host.AddScriptLPS(1);
5788 if (name == "dynamic_pathfinding") 5788 if (name == "agent_limit")
5789 {
5790 return World.RegionInfo.RegionSettings.AgentLimit.ToString();
5791 }
5792 else if (name == "dynamic_pathfinding")
5789 { 5793 {
5790 return "0"; 5794 return "0";
5791 } 5795 }
@@ -5793,14 +5797,37 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
5793 { 5797 {
5794 return World.RegionInfo.EstateSettings.EstateID.ToString(); 5798 return World.RegionInfo.EstateSettings.EstateID.ToString();
5795 } 5799 }
5800 else if (name == "estate_name")
5801 {
5802 return World.RegionInfo.EstateSettings.EstateName;
5803 }
5796 else if (name == "frame_number") 5804 else if (name == "frame_number")
5797 { 5805 {
5798 return World.Frame.ToString(); 5806 return World.Frame.ToString();
5799 } 5807 }
5808 else if (name == "region_cpu_ratio")
5809 {
5810 return "1";
5811 }
5800 else if (name == "region_idle") 5812 else if (name == "region_idle")
5801 { 5813 {
5802 return "0"; 5814 return "0";
5803 } 5815 }
5816 else if (name == "region_product_name")
5817 {
5818 if (World.RegionInfo.RegionType != String.Empty)
5819 return World.RegionInfo.RegionType;
5820 else
5821 return "";
5822 }
5823 else if (name == "region_product_sku")
5824 {
5825 return "OpenSim";
5826 }
5827 else if (name == "region_start_time")
5828 {
5829 return World.UnixStartTime.ToString();
5830 }
5804 else if (name == "sim_channel") 5831 else if (name == "sim_channel")
5805 { 5832 {
5806 return "OpenSim"; 5833 return "OpenSim";
@@ -5809,6 +5836,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
5809 { 5836 {
5810 return World.GetSimulatorVersion(); 5837 return World.GetSimulatorVersion();
5811 } 5838 }
5839 else if (name == "simulator_hostname")
5840 {
5841 IUrlModule UrlModule = World.RequestModuleInterface<IUrlModule>();
5842 return UrlModule.ExternalHostNameForLSL;
5843 }
5812 else 5844 else
5813 { 5845 {
5814 return ""; 5846 return "";