From 9a0ef22ed979433f4d017a252173f38fe5e56892 Mon Sep 17 00:00:00 2001 From: Charles Krinke Date: Sat, 28 Jun 2008 16:08:12 +0000 Subject: Mantis#1616. Applied Melanie's patch. This may or may not break trunk. --- .../Scenes/SceneObjectGroup.Inventory.cs | 91 +--------------------- 1 file changed, 4 insertions(+), 87 deletions(-) (limited to 'OpenSim/Region/Environment/Scenes/SceneObjectGroup.Inventory.cs') diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.Inventory.cs b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.Inventory.cs index aea433e..799cb41 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.Inventory.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.Inventory.cs @@ -39,115 +39,32 @@ namespace OpenSim.Region.Environment.Scenes private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); /// - /// Start a given script. - /// - /// - /// A - /// - public void StartScript(uint localID, LLUUID itemID) - { - SceneObjectPart part = GetChildPart(localID); - if (part != null) - { - - part.StartScript(itemID); - - } - else - { - m_log.ErrorFormat( - "[PRIM INVENTORY]: " + - "Couldn't find part {0} in object group {1}, {2} to start script with ID {3}", - localID, Name, UUID, itemID); - } - } - -// /// Start a given script. -// /// -// /// -// /// A -// /// -// public void StartScript(LLUUID partID, LLUUID itemID) -// { -// SceneObjectPart part = GetChildPart(partID); -// if (part != null) -// { -// part.StartScript(itemID); -// } -// else -// { -// m_log.ErrorFormat( -// "[PRIM INVENTORY]: " + -// "Couldn't find part {0} in object group {1}, {2} to start script with ID {3}", -// localID, Name, UUID, itemID); -// } -// } - - /// /// Start the scripts contained in all the prims in this group. /// - public void StartScripts() + public void CreateScriptInstances(int startParam, bool postOnRez) { // Don't start scripts if they're turned off in the region! if (!((m_scene.RegionInfo.EstateSettings.regionFlags & Simulator.RegionFlags.SkipScripts) == Simulator.RegionFlags.SkipScripts)) { foreach (SceneObjectPart part in m_parts.Values) { - part.StartScripts(); + part.CreateScriptInstances(startParam, postOnRez); } } } - /// - /// Start the scripts contained in all the prims in this group. - /// - public void StartScripts(int param) - { - // Don't start scripts if they're turned off in the region! - if (!((m_scene.RegionInfo.EstateSettings.regionFlags & Simulator.RegionFlags.SkipScripts) == Simulator.RegionFlags.SkipScripts)) - { - foreach (SceneObjectPart part in m_parts.Values) - { - part.StartScripts(param); - } - } - } - - public void StopScripts() + public void RemoveScriptInstances() { lock (m_parts) { foreach (SceneObjectPart part in m_parts.Values) { - part.StopScripts(); + part.RemoveScriptInstances(); } } } /// - /// Start a given script. - /// - /// - /// A - /// - public void StopScript(uint partID, LLUUID itemID) - { - SceneObjectPart part = GetChildPart(partID); - if (part != null) - { - part.StopScript(itemID); - part.RemoveScriptEvents(itemID); - } - else - { - m_log.ErrorFormat( - "[PRIM INVENTORY]: " + - "Couldn't find part {0} in object group {1}, {2} to stop script with ID {3}", - partID, Name, UUID, itemID); - } - } - - /// /// /// /// -- cgit v1.1