diff options
author | Tedd Hansen | 2007-08-22 18:41:31 +0000 |
---|---|---|
committer | Tedd Hansen | 2007-08-22 18:41:31 +0000 |
commit | 0eadb7591eef84b082b81e8f5df941c0c1f7725a (patch) | |
tree | 370409f1a6321cb0c1240f8f3bb927d51d461a81 /OpenSim/Region/ScriptEngine/DotNetEngine/EventManager.cs | |
parent | Added OnRemoveScript(uint localID, LLUUID itemID) event , trigged when a scri... (diff) | |
download | opensim-SC_OLD-0eadb7591eef84b082b81e8f5df941c0c1f7725a.zip opensim-SC_OLD-0eadb7591eef84b082b81e8f5df941c0c1f7725a.tar.gz opensim-SC_OLD-0eadb7591eef84b082b81e8f5df941c0c1f7725a.tar.bz2 opensim-SC_OLD-0eadb7591eef84b082b81e8f5df941c0c1f7725a.tar.xz |
Added OnRemoveScript event handler to ScriptEngine. Fixed event queuing of empty objects crash.
Diffstat (limited to 'OpenSim/Region/ScriptEngine/DotNetEngine/EventManager.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/DotNetEngine/EventManager.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/EventManager.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/EventManager.cs index 92afcf3..4343ea1 100644 --- a/OpenSim/Region/ScriptEngine/DotNetEngine/EventManager.cs +++ b/OpenSim/Region/ScriptEngine/DotNetEngine/EventManager.cs | |||
@@ -54,6 +54,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine | |||
54 | //myScriptEngine.Log.Verbose("ScriptEngine", "EventManager Hooking up to server events"); | 54 | //myScriptEngine.Log.Verbose("ScriptEngine", "EventManager Hooking up to server events"); |
55 | myScriptEngine.World.EventManager.OnObjectGrab += new OpenSim.Region.Environment.Scenes.EventManager.ObjectGrabDelegate(touch_start); | 55 | myScriptEngine.World.EventManager.OnObjectGrab += new OpenSim.Region.Environment.Scenes.EventManager.ObjectGrabDelegate(touch_start); |
56 | myScriptEngine.World.EventManager.OnRezScript += new OpenSim.Region.Environment.Scenes.EventManager.NewRezScript(OnRezScript); | 56 | myScriptEngine.World.EventManager.OnRezScript += new OpenSim.Region.Environment.Scenes.EventManager.NewRezScript(OnRezScript); |
57 | myScriptEngine.World.EventManager.OnRemoveScript += new OpenSim.Region.Environment.Scenes.EventManager.RemoveScript(OnRemoveScript); | ||
57 | 58 | ||
58 | } | 59 | } |
59 | 60 | ||
@@ -73,6 +74,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine | |||
73 | // Path.Combine("ScriptEngines", "Default.lsl"), | 74 | // Path.Combine("ScriptEngines", "Default.lsl"), |
74 | // new OpenSim.Region.Environment.Scenes.Scripting.NullScriptHost() | 75 | // new OpenSim.Region.Environment.Scenes.Scripting.NullScriptHost() |
75 | //); | 76 | //); |
77 | Console.WriteLine("OnRezScript localID: " + localID + " LLUID: " + itemID.ToString() + " Size: " + script.Length); | ||
76 | myScriptEngine.myScriptManager.StartScript( | 78 | myScriptEngine.myScriptManager.StartScript( |
77 | localID, | 79 | localID, |
78 | itemID, | 80 | itemID, |
@@ -80,7 +82,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine | |||
80 | ); | 82 | ); |
81 | 83 | ||
82 | } | 84 | } |
83 | public void OnDeRezScript(uint localID, LLUUID itemID) | 85 | public void OnRemoveScript(uint localID, LLUUID itemID) |
84 | { | 86 | { |
85 | //myScriptEngine.myScriptManager.StartScript( | 87 | //myScriptEngine.myScriptManager.StartScript( |
86 | // Path.Combine("ScriptEngines", "Default.lsl"), | 88 | // Path.Combine("ScriptEngines", "Default.lsl"), |