aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--OpenSim/Framework/UserAppearance.cs47
1 files changed, 33 insertions, 14 deletions
diff --git a/OpenSim/Framework/UserAppearance.cs b/OpenSim/Framework/UserAppearance.cs
index b2d5679..cda0513 100644
--- a/OpenSim/Framework/UserAppearance.cs
+++ b/OpenSim/Framework/UserAppearance.cs
@@ -38,21 +38,21 @@ namespace OpenSim.Framework
38 // these are guessed at by the list here - 38 // these are guessed at by the list here -
39 // http://wiki.secondlife.com/wiki/Avatar_Appearance. We'll 39 // http://wiki.secondlife.com/wiki/Avatar_Appearance. We'll
40 // correct them over time for when were are wrong. 40 // correct them over time for when were are wrong.
41 public const int BODY = 0; 41 public readonly static int BODY = 0;
42 public const int SKIN = 1; 42 public readonly static int SKIN = 1;
43 public const int HAIR = 2; 43 public readonly static int HAIR = 2;
44 public const int EYES = 3; 44 public readonly static int EYES = 3;
45 public const int SHIRT = 4; 45 public readonly static int SHIRT = 4;
46 public const int PANTS = 5; 46 public readonly static int PANTS = 5;
47 public const int SHOES = 6; 47 public readonly static int SHOES = 6;
48 public const int SOCKS = 7; 48 public readonly static int SOCKS = 7;
49 public const int JACKET = 8; 49 public readonly static int JACKET = 8;
50 public const int GLOVES = 9; 50 public readonly static int GLOVES = 9;
51 public const int UNDERSHIRT = 10; 51 public readonly static int UNDERSHIRT = 10;
52 public const int UNDERPANTS = 11; 52 public readonly static int UNDERPANTS = 11;
53 public const int SKIRT = 12; 53 public readonly static int SKIRT = 12;
54 54
55 private const int MAX_WEARABLES = 13; 55 private readonly static int MAX_WEARABLES = 13;
56 56
57 private static LLUUID BODY_ASSET = new LLUUID("66c41e39-38f9-f75a-024e-585989bfab73"); 57 private static LLUUID BODY_ASSET = new LLUUID("66c41e39-38f9-f75a-024e-585989bfab73");
58 private static LLUUID BODY_ITEM = new LLUUID("66c41e39-38f9-f75a-024e-585989bfaba9"); 58 private static LLUUID BODY_ITEM = new LLUUID("66c41e39-38f9-f75a-024e-585989bfaba9");
@@ -63,7 +63,11 @@ namespace OpenSim.Framework
63 private static LLUUID PANTS_ASSET = new LLUUID("00000000-38f9-1111-024e-222222111120"); 63 private static LLUUID PANTS_ASSET = new LLUUID("00000000-38f9-1111-024e-222222111120");
64 private static LLUUID PANTS_ITEM = new LLUUID("77c41e39-38f9-f75a-0000-5859892f1111"); 64 private static LLUUID PANTS_ITEM = new LLUUID("77c41e39-38f9-f75a-0000-5859892f1111");
65 65
66 public readonly static int VISUALPARAM_COUNT = 218;
67
66 private AvatarWearable[] _wearables; 68 private AvatarWearable[] _wearables;
69 private byte[] _visualParams;
70 private byte[] _texture;
67 private LLUUID _user; 71 private LLUUID _user;
68 private int _serial; 72 private int _serial;
69 73
@@ -77,6 +81,21 @@ namespace OpenSim.Framework
77 } 81 }
78 _serial = 0; 82 _serial = 0;
79 _user = LLUUID.Zero; 83 _user = LLUUID.Zero;
84 _visualParams = new byte[VISUALPARAM_COUNT];
85 }
86
87 public byte[] Texture {
88 get { return _texture; }
89 set { _texture = value; }
90 }
91
92 public byte[] VisualParams {
93 get { return _visualParams; }
94 set { _visualParams = value; }
95 }
96
97 public AvatarWearable[] Wearables {
98 get { return _wearables; }
80 } 99 }
81 100
82 public LLUUID User { 101 public LLUUID User {