mirror of
https://github.com/opensim/opensim.git
synced 2026-08-12 20:49:51 +08:00
Major refactoring of appearance handling.
AvatarService -- add two new methods, GetAppearance and SetAppearance to get around the lossy encoding in AvatarData. Preseve the old functions to avoid changing the behavior for ROBUST services. AvatarAppearance -- major refactor, moved the various encoding methods used by AgentCircuitData, ClientAgentUpdate and ScenePresence into one location. Changed initialization. AvatarAttachments -- added a class specifically to handle attachments in preparation for additional functionality that will be needed for viewer 2. AvatarFactory -- removed a number of unused or methods duplicated in other locations. Moved in all appearance event handling from ScenePresence. Required a change to IClientAPI that propogated throughout all the IClientAPI implementations.
This commit is contained in:
@@ -30,6 +30,7 @@ using System.Collections.Generic;
|
||||
using System.Reflection;
|
||||
using log4net;
|
||||
using Nini.Config;
|
||||
using OpenSim.Framework;
|
||||
using OpenSim.Region.Framework.Interfaces;
|
||||
using OpenSim.Region.Framework.Scenes;
|
||||
using OpenSim.Server.Base;
|
||||
@@ -137,6 +138,16 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Avatar
|
||||
|
||||
#region IAvatarService
|
||||
|
||||
public AvatarAppearance GetAppearance(UUID userID)
|
||||
{
|
||||
return m_AvatarService.GetAppearance(userID);
|
||||
}
|
||||
|
||||
public bool SetAppearance(UUID userID, AvatarAppearance appearance)
|
||||
{
|
||||
return m_AvatarService.SetAppearance(userID,appearance);
|
||||
}
|
||||
|
||||
public AvatarData GetAvatar(UUID userID)
|
||||
{
|
||||
return m_AvatarService.GetAvatar(userID);
|
||||
|
||||
Reference in New Issue
Block a user