diff options
-rw-r--r-- | OpenSim/Region/Environment/Modules/Terrain/ITerrainModule.cs | 9 | ||||
-rw-r--r-- | OpenSim/Region/Environment/Modules/Terrain/TerrainModule.cs | 3 |
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 @@ | |||
1 | using System; | ||
2 | namespace 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 | ||
38 | namespace OpenSim.Region.Environment.Modules.Terrain | 38 | namespace 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; |