* Added help command to terrain filters.
parent
526fe8aae0
commit
0ba98acc1c
|
@ -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":
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue