AvatarAppearance.cs 68 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868
  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 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.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 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.IsZero())
  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.IsZero() && 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(bool NoHuds = true)
  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.IsZero())
  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. {
  749. if (NoHuds &&
  750. attach.AttachPoint >= (uint)AttachmentPoint.HUDCenter2 &&
  751. attach.AttachPoint <= (uint)AttachmentPoint.HUDBottomRight)
  752. continue;
  753. attachs.Add(attach.Pack());
  754. }
  755. data["attachments"] = attachs;
  756. }
  757. return data;
  758. }
  759. /// <summary>
  760. /// Unpack and OSDMap and initialize the appearance
  761. /// from it
  762. /// </summary>
  763. public void Unpack(OSDMap data)
  764. {
  765. SetDefaultWearables();
  766. SetDefaultTexture();
  767. SetDefaultParams();
  768. m_attachments = new Dictionary<int, List<AvatarAttachment>>();
  769. if(data == null)
  770. {
  771. m_log.Warn("[AVATAR APPEARANCE]: data to unpack is null");
  772. return;
  773. }
  774. OSD tmpOSD;
  775. if (data.TryGetValue("serial", out tmpOSD))
  776. m_serial = tmpOSD.AsInteger();
  777. if(data.TryGetValue("aphz", out tmpOSD))
  778. AvatarPreferencesHoverZ = (float)tmpOSD.AsReal();
  779. if (data.TryGetValue("height", out tmpOSD))
  780. SetSize(new Vector3(0.45f, 0.6f, (float)tmpOSD.AsReal()));
  781. try
  782. {
  783. // Wearables
  784. OSD tmpOSD8;
  785. OSDArray wears8 = null;
  786. int wears8Count = 0;
  787. if (data.TryGetValue("wrbls8", out tmpOSD8) && (tmpOSD8 is OSDArray))
  788. {
  789. wears8 = (OSDArray)tmpOSD8;
  790. wears8Count = wears8.Count;
  791. }
  792. if (data.TryGetValue("wearables", out tmpOSD) && (tmpOSD is OSDArray))
  793. {
  794. OSDArray wears = (OSDArray)tmpOSD;
  795. if(wears.Count + wears8Count > 0)
  796. {
  797. m_wearables = new AvatarWearable[wears.Count + wears8Count];
  798. for (int i = 0; i < wears.Count; ++i)
  799. m_wearables[i] = new AvatarWearable((OSDArray)wears[i]);
  800. if (wears8Count > 0)
  801. {
  802. for (int i = 0; i < wears8Count; ++i)
  803. m_wearables[i + wears.Count] = new AvatarWearable((OSDArray)wears8[i]);
  804. }
  805. }
  806. }
  807. if (data.TryGetValue("te8", out tmpOSD))
  808. {
  809. byte[] teb = tmpOSD.AsBinary();
  810. Primitive.TextureEntry te = new Primitive.TextureEntry(teb, 0, teb.Length);
  811. m_texture = te;
  812. }
  813. else if (data.TryGetValue("textures", out tmpOSD) && (tmpOSD is OSDArray))
  814. {
  815. OSDArray textures = (OSDArray)tmpOSD;
  816. for (int i = 0; i < textures.Count && i < TEXTURE_COUNT_PV7; ++i)
  817. {
  818. tmpOSD = textures[i];
  819. if (tmpOSD != null)
  820. m_texture.CreateFace((uint)i).TextureID = tmpOSD.AsUUID();
  821. }
  822. }
  823. if (data.TryGetValue("bakedcache", out tmpOSD) && (tmpOSD is OSDArray))
  824. {
  825. OSDArray bakedOSDArray = (OSDArray)tmpOSD;
  826. m_cacheitems = WearableCacheItem.GetDefaultCacheItem();
  827. bakedOSDArray = (OSDArray)tmpOSD;
  828. foreach (OSDMap item in bakedOSDArray)
  829. {
  830. int idx = item["textureindex"].AsInteger();
  831. if (idx < 0 || idx >= m_cacheitems.Length)
  832. continue;
  833. m_cacheitems[idx].CacheId = item["cacheid"].AsUUID();
  834. m_cacheitems[idx].TextureID = item["textureid"].AsUUID();
  835. m_cacheitems[idx].TextureAsset = null;
  836. }
  837. if (data.TryGetValue("bc8", out tmpOSD) && (tmpOSD is OSDArray))
  838. {
  839. bakedOSDArray = (OSDArray)tmpOSD;
  840. foreach (OSDMap item in bakedOSDArray)
  841. {
  842. int idx = item["textureindex"].AsInteger();
  843. if (idx < 0 || idx >= m_cacheitems.Length)
  844. continue;
  845. m_cacheitems[idx].CacheId = item["cacheid"].AsUUID();
  846. m_cacheitems[idx].TextureID = item["textureid"].AsUUID();
  847. m_cacheitems[idx].TextureAsset = null;
  848. }
  849. }
  850. }
  851. // Visual Parameters
  852. if (data.TryGetValue("visualparams", out tmpOSD))
  853. {
  854. if (tmpOSD is OSDBinary || tmpOSD is OSDArray)
  855. m_visualparams = tmpOSD.AsBinary();
  856. }
  857. else
  858. {
  859. m_log.Warn("[AVATAR APPEARANCE]: failed to unpack visual parameters");
  860. }
  861. // Attachments
  862. if (data.TryGetValue("attachments", out tmpOSD) && tmpOSD is OSDArray)
  863. {
  864. OSDArray attachs = (OSDArray)tmpOSD;
  865. for (int i = 0; i < attachs.Count; i++)
  866. {
  867. AvatarAttachment att = new AvatarAttachment((OSDMap)attachs[i]);
  868. AppendAttachment(att);
  869. // m_log.DebugFormat(
  870. // "[AVATAR APPEARANCE]: Unpacked attachment itemID {0}, assetID {1}, point {2}",
  871. // att.ItemID, att.AssetID, att.AttachPoint);
  872. }
  873. }
  874. }
  875. catch (Exception e)
  876. {
  877. m_log.ErrorFormat("[AVATAR APPEARANCE]: unpack failed badly: {0}{1}", e.Message, e.StackTrace);
  878. }
  879. }
  880. #endregion
  881. public bool CanTeleport(float version)
  882. {
  883. if (version >= 0.8)
  884. return true;
  885. if (m_wearables.Length <= MAXWEARABLE_PV7)
  886. return true;
  887. for(int i = MAXWEARABLE_PV7; i < m_wearables.Length; ++i)
  888. {
  889. if(m_wearables[i].Count > 0)
  890. return false;
  891. }
  892. // also check baked
  893. for (int i = BAKES_COUNT_PV7; i < BAKE_INDICES.Length; i++)
  894. {
  895. int idx = BAKE_INDICES[i];
  896. if (m_texture.FaceTextures[idx] == null)
  897. continue;
  898. if (m_texture.FaceTextures[idx].TextureID.IsZero() || m_texture.FaceTextures[idx].TextureID.Equals(AppearanceManager.DEFAULT_AVATAR_TEXTURE))
  899. continue;
  900. return false;
  901. }
  902. return true;
  903. }
  904. #region VPElement
  905. /// <summary>
  906. /// Viewer Params Array Element for AgentSetAppearance
  907. /// Generated from LibOMV's Visual Params list
  908. /// </summary>
  909. public enum VPElement : int
  910. {
  911. /// <summary>
  912. /// Brow Size - Small 0--+255 Large
  913. /// </summary>
  914. SHAPE_BIG_BROW = 0,
  915. /// <summary>
  916. /// Nose Size - Small 0--+255 Large
  917. /// </summary>
  918. SHAPE_NOSE_BIG_OUT = 1,
  919. /// <summary>
  920. /// Nostril Width - Narrow 0--+255 Broad
  921. /// </summary>
  922. SHAPE_BROAD_NOSTRILS = 2,
  923. /// <summary>
  924. /// Chin Cleft - Round 0--+255 Cleft
  925. /// </summary>
  926. SHAPE_CLEFT_CHIN = 3,
  927. /// <summary>
  928. /// Nose Tip Shape - Pointy 0--+255 Bulbous
  929. /// </summary>
  930. SHAPE_BULBOUS_NOSE_TIP = 4,
  931. /// <summary>
  932. /// Chin Angle - Chin Out 0--+255 Chin In
  933. /// </summary>
  934. SHAPE_WEAK_CHIN = 5,
  935. /// <summary>
  936. /// Chin-Neck - Tight Chin 0--+255 Double Chin
  937. /// </summary>
  938. SHAPE_DOUBLE_CHIN = 6,
  939. /// <summary>
  940. /// Lower Cheeks - Well-Fed 0--+255 Sunken
  941. /// </summary>
  942. SHAPE_SUNKEN_CHEEKS = 7,
  943. /// <summary>
  944. /// Upper Bridge - Low 0--+255 High
  945. /// </summary>
  946. SHAPE_NOBLE_NOSE_BRIDGE = 8,
  947. /// <summary>
  948. /// - Less 0--+255 More
  949. /// </summary>
  950. SHAPE_JOWLS = 9,
  951. /// <summary>
  952. /// Upper Chin Cleft - Round 0--+255 Cleft
  953. /// </summary>
  954. SHAPE_CLEFT_CHIN_UPPER = 10,
  955. /// <summary>
  956. /// Cheek Bones - Low 0--+255 High
  957. /// </summary>
  958. SHAPE_HIGH_CHEEK_BONES = 11,
  959. /// <summary>
  960. /// Ear Angle - In 0--+255 Out
  961. /// </summary>
  962. SHAPE_EARS_OUT = 12,
  963. /// <summary>
  964. /// Eyebrow Points - Smooth 0--+255 Pointy
  965. /// </summary>
  966. HAIR_POINTY_EYEBROWS = 13,
  967. /// <summary>
  968. /// Jaw Shape - Pointy 0--+255 Square
  969. /// </summary>
  970. SHAPE_SQUARE_JAW = 14,
  971. /// <summary>
  972. /// Upper Cheeks - Thin 0--+255 Puffy
  973. /// </summary>
  974. SHAPE_PUFFY_UPPER_CHEEKS = 15,
  975. /// <summary>
  976. /// Nose Tip Angle - Downturned 0--+255 Upturned
  977. /// </summary>
  978. SHAPE_UPTURNED_NOSE_TIP = 16,
  979. /// <summary>
  980. /// Nose Thickness - Thin Nose 0--+255 Bulbous Nose
  981. /// </summary>
  982. SHAPE_BULBOUS_NOSE = 17,
  983. /// <summary>
  984. /// Upper Eyelid Fold - Uncreased 0--+255 Creased
  985. /// </summary>
  986. SHAPE_UPPER_EYELID_FOLD = 18,
  987. /// <summary>
  988. /// Attached Earlobes - Unattached 0--+255 Attached
  989. /// </summary>
  990. SHAPE_ATTACHED_EARLOBES = 19,
  991. /// <summary>
  992. /// Eye Bags - Smooth 0--+255 Baggy
  993. /// </summary>
  994. SHAPE_BAGGY_EYES = 20,
  995. /// <summary>
  996. /// Eye Opening - Narrow 0--+255 Wide
  997. /// </summary>
  998. SHAPE_WIDE_EYES = 21,
  999. /// <summary>
  1000. /// Lip Cleft - Narrow 0--+255 Wide
  1001. /// </summary>
  1002. SHAPE_WIDE_LIP_CLEFT = 22,
  1003. /// <summary>
  1004. /// Bridge Width - Narrow 0--+255 Wide
  1005. /// </summary>
  1006. SHAPE_WIDE_NOSE_BRIDGE = 23,
  1007. /// <summary>
  1008. /// Eyebrow Arc - Flat 0--+255 Arced
  1009. /// </summary>
  1010. HAIR_ARCED_EYEBROWS = 24,
  1011. /// <summary>
  1012. /// Height - Short 0--+255 Tall
  1013. /// </summary>
  1014. SHAPE_HEIGHT = 25,
  1015. /// <summary>
  1016. /// Body Thickness - Body Thin 0--+255 Body Thick
  1017. /// </summary>
  1018. SHAPE_THICKNESS = 26,
  1019. /// <summary>
  1020. /// Ear Size - Small 0--+255 Large
  1021. /// </summary>
  1022. SHAPE_BIG_EARS = 27,
  1023. /// <summary>
  1024. /// Shoulders - Narrow 0--+255 Broad
  1025. /// </summary>
  1026. SHAPE_SHOULDERS = 28,
  1027. /// <summary>
  1028. /// Hip Width - Narrow 0--+255 Wide
  1029. /// </summary>
  1030. SHAPE_HIP_WIDTH = 29,
  1031. /// <summary>
  1032. /// - Short Torso 0--+255 Long Torso
  1033. /// </summary>
  1034. SHAPE_TORSO_LENGTH = 30,
  1035. SHAPE_MALE = 31,
  1036. /// <summary>
  1037. /// - Short 0--+255 Long
  1038. /// </summary>
  1039. GLOVES_GLOVE_LENGTH = 32,
  1040. /// <summary>
  1041. /// - Darker 0--+255 Lighter
  1042. /// </summary>
  1043. EYES_EYE_LIGHTNESS = 33,
  1044. /// <summary>
  1045. /// - Natural 0--+255 Unnatural
  1046. /// </summary>
  1047. EYES_EYE_COLOR = 34,
  1048. /// <summary>
  1049. /// - Small 0--+255 Large
  1050. /// </summary>
  1051. SHAPE_BREAST_SIZE = 35,
  1052. /// <summary>
  1053. /// - None 0--+255 Wild
  1054. /// </summary>
  1055. SKIN_RAINBOW_COLOR = 36,
  1056. /// <summary>
  1057. /// Ruddiness - Pale 0--+255 Ruddy
  1058. /// </summary>
  1059. SKIN_RED_SKIN = 37,
  1060. /// <summary>
  1061. /// - Light 0--+255 Dark
  1062. /// </summary>
  1063. SKIN_PIGMENT = 38,
  1064. HAIR_RAINBOW_COLOR_39 = 39,
  1065. /// <summary>
  1066. /// - No Red 0--+255 Very Red
  1067. /// </summary>
  1068. HAIR_RED_HAIR = 40,
  1069. /// <summary>
  1070. /// - Black 0--+255 Blonde
  1071. /// </summary>
  1072. HAIR_BLONDE_HAIR = 41,
  1073. /// <summary>
  1074. /// - No White 0--+255 All White
  1075. /// </summary>
  1076. HAIR_WHITE_HAIR = 42,
  1077. /// <summary>
  1078. /// - Less Rosy 0--+255 More Rosy
  1079. /// </summary>
  1080. SKIN_ROSY_COMPLEXION = 43,
  1081. /// <summary>
  1082. /// - Darker 0--+255 Pinker
  1083. /// </summary>
  1084. SKIN_LIP_PINKNESS = 44,
  1085. /// <summary>
  1086. /// - Thin Eyebrows 0--+255 Bushy Eyebrows
  1087. /// </summary>
  1088. HAIR_EYEBROW_SIZE = 45,
  1089. /// <summary>
  1090. /// - Short 0--+255 Long
  1091. /// </summary>
  1092. HAIR_FRONT_FRINGE = 46,
  1093. /// <summary>
  1094. /// - Short 0--+255 Long
  1095. /// </summary>
  1096. HAIR_SIDE_FRINGE = 47,
  1097. /// <summary>
  1098. /// - Short 0--+255 Long
  1099. /// </summary>
  1100. HAIR_BACK_FRINGE = 48,
  1101. /// <summary>
  1102. /// - Short 0--+255 Long
  1103. /// </summary>
  1104. HAIR_HAIR_FRONT = 49,
  1105. /// <summary>
  1106. /// - Short 0--+255 Long
  1107. /// </summary>
  1108. HAIR_HAIR_SIDES = 50,
  1109. /// <summary>
  1110. /// - Short 0--+255 Long
  1111. /// </summary>
  1112. HAIR_HAIR_BACK = 51,
  1113. /// <summary>
  1114. /// - Sweep Forward 0--+255 Sweep Back
  1115. /// </summary>
  1116. HAIR_HAIR_SWEEP = 52,
  1117. /// <summary>
  1118. /// - Left 0--+255 Right
  1119. /// </summary>
  1120. HAIR_HAIR_TILT = 53,
  1121. /// <summary>
  1122. /// Middle Part - No Part 0--+255 Part
  1123. /// </summary>
  1124. HAIR_HAIR_PART_MIDDLE = 54,
  1125. /// <summary>
  1126. /// Right Part - No Part 0--+255 Part
  1127. /// </summary>
  1128. HAIR_HAIR_PART_RIGHT = 55,
  1129. /// <summary>
  1130. /// Left Part - No Part 0--+255 Part
  1131. /// </summary>
  1132. HAIR_HAIR_PART_LEFT = 56,
  1133. /// <summary>
  1134. /// Full Hair Sides - Mowhawk 0--+255 Full Sides
  1135. /// </summary>
  1136. HAIR_HAIR_SIDES_FULL = 57,
  1137. /// <summary>
  1138. /// - Less 0--+255 More
  1139. /// </summary>
  1140. SKIN_BODY_DEFINITION = 58,
  1141. /// <summary>
  1142. /// Lip Width - Narrow Lips 0--+255 Wide Lips
  1143. /// </summary>
  1144. SHAPE_LIP_WIDTH = 59,
  1145. /// <summary>
  1146. /// - Small 0--+255 Big
  1147. /// </summary>
  1148. SHAPE_BELLY_SIZE = 60,
  1149. /// <summary>
  1150. /// - Less 0--+255 More
  1151. /// </summary>
  1152. SKIN_FACIAL_DEFINITION = 61,
  1153. /// <summary>
  1154. /// - Less 0--+255 More
  1155. /// </summary>
  1156. SKIN_WRINKLES = 62,
  1157. /// <summary>
  1158. /// - Less 0--+255 More
  1159. /// </summary>
  1160. SKIN_FRECKLES = 63,
  1161. /// <summary>
  1162. /// - Short Sideburns 0--+255 Mutton Chops
  1163. /// </summary>
  1164. HAIR_SIDEBURNS = 64,
  1165. /// <summary>
  1166. /// - Chaplin 0--+255 Handlebars
  1167. /// </summary>
  1168. HAIR_MOUSTACHE = 65,
  1169. /// <summary>
  1170. /// - Less soul 0--+255 More soul
  1171. /// </summary>
  1172. HAIR_SOULPATCH = 66,
  1173. /// <summary>
  1174. /// - Less Curtains 0--+255 More Curtains
  1175. /// </summary>
  1176. HAIR_CHIN_CURTAINS = 67,
  1177. /// <summary>
  1178. /// Rumpled Hair - Smooth Hair 0--+255 Rumpled Hair
  1179. /// </summary>
  1180. HAIR_HAIR_RUMPLED = 68,
  1181. /// <summary>
  1182. /// Big Hair Front - Less 0--+255 More
  1183. /// </summary>
  1184. HAIR_HAIR_BIG_FRONT = 69,
  1185. /// <summary>
  1186. /// Big Hair Top - Less 0--+255 More
  1187. /// </summary>
  1188. HAIR_HAIR_BIG_TOP = 70,
  1189. /// <summary>
  1190. /// Big Hair Back - Less 0--+255 More
  1191. /// </summary>
  1192. HAIR_HAIR_BIG_BACK = 71,
  1193. /// <summary>
  1194. /// Spiked Hair - No Spikes 0--+255 Big Spikes
  1195. /// </summary>
  1196. HAIR_HAIR_SPIKED = 72,
  1197. /// <summary>
  1198. /// Chin Depth - Shallow 0--+255 Deep
  1199. /// </summary>
  1200. SHAPE_DEEP_CHIN = 73,
  1201. /// <summary>
  1202. /// Part Bangs - No Part 0--+255 Part Bangs
  1203. /// </summary>
  1204. HAIR_BANGS_PART_MIDDLE = 74,
  1205. /// <summary>
  1206. /// Head Shape - More Square 0--+255 More Round
  1207. /// </summary>
  1208. SHAPE_HEAD_SHAPE = 75,
  1209. /// <summary>
  1210. /// Eye Spacing - Close Set Eyes 0--+255 Far Set Eyes
  1211. /// </summary>
  1212. SHAPE_EYE_SPACING = 76,
  1213. /// <summary>
  1214. /// - Low Heels 0--+255 High Heels
  1215. /// </summary>
  1216. SHOES_HEEL_HEIGHT = 77,
  1217. /// <summary>
  1218. /// - Low Platforms 0--+255 High Platforms
  1219. /// </summary>
  1220. SHOES_PLATFORM_HEIGHT = 78,
  1221. /// <summary>
  1222. /// - Thin Lips 0--+255 Fat Lips
  1223. /// </summary>
  1224. SHAPE_LIP_THICKNESS = 79,
  1225. /// <summary>
  1226. /// Mouth Position - High 0--+255 Low
  1227. /// </summary>
  1228. SHAPE_MOUTH_HEIGHT = 80,
  1229. /// <summary>
  1230. /// Breast Buoyancy - Less Gravity 0--+255 More Gravity
  1231. /// </summary>
  1232. SHAPE_BREAST_GRAVITY = 81,
  1233. /// <summary>
  1234. /// Platform Width - Narrow 0--+255 Wide
  1235. /// </summary>
  1236. SHOES_SHOE_PLATFORM_WIDTH = 82,
  1237. /// <summary>
  1238. /// - Pointy Heels 0--+255 Thick Heels
  1239. /// </summary>
  1240. SHOES_HEEL_SHAPE = 83,
  1241. /// <summary>
  1242. /// - Pointy 0--+255 Square
  1243. /// </summary>
  1244. SHOES_TOE_SHAPE = 84,
  1245. /// <summary>
  1246. /// Foot Size - Small 0--+255 Big
  1247. /// </summary>
  1248. SHAPE_FOOT_SIZE = 85,
  1249. /// <summary>
  1250. /// Nose Width - Narrow 0--+255 Wide
  1251. /// </summary>
  1252. SHAPE_WIDE_NOSE = 86,
  1253. /// <summary>
  1254. /// Eyelash Length - Short 0--+255 Long
  1255. /// </summary>
  1256. SHAPE_EYELASHES_LONG = 87,
  1257. /// <summary>
  1258. /// - Short 0--+255 Long
  1259. /// </summary>
  1260. UNDERSHIRT_SLEEVE_LENGTH = 88,
  1261. /// <summary>
  1262. /// - Short 0--+255 Long
  1263. /// </summary>
  1264. UNDERSHIRT_BOTTOM = 89,
  1265. /// <summary>
  1266. /// - Low 0--+255 High
  1267. /// </summary>
  1268. UNDERSHIRT_COLLAR_FRONT = 90,
  1269. JACKET_SLEEVE_LENGTH_91 = 91,
  1270. JACKET_COLLAR_FRONT_92 = 92,
  1271. /// <summary>
  1272. /// Jacket Length - Short 0--+255 Long
  1273. /// </summary>
  1274. JACKET_BOTTOM_LENGTH_LOWER = 93,
  1275. /// <summary>
  1276. /// Open Front - Open 0--+255 Closed
  1277. /// </summary>
  1278. JACKET_OPEN_JACKET = 94,
  1279. /// <summary>
  1280. /// - Short 0--+255 Tall
  1281. /// </summary>
  1282. SHOES_SHOE_HEIGHT = 95,
  1283. /// <summary>
  1284. /// - Short 0--+255 Long
  1285. /// </summary>
  1286. SOCKS_SOCKS_LENGTH = 96,
  1287. /// <summary>
  1288. /// - Short 0--+255 Long
  1289. /// </summary>
  1290. UNDERPANTS_PANTS_LENGTH = 97,
  1291. /// <summary>
  1292. /// - Low 0--+255 High
  1293. /// </summary>
  1294. UNDERPANTS_PANTS_WAIST = 98,
  1295. /// <summary>
  1296. /// Cuff Flare - Tight Cuffs 0--+255 Flared Cuffs
  1297. /// </summary>
  1298. PANTS_LEG_PANTFLAIR = 99,
  1299. /// <summary>
  1300. /// - More Vertical 0--+255 More Sloped
  1301. /// </summary>
  1302. SHAPE_FOREHEAD_ANGLE = 100,
  1303. /// <summary>
  1304. /// - Less Body Fat 0--+255 More Body Fat
  1305. /// </summary>
  1306. SHAPE_BODY_FAT = 101,
  1307. /// <summary>
  1308. /// Pants Crotch - High and Tight 0--+255 Low and Loose
  1309. /// </summary>
  1310. PANTS_LOW_CROTCH = 102,
  1311. /// <summary>
  1312. /// Egg Head - Chin Heavy 0--+255 Forehead Heavy
  1313. /// </summary>
  1314. SHAPE_EGG_HEAD = 103,
  1315. /// <summary>
  1316. /// Head Stretch - Squash Head 0--+255 Stretch Head
  1317. /// </summary>
  1318. SHAPE_SQUASH_STRETCH_HEAD = 104,
  1319. /// <summary>
  1320. /// Torso Muscles - Less Muscular 0--+255 More Muscular
  1321. /// </summary>
  1322. SHAPE_TORSO_MUSCLES = 105,
  1323. /// <summary>
  1324. /// Outer Eye Corner - Corner Down 0--+255 Corner Up
  1325. /// </summary>
  1326. SHAPE_EYELID_CORNER_UP = 106,
  1327. /// <summary>
  1328. /// - Less Muscular 0--+255 More Muscular
  1329. /// </summary>
  1330. SHAPE_LEG_MUSCLES = 107,
  1331. /// <summary>
  1332. /// Lip Fullness - Less Full 0--+255 More Full
  1333. /// </summary>
  1334. SHAPE_TALL_LIPS = 108,
  1335. /// <summary>
  1336. /// Toe Thickness - Flat Toe 0--+255 Thick Toe
  1337. /// </summary>
  1338. SHOES_SHOE_TOE_THICK = 109,
  1339. /// <summary>
  1340. /// Crooked Nose - Nose Left 0--+255 Nose Right
  1341. /// </summary>
  1342. SHAPE_CROOKED_NOSE = 110,
  1343. /// <summary>
  1344. /// - Corner Down 0--+255 Corner Up
  1345. /// </summary>
  1346. SHAPE_MOUTH_CORNER = 111,
  1347. /// <summary>
  1348. /// - Shear Right Up 0--+255 Shear Left Up
  1349. /// </summary>
  1350. SHAPE_FACE_SHEAR = 112,
  1351. /// <summary>
  1352. /// Shift Mouth - Shift Left 0--+255 Shift Right
  1353. /// </summary>
  1354. SHAPE_SHIFT_MOUTH = 113,
  1355. /// <summary>
  1356. /// Eye Pop - Pop Right Eye 0--+255 Pop Left Eye
  1357. /// </summary>
  1358. SHAPE_POP_EYE = 114,
  1359. /// <summary>
  1360. /// Jaw Jut - Overbite 0--+255 Underbite
  1361. /// </summary>
  1362. SHAPE_JAW_JUT = 115,
  1363. /// <summary>
  1364. /// Shear Back - Full Back 0--+255 Sheared Back
  1365. /// </summary>
  1366. HAIR_HAIR_SHEAR_BACK = 116,
  1367. /// <summary>
  1368. /// - Small Hands 0--+255 Large Hands
  1369. /// </summary>
  1370. SHAPE_HAND_SIZE = 117,
  1371. /// <summary>
  1372. /// Love Handles - Less Love 0--+255 More Love
  1373. /// </summary>
  1374. SHAPE_LOVE_HANDLES = 118,
  1375. SHAPE_TORSO_MUSCLES_119 = 119,
  1376. /// <summary>
  1377. /// Head Size - Small Head 0--+255 Big Head
  1378. /// </summary>
  1379. SHAPE_HEAD_SIZE = 120,
  1380. /// <summary>
  1381. /// - Skinny Neck 0--+255 Thick Neck
  1382. /// </summary>
  1383. SHAPE_NECK_THICKNESS = 121,
  1384. /// <summary>
  1385. /// Breast Cleavage - Separate 0--+255 Join
  1386. /// </summary>
  1387. SHAPE_BREAST_FEMALE_CLEAVAGE = 122,
  1388. /// <summary>
  1389. /// Pectorals - Big Pectorals 0--+255 Sunken Chest
  1390. /// </summary>
  1391. SHAPE_CHEST_MALE_NO_PECS = 123,
  1392. /// <summary>
  1393. /// Eye Size - Beady Eyes 0--+255 Anime Eyes
  1394. /// </summary>
  1395. SHAPE_EYE_SIZE = 124,
  1396. /// <summary>
  1397. /// - Short Legs 0--+255 Long Legs
  1398. /// </summary>
  1399. SHAPE_LEG_LENGTH = 125,
  1400. /// <summary>
  1401. /// - Short Arms 0--+255 Long arms
  1402. /// </summary>
  1403. SHAPE_ARM_LENGTH = 126,
  1404. /// <summary>
  1405. /// - Pink 0--+255 Black
  1406. /// </summary>
  1407. SKIN_LIPSTICK_COLOR = 127,
  1408. /// <summary>
  1409. /// - No Lipstick 0--+255 More Lipstick
  1410. /// </summary>
  1411. SKIN_LIPSTICK = 128,
  1412. /// <summary>
  1413. /// - No Lipgloss 0--+255 Glossy
  1414. /// </summary>
  1415. SKIN_LIPGLOSS = 129,
  1416. /// <summary>
  1417. /// - No Eyeliner 0--+255 Full Eyeliner
  1418. /// </summary>
  1419. SKIN_EYELINER = 130,
  1420. /// <summary>
  1421. /// - No Blush 0--+255 More Blush
  1422. /// </summary>
  1423. SKIN_BLUSH = 131,
  1424. /// <summary>
  1425. /// - Pink 0--+255 Orange
  1426. /// </summary>
  1427. SKIN_BLUSH_COLOR = 132,
  1428. /// <summary>
  1429. /// - Clear 0--+255 Opaque
  1430. /// </summary>
  1431. SKIN_OUT_SHDW_OPACITY = 133,
  1432. /// <summary>
  1433. /// - No Eyeshadow 0--+255 More Eyeshadow
  1434. /// </summary>
  1435. SKIN_OUTER_SHADOW = 134,
  1436. /// <summary>
  1437. /// - Light 0--+255 Dark
  1438. /// </summary>
  1439. SKIN_OUT_SHDW_COLOR = 135,
  1440. /// <summary>
  1441. /// - No Eyeshadow 0--+255 More Eyeshadow
  1442. /// </summary>
  1443. SKIN_INNER_SHADOW = 136,
  1444. /// <summary>
  1445. /// - No Polish 0--+255 Painted Nails
  1446. /// </summary>
  1447. SKIN_NAIL_POLISH = 137,
  1448. /// <summary>
  1449. /// - Clear 0--+255 Opaque
  1450. /// </summary>
  1451. SKIN_BLUSH_OPACITY = 138,
  1452. /// <summary>
  1453. /// - Light 0--+255 Dark
  1454. /// </summary>
  1455. SKIN_IN_SHDW_COLOR = 139,
  1456. /// <summary>
  1457. /// - Clear 0--+255 Opaque
  1458. /// </summary>
  1459. SKIN_IN_SHDW_OPACITY = 140,
  1460. /// <summary>
  1461. /// - Dark Green 0--+255 Black
  1462. /// </summary>
  1463. SKIN_EYELINER_COLOR = 141,
  1464. /// <summary>
  1465. /// - Pink 0--+255 Black
  1466. /// </summary>
  1467. SKIN_NAIL_POLISH_COLOR = 142,
  1468. /// <summary>
  1469. /// - Sparse 0--+255 Dense
  1470. /// </summary>
  1471. HAIR_EYEBROW_DENSITY = 143,
  1472. /// <summary>
  1473. /// - 5 O'Clock Shadow 0--+255 Bushy Hair
  1474. /// </summary>
  1475. HAIR_HAIR_THICKNESS = 144,
  1476. /// <summary>
  1477. /// Saddle Bags - Less Saddle 0--+255 More Saddle
  1478. /// </summary>
  1479. SHAPE_SADDLEBAGS = 145,
  1480. /// <summary>
  1481. /// Taper Back - Wide Back 0--+255 Narrow Back
  1482. /// </summary>
  1483. HAIR_HAIR_TAPER_BACK = 146,
  1484. /// <summary>
  1485. /// Taper Front - Wide Front 0--+255 Narrow Front
  1486. /// </summary>
  1487. HAIR_HAIR_TAPER_FRONT = 147,
  1488. /// <summary>
  1489. /// - Short Neck 0--+255 Long Neck
  1490. /// </summary>
  1491. SHAPE_NECK_LENGTH = 148,
  1492. /// <summary>
  1493. /// Eyebrow Height - Higher 0--+255 Lower
  1494. /// </summary>
  1495. HAIR_LOWER_EYEBROWS = 149,
  1496. /// <summary>
  1497. /// Lower Bridge - Low 0--+255 High
  1498. /// </summary>
  1499. SHAPE_LOWER_BRIDGE_NOSE = 150,
  1500. /// <summary>
  1501. /// Nostril Division - High 0--+255 Low
  1502. /// </summary>
  1503. SHAPE_LOW_SEPTUM_NOSE = 151,
  1504. /// <summary>
  1505. /// Jaw Angle - Low Jaw 0--+255 High Jaw
  1506. /// </summary>
  1507. SHAPE_JAW_ANGLE = 152,
  1508. /// <summary>
  1509. /// Shear Front - Full Front 0--+255 Sheared Front
  1510. /// </summary>
  1511. HAIR_HAIR_SHEAR_FRONT = 153,
  1512. /// <summary>
  1513. /// - Less Volume 0--+255 More Volume
  1514. /// </summary>
  1515. HAIR_HAIR_VOLUME = 154,
  1516. /// <summary>
  1517. /// Lip Cleft Depth - Shallow 0--+255 Deep
  1518. /// </summary>
  1519. SHAPE_LIP_CLEFT_DEEP = 155,
  1520. /// <summary>
  1521. /// Puffy Eyelids - Flat 0--+255 Puffy
  1522. /// </summary>
  1523. SHAPE_PUFFY_LOWER_LIDS = 156,
  1524. /// <summary>
  1525. /// - Sunken Eyes 0--+255 Bugged Eyes
  1526. /// </summary>
  1527. SHAPE_EYE_DEPTH = 157,
  1528. /// <summary>
  1529. /// - Flat Head 0--+255 Long Head
  1530. /// </summary>
  1531. SHAPE_HEAD_LENGTH = 158,
  1532. /// <summary>
  1533. /// - Less Freckles 0--+255 More Freckles
  1534. /// </summary>
  1535. SKIN_BODY_FRECKLES = 159,
  1536. /// <summary>
  1537. /// - Low 0--+255 High
  1538. /// </summary>
  1539. UNDERSHIRT_COLLAR_BACK = 160,
  1540. JACKET_COLLAR_BACK_161 = 161,
  1541. SHIRT_COLLAR_BACK_162 = 162,
  1542. /// <summary>
  1543. /// - Short Pigtails 0--+255 Long Pigtails
  1544. /// </summary>
  1545. HAIR_PIGTAILS = 163,
  1546. /// <summary>
  1547. /// - Short Ponytail 0--+255 Long Ponytail
  1548. /// </summary>
  1549. HAIR_PONYTAIL = 164,
  1550. /// <summary>
  1551. /// Butt Size - Flat Butt 0--+255 Big Butt
  1552. /// </summary>
  1553. SHAPE_BUTT_SIZE = 165,
  1554. /// <summary>
  1555. /// Ear Tips - Flat 0--+255 Pointy
  1556. /// </summary>
  1557. SHAPE_POINTY_EARS = 166,
  1558. /// <summary>
  1559. /// Lip Ratio - More Upper Lip 0--+255 More Lower Lip
  1560. /// </summary>
  1561. SHAPE_LIP_RATIO = 167,
  1562. SHIRT_SLEEVE_LENGTH_168 = 168,
  1563. /// <summary>
  1564. /// - Short 0--+255 Long
  1565. /// </summary>
  1566. SHIRT_SHIRT_BOTTOM = 169,
  1567. SHIRT_COLLAR_FRONT_170 = 170,
  1568. SHIRT_SHIRT_RED = 171,
  1569. SHIRT_SHIRT_GREEN = 172,
  1570. SHIRT_SHIRT_BLUE = 173,
  1571. PANTS_PANTS_RED = 174,
  1572. PANTS_PANTS_GREEN = 175,
  1573. PANTS_PANTS_BLUE = 176,
  1574. SHOES_SHOES_RED = 177,
  1575. SHOES_SHOES_GREEN = 178,
  1576. /// <summary>
  1577. /// - Low 0--+255 High
  1578. /// </summary>
  1579. PANTS_WAIST_HEIGHT = 179,
  1580. PANTS_PANTS_LENGTH_180 = 180,
  1581. /// <summary>
  1582. /// Pants Fit - Tight Pants 0--+255 Loose Pants
  1583. /// </summary>
  1584. PANTS_LOOSE_LOWER_CLOTHING = 181,
  1585. SHOES_SHOES_BLUE = 182,
  1586. SOCKS_SOCKS_RED = 183,
  1587. SOCKS_SOCKS_GREEN = 184,
  1588. SOCKS_SOCKS_BLUE = 185,
  1589. UNDERSHIRT_UNDERSHIRT_RED = 186,
  1590. UNDERSHIRT_UNDERSHIRT_GREEN = 187,
  1591. UNDERSHIRT_UNDERSHIRT_BLUE = 188,
  1592. UNDERPANTS_UNDERPANTS_RED = 189,
  1593. UNDERPANTS_UNDERPANTS_GREEN = 190,
  1594. UNDERPANTS_UNDERPANTS_BLUE = 191,
  1595. GLOVES_GLOVES_RED = 192,
  1596. /// <summary>
  1597. /// Shirt Fit - Tight Shirt 0--+255 Loose Shirt
  1598. /// </summary>
  1599. SHIRT_LOOSE_UPPER_CLOTHING = 193,
  1600. GLOVES_GLOVES_GREEN = 194,
  1601. GLOVES_GLOVES_BLUE = 195,
  1602. JACKET_JACKET_RED = 196,
  1603. JACKET_JACKET_GREEN = 197,
  1604. JACKET_JACKET_BLUE = 198,
  1605. /// <summary>
  1606. /// Sleeve Looseness - Tight Sleeves 0--+255 Loose Sleeves
  1607. /// </summary>
  1608. SHIRT_SHIRTSLEEVE_FLAIR = 199,
  1609. /// <summary>
  1610. /// Knee Angle - Knock Kneed 0--+255 Bow Legged
  1611. /// </summary>
  1612. SHAPE_BOWED_LEGS = 200,
  1613. /// <summary>
  1614. /// - Short hips 0--+255 Long Hips
  1615. /// </summary>
  1616. SHAPE_HIP_LENGTH = 201,
  1617. /// <summary>
  1618. /// - Fingerless 0--+255 Fingers
  1619. /// </summary>
  1620. GLOVES_GLOVE_FINGERS = 202,
  1621. /// <summary>
  1622. /// bustle skirt - no bustle 0--+255 more bustle
  1623. /// </summary>
  1624. SKIRT_SKIRT_BUSTLE = 203,
  1625. /// <summary>
  1626. /// - Short 0--+255 Long
  1627. /// </summary>
  1628. SKIRT_SKIRT_LENGTH = 204,
  1629. /// <summary>
  1630. /// - Open Front 0--+255 Closed Front
  1631. /// </summary>
  1632. SKIRT_SLIT_FRONT = 205,
  1633. /// <summary>
  1634. /// - Open Back 0--+255 Closed Back
  1635. /// </summary>
  1636. SKIRT_SLIT_BACK = 206,
  1637. /// <summary>
  1638. /// - Open Left 0--+255 Closed Left
  1639. /// </summary>
  1640. SKIRT_SLIT_LEFT = 207,
  1641. /// <summary>
  1642. /// - Open Right 0--+255 Closed Right
  1643. /// </summary>
  1644. SKIRT_SLIT_RIGHT = 208,
  1645. /// <summary>
  1646. /// Skirt Fit - Tight Skirt 0--+255 Poofy Skirt
  1647. /// </summary>
  1648. SKIRT_SKIRT_LOOSENESS = 209,
  1649. SHIRT_SHIRT_WRINKLES = 210,
  1650. PANTS_PANTS_WRINKLES = 211,
  1651. /// <summary>
  1652. /// Jacket Wrinkles - No Wrinkles 0--+255 Wrinkles
  1653. /// </summary>
  1654. JACKET_JACKET_WRINKLES = 212,
  1655. /// <summary>
  1656. /// Package - Coin Purse 0--+255 Duffle Bag
  1657. /// </summary>
  1658. SHAPE_MALE_PACKAGE = 213,
  1659. /// <summary>
  1660. /// Inner Eye Corner - Corner Down 0--+255 Corner Up
  1661. /// </summary>
  1662. SHAPE_EYELID_INNER_CORNER_UP = 214,
  1663. SKIRT_SKIRT_RED = 215,
  1664. SKIRT_SKIRT_GREEN = 216,
  1665. SKIRT_SKIRT_BLUE = 217,
  1666. /// <summary>
  1667. /// Avatar Physics section. These are 0 type visual params which get transmitted.
  1668. /// </summary>
  1669. /// <summary>
  1670. /// Breast Part 1
  1671. /// </summary>
  1672. BREAST_PHYSICS_MASS = 218,
  1673. BREAST_PHYSICS_GRAVITY = 219,
  1674. BREAST_PHYSICS_DRAG = 220,
  1675. BREAST_PHYSICS_UPDOWN_MAX_EFFECT = 221,
  1676. BREAST_PHYSICS_UPDOWN_SPRING = 222,
  1677. BREAST_PHYSICS_UPDOWN_GAIN = 223,
  1678. BREAST_PHYSICS_UPDOWN_DAMPING = 224,
  1679. BREAST_PHYSICS_INOUT_MAX_EFFECT = 225,
  1680. BREAST_PHYSICS_INOUT_SPRING = 226,
  1681. BREAST_PHYSICS_INOUT_GAIN = 227,
  1682. BREAST_PHYSICS_INOUT_DAMPING = 228,
  1683. /// <summary>
  1684. /// Belly
  1685. /// </summary>
  1686. BELLY_PHYISCS_MASS = 229,
  1687. BELLY_PHYSICS_GRAVITY = 230,
  1688. BELLY_PHYSICS_DRAG = 231,
  1689. BELLY_PHYISCS_UPDOWN_MAX_EFFECT = 232,
  1690. BELLY_PHYSICS_UPDOWN_SPRING = 233,
  1691. BELLY_PHYSICS_UPDOWN_GAIN = 234,
  1692. BELLY_PHYSICS_UPDOWN_DAMPING = 235,
  1693. /// <summary>
  1694. /// Butt
  1695. /// </summary>
  1696. BUTT_PHYSICS_MASS = 236,
  1697. BUTT_PHYSICS_GRAVITY = 237,
  1698. BUTT_PHYSICS_DRAG = 238,
  1699. BUTT_PHYSICS_UPDOWN_MAX_EFFECT = 239,
  1700. BUTT_PHYSICS_UPDOWN_SPRING = 240,
  1701. BUTT_PHYSICS_UPDOWN_GAIN = 241,
  1702. BUTT_PHYSICS_UPDOWN_DAMPING = 242,
  1703. BUTT_PHYSICS_LEFTRIGHT_MAX_EFFECT = 243,
  1704. BUTT_PHYSICS_LEFTRIGHT_SPRING = 244,
  1705. BUTT_PHYSICS_LEFTRIGHT_GAIN = 245,
  1706. BUTT_PHYSICS_LEFTRIGHT_DAMPING = 246,
  1707. /// <summary>
  1708. /// Breast Part 2
  1709. /// </summary>
  1710. BREAST_PHYSICS_LEFTRIGHT_MAX_EFFECT = 247,
  1711. BREAST_PHYSICS_LEFTRIGHT_SPRING= 248,
  1712. BREAST_PHYSICS_LEFTRIGHT_GAIN = 249,
  1713. BREAST_PHYSICS_LEFTRIGHT_DAMPING = 250,
  1714. // Ubit: 07/96/2013 new parameters
  1715. _APPEARANCEMESSAGE_VERSION = 251, //ID 11000
  1716. SHAPE_HOVER = 252, //ID 11001
  1717. }
  1718. #endregion
  1719. }
  1720. }