From 7d89e122930be39e84a6d174548fa2d12ac0484a Mon Sep 17 00:00:00 2001 From: Teravus Ovares Date: Sat, 6 Sep 2008 07:52:41 +0000 Subject: * This is the fabled LibOMV update with all of the libOMV types from JHurliman * This is a HUGE OMG update and will definitely have unknown side effects.. so this is really only for the strong hearted at this point. Regular people should let the dust settle. * This has been tested to work with most basic functions. However.. make sure you back up 'everything' before using this. It's that big! * Essentially we're back at square 1 in the testing phase.. so lets identify things that broke. --- .../Avatar/AvatarFactory/AvatarFactoryModule.cs | 26 +++++++++++----------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'OpenSim/Region/Environment/Modules/Avatar/AvatarFactory/AvatarFactoryModule.cs') diff --git a/OpenSim/Region/Environment/Modules/Avatar/AvatarFactory/AvatarFactoryModule.cs b/OpenSim/Region/Environment/Modules/Avatar/AvatarFactory/AvatarFactoryModule.cs index 5df3f52..9433cf6 100644 --- a/OpenSim/Region/Environment/Modules/Avatar/AvatarFactory/AvatarFactoryModule.cs +++ b/OpenSim/Region/Environment/Modules/Avatar/AvatarFactory/AvatarFactoryModule.cs @@ -29,7 +29,7 @@ using System; using System.Collections.Generic; using System.Threading; -using libsecondlife; +using OpenMetaverse; using Nini.Config; using OpenSim.Framework; using OpenSim.Framework.Communications.Cache; @@ -43,7 +43,7 @@ namespace OpenSim.Region.Environment.Modules public class AvatarFactoryModule : IAvatarFactory { private Scene m_scene = null; - private readonly Dictionary m_avatarsAppearance = new Dictionary(); + private readonly Dictionary m_avatarsAppearance = new Dictionary(); private bool m_enablePersist = false; private string m_connectionString; @@ -51,10 +51,10 @@ namespace OpenSim.Region.Environment.Modules private BaseDatabaseConnector m_databaseMapper; private AppearanceTableMapper m_appearanceMapper; - private Dictionary m_fetchesInProgress = new Dictionary(); + private Dictionary m_fetchesInProgress = new Dictionary(); private object m_syncLock = new object(); - public bool TryGetAvatarAppearance(LLUUID avatarId, out AvatarAppearance appearance) + public bool TryGetAvatarAppearance(UUID avatarId, out AvatarAppearance appearance) { //should only let one thread at a time do this part @@ -163,7 +163,7 @@ namespace OpenSim.Region.Environment.Modules } } - private AvatarAppearance CreateDefault(LLUUID avatarId) + private AvatarAppearance CreateDefault(UUID avatarId) { AvatarAppearance appearance = null; AvatarWearable[] wearables; @@ -174,7 +174,7 @@ namespace OpenSim.Region.Environment.Modules return appearance; } - private AvatarAppearance CheckDatabase(LLUUID avatarId) + private AvatarAppearance CheckDatabase(UUID avatarId) { AvatarAppearance appearance = null; if (m_enablePersist) @@ -192,7 +192,7 @@ namespace OpenSim.Region.Environment.Modules return appearance; } - private AvatarAppearance CheckCache(LLUUID avatarId) + private AvatarAppearance CheckCache(UUID avatarId) { AvatarAppearance appearance = null; lock (m_avatarsAppearance) @@ -282,16 +282,16 @@ namespace OpenSim.Region.Environment.Modules { if (wear.Type < 13) { - if (wear.ItemID == LLUUID.Zero) + if (wear.ItemID == UUID.Zero) { - avatAppearance.Wearables[wear.Type].ItemID = LLUUID.Zero; - avatAppearance.Wearables[wear.Type].AssetID = LLUUID.Zero; + avatAppearance.Wearables[wear.Type].ItemID = UUID.Zero; + avatAppearance.Wearables[wear.Type].AssetID = UUID.Zero; UpdateDatabase(clientView.AgentId, avatAppearance); } else { - LLUUID assetId; + UUID assetId; InventoryItemBase baseItem = profile.RootFolder.FindItem(wear.ItemID); if (baseItem != null) @@ -310,11 +310,11 @@ namespace OpenSim.Region.Environment.Modules } } - public void UpdateDatabase(LLUUID userID, AvatarAppearance avatAppearance) + public void UpdateDatabase(UUID userID, AvatarAppearance avatAppearance) { if (m_enablePersist) { - m_appearanceMapper.Update(userID.UUID, avatAppearance); + m_appearanceMapper.Update(userID.Guid, avatAppearance); } } -- cgit v1.1