aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Interfaces
diff options
context:
space:
mode:
authorAdam Frisby2008-03-30 09:03:38 +0000
committerAdam Frisby2008-03-30 09:03:38 +0000
commitfadd19f3140107d7c09e7a82a97dfb490146ccb9 (patch)
tree3ce4581ef1af79d451f0b24ce50128f09482f386 /OpenSim/Region/Environment/Interfaces
parentThis update has good news and bad news, first the bad. (diff)
downloadopensim-SC_OLD-fadd19f3140107d7c09e7a82a97dfb490146ccb9.zip
opensim-SC_OLD-fadd19f3140107d7c09e7a82a97dfb490146ccb9.tar.gz
opensim-SC_OLD-fadd19f3140107d7c09e7a82a97dfb490146ccb9.tar.bz2
opensim-SC_OLD-fadd19f3140107d7c09e7a82a97dfb490146ccb9.tar.xz
**Big ass update warning**
* Renamed plugin console message, to send a message to a plugin, use either "plugin <message>", or any unrecognised message will be sent ("plugin" sends explicitly) This replaces the old "script <message>". * Terrain commands - "terrain <command>" now works again. "Script terrain <command>" does not. Many of the commands have now been reimplemented, eg load-tile. However some have new syntax. * New console command handler, you can now use things like "terrain help" or "terrain save help". See TerrainModule.cs for an example of how to use the new "Commander" class. * Commander class - advanced processing of console input and also enables a script API to be generated from registered console commands.
Diffstat (limited to 'OpenSim/Region/Environment/Interfaces')
-rw-r--r--OpenSim/Region/Environment/Interfaces/ICommand.cs16
-rw-r--r--OpenSim/Region/Environment/Interfaces/ICommandableModule.cs16
-rw-r--r--OpenSim/Region/Environment/Interfaces/ICommander.cs14
3 files changed, 46 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Interfaces/ICommand.cs b/OpenSim/Region/Environment/Interfaces/ICommand.cs
new file mode 100644
index 0000000..bccd8d3
--- /dev/null
+++ b/OpenSim/Region/Environment/Interfaces/ICommand.cs
@@ -0,0 +1,16 @@
1using System;
2
3using OpenSim.Region.Environment.Modules.ModuleFramework;
4
5namespace OpenSim.Region.Environment.Interfaces
6{
7 public interface ICommand
8 {
9 void AddArgument(string name, string helptext, string type);
10 System.Collections.Generic.Dictionary<string, string> Arguments { get; }
11 string Help { get; }
12 string Name { get; }
13 void Run(object[] args);
14 void ShowConsoleHelp();
15 }
16}
diff --git a/OpenSim/Region/Environment/Interfaces/ICommandableModule.cs b/OpenSim/Region/Environment/Interfaces/ICommandableModule.cs
new file mode 100644
index 0000000..31ef49b
--- /dev/null
+++ b/OpenSim/Region/Environment/Interfaces/ICommandableModule.cs
@@ -0,0 +1,16 @@
1using System;
2using System.Collections.Generic;
3using System.Text;
4
5using OpenSim.Region.Environment.Modules.ModuleFramework;
6
7namespace OpenSim.Region.Environment.Interfaces
8{
9 public interface ICommandableModule
10 {
11 ICommander CommandInterface
12 {
13 get;
14 }
15 }
16}
diff --git a/OpenSim/Region/Environment/Interfaces/ICommander.cs b/OpenSim/Region/Environment/Interfaces/ICommander.cs
new file mode 100644
index 0000000..93a9956
--- /dev/null
+++ b/OpenSim/Region/Environment/Interfaces/ICommander.cs
@@ -0,0 +1,14 @@
1using System;
2
3using OpenSim.Region.Environment.Modules.ModuleFramework;
4
5namespace OpenSim.Region.Environment.Interfaces
6{
7 public interface ICommander
8 {
9 void ProcessConsoleCommand(string function, string[] args);
10 void RegisterCommand(string commandName, ICommand command);
11 void Run(string function, object[] args);
12 string GenerateRuntimeAPI();
13 }
14}