diff options
Diffstat (limited to 'OpenSim/Region/ScriptEngine/XEngine/EventManager.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/XEngine/EventManager.cs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/XEngine/EventManager.cs b/OpenSim/Region/ScriptEngine/XEngine/EventManager.cs index 2632948..b1b82e5 100644 --- a/OpenSim/Region/ScriptEngine/XEngine/EventManager.cs +++ b/OpenSim/Region/ScriptEngine/XEngine/EventManager.cs | |||
@@ -28,6 +28,7 @@ | |||
28 | using System; | 28 | using System; |
29 | using System.Collections; | 29 | using System.Collections; |
30 | using System.Collections.Generic; | 30 | using System.Collections.Generic; |
31 | using System.Reflection; | ||
31 | using OpenMetaverse; | 32 | using OpenMetaverse; |
32 | using OpenSim.Framework; | 33 | using OpenSim.Framework; |
33 | using OpenSim.Region.CoreModules.Avatar.Currency.SampleMoney; | 34 | using OpenSim.Region.CoreModules.Avatar.Currency.SampleMoney; |
@@ -35,6 +36,7 @@ using OpenSim.Region.Framework.Scenes; | |||
35 | using OpenSim.Region.Framework.Interfaces; | 36 | using OpenSim.Region.Framework.Interfaces; |
36 | using OpenSim.Region.ScriptEngine.Shared; | 37 | using OpenSim.Region.ScriptEngine.Shared; |
37 | using OpenSim.Region.ScriptEngine.Interfaces; | 38 | using OpenSim.Region.ScriptEngine.Interfaces; |
39 | using log4net; | ||
38 | 40 | ||
39 | namespace OpenSim.Region.ScriptEngine.XEngine | 41 | namespace OpenSim.Region.ScriptEngine.XEngine |
40 | { | 42 | { |
@@ -43,13 +45,15 @@ namespace OpenSim.Region.ScriptEngine.XEngine | |||
43 | /// </summary> | 45 | /// </summary> |
44 | public class EventManager | 46 | public class EventManager |
45 | { | 47 | { |
48 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); | ||
49 | |||
46 | private XEngine myScriptEngine; | 50 | private XEngine myScriptEngine; |
47 | 51 | ||
48 | public EventManager(XEngine _ScriptEngine) | 52 | public EventManager(XEngine _ScriptEngine) |
49 | { | 53 | { |
50 | myScriptEngine = _ScriptEngine; | 54 | myScriptEngine = _ScriptEngine; |
51 | 55 | ||
52 | myScriptEngine.Log.Info("[XEngine] Hooking up to server events"); | 56 | m_log.Info("[XEngine] Hooking up to server events"); |
53 | myScriptEngine.World.EventManager.OnObjectGrab += touch_start; | 57 | myScriptEngine.World.EventManager.OnObjectGrab += touch_start; |
54 | myScriptEngine.World.EventManager.OnObjectDeGrab += touch_end; | 58 | myScriptEngine.World.EventManager.OnObjectDeGrab += touch_end; |
55 | myScriptEngine.World.EventManager.OnScriptChangedEvent += changed; | 59 | myScriptEngine.World.EventManager.OnScriptChangedEvent += changed; |