aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework
diff options
context:
space:
mode:
authorSean Dague2008-05-15 14:39:54 +0000
committerSean Dague2008-05-15 14:39:54 +0000
commit8e7f2d6d0efe37108b2931cfdda36e695830abb0 (patch)
treee8b558217b05901f50fc65148cb1196510ce8eca /OpenSim/Framework
parentadd some additional bits to AvatarAppearance to make this (diff)
downloadopensim-SC_OLD-8e7f2d6d0efe37108b2931cfdda36e695830abb0.zip
opensim-SC_OLD-8e7f2d6d0efe37108b2931cfdda36e695830abb0.tar.gz
opensim-SC_OLD-8e7f2d6d0efe37108b2931cfdda36e695830abb0.tar.bz2
opensim-SC_OLD-8e7f2d6d0efe37108b2931cfdda36e695830abb0.tar.xz
refactoring to move AvatarAppearance into Framework and
move the appearance sending bits to ScenePresence
Diffstat (limited to '')
-rw-r--r--OpenSim/Framework/AvatarAppearance.cs (renamed from OpenSim/Region/Environment/Scenes/AvatarAppearance.cs)22
1 files changed, 3 insertions, 19 deletions
diff --git a/OpenSim/Region/Environment/Scenes/AvatarAppearance.cs b/OpenSim/Framework/AvatarAppearance.cs
index a88306f..50afa75 100644
--- a/OpenSim/Region/Environment/Scenes/AvatarAppearance.cs
+++ b/OpenSim/Framework/AvatarAppearance.cs
@@ -33,7 +33,7 @@ using libsecondlife;
33using libsecondlife.Packets; 33using libsecondlife.Packets;
34using OpenSim.Framework; 34using OpenSim.Framework;
35 35
36namespace OpenSim.Region.Environment.Scenes 36namespace OpenSim.Framework
37{ 37{
38 [Serializable] 38 [Serializable]
39 public class AvatarAppearance : ISerializable 39 public class AvatarAppearance : ISerializable
@@ -153,28 +153,12 @@ namespace OpenSim.Region.Environment.Scenes
153 // (float)m_visualParams[25] = Height 153 // (float)m_visualParams[25] = Height
154 // (float)m_visualParams[125] = LegLength 154 // (float)m_visualParams[125] = LegLength
155 m_avatarHeight = (1.50856f + (((float) m_visualParams[25]/255.0f)*(2.525506f - 1.50856f))) 155 m_avatarHeight = (1.50856f + (((float) m_visualParams[25]/255.0f)*(2.525506f - 1.50856f)))
156 + (((float) m_visualParams[125]/255.0f)/1.5f); 156 + (((float) m_visualParams[125]/255.0f)/1.5f);
157 } 157 }
158 158
159 /// <summary> 159 public void SetWearable(int wearableId, AvatarWearable wearable)
160 ///
161 /// </summary>
162 /// <param name="avatar"></param>
163 public void SendAppearanceToOtherAgent(ScenePresence avatar)
164 {
165 avatar.ControllingClient.SendAppearance(m_scenePresenceID, m_visualParams,
166 m_textureEntry.ToBytes());
167 }
168
169 public void SetWearable(IClientAPI client, int wearableId, AvatarWearable wearable)
170 { 160 {
171 m_wearables[wearableId] = wearable; 161 m_wearables[wearableId] = wearable;
172 SendOwnWearables(client);
173 }
174
175 public void SendOwnWearables(IClientAPI ourClient)
176 {
177 ourClient.SendWearables(m_wearables, m_wearablesSerial++);
178 } 162 }
179 163
180 public static LLObject.TextureEntry GetDefaultTextureEntry() 164 public static LLObject.TextureEntry GetDefaultTextureEntry()