aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/EventManager.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Environment/Scenes/EventManager.cs89
1 files changed, 89 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Scenes/EventManager.cs b/OpenSim/Region/Environment/Scenes/EventManager.cs
index e0a24a6..f8eef82 100644
--- a/OpenSim/Region/Environment/Scenes/EventManager.cs
+++ b/OpenSim/Region/Environment/Scenes/EventManager.cs
@@ -30,6 +30,7 @@ using libsecondlife;
30using OpenSim.Framework; 30using OpenSim.Framework;
31using OpenSim.Region.Environment.Interfaces; 31using OpenSim.Region.Environment.Interfaces;
32using Caps=OpenSim.Framework.Communications.Capabilities.Caps; 32using Caps=OpenSim.Framework.Communications.Capabilities.Caps;
33using System.Collections.Generic;
33 34
34namespace OpenSim.Region.Environment.Scenes 35namespace OpenSim.Region.Environment.Scenes
35{ 36{
@@ -169,6 +170,26 @@ namespace OpenSim.Region.Environment.Scenes
169 170
170 public event AvatarKillData OnAvatarKilled; 171 public event AvatarKillData OnAvatarKilled;
171 172
173
174
175 public delegate void ObjectBeingRemovedFromScene(SceneObjectGroup obj);
176 public event ObjectBeingRemovedFromScene OnObjectBeingRemovedFromScene;
177
178 public delegate void NoticeNoLandDataFromStorage();
179 public event NoticeNoLandDataFromStorage OnNoticeNoLandDataFromStorage;
180
181 public delegate void IncomingLandDataFromStorage(List<LandData> data);
182 public event IncomingLandDataFromStorage OnIncomingLandDataFromStorage;
183
184 public delegate void SetAllowForcefulBan(bool allow);
185 public event SetAllowForcefulBan OnSetAllowForcefulBan;
186
187 public delegate void RequestParcelPrimCountUpdate();
188 public event RequestParcelPrimCountUpdate OnRequestParcelPrimCountUpdate;
189
190 public delegate void ParcelPrimCountTainted();
191 public event ParcelPrimCountTainted OnParcelPrimCountTainted;
192
172 /// <summary> 193 /// <summary>
173 /// RegisterCapsEvent is called by Scene after the Caps object 194 /// RegisterCapsEvent is called by Scene after the Caps object
174 /// has been instantiated and before it is return to the 195 /// has been instantiated and before it is return to the
@@ -300,6 +321,13 @@ namespace OpenSim.Region.Environment.Scenes
300 private LandBuy handlerValidateLandBuy = null; 321 private LandBuy handlerValidateLandBuy = null;
301 private AvatarKillData handlerAvatarKill = null; 322 private AvatarKillData handlerAvatarKill = null;
302 323
324 private NoticeNoLandDataFromStorage handlerNoticeNoLandDataFromStorage = null;
325 private IncomingLandDataFromStorage handlerIncomingLandDataFromStorage = null;
326 private SetAllowForcefulBan handlerSetAllowForcefulBan = null;
327 private RequestParcelPrimCountUpdate handlerRequestParcelPrimCountUpdate = null;
328 private ParcelPrimCountTainted handlerParcelPrimCountTainted = null;
329 private ObjectBeingRemovedFromScene handlerObjectBeingRemovedFromScene = null;
330
303 public void TriggerOnScriptChangedEvent(uint localID, uint change) 331 public void TriggerOnScriptChangedEvent(uint localID, uint change)
304 { 332 {
305 handlerScriptChangedEvent = OnScriptChangedEvent; 333 handlerScriptChangedEvent = OnScriptChangedEvent;
@@ -651,5 +679,66 @@ namespace OpenSim.Region.Environment.Scenes
651 handlerScriptControlEvent(p, scriptUUID, avatarID, held, _changed); 679 handlerScriptControlEvent(p, scriptUUID, avatarID, held, _changed);
652 } 680 }
653 } 681 }
682
683
684 public void TriggerNoticeNoLandDataFromStorage()
685 {
686 handlerNoticeNoLandDataFromStorage = OnNoticeNoLandDataFromStorage;
687 if (handlerNoticeNoLandDataFromStorage != null)
688 {
689 handlerNoticeNoLandDataFromStorage();
690
691 }
692 }
693
694 public void TriggerIncomingLandDataFromStorage(List<LandData> landData)
695 {
696 handlerIncomingLandDataFromStorage = OnIncomingLandDataFromStorage;
697 if (handlerIncomingLandDataFromStorage != null)
698 {
699 handlerIncomingLandDataFromStorage(landData);
700
701 }
702 }
703
704 public void TriggerSetAllowForcefulBan(bool allow)
705 {
706 handlerSetAllowForcefulBan = OnSetAllowForcefulBan;
707 if (handlerSetAllowForcefulBan != null)
708 {
709 handlerSetAllowForcefulBan(allow);
710
711 }
712 }
713
714 public void TriggerObjectBeingRemovedFromScene(SceneObjectGroup obj)
715 {
716 handlerObjectBeingRemovedFromScene = OnObjectBeingRemovedFromScene;
717 if (handlerObjectBeingRemovedFromScene != null)
718 {
719 handlerObjectBeingRemovedFromScene(obj);
720
721 }
722 }
723
724
725 public void TriggerRequestParcelPrimCountUpdate()
726 {
727 handlerRequestParcelPrimCountUpdate = OnRequestParcelPrimCountUpdate;
728 if (handlerRequestParcelPrimCountUpdate != null)
729 {
730 handlerRequestParcelPrimCountUpdate();
731
732 }
733 }
734 public void TriggerParcelPrimCountTainted()
735 {
736 handlerParcelPrimCountTainted = OnParcelPrimCountTainted;
737 if (handlerParcelPrimCountTainted != null)
738 {
739 handlerParcelPrimCountTainted();
740
741 }
742 }
654 } 743 }
655} 744}