aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorAdam Frisby2007-06-26 04:51:24 +0000
committerAdam Frisby2007-06-26 04:51:24 +0000
commit0ba98acc1c2aaea5504e54a45929a3ead1f3618a (patch)
tree3815dd7af9820550e9a5be65af8ddcc4cdd5996e
parent* Updated demo (diff)
downloadopensim-SC_OLD-0ba98acc1c2aaea5504e54a45929a3ead1f3618a.zip
opensim-SC_OLD-0ba98acc1c2aaea5504e54a45929a3ead1f3618a.tar.gz
opensim-SC_OLD-0ba98acc1c2aaea5504e54a45929a3ead1f3618a.tar.bz2
opensim-SC_OLD-0ba98acc1c2aaea5504e54a45929a3ead1f3618a.tar.xz
* Added help command to terrain filters.
-rw-r--r--OpenSim/OpenSim.Terrain.BasicTerrain/TerrainEngine.cs5
-rw-r--r--OpenSim/OpenSim.Terrain.BasicTerrain/TerrainFilter.cs6
2 files changed, 11 insertions, 0 deletions
diff --git a/OpenSim/OpenSim.Terrain.BasicTerrain/TerrainEngine.cs b/OpenSim/OpenSim.Terrain.BasicTerrain/TerrainEngine.cs
index 2bda5ba..4f989fa 100644
--- a/OpenSim/OpenSim.Terrain.BasicTerrain/TerrainEngine.cs
+++ b/OpenSim/OpenSim.Terrain.BasicTerrain/TerrainEngine.cs
@@ -202,6 +202,11 @@ namespace OpenSim.Terrain
202 resultText += "terrain bake - saves the current terrain into the revert map\n"; 202 resultText += "terrain bake - saves the current terrain into the revert map\n";
203 resultText += "terrain csfilter <filename.cs> - loads a new filter from the specified .cs file\n"; 203 resultText += "terrain csfilter <filename.cs> - loads a new filter from the specified .cs file\n";
204 resultText += "terrain jsfilter <filename.js> - loads a new filter from the specified .js file\n"; 204 resultText += "terrain jsfilter <filename.js> - loads a new filter from the specified .js file\n";
205 foreach (KeyValuePair<string, ITerrainFilter> filter in customFilters.filters)
206 {
207 resultText += filter.Value.Help();
208 }
209
205 return false; 210 return false;
206 211
207 case "revert": 212 case "revert":
diff --git a/OpenSim/OpenSim.Terrain.BasicTerrain/TerrainFilter.cs b/OpenSim/OpenSim.Terrain.BasicTerrain/TerrainFilter.cs
index 6a83c8a..689375d 100644
--- a/OpenSim/OpenSim.Terrain.BasicTerrain/TerrainFilter.cs
+++ b/OpenSim/OpenSim.Terrain.BasicTerrain/TerrainFilter.cs
@@ -15,6 +15,7 @@ namespace OpenSim.Terrain
15 { 15 {
16 void Filter(Channel heightmap, string[] args); 16 void Filter(Channel heightmap, string[] args);
17 string Register(); 17 string Register();
18 string Help();
18 } 19 }
19 20
20 public class TestFilter : ITerrainFilter 21 public class TestFilter : ITerrainFilter
@@ -28,6 +29,11 @@ namespace OpenSim.Terrain
28 { 29 {
29 return "demofilter"; 30 return "demofilter";
30 } 31 }
32
33 public string Help()
34 {
35 return "demofilter - Does nothing";
36 }
31 } 37 }
32 38
33 public class FilterHost 39 public class FilterHost