aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/EventManager.cs
diff options
context:
space:
mode:
authorMelanie Thielker2008-11-16 00:47:21 +0000
committerMelanie Thielker2008-11-16 00:47:21 +0000
commit27e557eb9857ccc34ae3588c4e0ff43bd5e6644a (patch)
tree742ab8738481d93ebc03fe94c80b6333c65631b0 /OpenSim/Region/Environment/Scenes/EventManager.cs
parentChanged sculpted prim texture scaling method to bilinear to reduce scaling ar... (diff)
downloadopensim-SC-27e557eb9857ccc34ae3588c4e0ff43bd5e6644a.zip
opensim-SC-27e557eb9857ccc34ae3588c4e0ff43bd5e6644a.tar.gz
opensim-SC-27e557eb9857ccc34ae3588c4e0ff43bd5e6644a.tar.bz2
opensim-SC-27e557eb9857ccc34ae3588c4e0ff43bd5e6644a.tar.xz
Introduces the message transfer module. It splits the transfer mechanics off
the IM module and makes it into a module of it's own, which can be used by all other modules. Removes some ugly hacks. Refer to the IM module to see how it's used. Also fixes the persistence issue (Mantis #2598)
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/EventManager.cs')
-rw-r--r--OpenSim/Region/Environment/Scenes/EventManager.cs29
1 files changed, 19 insertions, 10 deletions
diff --git a/OpenSim/Region/Environment/Scenes/EventManager.cs b/OpenSim/Region/Environment/Scenes/EventManager.cs
index 5d21dc5..bcefe37 100644
--- a/OpenSim/Region/Environment/Scenes/EventManager.cs
+++ b/OpenSim/Region/Environment/Scenes/EventManager.cs
@@ -144,9 +144,11 @@ namespace OpenSim.Region.Environment.Scenes
144 144
145 public event SignificantClientMovement OnSignificantClientMovement; 145 public event SignificantClientMovement OnSignificantClientMovement;
146 146
147 public delegate void NewGridInstantMessage(GridInstantMessage message, InstantMessageReceiver whichModule); 147 public delegate void IncomingInstantMessage(GridInstantMessage message);
148 148
149 public event NewGridInstantMessage OnGridInstantMessage; 149 public event IncomingInstantMessage OnIncomingInstantMessage;
150
151 public event IncomingInstantMessage OnUnhandledInstantMessage;
150 152
151 public delegate void ClientClosed(UUID clientID); 153 public delegate void ClientClosed(UUID clientID);
152 154
@@ -352,7 +354,8 @@ namespace OpenSim.Region.Environment.Scenes
352 private LandObjectAdded handlerLandObjectAdded = null; //OnLandObjectAdded; 354 private LandObjectAdded handlerLandObjectAdded = null; //OnLandObjectAdded;
353 private LandObjectRemoved handlerLandObjectRemoved = null; //OnLandObjectRemoved; 355 private LandObjectRemoved handlerLandObjectRemoved = null; //OnLandObjectRemoved;
354 private AvatarEnteringNewParcel handlerAvatarEnteringNewParcel = null; //OnAvatarEnteringNewParcel; 356 private AvatarEnteringNewParcel handlerAvatarEnteringNewParcel = null; //OnAvatarEnteringNewParcel;
355 private NewGridInstantMessage handlerGridInstantMessage = null; //OnGridInstantMessage; 357 private IncomingInstantMessage handlerIncomingInstantMessage = null; //OnIncomingInstantMessage;
358 private IncomingInstantMessage handlerUnhandledInstantMessage = null; //OnUnhandledInstantMessage;
356 private ClientClosed handlerClientClosed = null; //OnClientClosed; 359 private ClientClosed handlerClientClosed = null; //OnClientClosed;
357 private OnMakeChildAgentDelegate handlerMakeChildAgent = null; //OnMakeChildAgent; 360 private OnMakeChildAgentDelegate handlerMakeChildAgent = null; //OnMakeChildAgent;
358 private OnMakeRootAgentDelegate handlerMakeRootAgent = null; //OnMakeRootAgent; 361 private OnMakeRootAgentDelegate handlerMakeRootAgent = null; //OnMakeRootAgent;
@@ -641,15 +644,21 @@ namespace OpenSim.Region.Environment.Scenes
641 } 644 }
642 } 645 }
643 646
644 ///<summary>Used to pass instnat messages around between the Scene, the Friends Module and the Instant Messsage Module</summary> 647 public void TriggerIncomingInstantMessage(GridInstantMessage message)
645 ///<param name="message">Object containing the Instant Message Data</param> 648 {
646 ///<param name="whichModule">A bit vector containing the modules to send the message to</param> 649 handlerIncomingInstantMessage = OnIncomingInstantMessage;
647 public void TriggerGridInstantMessage(GridInstantMessage message, InstantMessageReceiver whichModule) 650 if (handlerIncomingInstantMessage != null)
651 {
652 handlerIncomingInstantMessage(message);
653 }
654 }
655
656 public void TriggerUnhandledInstantMessage(GridInstantMessage message)
648 { 657 {
649 handlerGridInstantMessage = OnGridInstantMessage; 658 handlerUnhandledInstantMessage = OnUnhandledInstantMessage;
650 if (handlerGridInstantMessage != null) 659 if (handlerUnhandledInstantMessage != null)
651 { 660 {
652 handlerGridInstantMessage(message, whichModule); 661 handlerUnhandledInstantMessage(message);
653 } 662 }
654 } 663 }
655 664