diff options
Diffstat (limited to 'OpenSim/Region/Environment/Interfaces')
-rw-r--r-- | OpenSim/Region/Environment/Interfaces/ICommand.cs | 16 | ||||
-rw-r--r-- | OpenSim/Region/Environment/Interfaces/ICommandableModule.cs | 16 | ||||
-rw-r--r-- | OpenSim/Region/Environment/Interfaces/ICommander.cs | 14 |
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 @@ | |||
1 | using System; | ||
2 | |||
3 | using OpenSim.Region.Environment.Modules.ModuleFramework; | ||
4 | |||
5 | namespace 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 @@ | |||
1 | using System; | ||
2 | using System.Collections.Generic; | ||
3 | using System.Text; | ||
4 | |||
5 | using OpenSim.Region.Environment.Modules.ModuleFramework; | ||
6 | |||
7 | namespace 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 @@ | |||
1 | using System; | ||
2 | |||
3 | using OpenSim.Region.Environment.Modules.ModuleFramework; | ||
4 | |||
5 | namespace 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 | } | ||