AvatarAppearance.cs 62 KB

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