aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Modules/Terrain
diff options
context:
space:
mode:
authorAdam Frisby2008-04-17 14:22:48 +0000
committerAdam Frisby2008-04-17 14:22:48 +0000
commit200b60bd4882ec373e658c6c3440fdb1971af1a6 (patch)
tree029703c2262241afebefcdb7023f9314f7fc2036 /OpenSim/Region/Environment/Modules/Terrain
parent* Added a directory for the SVN module. More about to come.* SVNBackupModule (diff)
downloadopensim-SC_OLD-200b60bd4882ec373e658c6c3440fdb1971af1a6.zip
opensim-SC_OLD-200b60bd4882ec373e658c6c3440fdb1971af1a6.tar.gz
opensim-SC_OLD-200b60bd4882ec373e658c6c3440fdb1971af1a6.tar.bz2
opensim-SC_OLD-200b60bd4882ec373e658c6c3440fdb1971af1a6.tar.xz
* Added ITerrainModule interface to Terrain Module, and registered accordingly in Scene.
Diffstat (limited to 'OpenSim/Region/Environment/Modules/Terrain')
-rw-r--r--OpenSim/Region/Environment/Modules/Terrain/ITerrainModule.cs9
-rw-r--r--OpenSim/Region/Environment/Modules/Terrain/TerrainModule.cs3
2 files changed, 11 insertions, 1 deletions
diff --git a/OpenSim/Region/Environment/Modules/Terrain/ITerrainModule.cs b/OpenSim/Region/Environment/Modules/Terrain/ITerrainModule.cs
new file mode 100644
index 0000000..9e919b5
--- /dev/null
+++ b/OpenSim/Region/Environment/Modules/Terrain/ITerrainModule.cs
@@ -0,0 +1,9 @@
1using System;
2namespace OpenSim.Region.Environment.Modules.Terrain
3{
4 interface ITerrainModule
5 {
6 void LoadFromFile(string filename);
7 void SaveToFile(string filename);
8 }
9}
diff --git a/OpenSim/Region/Environment/Modules/Terrain/TerrainModule.cs b/OpenSim/Region/Environment/Modules/Terrain/TerrainModule.cs
index e9f1785..27bfb36 100644
--- a/OpenSim/Region/Environment/Modules/Terrain/TerrainModule.cs
+++ b/OpenSim/Region/Environment/Modules/Terrain/TerrainModule.cs
@@ -37,7 +37,7 @@ using OpenSim.Region.Environment.Modules.ModuleFramework;
37 37
38namespace OpenSim.Region.Environment.Modules.Terrain 38namespace OpenSim.Region.Environment.Modules.Terrain
39{ 39{
40 public class TerrainModule : IRegionModule, ICommandableModule 40 public class TerrainModule : IRegionModule, ICommandableModule, OpenSim.Region.Environment.Modules.Terrain.ITerrainModule
41 { 41 {
42 public enum StandardTerrainEffects : byte 42 public enum StandardTerrainEffects : byte
43 { 43 {
@@ -217,6 +217,7 @@ namespace OpenSim.Region.Environment.Modules.Terrain
217 UpdateRevertMap(); 217 UpdateRevertMap();
218 } 218 }
219 219
220 m_scene.RegisterModuleInterface<ITerrainModule>(this);
220 m_scene.EventManager.OnNewClient += EventManager_OnNewClient; 221 m_scene.EventManager.OnNewClient += EventManager_OnNewClient;
221 m_scene.EventManager.OnPluginConsole += EventManager_OnPluginConsole; 222 m_scene.EventManager.OnPluginConsole += EventManager_OnPluginConsole;
222 m_scene.EventManager.OnTerrainTick += EventManager_OnTerrainTick; 223 m_scene.EventManager.OnTerrainTick += EventManager_OnTerrainTick;