aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--OpenSim/Region/Environment/Scenes/AvatarAppearance.cs39
1 files changed, 39 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Scenes/AvatarAppearance.cs b/OpenSim/Region/Environment/Scenes/AvatarAppearance.cs
index c482d94..a88306f 100644
--- a/OpenSim/Region/Environment/Scenes/AvatarAppearance.cs
+++ b/OpenSim/Region/Environment/Scenes/AvatarAppearance.cs
@@ -38,6 +38,36 @@ namespace OpenSim.Region.Environment.Scenes
38 [Serializable] 38 [Serializable]
39 public class AvatarAppearance : ISerializable 39 public class AvatarAppearance : ISerializable
40 { 40 {
41 // these are guessed at by the list here -
42 // http://wiki.secondlife.com/wiki/Avatar_Appearance. We'll
43 // correct them over time for when were are wrong.
44 public readonly static int BODY = 0;
45 public readonly static int SKIN = 1;
46 public readonly static int HAIR = 2;
47 public readonly static int EYES = 3;
48 public readonly static int SHIRT = 4;
49 public readonly static int PANTS = 5;
50 public readonly static int SHOES = 6;
51 public readonly static int SOCKS = 7;
52 public readonly static int JACKET = 8;
53 public readonly static int GLOVES = 9;
54 public readonly static int UNDERSHIRT = 10;
55 public readonly static int UNDERPANTS = 11;
56 public readonly static int SKIRT = 12;
57
58 private readonly static int MAX_WEARABLES = 13;
59
60 private static LLUUID BODY_ASSET = new LLUUID("66c41e39-38f9-f75a-024e-585989bfab73");
61 private static LLUUID BODY_ITEM = new LLUUID("66c41e39-38f9-f75a-024e-585989bfaba9");
62 private static LLUUID SKIN_ASSET = new LLUUID("77c41e39-38f9-f75a-024e-585989bbabbb");
63 private static LLUUID SKIN_ITEM = new LLUUID("77c41e39-38f9-f75a-024e-585989bfabc9");
64 private static LLUUID SHIRT_ASSET = new LLUUID("00000000-38f9-1111-024e-222222111110");
65 private static LLUUID SHIRT_ITEM = new LLUUID("77c41e39-38f9-f75a-0000-585989bf0000");
66 private static LLUUID PANTS_ASSET = new LLUUID("00000000-38f9-1111-024e-222222111120");
67 private static LLUUID PANTS_ITEM = new LLUUID("77c41e39-38f9-f75a-0000-5859892f1111");
68
69 public readonly static int VISUALPARAM_COUNT = 218;
70
41 protected LLUUID m_scenePresenceID; 71 protected LLUUID m_scenePresenceID;
42 72
43 public LLUUID ScenePresenceID 73 public LLUUID ScenePresenceID
@@ -87,6 +117,15 @@ namespace OpenSim.Region.Environment.Scenes
87 117
88 public AvatarAppearance() 118 public AvatarAppearance()
89 { 119 {
120 m_wearables = new AvatarWearable[MAX_WEARABLES];
121 for (int i = 0; i < MAX_WEARABLES; i++)
122 {
123 // this makes them all null
124 m_wearables[i] = new AvatarWearable();
125 }
126 m_wearablesSerial = 0;
127 m_scenePresenceID = LLUUID.Zero;
128 m_visualParams = new byte[VISUALPARAM_COUNT];
90 } 129 }
91 130
92 public AvatarAppearance(LLUUID avatarID, AvatarWearable[] wearables, byte[] visualParams) 131 public AvatarAppearance(LLUUID avatarID, AvatarWearable[] wearables, byte[] visualParams)