diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/OptionalModules/Scripting/Minimodule/Host.cs | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/OpenSim/Region/OptionalModules/Scripting/Minimodule/Host.cs b/OpenSim/Region/OptionalModules/Scripting/Minimodule/Host.cs index 394e024..f5953d0 100644 --- a/OpenSim/Region/OptionalModules/Scripting/Minimodule/Host.cs +++ b/OpenSim/Region/OptionalModules/Scripting/Minimodule/Host.cs | |||
@@ -27,6 +27,7 @@ | |||
27 | 27 | ||
28 | using System.Reflection; | 28 | using System.Reflection; |
29 | using log4net; | 29 | using log4net; |
30 | using OpenSim.Region.Framework.Scenes; | ||
30 | 31 | ||
31 | namespace OpenSim.Region.OptionalModules.Scripting.Minimodule | 32 | namespace OpenSim.Region.OptionalModules.Scripting.Minimodule |
32 | { | 33 | { |
@@ -34,10 +35,15 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule | |||
34 | { | 35 | { |
35 | private readonly IObject m_obj; | 36 | private readonly IObject m_obj; |
36 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); | 37 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); |
38 | private readonly IGraphics m_graphics; | ||
39 | private Scene m_scene; | ||
37 | 40 | ||
38 | public Host(IObject m_obj) | 41 | public Host(IObject m_obj, Scene m_scene) |
39 | { | 42 | { |
40 | this.m_obj = m_obj; | 43 | this.m_obj = m_obj; |
44 | this.m_scene = m_scene; | ||
45 | |||
46 | m_graphics = new Graphics(m_scene); | ||
41 | } | 47 | } |
42 | 48 | ||
43 | public IObject Object | 49 | public IObject Object |
@@ -49,5 +55,10 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule | |||
49 | { | 55 | { |
50 | get { return m_log; } | 56 | get { return m_log; } |
51 | } | 57 | } |
58 | |||
59 | public IGraphics Graphics | ||
60 | { | ||
61 | get { return m_graphics; } | ||
62 | } | ||
52 | } | 63 | } |
53 | } | 64 | } |