From 27f182ac54ffee16da730b2053480944f9ca5412 Mon Sep 17 00:00:00 2001 From: MW Date: Sat, 1 Dec 2007 14:20:37 +0000 Subject: Part 1 of a commit. This revision will not compile, part 2 will be added in a couple of minutes that should fix that. Some work towards persisting Avatar Appearance (what is being worn). Added OnAvatarNowWearing event to IClientAPI that is triggered by AgentIsNowWearing packets. stub code to subscribe to this event in AvatarFactoryModule. Todo: code needs to be added to AvatarFactoryModule to save the uuids to a database and then read them back when that modules TryGetIntialAvatarAppearance() method is called. Done some changes to Scene to make it easier to subclass it: including changed some private fields to protected and made some methods virtual. --- OpenSim/Region/Environment/Scenes/Scene.Inventory.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'OpenSim/Region/Environment/Scenes/Scene.Inventory.cs') diff --git a/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs b/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs index 877bfe5..5b6b9cb 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs @@ -362,7 +362,7 @@ namespace OpenSim.Region.Environment.Scenes /// /// /// - public void DeRezObject(Packet packet, IClientAPI remoteClient) + public virtual void DeRezObject(Packet packet, IClientAPI remoteClient) { DeRezObjectPacket DeRezPacket = (DeRezObjectPacket) packet; @@ -443,7 +443,7 @@ namespace OpenSim.Region.Environment.Scenes group.DeleteParts(); } - public void RezObject(IClientAPI remoteClient, LLUUID itemID, LLVector3 pos) + public virtual void RezObject(IClientAPI remoteClient, LLUUID itemID, LLVector3 pos) { CachedUserInfo userInfo = CommsManager.UserProfileCache.GetUserDetails(remoteClient.AgentId); if (userInfo != null) -- cgit v1.1