aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/UserAppearance.cs
diff options
context:
space:
mode:
authorSean Dague2008-05-15 18:42:27 +0000
committerSean Dague2008-05-15 18:42:27 +0000
commit4ff4475d02a26805749897bc62feddcc21b1c5da (patch)
tree0507ff54842f641d6f0e2664d02ac81e67190a97 /OpenSim/Framework/UserAppearance.cs
parentadd the rest of my UserAppearance created methods to (diff)
downloadopensim-SC_OLD-4ff4475d02a26805749897bc62feddcc21b1c5da.zip
opensim-SC_OLD-4ff4475d02a26805749897bc62feddcc21b1c5da.tar.gz
opensim-SC_OLD-4ff4475d02a26805749897bc62feddcc21b1c5da.tar.bz2
opensim-SC_OLD-4ff4475d02a26805749897bc62feddcc21b1c5da.tar.xz
remove my UserAppearance object, switch all code to use
AvatarAppearance instead.
Diffstat (limited to '')
-rw-r--r--OpenSim/Framework/UserAppearance.cs228
1 files changed, 0 insertions, 228 deletions
diff --git a/OpenSim/Framework/UserAppearance.cs b/OpenSim/Framework/UserAppearance.cs
deleted file mode 100644
index cda0513..0000000
--- a/OpenSim/Framework/UserAppearance.cs
+++ /dev/null
@@ -1,228 +0,0 @@
1/*
2 * Copyright (c) Contributors, http://opensimulator.org/
3 * See CONTRIBUTORS.TXT for a full list of copyright holders.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met:
7 * * Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.
9 * * Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the
11 * documentation and/or other materials provided with the distribution.
12 * * Neither the name of the OpenSim Project nor the
13 * names of its contributors may be used to endorse or promote products
14 * derived from this software without specific prior written permission.
15 *
16 * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY
17 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19 * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
20 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */
27
28using libsecondlife;
29
30namespace OpenSim.Framework
31{
32 /// <summary>
33 /// Information about a particular user known to the userserver
34 /// </summary>
35
36 public class UserAppearance
37 {
38 // these are guessed at by the list here -
39 // http://wiki.secondlife.com/wiki/Avatar_Appearance. We'll
40 // correct them over time for when were are wrong.
41 public readonly static int BODY = 0;
42 public readonly static int SKIN = 1;
43 public readonly static int HAIR = 2;
44 public readonly static int EYES = 3;
45 public readonly static int SHIRT = 4;
46 public readonly static int PANTS = 5;
47 public readonly static int SHOES = 6;
48 public readonly static int SOCKS = 7;
49 public readonly static int JACKET = 8;
50 public readonly static int GLOVES = 9;
51 public readonly static int UNDERSHIRT = 10;
52 public readonly static int UNDERPANTS = 11;
53 public readonly static int SKIRT = 12;
54
55 private readonly static int MAX_WEARABLES = 13;
56
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");
59 private static LLUUID SKIN_ASSET = new LLUUID("77c41e39-38f9-f75a-024e-585989bbabbb");
60 private static LLUUID SKIN_ITEM = new LLUUID("77c41e39-38f9-f75a-024e-585989bfabc9");
61 private static LLUUID SHIRT_ASSET = new LLUUID("00000000-38f9-1111-024e-222222111110");
62 private static LLUUID SHIRT_ITEM = new LLUUID("77c41e39-38f9-f75a-0000-585989bf0000");
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");
65
66 public readonly static int VISUALPARAM_COUNT = 218;
67
68 private AvatarWearable[] _wearables;
69 private byte[] _visualParams;
70 private byte[] _texture;
71 private LLUUID _user;
72 private int _serial;
73
74 public UserAppearance()
75 {
76 _wearables = new AvatarWearable[MAX_WEARABLES];
77 for (int i = 0; i < MAX_WEARABLES; i++)
78 {
79 // this makes them all null
80 _wearables[i] = new AvatarWearable();
81 }
82 _serial = 0;
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; }
99 }
100
101 public LLUUID User {
102 get { return _user; }
103 set { _user = value; }
104 }
105
106 public int Serial {
107 get { return _serial; }
108 set { _serial = value; }
109 }
110
111 public LLUUID BodyItem {
112 get { return _wearables[BODY].ItemID; }
113 set { _wearables[BODY].ItemID = value; }
114 }
115 public LLUUID BodyAsset {
116 get { return _wearables[BODY].AssetID; }
117 set { _wearables[BODY].AssetID = value; }
118 }
119 public LLUUID SkinItem {
120 get { return _wearables[SKIN].ItemID; }
121 set { _wearables[SKIN].ItemID = value; }
122 }
123 public LLUUID SkinAsset {
124 get { return _wearables[SKIN].AssetID; }
125 set { _wearables[SKIN].AssetID = value; }
126 }
127 public LLUUID HairItem {
128 get { return _wearables[HAIR].ItemID; }
129 set { _wearables[HAIR].ItemID = value; }
130 }
131 public LLUUID HairAsset {
132 get { return _wearables[HAIR].AssetID; }
133 set { _wearables[HAIR].AssetID = value; }
134 }
135 public LLUUID EyesItem {
136 get { return _wearables[EYES].ItemID; }
137 set { _wearables[EYES].ItemID = value; }
138 }
139 public LLUUID EyesAsset {
140 get { return _wearables[EYES].AssetID; }
141 set { _wearables[EYES].AssetID = value; }
142 }
143 public LLUUID ShirtItem {
144 get { return _wearables[SHIRT].ItemID; }
145 set { _wearables[SHIRT].ItemID = value; }
146 }
147 public LLUUID ShirtAsset {
148 get { return _wearables[SHIRT].AssetID; }
149 set { _wearables[SHIRT].AssetID = value; }
150 }
151 public LLUUID PantsItem {
152 get { return _wearables[PANTS].ItemID; }
153 set { _wearables[PANTS].ItemID = value; }
154 }
155 public LLUUID PantsAsset {
156 get { return _wearables[BODY].AssetID; }
157 set { _wearables[BODY].AssetID = value; }
158 }
159 public LLUUID ShoesItem {
160 get { return _wearables[SHOES].ItemID; }
161 set { _wearables[SHOES].ItemID = value; }
162 }
163 public LLUUID ShoesAsset {
164 get { return _wearables[SHOES].AssetID; }
165 set { _wearables[SHOES].AssetID = value; }
166 }
167 public LLUUID SocksItem {
168 get { return _wearables[SOCKS].ItemID; }
169 set { _wearables[SOCKS].ItemID = value; }
170 }
171 public LLUUID SocksAsset {
172 get { return _wearables[SOCKS].AssetID; }
173 set { _wearables[SOCKS].AssetID = value; }
174 }
175 public LLUUID JacketItem {
176 get { return _wearables[JACKET].ItemID; }
177 set { _wearables[JACKET].ItemID = value; }
178 }
179 public LLUUID JacketAsset {
180 get { return _wearables[JACKET].AssetID; }
181 set { _wearables[JACKET].AssetID = value; }
182 }
183 public LLUUID GlovesItem {
184 get { return _wearables[GLOVES].ItemID; }
185 set { _wearables[GLOVES].ItemID = value; }
186 }
187 public LLUUID GlovesAsset {
188 get { return _wearables[GLOVES].AssetID; }
189 set { _wearables[GLOVES].AssetID = value; }
190 }
191 public LLUUID UnderShirtItem {
192 get { return _wearables[UNDERSHIRT].ItemID; }
193 set { _wearables[UNDERSHIRT].ItemID = value; }
194 }
195 public LLUUID UnderShirtAsset {
196 get { return _wearables[UNDERSHIRT].AssetID; }
197 set { _wearables[UNDERSHIRT].AssetID = value; }
198 }
199 public LLUUID UnderPantsItem {
200 get { return _wearables[UNDERPANTS].ItemID; }
201 set { _wearables[UNDERPANTS].ItemID = value; }
202 }
203 public LLUUID UnderPantsAsset {
204 get { return _wearables[UNDERPANTS].AssetID; }
205 set { _wearables[UNDERPANTS].AssetID = value; }
206 }
207 public LLUUID SkirtItem {
208 get { return _wearables[SKIRT].ItemID; }
209 set { _wearables[SKIRT].ItemID = value; }
210 }
211 public LLUUID SkirtAsset {
212 get { return _wearables[SKIRT].AssetID; }
213 set { _wearables[SKIRT].AssetID = value; }
214 }
215
216 public void SetDefaultWearables()
217 {
218 _wearables[BODY].AssetID = BODY_ASSET;
219 _wearables[BODY].ItemID = BODY_ITEM;
220 _wearables[SKIN].AssetID = SKIN_ASSET;
221 _wearables[SKIN].ItemID = SKIN_ITEM;
222 _wearables[SHIRT].AssetID = SHIRT_ASSET;
223 _wearables[SHIRT].ItemID = SHIRT_ITEM;
224 _wearables[PANTS].AssetID = PANTS_ASSET;
225 _wearables[PANTS].ItemID = PANTS_ITEM;
226 }
227 }
228} \ No newline at end of file