mirror of
https://github.com/opensim/opensim.git
synced 2026-08-11 03:45:35 +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:
@@ -51,6 +51,20 @@ namespace OpenSim.Services.AvatarService
|
||||
m_log.Debug("[AVATAR SERVICE]: Starting avatar service");
|
||||
}
|
||||
|
||||
// Get|SetAppearance should preserve existing semantics
|
||||
// until AvatarData can be removed completely
|
||||
public AvatarAppearance GetAppearance(UUID principalID)
|
||||
{
|
||||
AvatarData avatar = GetAvatar(principalID);
|
||||
return avatar.ToAvatarAppearance(principalID);
|
||||
}
|
||||
|
||||
public bool SetAppearance(UUID principalID, AvatarAppearance appearance)
|
||||
{
|
||||
AvatarData avatar = new AvatarData(appearance);
|
||||
return SetAvatar(principalID,avatar);
|
||||
}
|
||||
|
||||
public AvatarData GetAvatar(UUID principalID)
|
||||
{
|
||||
AvatarBaseData[] av = m_Database.Get("PrincipalID", principalID.ToString());
|
||||
|
||||
Reference in New Issue
Block a user