From 3e75dede1b744fa9a6b7cad00039620de01fb2e2 Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Mon, 7 Jan 2008 02:12:06 +0000 Subject: Persistent prim inventory phase 5. Restart scripts contained in persisted prims on region start. No user functionality exposed yet - no ini switch to enable persistence or restore. A bit more initial work to do. --- .../Environment/Scenes/SceneObjectGroup.Inventory.cs | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 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 046e05b..50e3fa7 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.Inventory.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.Inventory.cs @@ -37,7 +37,18 @@ using OpenSim.Region.Environment.Interfaces; namespace OpenSim.Region.Environment.Scenes { public partial class SceneObjectGroup : EntityBase - { + { + /// + /// Start the scripts contained in all the prims in this group. + /// + public void StartScripts() + { + foreach (SceneObjectPart part in m_parts.Values) + { + part.StartScripts(); + } + } + /// /// /// @@ -131,6 +142,6 @@ namespace OpenSim.Region.Environment.Scenes return part.RemoveInventoryItem(remoteClient, localID, itemID); } return -1; - } + } } } \ No newline at end of file -- cgit v1.1