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. --- OpenSim/Region/Environment/Scenes/Scene.Inventory.cs | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'OpenSim/Region/Environment/Scenes/Scene.Inventory.cs') diff --git a/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs b/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs index 5b46040..f3673fc 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs @@ -37,6 +37,19 @@ namespace OpenSim.Region.Environment.Scenes { public partial class Scene { + /// + /// Start all the scripts in the scene which should be started. + /// + public void StartScripts() + { + MainLog.Instance.Verbose("PRIMINVENTORY", "Starting scripts in scene"); + + foreach (SceneObjectGroup group in Entities.Values) + { + group.StartScripts(); + } + } + //split these method into this partial as a lot of these (hopefully) are only temporary and won't be needed once Caps is more complete // or at least some of they can be moved somewhere else -- cgit v1.1