* Added help command to terrain filters.

Sugilite
Adam Frisby 2007-06-26 04:51:24 +00:00
parent 526fe8aae0
commit 0ba98acc1c
2 changed files with 11 additions and 0 deletions

View File

@ -202,6 +202,11 @@ namespace OpenSim.Terrain
resultText += "terrain bake - saves the current terrain into the revert map\n"; resultText += "terrain bake - saves the current terrain into the revert map\n";
resultText += "terrain csfilter <filename.cs> - loads a new filter from the specified .cs file\n"; resultText += "terrain csfilter <filename.cs> - loads a new filter from the specified .cs file\n";
resultText += "terrain jsfilter <filename.js> - loads a new filter from the specified .js file\n"; resultText += "terrain jsfilter <filename.js> - loads a new filter from the specified .js file\n";
foreach (KeyValuePair<string, ITerrainFilter> filter in customFilters.filters)
{
resultText += filter.Value.Help();
}
return false; return false;
case "revert": case "revert":

View File

@ -15,6 +15,7 @@ namespace OpenSim.Terrain
{ {
void Filter(Channel heightmap, string[] args); void Filter(Channel heightmap, string[] args);
string Register(); string Register();
string Help();
} }
public class TestFilter : ITerrainFilter public class TestFilter : ITerrainFilter
@ -28,6 +29,11 @@ namespace OpenSim.Terrain
{ {
return "demofilter"; return "demofilter";
} }
public string Help()
{
return "demofilter - Does nothing";
}
} }
public class FilterHost public class FilterHost