aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules/World
diff options
context:
space:
mode:
authorHomer Horwitz2009-04-19 13:33:46 +0000
committerHomer Horwitz2009-04-19 13:33:46 +0000
commit9c3ec87b976edb37114a489ce83b1e8f8e9a6851 (patch)
treef959012150e6bffae5e7874fef9b9e089f0f1abc /OpenSim/Region/CoreModules/World
parentKeep IsColliding updated for the recent changes in ScenePresence so that walk... (diff)
downloadopensim-SC-9c3ec87b976edb37114a489ce83b1e8f8e9a6851.zip
opensim-SC-9c3ec87b976edb37114a489ce83b1e8f8e9a6851.tar.gz
opensim-SC-9c3ec87b976edb37114a489ce83b1e8f8e9a6851.tar.bz2
opensim-SC-9c3ec87b976edb37114a489ce83b1e8f8e9a6851.tar.xz
Moved ITerrainModule and ITerainEffect to OpenSim.Region.Framework.Interfaces and added a TaintTerrain method
Diffstat (limited to 'OpenSim/Region/CoreModules/World')
-rw-r--r--OpenSim/Region/CoreModules/World/Terrain/ITerrainEffect.cs36
-rw-r--r--OpenSim/Region/CoreModules/World/Terrain/ITerrainModule.cs60
-rw-r--r--OpenSim/Region/CoreModules/World/Terrain/TerrainModule.cs9
3 files changed, 8 insertions, 97 deletions
diff --git a/OpenSim/Region/CoreModules/World/Terrain/ITerrainEffect.cs b/OpenSim/Region/CoreModules/World/Terrain/ITerrainEffect.cs
deleted file mode 100644
index 40b9f5a..0000000
--- a/OpenSim/Region/CoreModules/World/Terrain/ITerrainEffect.cs
+++ /dev/null
@@ -1,36 +0,0 @@
1/*
2 * Copyright (c) Contributors, http://opensimulator.org/
3 * See CONTRIBUTORS.TXT for a full list of copyright holders.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met:
7 * * Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.
9 * * Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the
11 * documentation and/or other materials provided with the distribution.
12 * * Neither the name of the OpenSim Project nor the
13 * names of its contributors may be used to endorse or promote products
14 * derived from this software without specific prior written permission.
15 *
16 * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY
17 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19 * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
20 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */
27
28using OpenSim.Region.Framework.Interfaces;
29
30namespace OpenSim.Region.CoreModules.World.Terrain
31{
32 public interface ITerrainEffect
33 {
34 void RunEffect(ITerrainChannel map);
35 }
36} \ No newline at end of file
diff --git a/OpenSim/Region/CoreModules/World/Terrain/ITerrainModule.cs b/OpenSim/Region/CoreModules/World/Terrain/ITerrainModule.cs
deleted file mode 100644
index 9ca7de0..0000000
--- a/OpenSim/Region/CoreModules/World/Terrain/ITerrainModule.cs
+++ /dev/null
@@ -1,60 +0,0 @@
1/*
2 * Copyright (c) Contributors, http://opensimulator.org/
3 * See CONTRIBUTORS.TXT for a full list of copyright holders.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met:
7 * * Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.
9 * * Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the
11 * documentation and/or other materials provided with the distribution.
12 * * Neither the name of the OpenSim Project nor the
13 * names of its contributors may be used to endorse or promote products
14 * derived from this software without specific prior written permission.
15 *
16 * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY
17 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19 * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
20 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */
27
28
29using System.IO;
30using OpenMetaverse;
31
32namespace OpenSim.Region.CoreModules.World.Terrain
33{
34 public interface ITerrainModule
35 {
36 void LoadFromFile(string filename);
37 void SaveToFile(string filename);
38 void ModifyTerrain(UUID user, Vector3 pos, byte size, byte action, UUID agentId);
39
40 /// <summary>
41 /// Load a terrain from a stream.
42 /// </summary>
43 /// <param name="filename">
44 /// Only required here to identify the image type. Not otherwise used in the loading itself.
45 /// </param>
46 /// <param name="stream"></param>
47 void LoadFromStream(string filename, Stream stream);
48
49 /// <summary>
50 /// Save a terrain to a stream.
51 /// </summary>
52 /// <param name="filename">
53 /// Only required here to identify the image type. Not otherwise used in the saving itself.
54 /// </param>
55 /// <param name="stream"></param>
56 void SaveToStream(string filename, Stream stream);
57
58 void InstallPlugin(string name, ITerrainEffect plug);
59 }
60}
diff --git a/OpenSim/Region/CoreModules/World/Terrain/TerrainModule.cs b/OpenSim/Region/CoreModules/World/Terrain/TerrainModule.cs
index 5893a11..045fbb1 100644
--- a/OpenSim/Region/CoreModules/World/Terrain/TerrainModule.cs
+++ b/OpenSim/Region/CoreModules/World/Terrain/TerrainModule.cs
@@ -82,7 +82,7 @@ namespace OpenSim.Region.CoreModules.World.Terrain
82 private Dictionary<string, ITerrainEffect> m_plugineffects; 82 private Dictionary<string, ITerrainEffect> m_plugineffects;
83 private ITerrainChannel m_revert; 83 private ITerrainChannel m_revert;
84 private Scene m_scene; 84 private Scene m_scene;
85 private bool m_tainted; 85 private volatile bool m_tainted;
86 86
87 #region ICommandableModule Members 87 #region ICommandableModule Members
88 88
@@ -327,6 +327,11 @@ namespace OpenSim.Region.CoreModules.World.Terrain
327 } 327 }
328 } 328 }
329 329
330 public void TaintTerrain ()
331 {
332 CheckForTerrainUpdates();
333 }
334
330 #region Plugin Loading Methods 335 #region Plugin Loading Methods
331 336
332 private void LoadPlugins() 337 private void LoadPlugins()
@@ -1080,6 +1085,8 @@ namespace OpenSim.Region.CoreModules.World.Terrain
1080 m_scene.RegisterModuleCommander(m_commander); 1085 m_scene.RegisterModuleCommander(m_commander);
1081 } 1086 }
1082 1087
1088
1083 #endregion 1089 #endregion
1090
1084 } 1091 }
1085} 1092}