From 8b6dd623bd7e7a1ea3de196ea6bc4d8979c7e921 Mon Sep 17 00:00:00 2001
From: Adam Frisby
Date: Thu, 27 Dec 2007 05:20:03 +0000
Subject: * Added osTerrainSetHeight(int x, int y, double val) to LSL commands
 * Added osTerrainGetHeight(int x, int y) to LSL commands

---
 .../DotNetEngine/Compiler/Server_API/LSL_BuiltIn_Commands.cs  | 11 +++++++++++
 1 file changed, 11 insertions(+)

(limited to 'OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/Server_API')

diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/Server_API/LSL_BuiltIn_Commands.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/Server_API/LSL_BuiltIn_Commands.cs
index fb521df..14f66e8 100644
--- a/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/Server_API/LSL_BuiltIn_Commands.cs
+++ b/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/Server_API/LSL_BuiltIn_Commands.cs
@@ -2876,6 +2876,17 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler
         //
         // OpenSim functions
         //
+        public int osTerrainSetHeight(int x, int y, double val)
+        {
+            World.Terrain.Set(x, y, val);
+            return 1;
+        }
+
+        public double osTerrainGetHeight(int x, int y)
+        {
+            return World.Terrain.GetHeight(x, y);
+        }
+
         public string osSetDynamicTextureURL(string dynamicID, string contentType, string url, string extraParams,
                                              int timer)
         {
-- 
cgit v1.1