diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/OpenSim.Region/Scenes/Scene.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/OpenSim/OpenSim.Region/Scenes/Scene.cs b/OpenSim/OpenSim.Region/Scenes/Scene.cs index 426dd50..fd78fd6 100644 --- a/OpenSim/OpenSim.Region/Scenes/Scene.cs +++ b/OpenSim/OpenSim.Region/Scenes/Scene.cs | |||
@@ -73,6 +73,7 @@ namespace OpenSim.Region.Scenes | |||
73 | 73 | ||
74 | public ParcelManager parcelManager; | 74 | public ParcelManager parcelManager; |
75 | public EstateManager estateManager; | 75 | public EstateManager estateManager; |
76 | public EventManager eventManager; | ||
76 | 77 | ||
77 | #region Properties | 78 | #region Properties |
78 | /// <summary> | 79 | /// <summary> |
@@ -117,6 +118,8 @@ namespace OpenSim.Region.Scenes | |||
117 | parcelManager = new ParcelManager(this, this.m_regInfo); | 118 | parcelManager = new ParcelManager(this, this.m_regInfo); |
118 | estateManager = new EstateManager(this, this.m_regInfo); | 119 | estateManager = new EstateManager(this, this.m_regInfo); |
119 | 120 | ||
121 | eventManager = new EventManager(); | ||
122 | |||
120 | m_scriptHandlers = new Dictionary<LLUUID, ScriptHandler>(); | 123 | m_scriptHandlers = new Dictionary<LLUUID, ScriptHandler>(); |
121 | m_scripts = new Dictionary<string, ScriptFactory>(); | 124 | m_scripts = new Dictionary<string, ScriptFactory>(); |
122 | 125 | ||
@@ -192,6 +195,10 @@ namespace OpenSim.Region.Scenes | |||
192 | Entities[UUID].update(); | 195 | Entities[UUID].update(); |
193 | } | 196 | } |
194 | 197 | ||
198 | // New | ||
199 | eventManager.TriggerOnFrame(); | ||
200 | |||
201 | // TODO: Obsolete - Phase out | ||
195 | foreach (ScriptHandler scriptHandler in m_scriptHandlers.Values) | 202 | foreach (ScriptHandler scriptHandler in m_scriptHandlers.Values) |
196 | { | 203 | { |
197 | scriptHandler.OnFrame(); | 204 | scriptHandler.OnFrame(); |
@@ -200,6 +207,7 @@ namespace OpenSim.Region.Scenes | |||
200 | { | 207 | { |
201 | scripteng.OnFrame(); | 208 | scripteng.OnFrame(); |
202 | } | 209 | } |
210 | |||
203 | //backup world data | 211 | //backup world data |
204 | this.storageCount++; | 212 | this.storageCount++; |
205 | if (storageCount > 1200) //set to how often you want to backup | 213 | if (storageCount > 1200) //set to how often you want to backup |