From d0432133172f4147f7401f214c703611978423cd Mon Sep 17 00:00:00 2001
From: Justin Clark-Casey (justincc)
Date: Wed, 27 Jun 2012 00:41:46 +0100
Subject: refactor: Move ScenePresence <-> AgentData attachments copying code
into AttachmentsModule.
---
OpenSim/Region/Framework/Interfaces/IAttachmentsModule.cs | 14 ++++++++++++++
OpenSim/Region/Framework/Interfaces/IScenePresence.cs | 6 ++++++
2 files changed, 20 insertions(+)
(limited to 'OpenSim/Region/Framework/Interfaces')
diff --git a/OpenSim/Region/Framework/Interfaces/IAttachmentsModule.cs b/OpenSim/Region/Framework/Interfaces/IAttachmentsModule.cs
index fde5de1..375d334 100644
--- a/OpenSim/Region/Framework/Interfaces/IAttachmentsModule.cs
+++ b/OpenSim/Region/Framework/Interfaces/IAttachmentsModule.cs
@@ -36,6 +36,20 @@ namespace OpenSim.Region.Framework.Interfaces
public interface IAttachmentsModule
{
///
+ /// Copy attachment data from a ScenePresence into the AgentData structure for transmission to another simulator
+ ///
+ ///
+ ///
+ void CopyAttachments(IScenePresence sp, AgentData ad);
+
+ ///
+ /// Copy attachment data from an AgentData structure into a ScenePresence.
+ ///
+ ///
+ ///
+ void CopyAttachments(AgentData ad, IScenePresence sp);
+
+ ///
/// RezAttachments. This should only be called upon login on the first region.
/// Attachment rezzings on crossings and TPs are done in a different way.
///
diff --git a/OpenSim/Region/Framework/Interfaces/IScenePresence.cs b/OpenSim/Region/Framework/Interfaces/IScenePresence.cs
index 5e43843..19a8236 100644
--- a/OpenSim/Region/Framework/Interfaces/IScenePresence.cs
+++ b/OpenSim/Region/Framework/Interfaces/IScenePresence.cs
@@ -41,6 +41,12 @@ namespace OpenSim.Region.Framework.Interfaces
public interface IScenePresence : ISceneAgent
{
///
+ /// Copy of the script states while the agent is in transit. This state may
+ /// need to be placed back in case of transfer fail.
+ ///
+ List InTransitScriptStates { get; }
+
+ ///
/// The AttachmentsModule synchronizes on this to avoid race conditions between commands to add and remove attachments.
///
///
--
cgit v1.1