diff options
Diffstat (limited to 'OpenSim/OpenSim.Region/Scenes/Scene.cs')
-rw-r--r-- | OpenSim/OpenSim.Region/Scenes/Scene.cs | 22 |
1 files changed, 4 insertions, 18 deletions
diff --git a/OpenSim/OpenSim.Region/Scenes/Scene.cs b/OpenSim/OpenSim.Region/Scenes/Scene.cs index bf2244e..f7d90fa 100644 --- a/OpenSim/OpenSim.Region/Scenes/Scene.cs +++ b/OpenSim/OpenSim.Region/Scenes/Scene.cs | |||
@@ -39,12 +39,12 @@ using OpenSim.Framework.Interfaces; | |||
39 | using OpenSim.Framework.Types; | 39 | using OpenSim.Framework.Types; |
40 | using OpenSim.Framework.Inventory; | 40 | using OpenSim.Framework.Inventory; |
41 | using OpenSim.Framework; | 41 | using OpenSim.Framework; |
42 | using OpenSim.Region.Scripting; | ||
43 | using OpenSim.Terrain; | 42 | using OpenSim.Terrain; |
44 | using OpenGrid.Framework.Communications; | 43 | using OpenGrid.Framework.Communications; |
45 | using OpenSim.Caches; | 44 | using OpenSim.Caches; |
46 | using OpenSim.Region; | 45 | using OpenSim.Region; |
47 | using OpenSim.Servers; | 46 | using OpenSim.Servers; |
47 | using OpenSim.Scripting; | ||
48 | 48 | ||
49 | namespace OpenSim.Region.Scenes | 49 | namespace OpenSim.Region.Scenes |
50 | { | 50 | { |
@@ -60,8 +60,6 @@ namespace OpenSim.Region.Scenes | |||
60 | private Random Rand = new Random(); | 60 | private Random Rand = new Random(); |
61 | private uint _primCount = 702000; | 61 | private uint _primCount = 702000; |
62 | private int storageCount; | 62 | private int storageCount; |
63 | private Dictionary<LLUUID, ScriptHandler> m_scriptHandlers; | ||
64 | private Dictionary<string, ScriptFactory> m_scripts; | ||
65 | private Mutex updateLock; | 63 | private Mutex updateLock; |
66 | 64 | ||
67 | protected AuthenticateSessionsBase authenticateHandler; | 65 | protected AuthenticateSessionsBase authenticateHandler; |
@@ -74,6 +72,7 @@ namespace OpenSim.Region.Scenes | |||
74 | public ParcelManager parcelManager; | 72 | public ParcelManager parcelManager; |
75 | public EstateManager estateManager; | 73 | public EstateManager estateManager; |
76 | public EventManager eventManager; | 74 | public EventManager eventManager; |
75 | public ScriptManager scriptManager; | ||
77 | 76 | ||
78 | #region Properties | 77 | #region Properties |
79 | /// <summary> | 78 | /// <summary> |
@@ -117,12 +116,9 @@ namespace OpenSim.Region.Scenes | |||
117 | 116 | ||
118 | parcelManager = new ParcelManager(this, this.m_regInfo); | 117 | parcelManager = new ParcelManager(this, this.m_regInfo); |
119 | estateManager = new EstateManager(this, this.m_regInfo); | 118 | estateManager = new EstateManager(this, this.m_regInfo); |
120 | 119 | scriptManager = new ScriptManager(this); | |
121 | eventManager = new EventManager(); | 120 | eventManager = new EventManager(); |
122 | 121 | ||
123 | m_scriptHandlers = new Dictionary<LLUUID, ScriptHandler>(); | ||
124 | m_scripts = new Dictionary<string, ScriptFactory>(); | ||
125 | |||
126 | OpenSim.Framework.Console.MainLog.Instance.Verbose( "World.cs - creating new entitities instance"); | 122 | OpenSim.Framework.Console.MainLog.Instance.Verbose( "World.cs - creating new entitities instance"); |
127 | Entities = new Dictionary<libsecondlife.LLUUID, Entity>(); | 123 | Entities = new Dictionary<libsecondlife.LLUUID, Entity>(); |
128 | Avatars = new Dictionary<LLUUID, ScenePresence>(); | 124 | Avatars = new Dictionary<LLUUID, ScenePresence>(); |
@@ -195,19 +191,9 @@ namespace OpenSim.Region.Scenes | |||
195 | Entities[UUID].update(); | 191 | Entities[UUID].update(); |
196 | } | 192 | } |
197 | 193 | ||
198 | // New | 194 | // General purpose event manager |
199 | eventManager.TriggerOnFrame(); | 195 | eventManager.TriggerOnFrame(); |
200 | 196 | ||
201 | // TODO: Obsolete - Phase out | ||
202 | foreach (ScriptHandler scriptHandler in m_scriptHandlers.Values) | ||
203 | { | ||
204 | scriptHandler.OnFrame(); | ||
205 | } | ||
206 | foreach (IScriptEngine scripteng in this.scriptEngines.Values) | ||
207 | { | ||
208 | scripteng.OnFrame(); | ||
209 | } | ||
210 | |||
211 | //backup world data | 197 | //backup world data |
212 | this.storageCount++; | 198 | this.storageCount++; |
213 | if (storageCount > 1200) //set to how often you want to backup | 199 | if (storageCount > 1200) //set to how often you want to backup |