From 0ba98acc1c2aaea5504e54a45929a3ead1f3618a Mon Sep 17 00:00:00 2001 From: Adam Frisby Date: Tue, 26 Jun 2007 04:51:24 +0000 Subject: [PATCH] * Added help command to terrain filters. --- OpenSim/OpenSim.Terrain.BasicTerrain/TerrainEngine.cs | 5 +++++ OpenSim/OpenSim.Terrain.BasicTerrain/TerrainFilter.cs | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/OpenSim/OpenSim.Terrain.BasicTerrain/TerrainEngine.cs b/OpenSim/OpenSim.Terrain.BasicTerrain/TerrainEngine.cs index 2bda5ba4e2..4f989fa39c 100644 --- a/OpenSim/OpenSim.Terrain.BasicTerrain/TerrainEngine.cs +++ b/OpenSim/OpenSim.Terrain.BasicTerrain/TerrainEngine.cs @@ -202,6 +202,11 @@ namespace OpenSim.Terrain resultText += "terrain bake - saves the current terrain into the revert map\n"; resultText += "terrain csfilter - loads a new filter from the specified .cs file\n"; resultText += "terrain jsfilter - loads a new filter from the specified .js file\n"; + foreach (KeyValuePair filter in customFilters.filters) + { + resultText += filter.Value.Help(); + } + return false; case "revert": diff --git a/OpenSim/OpenSim.Terrain.BasicTerrain/TerrainFilter.cs b/OpenSim/OpenSim.Terrain.BasicTerrain/TerrainFilter.cs index 6a83c8a738..689375d786 100644 --- a/OpenSim/OpenSim.Terrain.BasicTerrain/TerrainFilter.cs +++ b/OpenSim/OpenSim.Terrain.BasicTerrain/TerrainFilter.cs @@ -15,6 +15,7 @@ namespace OpenSim.Terrain { void Filter(Channel heightmap, string[] args); string Register(); + string Help(); } public class TestFilter : ITerrainFilter @@ -28,6 +29,11 @@ namespace OpenSim.Terrain { return "demofilter"; } + + public string Help() + { + return "demofilter - Does nothing"; + } } public class FilterHost