AvatarAppearance.cs 67 KB

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