aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/Api/Runtime
diff options
context:
space:
mode:
authorHomer Horwitz2009-04-19 13:34:28 +0000
committerHomer Horwitz2009-04-19 13:34:28 +0000
commit33e1316cede4f902a97464e521b7522990528cbc (patch)
treea8ff0a94e731b8f6715c96e0afbb928a715434d8 /OpenSim/Region/ScriptEngine/Shared/Api/Runtime
parentMoved ITerrainModule and ITerainEffect to OpenSim.Region.Framework.Interfaces... (diff)
downloadopensim-SC_OLD-33e1316cede4f902a97464e521b7522990528cbc.zip
opensim-SC_OLD-33e1316cede4f902a97464e521b7522990528cbc.tar.gz
opensim-SC_OLD-33e1316cede4f902a97464e521b7522990528cbc.tar.bz2
opensim-SC_OLD-33e1316cede4f902a97464e521b7522990528cbc.tar.xz
Terrain changes done via osTerrainSetHeight aren't shown immediately to the clients in
that region. I decided against sending the terrain on every call to osTerrainSetHeight (which makes it abysmally slow), and added a osTerrainFlush instead, which should be called after all the terrain-changes have been done. Changed some return types to LSL types, too, and removed some end-of-line spaces.
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Runtime')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Runtime/OSSL_Stub.cs11
1 files changed, 9 insertions, 2 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/OSSL_Stub.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/OSSL_Stub.cs
index b42505f..625fc97 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/OSSL_Stub.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/OSSL_Stub.cs
@@ -40,6 +40,8 @@ using rotation = OpenSim.Region.ScriptEngine.Shared.LSL_Types.Quaternion;
40using key = OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLString; 40using key = OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLString;
41using LSL_List = OpenSim.Region.ScriptEngine.Shared.LSL_Types.list; 41using LSL_List = OpenSim.Region.ScriptEngine.Shared.LSL_Types.list;
42using LSL_String = OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLString; 42using LSL_String = OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLString;
43using LSL_Float = OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLFloat;
44using LSL_Integer = OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLInteger;
43 45
44namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase 46namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
45{ 47{
@@ -132,16 +134,21 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
132 return m_OSSL_Functions.osSetDynamicTextureDataBlend(dynamicID, contentType, data, extraParams, timer, alpha); 134 return m_OSSL_Functions.osSetDynamicTextureDataBlend(dynamicID, contentType, data, extraParams, timer, alpha);
133 } 135 }
134 136
135 public double osTerrainGetHeight(int x, int y) 137 public LSL_Float osTerrainGetHeight(int x, int y)
136 { 138 {
137 return m_OSSL_Functions.osTerrainGetHeight(x, y); 139 return m_OSSL_Functions.osTerrainGetHeight(x, y);
138 } 140 }
139 141
140 public int osTerrainSetHeight(int x, int y, double val) 142 public LSL_Integer osTerrainSetHeight(int x, int y, double val)
141 { 143 {
142 return m_OSSL_Functions.osTerrainSetHeight(x, y, val); 144 return m_OSSL_Functions.osTerrainSetHeight(x, y, val);
143 } 145 }
144 146
147 public void osTerrainFlush()
148 {
149 m_OSSL_Functions.osTerrainFlush();
150 }
151
145 public int osRegionRestart(double seconds) 152 public int osRegionRestart(double seconds)
146 { 153 {
147 return m_OSSL_Functions.osRegionRestart(seconds); 154 return m_OSSL_Functions.osRegionRestart(seconds);