AvatarAppearance.cs 67 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854
  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 OpenSimulator 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. using System;
  28. using System.Reflection;
  29. using System.Collections;
  30. using System.Collections.Generic;
  31. using OpenMetaverse;
  32. using OpenMetaverse.StructuredData;
  33. using log4net;
  34. namespace OpenSim.Framework
  35. {
  36. /// <summary>
  37. /// Contains the Avatar's Appearance and methods to manipulate the appearance.
  38. /// </summary>
  39. public class AvatarAppearance
  40. {
  41. // SL box diferent to size
  42. const float AVBOXAJUST = 0.2f;
  43. // constrains for ubitode physics
  44. const float AVBOXMINX = 0.2f;
  45. const float AVBOXMINY = 0.3f;
  46. const float AVBOXMINZ = 1.2f;
  47. private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
  48. // this is viewer capabilities and weared things dependent
  49. // should be only used as initial default value ( V1 viewers )
  50. public const int VISUALPARAM_COUNT = 218;
  51. // regions and viewer compatibility
  52. public readonly static int TEXTURE_COUNT = 45;
  53. public const int TEXTURE_COUNT_PV7 = 29;
  54. public const int BAKES_COUNT_PV7 = 6;
  55. public const int MAXWEARABLE_PV7 = 16;
  56. public const int MAXWEARABLE_LEGACY = 15;
  57. public readonly static byte[] BAKE_INDICES = new byte[] { 8, 9, 10, 11, 19, 20, 40, 41, 42, 43, 44 };
  58. protected int m_serial = 0;
  59. protected byte[] m_visualparams;
  60. protected Primitive.TextureEntry m_texture;
  61. protected AvatarWearable[] m_wearables;
  62. protected Dictionary<int, List<AvatarAttachment>> m_attachments;
  63. protected WearableCacheItem[] m_cacheitems;
  64. protected Vector3 m_avatarSize = new Vector3(0.45f, 0.6f, 1.9f); // sl Z cloud value
  65. protected Vector3 m_avatarBoxSize = new Vector3(0.45f, 0.6f, 1.9f);
  66. protected float m_avatarHeight = 0;
  67. protected float m_avatarFeetOffset = 0;
  68. protected float m_avatarAnimOffset = 0;
  69. public int Serial
  70. {
  71. get { return m_serial; }
  72. set { m_serial = value; }
  73. }
  74. public byte[] VisualParams
  75. {
  76. get { return m_visualparams; }
  77. set { m_visualparams = value; }
  78. }
  79. public Vector3 AvatarSize
  80. {
  81. get { return m_avatarSize; }
  82. }
  83. public Vector3 AvatarBoxSize
  84. {
  85. get { return m_avatarBoxSize; }
  86. }
  87. public float AvatarFeetOffset
  88. {
  89. get { return m_avatarFeetOffset + m_avatarAnimOffset; }
  90. }
  91. public Primitive.TextureEntry Texture
  92. {
  93. get { return m_texture; }
  94. set
  95. {
  96. // m_log.DebugFormat("[AVATAR APPEARANCE]: Set TextureEntry to {0}", value);
  97. m_texture = value;
  98. }
  99. }
  100. public AvatarWearable[] Wearables
  101. {
  102. get { return m_wearables; }
  103. set { m_wearables = value; }
  104. }
  105. public float AvatarHeight
  106. {
  107. get { return m_avatarHeight; }
  108. set { m_avatarHeight = value; }
  109. }
  110. public WearableCacheItem[] WearableCacheItems
  111. {
  112. get { return m_cacheitems; }
  113. set { m_cacheitems = value; }
  114. }
  115. public float AvatarPreferencesHoverZ { get; set; }
  116. public AvatarAppearance()
  117. {
  118. // m_log.WarnFormat("[AVATAR APPEARANCE]: create empty appearance");
  119. m_serial = 0;
  120. SetDefaultWearables();
  121. SetDefaultTexture();
  122. SetDefaultParams();
  123. // SetHeight();
  124. SetSize(new Vector3(0.45f,0.6f,1.9f));
  125. m_attachments = new Dictionary<int, List<AvatarAttachment>>();
  126. }
  127. public AvatarAppearance(OSDMap map)
  128. {
  129. // m_log.WarnFormat("[AVATAR APPEARANCE]: create appearance from OSDMap");
  130. Unpack(map);
  131. // SetHeight(); done in Unpack
  132. }
  133. public AvatarAppearance(AvatarWearable[] wearables, Primitive.TextureEntry textureEntry, byte[] visualParams)
  134. {
  135. // m_log.WarnFormat("[AVATAR APPEARANCE] create initialized appearance");
  136. m_serial = 0;
  137. if (wearables != null)
  138. m_wearables = wearables;
  139. else
  140. SetDefaultWearables();
  141. if (textureEntry != null)
  142. m_texture = textureEntry;
  143. else
  144. SetDefaultTexture();
  145. if (visualParams != null)
  146. m_visualparams = visualParams;
  147. else
  148. SetDefaultParams();
  149. // SetHeight();
  150. if(m_avatarHeight == 0)
  151. SetSize(new Vector3(0.45f,0.6f,1.9f));
  152. m_attachments = new Dictionary<int, List<AvatarAttachment>>();
  153. }
  154. public AvatarAppearance(AvatarAppearance appearance): this(appearance, true,true)
  155. {
  156. }
  157. public AvatarAppearance(AvatarAppearance appearance, bool copyWearables)
  158. : this(appearance, copyWearables, true)
  159. {
  160. }
  161. public AvatarAppearance(AvatarAppearance appearance, bool copyWearables, bool copyBaked)
  162. {
  163. // m_log.WarnFormat("[AVATAR APPEARANCE] create from an existing appearance");
  164. if (appearance == null)
  165. {
  166. m_serial = 0;
  167. SetDefaultWearables();
  168. SetDefaultTexture();
  169. SetDefaultParams();
  170. // SetHeight();
  171. SetSize(new Vector3(0.45f, 0.6f, 1.9f));
  172. AvatarPreferencesHoverZ = 0;
  173. m_attachments = new Dictionary<int, List<AvatarAttachment>>();
  174. return;
  175. }
  176. m_serial = appearance.Serial;
  177. AvatarPreferencesHoverZ = appearance.AvatarPreferencesHoverZ;
  178. if (copyWearables && (appearance.Wearables != null))
  179. {
  180. m_wearables = new AvatarWearable[appearance.Wearables.Length];
  181. for (int i = 0; i < appearance.Wearables.Length; i++)
  182. {
  183. m_wearables[i] = new AvatarWearable();
  184. AvatarWearable wearable = appearance.Wearables[i];
  185. for (int j = 0; j < wearable.Count; j++)
  186. m_wearables[i].Add(wearable[j].ItemID, wearable[j].AssetID);
  187. }
  188. }
  189. else
  190. ClearWearables();
  191. m_texture = null;
  192. if (appearance.Texture != null)
  193. {
  194. byte[] tbytes = appearance.Texture.GetBakesBytes();
  195. m_texture = new Primitive.TextureEntry(tbytes,0,tbytes.Length);
  196. if (copyBaked && appearance.m_cacheitems != null)
  197. m_cacheitems = (WearableCacheItem[])appearance.m_cacheitems.Clone();
  198. else
  199. m_cacheitems = null;
  200. }
  201. m_visualparams = null;
  202. if (appearance.VisualParams != null)
  203. m_visualparams = (byte[])appearance.VisualParams.Clone();
  204. // m_avatarHeight = appearance.m_avatarHeight;
  205. SetSize(appearance.AvatarSize);
  206. // Copy the attachment, force append mode since that ensures consistency
  207. m_attachments = new Dictionary<int, List<AvatarAttachment>>();
  208. foreach (AvatarAttachment attachment in appearance.GetAttachments())
  209. AppendAttachment(new AvatarAttachment(attachment));
  210. }
  211. public void GetAssetsFrom(AvatarAppearance app)
  212. {
  213. int len = m_wearables.Length;
  214. if(len > app.m_wearables.Length)
  215. len = app.m_wearables.Length;
  216. for (int i = 0; i < len; i++)
  217. {
  218. int count = m_wearables[i].Count;
  219. if(count > app.m_wearables[i].Count)
  220. count = app.m_wearables[i].Count;
  221. for (int j = 0; j < count; j++)
  222. {
  223. UUID itemID = m_wearables[i][j].ItemID;
  224. UUID assetID = app.Wearables[i].GetAsset(itemID);
  225. if (!assetID.IsZero())
  226. m_wearables[i].Add(itemID, assetID);
  227. }
  228. }
  229. }
  230. public void ClearWearables()
  231. {
  232. m_wearables = new AvatarWearable[AvatarWearable.LEGACY_VERSION_MAX_WEARABLES];
  233. for (int i = 0; i < AvatarWearable.LEGACY_VERSION_MAX_WEARABLES; i++)
  234. m_wearables[i] = new AvatarWearable();
  235. }
  236. protected void SetDefaultWearables()
  237. {
  238. m_wearables = AvatarWearable.DefaultWearables;
  239. }
  240. /// <summary>
  241. /// Invalidate all of the baked textures in the appearance, useful
  242. /// if you know that none are valid
  243. /// </summary>
  244. public void ResetAppearance()
  245. {
  246. // m_log.WarnFormat("[AVATAR APPEARANCE]: Reset appearance");
  247. m_serial = 0;
  248. SetDefaultTexture();
  249. AvatarPreferencesHoverZ = 0;
  250. //for (int i = 0; i < BAKE_INDICES.Length; i++)
  251. // {
  252. // int idx = BAKE_INDICES[i];
  253. // m_texture.FaceTextures[idx].TextureID = UUID.Zero;
  254. // }
  255. }
  256. protected void SetDefaultParams()
  257. {
  258. m_visualparams = new byte[] { 33,61,85,23,58,127,63,85,63,42,0,85,63,36,85,95,153,63,34,0,63,109,88,132,63,136,81,85,103,136,127,0,150,150,150,127,0,0,0,0,0,127,0,0,255,127,114,127,99,63,127,140,127,127,0,0,0,191,0,104,0,0,0,0,0,0,0,0,0,145,216,133,0,127,0,127,170,0,0,127,127,109,85,127,127,63,85,42,150,150,150,150,150,150,150,25,150,150,150,0,127,0,0,144,85,127,132,127,85,0,127,127,127,127,127,127,59,127,85,127,127,106,47,79,127,127,204,2,141,66,0,0,127,127,0,0,0,0,127,0,159,0,0,178,127,36,85,131,127,127,127,153,95,0,140,75,27,127,127,0,150,150,198,0,0,63,30,127,165,209,198,127,127,153,204,51,51,255,255,255,204,0,255,150,150,150,150,150,150,150,150,150,150,0,150,150,150,150,150,0,127,127,150,150,150,150,150,150,150,150,0,0,150,51,132,150,150,150 };
  259. }
  260. /// <summary>
  261. /// Invalidate all of the baked textures in the appearance, useful
  262. /// if you know that none are valid
  263. /// </summary>
  264. public void ResetBakedTextures()
  265. {
  266. SetDefaultTexture();
  267. }
  268. protected void SetDefaultTexture()
  269. {
  270. m_texture = new Primitive.TextureEntry(new UUID(AppearanceManager.DEFAULT_AVATAR_TEXTURE));
  271. }
  272. /// <summary>
  273. /// Set up appearance texture ids.
  274. /// </summary>
  275. /// <returns>
  276. /// True if any existing texture id was changed by the new data.
  277. /// False if there were no changes or no existing texture ids.
  278. /// </returns>
  279. public bool SetTextureEntries(Primitive.TextureEntry textureEntry)
  280. {
  281. if (textureEntry == null)
  282. return false;
  283. bool changed = false;
  284. Primitive.TextureEntryFace newface;
  285. Primitive.TextureEntryFace tmpFace;
  286. Primitive.TextureEntryFace curFace;
  287. //make sure textureEntry.DefaultTexture is the unused one(DEFAULT_AVATAR_TEXTURE).
  288. Primitive.TextureEntry converted = new Primitive.TextureEntry(AppearanceManager.DEFAULT_AVATAR_TEXTURE);
  289. for (uint i = 0; i < TEXTURE_COUNT; ++i)
  290. {
  291. newface = textureEntry.GetFace(i);
  292. curFace = m_texture.FaceTextures[i];
  293. if (newface.TextureID.Equals(AppearanceManager.DEFAULT_AVATAR_TEXTURE))
  294. {
  295. if (curFace == null)
  296. continue;
  297. if (!curFace.TextureID.Equals(AppearanceManager.DEFAULT_AVATAR_TEXTURE))
  298. changed = true;
  299. }
  300. else
  301. {
  302. tmpFace = converted.GetFace(i);
  303. tmpFace.TextureID = newface.TextureID; // we need a full high level copy, assuming all other parameters are the same.
  304. if (curFace == null || !curFace.TextureID.Equals(newface.TextureID))
  305. changed = true;
  306. }
  307. }
  308. if(changed)
  309. m_texture = converted;
  310. return changed;
  311. }
  312. /// <summary>
  313. /// Set up visual parameters for the avatar and refresh the avatar height
  314. /// </summary>
  315. /// <returns>
  316. /// True if any existing visual parameter was changed by the new data.
  317. /// False if there were no changes or no existing visual parameters.
  318. /// </returns>
  319. public bool SetVisualParams(byte[] visualParams)
  320. {
  321. if (visualParams == null)
  322. return false;
  323. // There are much simpler versions of this copy that could be
  324. // made. We determine if any of the visual parameters actually
  325. // changed to know if the appearance should be saved later
  326. bool changed = false;
  327. int newsize = visualParams.Length;
  328. if (newsize != m_visualparams.Length)
  329. {
  330. changed = true;
  331. m_visualparams = (byte[])visualParams.Clone();
  332. }
  333. else
  334. {
  335. for (int i = 0; i < newsize; i++)
  336. {
  337. if (visualParams[i] != m_visualparams[i])
  338. {
  339. // DEBUG ON
  340. // m_log.WarnFormat("[AVATARAPPEARANCE] vparams changed [{0}] {1} ==> {2}",
  341. // i,m_visualparams[i],visualParams[i]);
  342. // DEBUG OFF
  343. m_visualparams[i] = visualParams[i];
  344. changed = true;
  345. }
  346. }
  347. }
  348. // Reset the height if the visual parameters actually changed
  349. //if (changed)
  350. // SetHeight();
  351. return changed;
  352. }
  353. public void SetAppearance(Primitive.TextureEntry textureEntry, byte[] visualParams)
  354. {
  355. SetTextureEntries(textureEntry);
  356. SetVisualParams(visualParams);
  357. }
  358. /// <summary>
  359. /// Set avatar height by a calculation based on their visual parameters.
  360. /// </summary>
  361. public void SetHeight()
  362. {
  363. /*
  364. // Start with shortest possible female avatar height
  365. m_avatarHeight = 1.14597f;
  366. // Add offset for male avatars
  367. if (m_visualparams[(int)VPElement.SHAPE_MALE] != 0)
  368. m_avatarHeight += 0.0848f;
  369. // Add offsets for visual params
  370. m_avatarHeight += 0.516945f * (float)m_visualparams[(int)VPElement.SHAPE_HEIGHT] / 255.0f
  371. + 0.08117f * (float)m_visualparams[(int)VPElement.SHAPE_HEAD_SIZE] / 255.0f
  372. + 0.3836f * (float)m_visualparams[(int)VPElement.SHAPE_LEG_LENGTH] / 255.0f
  373. + 0.07f * (float)m_visualparams[(int)VPElement.SHOES_PLATFORM_HEIGHT] / 255.0f
  374. + 0.08f * (float)m_visualparams[(int)VPElement.SHOES_HEEL_HEIGHT] / 255.0f
  375. + 0.076f * (float)m_visualparams[(int)VPElement.SHAPE_NECK_LENGTH] / 255.0f;
  376. */
  377. }
  378. public void SetSize(Vector3 avSize)
  379. {
  380. if (avSize.X > 32f)
  381. avSize.X = 32f;
  382. else if (avSize.X < 0.1f)
  383. avSize.X = 0.1f;
  384. if (avSize.Y > 32f)
  385. avSize.Y = 32f;
  386. else if (avSize.Y < 0.1f)
  387. avSize.Y = 0.1f;
  388. if (avSize.Z > 32f)
  389. avSize.Z = 32f;
  390. else if (avSize.Z < 0.1f)
  391. avSize.Z = 0.1f;
  392. m_avatarSize = avSize;
  393. m_avatarBoxSize = avSize;
  394. m_avatarBoxSize.Z += AVBOXAJUST;
  395. if (m_avatarBoxSize.X < AVBOXMINX)
  396. m_avatarBoxSize.X = AVBOXMINX;
  397. if (m_avatarBoxSize.Y < AVBOXMINY)
  398. m_avatarBoxSize.Y = AVBOXMINY;
  399. if (m_avatarBoxSize.Z < AVBOXMINZ)
  400. m_avatarBoxSize.Z = AVBOXMINZ;
  401. m_avatarHeight = m_avatarSize.Z;
  402. }
  403. public void SetWearable(int wearableId, AvatarWearable wearable)
  404. {
  405. // DEBUG ON
  406. // m_log.WarnFormat("[AVATARAPPEARANCE] set wearable {0} --> {1}:{2}",wearableId,wearable.ItemID,wearable.AssetID);
  407. // DEBUG OFF
  408. if (wearableId >= m_wearables.Length)
  409. {
  410. int currentLength = m_wearables.Length;
  411. Array.Resize(ref m_wearables, wearableId + 1);
  412. for (int i = currentLength ; i < m_wearables.Length ; i++)
  413. m_wearables[i] = new AvatarWearable();
  414. }
  415. m_wearables[wearableId].Clear();
  416. for (int i = 0; i < wearable.Count; i++)
  417. m_wearables[wearableId].Add(wearable[i].ItemID, wearable[i].AssetID);
  418. }
  419. // DEBUG ON
  420. public override String ToString()
  421. {
  422. String s = "";
  423. s += String.Format("Serial: {0}\n",m_serial);
  424. for (uint i = 0; i < AvatarAppearance.TEXTURE_COUNT; i++)
  425. if (m_texture.FaceTextures[i] != null)
  426. s += String.Format("Texture: {0} --> {1}\n",i,m_texture.FaceTextures[i].TextureID);
  427. foreach (AvatarWearable awear in m_wearables)
  428. {
  429. for (int i = 0; i < awear.Count; i++)
  430. s += String.Format("Wearable: item={0}, asset={1}\n",awear[i].ItemID,awear[i].AssetID);
  431. }
  432. s += "Visual Params: ";
  433. // for (uint j = 0; j < AvatarAppearance.VISUALPARAM_COUNT; j++)
  434. for (uint j = 0; j < m_visualparams.Length; j++)
  435. s += String.Format("{0},",m_visualparams[j]);
  436. s += "\n";
  437. return s;
  438. }
  439. // DEBUG OFF
  440. /// <summary>
  441. /// Get a list of the attachments.
  442. /// </summary>
  443. /// <remarks>
  444. /// There may be duplicate attachpoints
  445. /// </remarks>
  446. public List<AvatarAttachment> GetAttachments()
  447. {
  448. lock (m_attachments)
  449. {
  450. List<AvatarAttachment> alist = new List<AvatarAttachment>();
  451. foreach (KeyValuePair<int, List<AvatarAttachment>> kvp in m_attachments)
  452. {
  453. foreach (AvatarAttachment attach in kvp.Value)
  454. alist.Add(new AvatarAttachment(attach));
  455. }
  456. return alist;
  457. }
  458. }
  459. internal void AppendAttachment(AvatarAttachment attach)
  460. {
  461. //m_log.DebugFormat(
  462. // "[AVATAR APPEARNCE]: Appending itemID={0}, assetID={1} at {2}",
  463. // attach.ItemID, attach.AssetID, attach.AttachPoint);
  464. lock (m_attachments)
  465. {
  466. if (!m_attachments.ContainsKey(attach.AttachPoint))
  467. m_attachments[attach.AttachPoint] = new List<AvatarAttachment>();
  468. foreach (AvatarAttachment prev in m_attachments[attach.AttachPoint])
  469. {
  470. if (prev.ItemID.Equals(attach.ItemID))
  471. return;
  472. }
  473. m_attachments[attach.AttachPoint].Add(attach);
  474. }
  475. }
  476. internal void ReplaceAttachment(AvatarAttachment attach)
  477. {
  478. //m_log.DebugFormat(
  479. // "[AVATAR APPEARANCE]: Replacing itemID={0}, assetID={1} at {2}",
  480. // attach.ItemID, attach.AssetID, attach.AttachPoint);
  481. lock (m_attachments)
  482. {
  483. m_attachments[attach.AttachPoint] = new List<AvatarAttachment>();
  484. m_attachments[attach.AttachPoint].Add(attach);
  485. }
  486. }
  487. /// <summary>
  488. /// Set an attachment
  489. /// </summary>
  490. /// <remarks>
  491. /// If the attachpoint has the
  492. /// 0x80 bit set then we assume this is an append
  493. /// operation otherwise we replace whatever is
  494. /// currently attached at the attachpoint
  495. /// </remarks>
  496. /// <param name="attachpoint"></param>
  497. /// <param name="item">If UUID.Zero, then an any attachment at the attachpoint is removed.</param>
  498. /// <param name="asset"></param>
  499. /// <returns>
  500. /// return true if something actually changed
  501. /// </returns>
  502. public bool SetAttachment(int attachpoint, UUID item, UUID asset)
  503. {
  504. //m_log.DebugFormat(
  505. // "[AVATAR APPEARANCE]: Setting attachment at {0} with item ID {1}, asset ID {2}",
  506. // attachpoint, item, asset);
  507. if (attachpoint == 0)
  508. return false;
  509. lock (m_attachments)
  510. {
  511. if (item.IsZero())
  512. return m_attachments.Remove(attachpoint);
  513. // When a user logs in, the attachment item ids are pulled from persistence in the Avatars table. However,
  514. // the asset ids are not saved. When the avatar enters a simulator the attachments are set again. If
  515. // we simply perform an item check here then the asset ids (which are now present) are never set, and NPC attachments
  516. // later fail unless the attachment is detached and reattached.
  517. //
  518. // Therefore, we will carry on with the set if the existing attachment has no asset id.
  519. AvatarAttachment existingAttachment = GetAttachmentForItem(item);
  520. if (existingAttachment != null)
  521. {
  522. // m_log.DebugFormat(
  523. // "[AVATAR APPEARANCE]: Found existing attachment for {0}, asset {1} at point {2}",
  524. // existingAttachment.ItemID, existingAttachment.AssetID, existingAttachment.AttachPoint);
  525. if (!existingAttachment.AssetID.IsZero() && existingAttachment.AttachPoint == (attachpoint & 0x7F))
  526. {
  527. m_log.DebugFormat(
  528. "[AVATAR APPEARANCE]: Ignoring attempt to attach an already attached item {0} at point {1}",
  529. item, attachpoint);
  530. return false;
  531. }
  532. else
  533. {
  534. // Remove it here so that the later append does not add a second attachment but we still update
  535. // the assetID
  536. DetachAttachment(existingAttachment.ItemID);
  537. }
  538. }
  539. // check if this is an append or a replace, 0x80 marks it as an append
  540. if ((attachpoint & 0x80) > 0)
  541. {
  542. // strip the append bit
  543. int point = attachpoint & 0x7F;
  544. AppendAttachment(new AvatarAttachment(point, item, asset));
  545. }
  546. else
  547. {
  548. ReplaceAttachment(new AvatarAttachment(attachpoint,item, asset));
  549. }
  550. }
  551. return true;
  552. }
  553. /// <summary>
  554. /// If the item is already attached, return it.
  555. /// </summary>
  556. /// <param name="itemID"></param>
  557. /// <returns>Returns null if this item is not attached.</returns>
  558. public AvatarAttachment GetAttachmentForItem(UUID itemID)
  559. {
  560. lock (m_attachments)
  561. {
  562. foreach (KeyValuePair<int, List<AvatarAttachment>> kvp in m_attachments)
  563. {
  564. int index = kvp.Value.FindIndex(delegate(AvatarAttachment a) { return a.ItemID.Equals(itemID); });
  565. if (index >= 0)
  566. return kvp.Value[index];
  567. }
  568. }
  569. return null;
  570. }
  571. public int GetAttachpoint(UUID itemID)
  572. {
  573. lock (m_attachments)
  574. {
  575. foreach (KeyValuePair<int, List<AvatarAttachment>> kvp in m_attachments)
  576. {
  577. int index = kvp.Value.FindIndex(delegate(AvatarAttachment a) { return a.ItemID.Equals(itemID); });
  578. if (index >= 0)
  579. return kvp.Key;
  580. }
  581. }
  582. return 0;
  583. }
  584. public bool DetachAttachment(UUID itemID)
  585. {
  586. lock (m_attachments)
  587. {
  588. foreach (KeyValuePair<int, List<AvatarAttachment>> kvp in m_attachments)
  589. {
  590. int index = kvp.Value.FindIndex(delegate(AvatarAttachment a) { return a.ItemID.Equals(itemID); });
  591. if (index >= 0)
  592. {
  593. //m_log.DebugFormat(
  594. // "[AVATAR APPEARANCE]: Detaching attachment {0}, index {1}, point {2}",
  595. // m_attachments[kvp.Key][index].ItemID, index, m_attachments[kvp.Key][index].AttachPoint);
  596. // Remove it from the list of attachments at that attach point
  597. m_attachments[kvp.Key].RemoveAt(index);
  598. // And remove the list if there are no more attachments here
  599. if (m_attachments[kvp.Key].Count == 0)
  600. m_attachments.Remove(kvp.Key);
  601. return true;
  602. }
  603. }
  604. }
  605. return false;
  606. }
  607. public void ClearAttachments()
  608. {
  609. lock (m_attachments)
  610. m_attachments.Clear();
  611. }
  612. #region Packing Functions
  613. /// <summary>
  614. /// Create an OSDMap from the appearance data
  615. /// </summary>
  616. public OSDMap Pack(EntityTransferContext ctx)
  617. {
  618. OSDMap data = new OSDMap();
  619. data["serial"] = OSD.FromInteger(m_serial);
  620. data["height"] = OSD.FromReal(m_avatarHeight);
  621. data["aphz"] = OSD.FromReal(AvatarPreferencesHoverZ);
  622. if (m_texture == null)
  623. return data;
  624. bool sendPV8 = false;
  625. // Wearables
  626. OSDArray wears;
  627. int count;
  628. if (ctx == null)
  629. count = MAXWEARABLE_LEGACY;
  630. else
  631. {
  632. if(ctx.OutboundVersion >= 0.8)
  633. {
  634. sendPV8 = true;
  635. count = m_wearables.Length;
  636. }
  637. else if (ctx.OutboundVersion >= 0.6)
  638. count = MAXWEARABLE_PV7;
  639. else
  640. count = MAXWEARABLE_LEGACY;
  641. if (sendPV8 && count > MAXWEARABLE_PV7)
  642. {
  643. wears = new OSDArray(count - MAXWEARABLE_PV7);
  644. for (int i = MAXWEARABLE_PV7; i < count; ++i)
  645. wears.Add(m_wearables[i].Pack());
  646. data["wrbls8"] = wears;
  647. count = MAXWEARABLE_PV7;
  648. }
  649. }
  650. if(count > m_wearables.Length)
  651. count = m_wearables.Length;
  652. wears = new OSDArray(count);
  653. for (int i = 0; i < count; ++i)
  654. wears.Add(m_wearables[i].Pack());
  655. data["wearables"] = wears;
  656. // Avatar Textures
  657. OSDArray textures;
  658. if (sendPV8)
  659. {
  660. byte[] te = m_texture.GetBakesBytes();
  661. data["te8"] = OSD.FromBinary(te);
  662. }
  663. else
  664. {
  665. textures = new OSDArray(TEXTURE_COUNT_PV7);
  666. for (uint i = 0; i < TEXTURE_COUNT_PV7; ++i)
  667. textures.Add(OSD.FromUUID(m_texture.GetFace(i).TextureID));
  668. data["textures"] = textures;
  669. }
  670. if (m_cacheitems != null)
  671. {
  672. OSDArray baked = WearableCacheItem.BakedToOSD(m_cacheitems, 0, BAKES_COUNT_PV7);
  673. if (baked != null && baked.Count > 0)
  674. data["bakedcache"] = baked;
  675. baked = WearableCacheItem.BakedToOSD(m_cacheitems, BAKES_COUNT_PV7, -1);
  676. if (baked != null && baked.Count > 0)
  677. data["bc8"] = baked;
  678. }
  679. // Visual Parameters
  680. OSDBinary visualparams = new OSDBinary(m_visualparams);
  681. data["visualparams"] = visualparams;
  682. lock (m_attachments)
  683. {
  684. // Attachments
  685. OSDArray attachs = new OSDArray(m_attachments.Count);
  686. foreach (AvatarAttachment attach in GetAttachments())
  687. attachs.Add(attach.Pack());
  688. data["attachments"] = attachs;
  689. }
  690. return data;
  691. }
  692. public OSDMap PackForNotecard(bool NoHuds = true)
  693. {
  694. OSDMap data = new OSDMap();
  695. data["serial"] = OSD.FromInteger(m_serial);
  696. data["height"] = OSD.FromReal(m_avatarHeight);
  697. data["aphz"] = OSD.FromReal(AvatarPreferencesHoverZ);
  698. // old regions may not like missing/empty wears
  699. OSDArray wears = new OSDArray(MAXWEARABLE_LEGACY);
  700. for (int i = 0; i< MAXWEARABLE_LEGACY; ++i)
  701. wears.Add(new OSDArray());
  702. data["wearables"] = wears;
  703. // Avatar Textures
  704. OSDArray textures;
  705. // allow old regions to still see something
  706. textures = new OSDArray(TEXTURE_COUNT_PV7);
  707. textures.Add(OSD.FromUUID(AppearanceManager.DEFAULT_AVATAR_TEXTURE));
  708. for (uint i = 1; i < TEXTURE_COUNT_PV7; ++i)
  709. textures.Add(OSD.FromUUID(m_texture.GetFace(i).TextureID));
  710. data["textures"] = textures;
  711. bool needExtra = false;
  712. for (int i = BAKES_COUNT_PV7; i < BAKE_INDICES.Length; ++i)
  713. {
  714. int idx = BAKE_INDICES[i];
  715. if (m_texture.FaceTextures[idx] == null)
  716. continue;
  717. if (m_texture.FaceTextures[idx].TextureID.Equals(AppearanceManager.DEFAULT_AVATAR_TEXTURE) ||
  718. m_texture.FaceTextures[idx].TextureID.IsZero())
  719. continue;
  720. needExtra = true;
  721. }
  722. if (needExtra)
  723. {
  724. byte[] te = m_texture.GetBakesBytes();
  725. data["te8"] = OSD.FromBinary(te);
  726. }
  727. // Visual Parameters
  728. OSDBinary visualparams = new OSDBinary(m_visualparams);
  729. data["visualparams"] = visualparams;
  730. lock (m_attachments)
  731. {
  732. // Attachments
  733. OSDArray attachs = new OSDArray(m_attachments.Count);
  734. foreach (AvatarAttachment attach in GetAttachments())
  735. {
  736. if (NoHuds &&
  737. attach.AttachPoint >= (uint)AttachmentPoint.HUDCenter2 &&
  738. attach.AttachPoint <= (uint)AttachmentPoint.HUDBottomRight)
  739. continue;
  740. attachs.Add(attach.Pack());
  741. }
  742. data["attachments"] = attachs;
  743. }
  744. return data;
  745. }
  746. /// <summary>
  747. /// Unpack and OSDMap and initialize the appearance
  748. /// from it
  749. /// </summary>
  750. public void Unpack(OSDMap data)
  751. {
  752. SetDefaultWearables();
  753. SetDefaultTexture();
  754. SetDefaultParams();
  755. m_attachments = new Dictionary<int, List<AvatarAttachment>>();
  756. if(data == null)
  757. {
  758. m_log.Warn("[AVATAR APPEARANCE]: data to unpack is null");
  759. return;
  760. }
  761. OSD tmpOSD;
  762. if (data.TryGetValue("serial", out tmpOSD))
  763. m_serial = tmpOSD.AsInteger();
  764. if(data.TryGetValue("aphz", out tmpOSD))
  765. AvatarPreferencesHoverZ = (float)tmpOSD.AsReal();
  766. if (data.TryGetValue("height", out tmpOSD))
  767. SetSize(new Vector3(0.45f, 0.6f, (float)tmpOSD.AsReal()));
  768. try
  769. {
  770. // Wearables
  771. OSD tmpOSD8;
  772. OSDArray wears8 = null;
  773. int wears8Count = 0;
  774. if (data.TryGetValue("wrbls8", out tmpOSD8) && (tmpOSD8 is OSDArray))
  775. {
  776. wears8 = (OSDArray)tmpOSD8;
  777. wears8Count = wears8.Count;
  778. }
  779. if (data.TryGetValue("wearables", out tmpOSD) && (tmpOSD is OSDArray))
  780. {
  781. OSDArray wears = (OSDArray)tmpOSD;
  782. if(wears.Count + wears8Count > 0)
  783. {
  784. m_wearables = new AvatarWearable[wears.Count + wears8Count];
  785. for (int i = 0; i < wears.Count; ++i)
  786. m_wearables[i] = new AvatarWearable((OSDArray)wears[i]);
  787. if (wears8Count > 0)
  788. {
  789. for (int i = 0; i < wears8Count; ++i)
  790. m_wearables[i + wears.Count] = new AvatarWearable((OSDArray)wears8[i]);
  791. }
  792. }
  793. }
  794. if (data.TryGetValue("te8", out tmpOSD))
  795. {
  796. byte[] teb = tmpOSD.AsBinary();
  797. Primitive.TextureEntry te = new Primitive.TextureEntry(teb, 0, teb.Length);
  798. m_texture = te;
  799. }
  800. else if (data.TryGetValue("textures", out tmpOSD) && (tmpOSD is OSDArray))
  801. {
  802. OSDArray textures = (OSDArray)tmpOSD;
  803. for (int i = 0; i < textures.Count && i < TEXTURE_COUNT_PV7; ++i)
  804. {
  805. tmpOSD = textures[i];
  806. if (tmpOSD != null)
  807. m_texture.CreateFace((uint)i).TextureID = tmpOSD.AsUUID();
  808. }
  809. }
  810. if (data.TryGetValue("bakedcache", out tmpOSD) && (tmpOSD is OSDArray))
  811. {
  812. OSDArray bakedOSDArray = (OSDArray)tmpOSD;
  813. m_cacheitems = WearableCacheItem.GetDefaultCacheItem();
  814. bakedOSDArray = (OSDArray)tmpOSD;
  815. foreach (OSDMap item in bakedOSDArray)
  816. {
  817. int idx = item["textureindex"].AsInteger();
  818. if (idx < 0 || idx >= m_cacheitems.Length)
  819. continue;
  820. m_cacheitems[idx].CacheId = item["cacheid"].AsUUID();
  821. m_cacheitems[idx].TextureID = item["textureid"].AsUUID();
  822. m_cacheitems[idx].TextureAsset = null;
  823. }
  824. if (data.TryGetValue("bc8", out tmpOSD) && (tmpOSD is OSDArray))
  825. {
  826. bakedOSDArray = (OSDArray)tmpOSD;
  827. foreach (OSDMap item in bakedOSDArray)
  828. {
  829. int idx = item["textureindex"].AsInteger();
  830. if (idx < 0 || idx >= m_cacheitems.Length)
  831. continue;
  832. m_cacheitems[idx].CacheId = item["cacheid"].AsUUID();
  833. m_cacheitems[idx].TextureID = item["textureid"].AsUUID();
  834. m_cacheitems[idx].TextureAsset = null;
  835. }
  836. }
  837. }
  838. // Visual Parameters
  839. if (data.TryGetValue("visualparams", out tmpOSD))
  840. {
  841. if (tmpOSD is OSDBinary || tmpOSD is OSDArray)
  842. m_visualparams = tmpOSD.AsBinary();
  843. }
  844. else
  845. {
  846. m_log.Warn("[AVATAR APPEARANCE]: failed to unpack visual parameters");
  847. }
  848. // Attachments
  849. if (data.TryGetValue("attachments", out tmpOSD) && tmpOSD is OSDArray)
  850. {
  851. OSDArray attachs = (OSDArray)tmpOSD;
  852. for (int i = 0; i < attachs.Count; i++)
  853. {
  854. AvatarAttachment att = new AvatarAttachment((OSDMap)attachs[i]);
  855. AppendAttachment(att);
  856. //m_log.DebugFormat(
  857. // "[AVATAR APPEARANCE]: Unpacked attachment itemID {0}, assetID {1}, point {2}",
  858. // att.ItemID, att.AssetID, att.AttachPoint);
  859. }
  860. }
  861. }
  862. catch (Exception e)
  863. {
  864. m_log.ErrorFormat("[AVATAR APPEARANCE]: unpack failed badly: {0}{1}", e.Message, e.StackTrace);
  865. }
  866. }
  867. #endregion
  868. public bool CanTeleport(float version)
  869. {
  870. if (version >= 0.8)
  871. return true;
  872. if (m_wearables.Length <= MAXWEARABLE_PV7)
  873. return true;
  874. for(int i = MAXWEARABLE_PV7; i < m_wearables.Length; ++i)
  875. {
  876. if(m_wearables[i].Count > 0)
  877. return false;
  878. }
  879. // also check baked
  880. for (int i = BAKES_COUNT_PV7; i < BAKE_INDICES.Length; i++)
  881. {
  882. int idx = BAKE_INDICES[i];
  883. if (m_texture.FaceTextures[idx] == null)
  884. continue;
  885. if (m_texture.FaceTextures[idx].TextureID.IsZero() ||
  886. m_texture.FaceTextures[idx].TextureID.Equals(AppearanceManager.DEFAULT_AVATAR_TEXTURE))
  887. continue;
  888. return false;
  889. }
  890. return true;
  891. }
  892. #region VPElement
  893. /// <summary>
  894. /// Viewer Params Array Element for AgentSetAppearance
  895. /// Generated from LibOMV's Visual Params list
  896. /// </summary>
  897. public enum VPElement : int
  898. {
  899. /// <summary>
  900. /// Brow Size - Small 0--+255 Large
  901. /// </summary>
  902. SHAPE_BIG_BROW = 0,
  903. /// <summary>
  904. /// Nose Size - Small 0--+255 Large
  905. /// </summary>
  906. SHAPE_NOSE_BIG_OUT = 1,
  907. /// <summary>
  908. /// Nostril Width - Narrow 0--+255 Broad
  909. /// </summary>
  910. SHAPE_BROAD_NOSTRILS = 2,
  911. /// <summary>
  912. /// Chin Cleft - Round 0--+255 Cleft
  913. /// </summary>
  914. SHAPE_CLEFT_CHIN = 3,
  915. /// <summary>
  916. /// Nose Tip Shape - Pointy 0--+255 Bulbous
  917. /// </summary>
  918. SHAPE_BULBOUS_NOSE_TIP = 4,
  919. /// <summary>
  920. /// Chin Angle - Chin Out 0--+255 Chin In
  921. /// </summary>
  922. SHAPE_WEAK_CHIN = 5,
  923. /// <summary>
  924. /// Chin-Neck - Tight Chin 0--+255 Double Chin
  925. /// </summary>
  926. SHAPE_DOUBLE_CHIN = 6,
  927. /// <summary>
  928. /// Lower Cheeks - Well-Fed 0--+255 Sunken
  929. /// </summary>
  930. SHAPE_SUNKEN_CHEEKS = 7,
  931. /// <summary>
  932. /// Upper Bridge - Low 0--+255 High
  933. /// </summary>
  934. SHAPE_NOBLE_NOSE_BRIDGE = 8,
  935. /// <summary>
  936. /// - Less 0--+255 More
  937. /// </summary>
  938. SHAPE_JOWLS = 9,
  939. /// <summary>
  940. /// Upper Chin Cleft - Round 0--+255 Cleft
  941. /// </summary>
  942. SHAPE_CLEFT_CHIN_UPPER = 10,
  943. /// <summary>
  944. /// Cheek Bones - Low 0--+255 High
  945. /// </summary>
  946. SHAPE_HIGH_CHEEK_BONES = 11,
  947. /// <summary>
  948. /// Ear Angle - In 0--+255 Out
  949. /// </summary>
  950. SHAPE_EARS_OUT = 12,
  951. /// <summary>
  952. /// Eyebrow Points - Smooth 0--+255 Pointy
  953. /// </summary>
  954. HAIR_POINTY_EYEBROWS = 13,
  955. /// <summary>
  956. /// Jaw Shape - Pointy 0--+255 Square
  957. /// </summary>
  958. SHAPE_SQUARE_JAW = 14,
  959. /// <summary>
  960. /// Upper Cheeks - Thin 0--+255 Puffy
  961. /// </summary>
  962. SHAPE_PUFFY_UPPER_CHEEKS = 15,
  963. /// <summary>
  964. /// Nose Tip Angle - Downturned 0--+255 Upturned
  965. /// </summary>
  966. SHAPE_UPTURNED_NOSE_TIP = 16,
  967. /// <summary>
  968. /// Nose Thickness - Thin Nose 0--+255 Bulbous Nose
  969. /// </summary>
  970. SHAPE_BULBOUS_NOSE = 17,
  971. /// <summary>
  972. /// Upper Eyelid Fold - Uncreased 0--+255 Creased
  973. /// </summary>
  974. SHAPE_UPPER_EYELID_FOLD = 18,
  975. /// <summary>
  976. /// Attached Earlobes - Unattached 0--+255 Attached
  977. /// </summary>
  978. SHAPE_ATTACHED_EARLOBES = 19,
  979. /// <summary>
  980. /// Eye Bags - Smooth 0--+255 Baggy
  981. /// </summary>
  982. SHAPE_BAGGY_EYES = 20,
  983. /// <summary>
  984. /// Eye Opening - Narrow 0--+255 Wide
  985. /// </summary>
  986. SHAPE_WIDE_EYES = 21,
  987. /// <summary>
  988. /// Lip Cleft - Narrow 0--+255 Wide
  989. /// </summary>
  990. SHAPE_WIDE_LIP_CLEFT = 22,
  991. /// <summary>
  992. /// Bridge Width - Narrow 0--+255 Wide
  993. /// </summary>
  994. SHAPE_WIDE_NOSE_BRIDGE = 23,
  995. /// <summary>
  996. /// Eyebrow Arc - Flat 0--+255 Arced
  997. /// </summary>
  998. HAIR_ARCED_EYEBROWS = 24,
  999. /// <summary>
  1000. /// Height - Short 0--+255 Tall
  1001. /// </summary>
  1002. SHAPE_HEIGHT = 25,
  1003. /// <summary>
  1004. /// Body Thickness - Body Thin 0--+255 Body Thick
  1005. /// </summary>
  1006. SHAPE_THICKNESS = 26,
  1007. /// <summary>
  1008. /// Ear Size - Small 0--+255 Large
  1009. /// </summary>
  1010. SHAPE_BIG_EARS = 27,
  1011. /// <summary>
  1012. /// Shoulders - Narrow 0--+255 Broad
  1013. /// </summary>
  1014. SHAPE_SHOULDERS = 28,
  1015. /// <summary>
  1016. /// Hip Width - Narrow 0--+255 Wide
  1017. /// </summary>
  1018. SHAPE_HIP_WIDTH = 29,
  1019. /// <summary>
  1020. /// - Short Torso 0--+255 Long Torso
  1021. /// </summary>
  1022. SHAPE_TORSO_LENGTH = 30,
  1023. SHAPE_MALE = 31,
  1024. /// <summary>
  1025. /// - Short 0--+255 Long
  1026. /// </summary>
  1027. GLOVES_GLOVE_LENGTH = 32,
  1028. /// <summary>
  1029. /// - Darker 0--+255 Lighter
  1030. /// </summary>
  1031. EYES_EYE_LIGHTNESS = 33,
  1032. /// <summary>
  1033. /// - Natural 0--+255 Unnatural
  1034. /// </summary>
  1035. EYES_EYE_COLOR = 34,
  1036. /// <summary>
  1037. /// - Small 0--+255 Large
  1038. /// </summary>
  1039. SHAPE_BREAST_SIZE = 35,
  1040. /// <summary>
  1041. /// - None 0--+255 Wild
  1042. /// </summary>
  1043. SKIN_RAINBOW_COLOR = 36,
  1044. /// <summary>
  1045. /// Ruddiness - Pale 0--+255 Ruddy
  1046. /// </summary>
  1047. SKIN_RED_SKIN = 37,
  1048. /// <summary>
  1049. /// - Light 0--+255 Dark
  1050. /// </summary>
  1051. SKIN_PIGMENT = 38,
  1052. HAIR_RAINBOW_COLOR_39 = 39,
  1053. /// <summary>
  1054. /// - No Red 0--+255 Very Red
  1055. /// </summary>
  1056. HAIR_RED_HAIR = 40,
  1057. /// <summary>
  1058. /// - Black 0--+255 Blonde
  1059. /// </summary>
  1060. HAIR_BLONDE_HAIR = 41,
  1061. /// <summary>
  1062. /// - No White 0--+255 All White
  1063. /// </summary>
  1064. HAIR_WHITE_HAIR = 42,
  1065. /// <summary>
  1066. /// - Less Rosy 0--+255 More Rosy
  1067. /// </summary>
  1068. SKIN_ROSY_COMPLEXION = 43,
  1069. /// <summary>
  1070. /// - Darker 0--+255 Pinker
  1071. /// </summary>
  1072. SKIN_LIP_PINKNESS = 44,
  1073. /// <summary>
  1074. /// - Thin Eyebrows 0--+255 Bushy Eyebrows
  1075. /// </summary>
  1076. HAIR_EYEBROW_SIZE = 45,
  1077. /// <summary>
  1078. /// - Short 0--+255 Long
  1079. /// </summary>
  1080. HAIR_FRONT_FRINGE = 46,
  1081. /// <summary>
  1082. /// - Short 0--+255 Long
  1083. /// </summary>
  1084. HAIR_SIDE_FRINGE = 47,
  1085. /// <summary>
  1086. /// - Short 0--+255 Long
  1087. /// </summary>
  1088. HAIR_BACK_FRINGE = 48,
  1089. /// <summary>
  1090. /// - Short 0--+255 Long
  1091. /// </summary>
  1092. HAIR_HAIR_FRONT = 49,
  1093. /// <summary>
  1094. /// - Short 0--+255 Long
  1095. /// </summary>
  1096. HAIR_HAIR_SIDES = 50,
  1097. /// <summary>
  1098. /// - Short 0--+255 Long
  1099. /// </summary>
  1100. HAIR_HAIR_BACK = 51,
  1101. /// <summary>
  1102. /// - Sweep Forward 0--+255 Sweep Back
  1103. /// </summary>
  1104. HAIR_HAIR_SWEEP = 52,
  1105. /// <summary>
  1106. /// - Left 0--+255 Right
  1107. /// </summary>
  1108. HAIR_HAIR_TILT = 53,
  1109. /// <summary>
  1110. /// Middle Part - No Part 0--+255 Part
  1111. /// </summary>
  1112. HAIR_HAIR_PART_MIDDLE = 54,
  1113. /// <summary>
  1114. /// Right Part - No Part 0--+255 Part
  1115. /// </summary>
  1116. HAIR_HAIR_PART_RIGHT = 55,
  1117. /// <summary>
  1118. /// Left Part - No Part 0--+255 Part
  1119. /// </summary>
  1120. HAIR_HAIR_PART_LEFT = 56,
  1121. /// <summary>
  1122. /// Full Hair Sides - Mowhawk 0--+255 Full Sides
  1123. /// </summary>
  1124. HAIR_HAIR_SIDES_FULL = 57,
  1125. /// <summary>
  1126. /// - Less 0--+255 More
  1127. /// </summary>
  1128. SKIN_BODY_DEFINITION = 58,
  1129. /// <summary>
  1130. /// Lip Width - Narrow Lips 0--+255 Wide Lips
  1131. /// </summary>
  1132. SHAPE_LIP_WIDTH = 59,
  1133. /// <summary>
  1134. /// - Small 0--+255 Big
  1135. /// </summary>
  1136. SHAPE_BELLY_SIZE = 60,
  1137. /// <summary>
  1138. /// - Less 0--+255 More
  1139. /// </summary>
  1140. SKIN_FACIAL_DEFINITION = 61,
  1141. /// <summary>
  1142. /// - Less 0--+255 More
  1143. /// </summary>
  1144. SKIN_WRINKLES = 62,
  1145. /// <summary>
  1146. /// - Less 0--+255 More
  1147. /// </summary>
  1148. SKIN_FRECKLES = 63,
  1149. /// <summary>
  1150. /// - Short Sideburns 0--+255 Mutton Chops
  1151. /// </summary>
  1152. HAIR_SIDEBURNS = 64,
  1153. /// <summary>
  1154. /// - Chaplin 0--+255 Handlebars
  1155. /// </summary>
  1156. HAIR_MOUSTACHE = 65,
  1157. /// <summary>
  1158. /// - Less soul 0--+255 More soul
  1159. /// </summary>
  1160. HAIR_SOULPATCH = 66,
  1161. /// <summary>
  1162. /// - Less Curtains 0--+255 More Curtains
  1163. /// </summary>
  1164. HAIR_CHIN_CURTAINS = 67,
  1165. /// <summary>
  1166. /// Rumpled Hair - Smooth Hair 0--+255 Rumpled Hair
  1167. /// </summary>
  1168. HAIR_HAIR_RUMPLED = 68,
  1169. /// <summary>
  1170. /// Big Hair Front - Less 0--+255 More
  1171. /// </summary>
  1172. HAIR_HAIR_BIG_FRONT = 69,
  1173. /// <summary>
  1174. /// Big Hair Top - Less 0--+255 More
  1175. /// </summary>
  1176. HAIR_HAIR_BIG_TOP = 70,
  1177. /// <summary>
  1178. /// Big Hair Back - Less 0--+255 More
  1179. /// </summary>
  1180. HAIR_HAIR_BIG_BACK = 71,
  1181. /// <summary>
  1182. /// Spiked Hair - No Spikes 0--+255 Big Spikes
  1183. /// </summary>
  1184. HAIR_HAIR_SPIKED = 72,
  1185. /// <summary>
  1186. /// Chin Depth - Shallow 0--+255 Deep
  1187. /// </summary>
  1188. SHAPE_DEEP_CHIN = 73,
  1189. /// <summary>
  1190. /// Part Bangs - No Part 0--+255 Part Bangs
  1191. /// </summary>
  1192. HAIR_BANGS_PART_MIDDLE = 74,
  1193. /// <summary>
  1194. /// Head Shape - More Square 0--+255 More Round
  1195. /// </summary>
  1196. SHAPE_HEAD_SHAPE = 75,
  1197. /// <summary>
  1198. /// Eye Spacing - Close Set Eyes 0--+255 Far Set Eyes
  1199. /// </summary>
  1200. SHAPE_EYE_SPACING = 76,
  1201. /// <summary>
  1202. /// - Low Heels 0--+255 High Heels
  1203. /// </summary>
  1204. SHOES_HEEL_HEIGHT = 77,
  1205. /// <summary>
  1206. /// - Low Platforms 0--+255 High Platforms
  1207. /// </summary>
  1208. SHOES_PLATFORM_HEIGHT = 78,
  1209. /// <summary>
  1210. /// - Thin Lips 0--+255 Fat Lips
  1211. /// </summary>
  1212. SHAPE_LIP_THICKNESS = 79,
  1213. /// <summary>
  1214. /// Mouth Position - High 0--+255 Low
  1215. /// </summary>
  1216. SHAPE_MOUTH_HEIGHT = 80,
  1217. /// <summary>
  1218. /// Breast Buoyancy - Less Gravity 0--+255 More Gravity
  1219. /// </summary>
  1220. SHAPE_BREAST_GRAVITY = 81,
  1221. /// <summary>
  1222. /// Platform Width - Narrow 0--+255 Wide
  1223. /// </summary>
  1224. SHOES_SHOE_PLATFORM_WIDTH = 82,
  1225. /// <summary>
  1226. /// - Pointy Heels 0--+255 Thick Heels
  1227. /// </summary>
  1228. SHOES_HEEL_SHAPE = 83,
  1229. /// <summary>
  1230. /// - Pointy 0--+255 Square
  1231. /// </summary>
  1232. SHOES_TOE_SHAPE = 84,
  1233. /// <summary>
  1234. /// Foot Size - Small 0--+255 Big
  1235. /// </summary>
  1236. SHAPE_FOOT_SIZE = 85,
  1237. /// <summary>
  1238. /// Nose Width - Narrow 0--+255 Wide
  1239. /// </summary>
  1240. SHAPE_WIDE_NOSE = 86,
  1241. /// <summary>
  1242. /// Eyelash Length - Short 0--+255 Long
  1243. /// </summary>
  1244. SHAPE_EYELASHES_LONG = 87,
  1245. /// <summary>
  1246. /// - Short 0--+255 Long
  1247. /// </summary>
  1248. UNDERSHIRT_SLEEVE_LENGTH = 88,
  1249. /// <summary>
  1250. /// - Short 0--+255 Long
  1251. /// </summary>
  1252. UNDERSHIRT_BOTTOM = 89,
  1253. /// <summary>
  1254. /// - Low 0--+255 High
  1255. /// </summary>
  1256. UNDERSHIRT_COLLAR_FRONT = 90,
  1257. JACKET_SLEEVE_LENGTH_91 = 91,
  1258. JACKET_COLLAR_FRONT_92 = 92,
  1259. /// <summary>
  1260. /// Jacket Length - Short 0--+255 Long
  1261. /// </summary>
  1262. JACKET_BOTTOM_LENGTH_LOWER = 93,
  1263. /// <summary>
  1264. /// Open Front - Open 0--+255 Closed
  1265. /// </summary>
  1266. JACKET_OPEN_JACKET = 94,
  1267. /// <summary>
  1268. /// - Short 0--+255 Tall
  1269. /// </summary>
  1270. SHOES_SHOE_HEIGHT = 95,
  1271. /// <summary>
  1272. /// - Short 0--+255 Long
  1273. /// </summary>
  1274. SOCKS_SOCKS_LENGTH = 96,
  1275. /// <summary>
  1276. /// - Short 0--+255 Long
  1277. /// </summary>
  1278. UNDERPANTS_PANTS_LENGTH = 97,
  1279. /// <summary>
  1280. /// - Low 0--+255 High
  1281. /// </summary>
  1282. UNDERPANTS_PANTS_WAIST = 98,
  1283. /// <summary>
  1284. /// Cuff Flare - Tight Cuffs 0--+255 Flared Cuffs
  1285. /// </summary>
  1286. PANTS_LEG_PANTFLAIR = 99,
  1287. /// <summary>
  1288. /// - More Vertical 0--+255 More Sloped
  1289. /// </summary>
  1290. SHAPE_FOREHEAD_ANGLE = 100,
  1291. /// <summary>
  1292. /// - Less Body Fat 0--+255 More Body Fat
  1293. /// </summary>
  1294. SHAPE_BODY_FAT = 101,
  1295. /// <summary>
  1296. /// Pants Crotch - High and Tight 0--+255 Low and Loose
  1297. /// </summary>
  1298. PANTS_LOW_CROTCH = 102,
  1299. /// <summary>
  1300. /// Egg Head - Chin Heavy 0--+255 Forehead Heavy
  1301. /// </summary>
  1302. SHAPE_EGG_HEAD = 103,
  1303. /// <summary>
  1304. /// Head Stretch - Squash Head 0--+255 Stretch Head
  1305. /// </summary>
  1306. SHAPE_SQUASH_STRETCH_HEAD = 104,
  1307. /// <summary>
  1308. /// Torso Muscles - Less Muscular 0--+255 More Muscular
  1309. /// </summary>
  1310. SHAPE_TORSO_MUSCLES = 105,
  1311. /// <summary>
  1312. /// Outer Eye Corner - Corner Down 0--+255 Corner Up
  1313. /// </summary>
  1314. SHAPE_EYELID_CORNER_UP = 106,
  1315. /// <summary>
  1316. /// - Less Muscular 0--+255 More Muscular
  1317. /// </summary>
  1318. SHAPE_LEG_MUSCLES = 107,
  1319. /// <summary>
  1320. /// Lip Fullness - Less Full 0--+255 More Full
  1321. /// </summary>
  1322. SHAPE_TALL_LIPS = 108,
  1323. /// <summary>
  1324. /// Toe Thickness - Flat Toe 0--+255 Thick Toe
  1325. /// </summary>
  1326. SHOES_SHOE_TOE_THICK = 109,
  1327. /// <summary>
  1328. /// Crooked Nose - Nose Left 0--+255 Nose Right
  1329. /// </summary>
  1330. SHAPE_CROOKED_NOSE = 110,
  1331. /// <summary>
  1332. /// - Corner Down 0--+255 Corner Up
  1333. /// </summary>
  1334. SHAPE_MOUTH_CORNER = 111,
  1335. /// <summary>
  1336. /// - Shear Right Up 0--+255 Shear Left Up
  1337. /// </summary>
  1338. SHAPE_FACE_SHEAR = 112,
  1339. /// <summary>
  1340. /// Shift Mouth - Shift Left 0--+255 Shift Right
  1341. /// </summary>
  1342. SHAPE_SHIFT_MOUTH = 113,
  1343. /// <summary>
  1344. /// Eye Pop - Pop Right Eye 0--+255 Pop Left Eye
  1345. /// </summary>
  1346. SHAPE_POP_EYE = 114,
  1347. /// <summary>
  1348. /// Jaw Jut - Overbite 0--+255 Underbite
  1349. /// </summary>
  1350. SHAPE_JAW_JUT = 115,
  1351. /// <summary>
  1352. /// Shear Back - Full Back 0--+255 Sheared Back
  1353. /// </summary>
  1354. HAIR_HAIR_SHEAR_BACK = 116,
  1355. /// <summary>
  1356. /// - Small Hands 0--+255 Large Hands
  1357. /// </summary>
  1358. SHAPE_HAND_SIZE = 117,
  1359. /// <summary>
  1360. /// Love Handles - Less Love 0--+255 More Love
  1361. /// </summary>
  1362. SHAPE_LOVE_HANDLES = 118,
  1363. SHAPE_TORSO_MUSCLES_119 = 119,
  1364. /// <summary>
  1365. /// Head Size - Small Head 0--+255 Big Head
  1366. /// </summary>
  1367. SHAPE_HEAD_SIZE = 120,
  1368. /// <summary>
  1369. /// - Skinny Neck 0--+255 Thick Neck
  1370. /// </summary>
  1371. SHAPE_NECK_THICKNESS = 121,
  1372. /// <summary>
  1373. /// Breast Cleavage - Separate 0--+255 Join
  1374. /// </summary>
  1375. SHAPE_BREAST_FEMALE_CLEAVAGE = 122,
  1376. /// <summary>
  1377. /// Pectorals - Big Pectorals 0--+255 Sunken Chest
  1378. /// </summary>
  1379. SHAPE_CHEST_MALE_NO_PECS = 123,
  1380. /// <summary>
  1381. /// Eye Size - Beady Eyes 0--+255 Anime Eyes
  1382. /// </summary>
  1383. SHAPE_EYE_SIZE = 124,
  1384. /// <summary>
  1385. /// - Short Legs 0--+255 Long Legs
  1386. /// </summary>
  1387. SHAPE_LEG_LENGTH = 125,
  1388. /// <summary>
  1389. /// - Short Arms 0--+255 Long arms
  1390. /// </summary>
  1391. SHAPE_ARM_LENGTH = 126,
  1392. /// <summary>
  1393. /// - Pink 0--+255 Black
  1394. /// </summary>
  1395. SKIN_LIPSTICK_COLOR = 127,
  1396. /// <summary>
  1397. /// - No Lipstick 0--+255 More Lipstick
  1398. /// </summary>
  1399. SKIN_LIPSTICK = 128,
  1400. /// <summary>
  1401. /// - No Lipgloss 0--+255 Glossy
  1402. /// </summary>
  1403. SKIN_LIPGLOSS = 129,
  1404. /// <summary>
  1405. /// - No Eyeliner 0--+255 Full Eyeliner
  1406. /// </summary>
  1407. SKIN_EYELINER = 130,
  1408. /// <summary>
  1409. /// - No Blush 0--+255 More Blush
  1410. /// </summary>
  1411. SKIN_BLUSH = 131,
  1412. /// <summary>
  1413. /// - Pink 0--+255 Orange
  1414. /// </summary>
  1415. SKIN_BLUSH_COLOR = 132,
  1416. /// <summary>
  1417. /// - Clear 0--+255 Opaque
  1418. /// </summary>
  1419. SKIN_OUT_SHDW_OPACITY = 133,
  1420. /// <summary>
  1421. /// - No Eyeshadow 0--+255 More Eyeshadow
  1422. /// </summary>
  1423. SKIN_OUTER_SHADOW = 134,
  1424. /// <summary>
  1425. /// - Light 0--+255 Dark
  1426. /// </summary>
  1427. SKIN_OUT_SHDW_COLOR = 135,
  1428. /// <summary>
  1429. /// - No Eyeshadow 0--+255 More Eyeshadow
  1430. /// </summary>
  1431. SKIN_INNER_SHADOW = 136,
  1432. /// <summary>
  1433. /// - No Polish 0--+255 Painted Nails
  1434. /// </summary>
  1435. SKIN_NAIL_POLISH = 137,
  1436. /// <summary>
  1437. /// - Clear 0--+255 Opaque
  1438. /// </summary>
  1439. SKIN_BLUSH_OPACITY = 138,
  1440. /// <summary>
  1441. /// - Light 0--+255 Dark
  1442. /// </summary>
  1443. SKIN_IN_SHDW_COLOR = 139,
  1444. /// <summary>
  1445. /// - Clear 0--+255 Opaque
  1446. /// </summary>
  1447. SKIN_IN_SHDW_OPACITY = 140,
  1448. /// <summary>
  1449. /// - Dark Green 0--+255 Black
  1450. /// </summary>
  1451. SKIN_EYELINER_COLOR = 141,
  1452. /// <summary>
  1453. /// - Pink 0--+255 Black
  1454. /// </summary>
  1455. SKIN_NAIL_POLISH_COLOR = 142,
  1456. /// <summary>
  1457. /// - Sparse 0--+255 Dense
  1458. /// </summary>
  1459. HAIR_EYEBROW_DENSITY = 143,
  1460. /// <summary>
  1461. /// - 5 O'Clock Shadow 0--+255 Bushy Hair
  1462. /// </summary>
  1463. HAIR_HAIR_THICKNESS = 144,
  1464. /// <summary>
  1465. /// Saddle Bags - Less Saddle 0--+255 More Saddle
  1466. /// </summary>
  1467. SHAPE_SADDLEBAGS = 145,
  1468. /// <summary>
  1469. /// Taper Back - Wide Back 0--+255 Narrow Back
  1470. /// </summary>
  1471. HAIR_HAIR_TAPER_BACK = 146,
  1472. /// <summary>
  1473. /// Taper Front - Wide Front 0--+255 Narrow Front
  1474. /// </summary>
  1475. HAIR_HAIR_TAPER_FRONT = 147,
  1476. /// <summary>
  1477. /// - Short Neck 0--+255 Long Neck
  1478. /// </summary>
  1479. SHAPE_NECK_LENGTH = 148,
  1480. /// <summary>
  1481. /// Eyebrow Height - Higher 0--+255 Lower
  1482. /// </summary>
  1483. HAIR_LOWER_EYEBROWS = 149,
  1484. /// <summary>
  1485. /// Lower Bridge - Low 0--+255 High
  1486. /// </summary>
  1487. SHAPE_LOWER_BRIDGE_NOSE = 150,
  1488. /// <summary>
  1489. /// Nostril Division - High 0--+255 Low
  1490. /// </summary>
  1491. SHAPE_LOW_SEPTUM_NOSE = 151,
  1492. /// <summary>
  1493. /// Jaw Angle - Low Jaw 0--+255 High Jaw
  1494. /// </summary>
  1495. SHAPE_JAW_ANGLE = 152,
  1496. /// <summary>
  1497. /// Shear Front - Full Front 0--+255 Sheared Front
  1498. /// </summary>
  1499. HAIR_HAIR_SHEAR_FRONT = 153,
  1500. /// <summary>
  1501. /// - Less Volume 0--+255 More Volume
  1502. /// </summary>
  1503. HAIR_HAIR_VOLUME = 154,
  1504. /// <summary>
  1505. /// Lip Cleft Depth - Shallow 0--+255 Deep
  1506. /// </summary>
  1507. SHAPE_LIP_CLEFT_DEEP = 155,
  1508. /// <summary>
  1509. /// Puffy Eyelids - Flat 0--+255 Puffy
  1510. /// </summary>
  1511. SHAPE_PUFFY_LOWER_LIDS = 156,
  1512. /// <summary>
  1513. /// - Sunken Eyes 0--+255 Bugged Eyes
  1514. /// </summary>
  1515. SHAPE_EYE_DEPTH = 157,
  1516. /// <summary>
  1517. /// - Flat Head 0--+255 Long Head
  1518. /// </summary>
  1519. SHAPE_HEAD_LENGTH = 158,
  1520. /// <summary>
  1521. /// - Less Freckles 0--+255 More Freckles
  1522. /// </summary>
  1523. SKIN_BODY_FRECKLES = 159,
  1524. /// <summary>
  1525. /// - Low 0--+255 High
  1526. /// </summary>
  1527. UNDERSHIRT_COLLAR_BACK = 160,
  1528. JACKET_COLLAR_BACK_161 = 161,
  1529. SHIRT_COLLAR_BACK_162 = 162,
  1530. /// <summary>
  1531. /// - Short Pigtails 0--+255 Long Pigtails
  1532. /// </summary>
  1533. HAIR_PIGTAILS = 163,
  1534. /// <summary>
  1535. /// - Short Ponytail 0--+255 Long Ponytail
  1536. /// </summary>
  1537. HAIR_PONYTAIL = 164,
  1538. /// <summary>
  1539. /// Butt Size - Flat Butt 0--+255 Big Butt
  1540. /// </summary>
  1541. SHAPE_BUTT_SIZE = 165,
  1542. /// <summary>
  1543. /// Ear Tips - Flat 0--+255 Pointy
  1544. /// </summary>
  1545. SHAPE_POINTY_EARS = 166,
  1546. /// <summary>
  1547. /// Lip Ratio - More Upper Lip 0--+255 More Lower Lip
  1548. /// </summary>
  1549. SHAPE_LIP_RATIO = 167,
  1550. SHIRT_SLEEVE_LENGTH_168 = 168,
  1551. /// <summary>
  1552. /// - Short 0--+255 Long
  1553. /// </summary>
  1554. SHIRT_SHIRT_BOTTOM = 169,
  1555. SHIRT_COLLAR_FRONT_170 = 170,
  1556. SHIRT_SHIRT_RED = 171,
  1557. SHIRT_SHIRT_GREEN = 172,
  1558. SHIRT_SHIRT_BLUE = 173,
  1559. PANTS_PANTS_RED = 174,
  1560. PANTS_PANTS_GREEN = 175,
  1561. PANTS_PANTS_BLUE = 176,
  1562. SHOES_SHOES_RED = 177,
  1563. SHOES_SHOES_GREEN = 178,
  1564. /// <summary>
  1565. /// - Low 0--+255 High
  1566. /// </summary>
  1567. PANTS_WAIST_HEIGHT = 179,
  1568. PANTS_PANTS_LENGTH_180 = 180,
  1569. /// <summary>
  1570. /// Pants Fit - Tight Pants 0--+255 Loose Pants
  1571. /// </summary>
  1572. PANTS_LOOSE_LOWER_CLOTHING = 181,
  1573. SHOES_SHOES_BLUE = 182,
  1574. SOCKS_SOCKS_RED = 183,
  1575. SOCKS_SOCKS_GREEN = 184,
  1576. SOCKS_SOCKS_BLUE = 185,
  1577. UNDERSHIRT_UNDERSHIRT_RED = 186,
  1578. UNDERSHIRT_UNDERSHIRT_GREEN = 187,
  1579. UNDERSHIRT_UNDERSHIRT_BLUE = 188,
  1580. UNDERPANTS_UNDERPANTS_RED = 189,
  1581. UNDERPANTS_UNDERPANTS_GREEN = 190,
  1582. UNDERPANTS_UNDERPANTS_BLUE = 191,
  1583. GLOVES_GLOVES_RED = 192,
  1584. /// <summary>
  1585. /// Shirt Fit - Tight Shirt 0--+255 Loose Shirt
  1586. /// </summary>
  1587. SHIRT_LOOSE_UPPER_CLOTHING = 193,
  1588. GLOVES_GLOVES_GREEN = 194,
  1589. GLOVES_GLOVES_BLUE = 195,
  1590. JACKET_JACKET_RED = 196,
  1591. JACKET_JACKET_GREEN = 197,
  1592. JACKET_JACKET_BLUE = 198,
  1593. /// <summary>
  1594. /// Sleeve Looseness - Tight Sleeves 0--+255 Loose Sleeves
  1595. /// </summary>
  1596. SHIRT_SHIRTSLEEVE_FLAIR = 199,
  1597. /// <summary>
  1598. /// Knee Angle - Knock Kneed 0--+255 Bow Legged
  1599. /// </summary>
  1600. SHAPE_BOWED_LEGS = 200,
  1601. /// <summary>
  1602. /// - Short hips 0--+255 Long Hips
  1603. /// </summary>
  1604. SHAPE_HIP_LENGTH = 201,
  1605. /// <summary>
  1606. /// - Fingerless 0--+255 Fingers
  1607. /// </summary>
  1608. GLOVES_GLOVE_FINGERS = 202,
  1609. /// <summary>
  1610. /// bustle skirt - no bustle 0--+255 more bustle
  1611. /// </summary>
  1612. SKIRT_SKIRT_BUSTLE = 203,
  1613. /// <summary>
  1614. /// - Short 0--+255 Long
  1615. /// </summary>
  1616. SKIRT_SKIRT_LENGTH = 204,
  1617. /// <summary>
  1618. /// - Open Front 0--+255 Closed Front
  1619. /// </summary>
  1620. SKIRT_SLIT_FRONT = 205,
  1621. /// <summary>
  1622. /// - Open Back 0--+255 Closed Back
  1623. /// </summary>
  1624. SKIRT_SLIT_BACK = 206,
  1625. /// <summary>
  1626. /// - Open Left 0--+255 Closed Left
  1627. /// </summary>
  1628. SKIRT_SLIT_LEFT = 207,
  1629. /// <summary>
  1630. /// - Open Right 0--+255 Closed Right
  1631. /// </summary>
  1632. SKIRT_SLIT_RIGHT = 208,
  1633. /// <summary>
  1634. /// Skirt Fit - Tight Skirt 0--+255 Poofy Skirt
  1635. /// </summary>
  1636. SKIRT_SKIRT_LOOSENESS = 209,
  1637. SHIRT_SHIRT_WRINKLES = 210,
  1638. PANTS_PANTS_WRINKLES = 211,
  1639. /// <summary>
  1640. /// Jacket Wrinkles - No Wrinkles 0--+255 Wrinkles
  1641. /// </summary>
  1642. JACKET_JACKET_WRINKLES = 212,
  1643. /// <summary>
  1644. /// Package - Coin Purse 0--+255 Duffle Bag
  1645. /// </summary>
  1646. SHAPE_MALE_PACKAGE = 213,
  1647. /// <summary>
  1648. /// Inner Eye Corner - Corner Down 0--+255 Corner Up
  1649. /// </summary>
  1650. SHAPE_EYELID_INNER_CORNER_UP = 214,
  1651. SKIRT_SKIRT_RED = 215,
  1652. SKIRT_SKIRT_GREEN = 216,
  1653. SKIRT_SKIRT_BLUE = 217,
  1654. /// <summary>
  1655. /// Avatar Physics section. These are 0 type visual params which get transmitted.
  1656. /// </summary>
  1657. /// <summary>
  1658. /// Breast Part 1
  1659. /// </summary>
  1660. BREAST_PHYSICS_MASS = 218,
  1661. BREAST_PHYSICS_GRAVITY = 219,
  1662. BREAST_PHYSICS_DRAG = 220,
  1663. BREAST_PHYSICS_UPDOWN_MAX_EFFECT = 221,
  1664. BREAST_PHYSICS_UPDOWN_SPRING = 222,
  1665. BREAST_PHYSICS_UPDOWN_GAIN = 223,
  1666. BREAST_PHYSICS_UPDOWN_DAMPING = 224,
  1667. BREAST_PHYSICS_INOUT_MAX_EFFECT = 225,
  1668. BREAST_PHYSICS_INOUT_SPRING = 226,
  1669. BREAST_PHYSICS_INOUT_GAIN = 227,
  1670. BREAST_PHYSICS_INOUT_DAMPING = 228,
  1671. /// <summary>
  1672. /// Belly
  1673. /// </summary>
  1674. BELLY_PHYISCS_MASS = 229,
  1675. BELLY_PHYSICS_GRAVITY = 230,
  1676. BELLY_PHYSICS_DRAG = 231,
  1677. BELLY_PHYISCS_UPDOWN_MAX_EFFECT = 232,
  1678. BELLY_PHYSICS_UPDOWN_SPRING = 233,
  1679. BELLY_PHYSICS_UPDOWN_GAIN = 234,
  1680. BELLY_PHYSICS_UPDOWN_DAMPING = 235,
  1681. /// <summary>
  1682. /// Butt
  1683. /// </summary>
  1684. BUTT_PHYSICS_MASS = 236,
  1685. BUTT_PHYSICS_GRAVITY = 237,
  1686. BUTT_PHYSICS_DRAG = 238,
  1687. BUTT_PHYSICS_UPDOWN_MAX_EFFECT = 239,
  1688. BUTT_PHYSICS_UPDOWN_SPRING = 240,
  1689. BUTT_PHYSICS_UPDOWN_GAIN = 241,
  1690. BUTT_PHYSICS_UPDOWN_DAMPING = 242,
  1691. BUTT_PHYSICS_LEFTRIGHT_MAX_EFFECT = 243,
  1692. BUTT_PHYSICS_LEFTRIGHT_SPRING = 244,
  1693. BUTT_PHYSICS_LEFTRIGHT_GAIN = 245,
  1694. BUTT_PHYSICS_LEFTRIGHT_DAMPING = 246,
  1695. /// <summary>
  1696. /// Breast Part 2
  1697. /// </summary>
  1698. BREAST_PHYSICS_LEFTRIGHT_MAX_EFFECT = 247,
  1699. BREAST_PHYSICS_LEFTRIGHT_SPRING= 248,
  1700. BREAST_PHYSICS_LEFTRIGHT_GAIN = 249,
  1701. BREAST_PHYSICS_LEFTRIGHT_DAMPING = 250,
  1702. // Ubit: 07/96/2013 new parameters
  1703. _APPEARANCEMESSAGE_VERSION = 251, //ID 11000
  1704. SHAPE_HOVER = 252, //ID 11001
  1705. }
  1706. #endregion
  1707. }
  1708. }