refactor: move SP.SaveChangedAttachments() fully into AttachmentsModule

This commit is contained in:
Justin Clark-Casey (justincc)
2011-08-30 23:32:30 +01:00
parent 91f59f246f
commit ddc733cd3d
5 changed files with 38 additions and 26 deletions

View File

@@ -41,6 +41,12 @@ namespace OpenSim.Region.Framework.Interfaces
/// </summary>
void RezAttachments(IScenePresence sp);
/// <summary>
/// Save the attachments that have change on this presence.
/// </summary>
/// <param name="sp"></param>
void SaveChangedAttachments(IScenePresence sp);
/// <summary>
/// Attach an object to an avatar from the world.
/// </summary>

View File

@@ -26,7 +26,9 @@
*/
using System;
using System.Collections.Generic;
using OpenSim.Framework;
using OpenSim.Region.Framework.Scenes;
namespace OpenSim.Region.Framework.Interfaces
{
@@ -52,5 +54,14 @@ namespace OpenSim.Region.Framework.Interfaces
// get a synchronization issue.
/// </remarks>
AvatarAppearance Appearance { get; set; }
/// <summary>
/// The scene objects attached to this avatar.
/// </summary>
/// <remarks>
/// Do not change this list directly - use methods such as
/// AddAttachment() and RemoveAttachment(). Lock this list when performing any read operations upon it.
/// </remarks>
List<SceneObjectGroup> Attachments { get; }
}
}