diff options
author | Homer Horwitz | 2009-04-19 13:34:28 +0000 |
---|---|---|
committer | Homer Horwitz | 2009-04-19 13:34:28 +0000 |
commit | 33e1316cede4f902a97464e521b7522990528cbc (patch) | |
tree | a8ff0a94e731b8f6715c96e0afbb928a715434d8 /OpenSim/Region/ScriptEngine/Shared/Api/Runtime/OSSL_Stub.cs | |
parent | Moved ITerrainModule and ITerainEffect to OpenSim.Region.Framework.Interfaces... (diff) | |
download | opensim-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/OSSL_Stub.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Runtime/OSSL_Stub.cs | 11 |
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; | |||
40 | using key = OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLString; | 40 | using key = OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLString; |
41 | using LSL_List = OpenSim.Region.ScriptEngine.Shared.LSL_Types.list; | 41 | using LSL_List = OpenSim.Region.ScriptEngine.Shared.LSL_Types.list; |
42 | using LSL_String = OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLString; | 42 | using LSL_String = OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLString; |
43 | using LSL_Float = OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLFloat; | ||
44 | using LSL_Integer = OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLInteger; | ||
43 | 45 | ||
44 | namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase | 46 | namespace 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); |