From 424b4b2b8663f0f6780d2d3a2656e5b298418711 Mon Sep 17 00:00:00 2001
From: Justin Clark-Casey (justincc)
Date: Fri, 30 Jul 2010 21:41:44 +0100
Subject: move attachment subscription events into AttachmentsModule from
scene.
restored to some heavy casting in order to preserve RegionCombinerModule semantics, pending better events.
---
OpenSim/Region/Framework/Scenes/Scene.cs | 36 ++------------------------------
1 file changed, 2 insertions(+), 34 deletions(-)
(limited to 'OpenSim/Region/Framework/Scenes')
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs
index 9141d44..088d210 100644
--- a/OpenSim/Region/Framework/Scenes/Scene.cs
+++ b/OpenSim/Region/Framework/Scenes/Scene.cs
@@ -2783,17 +2783,12 @@ namespace OpenSim.Region.Framework.Scenes
SubscribeToClientPrimEvents(client);
SubscribeToClientPrimRezEvents(client);
SubscribeToClientInventoryEvents(client);
- SubscribeToClientAttachmentEvents(client);
SubscribeToClientTeleportEvents(client);
SubscribeToClientScriptEvents(client);
SubscribeToClientParcelEvents(client);
SubscribeToClientGridEvents(client);
SubscribeToClientGodEvents(client);
-
SubscribeToClientNetworkEvents(client);
-
-
- // EventManager.TriggerOnNewClient(client);
}
public virtual void SubscribeToClientTerrainEvents(IClientAPI client)
@@ -2874,18 +2869,6 @@ namespace OpenSim.Region.Framework.Scenes
client.OnMoveTaskItem += ClientMoveTaskInventoryItem;
}
- public virtual void SubscribeToClientAttachmentEvents(IClientAPI client)
- {
- if (AttachmentsModule != null)
- {
- client.OnRezSingleAttachmentFromInv += AttachmentsModule.RezSingleAttachmentFromInventory;
- client.OnRezMultipleAttachmentsFromInv += AttachmentsModule.RezMultipleAttachmentsFromInventory;
- client.OnObjectAttach += AttachmentsModule.AttachObject;
- client.OnObjectDetach += AttachmentsModule.DetachObject;
- client.OnDetachAttachmentIntoInv += AttachmentsModule.ShowDetachInUserInventory;
- }
- }
-
public virtual void SubscribeToClientTeleportEvents(IClientAPI client)
{
client.OnTeleportLocationRequest += RequestTeleportLocation;
@@ -2934,16 +2917,15 @@ namespace OpenSim.Region.Framework.Scenes
}
///
- /// Register for events from the client
+ /// Unsubscribe the client from events.
///
- /// The IClientAPI of the connected client
+ /// The IClientAPI of the client
public virtual void UnSubscribeToClientEvents(IClientAPI client)
{
UnSubscribeToClientTerrainEvents(client);
UnSubscribeToClientPrimEvents(client);
UnSubscribeToClientPrimRezEvents(client);
UnSubscribeToClientInventoryEvents(client);
- UnSubscribeToClientAttachmentEvents(client);
UnSubscribeToClientTeleportEvents(client);
UnSubscribeToClientScriptEvents(client);
UnSubscribeToClientParcelEvents(client);
@@ -2951,8 +2933,6 @@ namespace OpenSim.Region.Framework.Scenes
UnSubscribeToClientGodEvents(client);
UnSubscribeToClientNetworkEvents(client);
-
- // EventManager.TriggerOnNewClient(client);
}
public virtual void UnSubscribeToClientTerrainEvents(IClientAPI client)
@@ -3029,18 +3009,6 @@ namespace OpenSim.Region.Framework.Scenes
client.OnMoveTaskItem -= ClientMoveTaskInventoryItem;
}
- public virtual void UnSubscribeToClientAttachmentEvents(IClientAPI client)
- {
- if (AttachmentsModule != null)
- {
- client.OnRezSingleAttachmentFromInv -= AttachmentsModule.RezSingleAttachmentFromInventory;
- client.OnRezMultipleAttachmentsFromInv -= AttachmentsModule.RezMultipleAttachmentsFromInventory;
- client.OnObjectAttach -= AttachmentsModule.AttachObject;
- client.OnObjectDetach -= AttachmentsModule.DetachObject;
- client.OnDetachAttachmentIntoInv -= AttachmentsModule.ShowDetachInUserInventory;
- }
- }
-
public virtual void UnSubscribeToClientTeleportEvents(IClientAPI client)
{
client.OnTeleportLocationRequest -= RequestTeleportLocation;
--
cgit v1.1