diff options
author | Adam Frisby | 2008-04-17 14:22:48 +0000 |
---|---|---|
committer | Adam Frisby | 2008-04-17 14:22:48 +0000 |
commit | 200b60bd4882ec373e658c6c3440fdb1971af1a6 (patch) | |
tree | 029703c2262241afebefcdb7023f9314f7fc2036 /OpenSim/Region/Environment/Modules/Terrain | |
parent | * Added a directory for the SVN module. More about to come.* SVNBackupModule (diff) | |
download | opensim-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.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; |