diff options
Diffstat (limited to 'OpenSim/Region/OptionalModules/Scripting/Minimodule/Interfaces')
-rw-r--r-- | OpenSim/Region/OptionalModules/Scripting/Minimodule/Interfaces/IExtension.cs | 13 | ||||
-rw-r--r-- | OpenSim/Region/OptionalModules/Scripting/Minimodule/Interfaces/IHost.cs | 2 |
2 files changed, 15 insertions, 0 deletions
diff --git a/OpenSim/Region/OptionalModules/Scripting/Minimodule/Interfaces/IExtension.cs b/OpenSim/Region/OptionalModules/Scripting/Minimodule/Interfaces/IExtension.cs new file mode 100644 index 0000000..b58e600 --- /dev/null +++ b/OpenSim/Region/OptionalModules/Scripting/Minimodule/Interfaces/IExtension.cs | |||
@@ -0,0 +1,13 @@ | |||
1 | using System; | ||
2 | using System.Collections.Generic; | ||
3 | using System.Text; | ||
4 | |||
5 | namespace OpenSim.Region.OptionalModules.Scripting.Minimodule.Interfaces | ||
6 | { | ||
7 | public interface IExtension | ||
8 | { | ||
9 | T Get<T>(); | ||
10 | bool TryGet<T>(out T extension); | ||
11 | bool Has<T>(); | ||
12 | } | ||
13 | } | ||
diff --git a/OpenSim/Region/OptionalModules/Scripting/Minimodule/Interfaces/IHost.cs b/OpenSim/Region/OptionalModules/Scripting/Minimodule/Interfaces/IHost.cs index 6c76919..fd73ffd 100644 --- a/OpenSim/Region/OptionalModules/Scripting/Minimodule/Interfaces/IHost.cs +++ b/OpenSim/Region/OptionalModules/Scripting/Minimodule/Interfaces/IHost.cs | |||
@@ -29,6 +29,7 @@ using System; | |||
29 | using System.Collections.Generic; | 29 | using System.Collections.Generic; |
30 | using System.Text; | 30 | using System.Text; |
31 | using log4net; | 31 | using log4net; |
32 | using OpenSim.Region.OptionalModules.Scripting.Minimodule.Interfaces; | ||
32 | 33 | ||
33 | namespace OpenSim.Region.OptionalModules.Scripting.Minimodule | 34 | namespace OpenSim.Region.OptionalModules.Scripting.Minimodule |
34 | { | 35 | { |
@@ -37,5 +38,6 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule | |||
37 | IObject Object { get; } | 38 | IObject Object { get; } |
38 | ILog Console { get; } | 39 | ILog Console { get; } |
39 | IGraphics Graphics { get; } | 40 | IGraphics Graphics { get; } |
41 | IExtension Extensions { get; } | ||
40 | } | 42 | } |
41 | } | 43 | } |