/*
* Copyright (c) Contributors, http://opensimulator.org/
* See CONTRIBUTORS.TXT for a full list of copyright holders.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* * Neither the name of the OpenSimulator Project nor the
* names of its contributors may be used to endorse or promote products
* derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
using System;
using System.Collections;
using System.Collections.Generic;
using OpenMetaverse;
namespace OpenSim.Framework
{
///
/// Contains the Avatar's Appearance and methods to manipulate the appearance.
///
public class AvatarAppearance
{
//private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
// these are guessed at by the list here -
// http://wiki.secondlife.com/wiki/Avatar_Appearance. We'll
// correct them over time for when were are wrong.
public readonly static int BODY = 0;
public readonly static int SKIN = 1;
public readonly static int HAIR = 2;
public readonly static int EYES = 3;
public readonly static int SHIRT = 4;
public readonly static int PANTS = 5;
public readonly static int SHOES = 6;
public readonly static int SOCKS = 7;
public readonly static int JACKET = 8;
public readonly static int GLOVES = 9;
public readonly static int UNDERSHIRT = 10;
public readonly static int UNDERPANTS = 11;
public readonly static int SKIRT = 12;
private readonly static int MAX_WEARABLES = 13;
private static UUID BODY_ASSET = new UUID("66c41e39-38f9-f75a-024e-585989bfab73");
private static UUID BODY_ITEM = new UUID("66c41e39-38f9-f75a-024e-585989bfaba9");
private static UUID SKIN_ASSET = new UUID("77c41e39-38f9-f75a-024e-585989bbabbb");
private static UUID SKIN_ITEM = new UUID("77c41e39-38f9-f75a-024e-585989bfabc9");
private static UUID SHIRT_ASSET = new UUID("00000000-38f9-1111-024e-222222111110");
private static UUID SHIRT_ITEM = new UUID("77c41e39-38f9-f75a-0000-585989bf0000");
private static UUID PANTS_ASSET = new UUID("00000000-38f9-1111-024e-222222111120");
private static UUID PANTS_ITEM = new UUID("77c41e39-38f9-f75a-0000-5859892f1111");
private static UUID HAIR_ASSET = new UUID("d342e6c0-b9d2-11dc-95ff-0800200c9a66");
private static UUID HAIR_ITEM = new UUID("d342e6c1-b9d2-11dc-95ff-0800200c9a66");
public readonly static int VISUALPARAM_COUNT = 218;
protected UUID m_owner;
public virtual UUID Owner
{
get { return m_owner; }
set { m_owner = value; }
}
protected int m_serial = 1;
public virtual int Serial
{
get { return m_serial; }
set { m_serial = value; }
}
protected byte[] m_visualparams;
public virtual byte[] VisualParams
{
get { return m_visualparams; }
set { m_visualparams = value; }
}
protected AvatarWearable[] m_wearables;
public virtual AvatarWearable[] Wearables
{
get { return m_wearables; }
set { m_wearables = value; }
}
public virtual UUID BodyItem {
get { return m_wearables[BODY].ItemID; }
set { m_wearables[BODY].ItemID = value; }
}
public virtual UUID BodyAsset {
get { return m_wearables[BODY].AssetID; }
set { m_wearables[BODY].AssetID = value; }
}
public virtual UUID SkinItem {
get { return m_wearables[SKIN].ItemID; }
set { m_wearables[SKIN].ItemID = value; }
}
public virtual UUID SkinAsset {
get { return m_wearables[SKIN].AssetID; }
set { m_wearables[SKIN].AssetID = value; }
}
public virtual UUID HairItem {
get { return m_wearables[HAIR].ItemID; }
set { m_wearables[HAIR].ItemID = value; }
}
public virtual UUID HairAsset {
get { return m_wearables[HAIR].AssetID; }
set { m_wearables[HAIR].AssetID = value; }
}
public virtual UUID EyesItem {
get { return m_wearables[EYES].ItemID; }
set { m_wearables[EYES].ItemID = value; }
}
public virtual UUID EyesAsset {
get { return m_wearables[EYES].AssetID; }
set { m_wearables[EYES].AssetID = value; }
}
public virtual UUID ShirtItem {
get { return m_wearables[SHIRT].ItemID; }
set { m_wearables[SHIRT].ItemID = value; }
}
public virtual UUID ShirtAsset {
get { return m_wearables[SHIRT].AssetID; }
set { m_wearables[SHIRT].AssetID = value; }
}
public virtual UUID PantsItem {
get { return m_wearables[PANTS].ItemID; }
set { m_wearables[PANTS].ItemID = value; }
}
public virtual UUID PantsAsset {
get { return m_wearables[PANTS].AssetID; }
set { m_wearables[PANTS].AssetID = value; }
}
public virtual UUID ShoesItem {
get { return m_wearables[SHOES].ItemID; }
set { m_wearables[SHOES].ItemID = value; }
}
public virtual UUID ShoesAsset {
get { return m_wearables[SHOES].AssetID; }
set { m_wearables[SHOES].AssetID = value; }
}
public virtual UUID SocksItem {
get { return m_wearables[SOCKS].ItemID; }
set { m_wearables[SOCKS].ItemID = value; }
}
public virtual UUID SocksAsset {
get { return m_wearables[SOCKS].AssetID; }
set { m_wearables[SOCKS].AssetID = value; }
}
public virtual UUID JacketItem {
get { return m_wearables[JACKET].ItemID; }
set { m_wearables[JACKET].ItemID = value; }
}
public virtual UUID JacketAsset {
get { return m_wearables[JACKET].AssetID; }
set { m_wearables[JACKET].AssetID = value; }
}
public virtual UUID GlovesItem {
get { return m_wearables[GLOVES].ItemID; }
set { m_wearables[GLOVES].ItemID = value; }
}
public virtual UUID GlovesAsset {
get { return m_wearables[GLOVES].AssetID; }
set { m_wearables[GLOVES].AssetID = value; }
}
public virtual UUID UnderShirtItem {
get { return m_wearables[UNDERSHIRT].ItemID; }
set { m_wearables[UNDERSHIRT].ItemID = value; }
}
public virtual UUID UnderShirtAsset {
get { return m_wearables[UNDERSHIRT].AssetID; }
set { m_wearables[UNDERSHIRT].AssetID = value; }
}
public virtual UUID UnderPantsItem {
get { return m_wearables[UNDERPANTS].ItemID; }
set { m_wearables[UNDERPANTS].ItemID = value; }
}
public virtual UUID UnderPantsAsset {
get { return m_wearables[UNDERPANTS].AssetID; }
set { m_wearables[UNDERPANTS].AssetID = value; }
}
public virtual UUID SkirtItem {
get { return m_wearables[SKIRT].ItemID; }
set { m_wearables[SKIRT].ItemID = value; }
}
public virtual UUID SkirtAsset {
get { return m_wearables[SKIRT].AssetID; }
set { m_wearables[SKIRT].AssetID = value; }
}
public virtual void SetDefaultWearables()
{
m_wearables[BODY].AssetID = BODY_ASSET;
m_wearables[BODY].ItemID = BODY_ITEM;
m_wearables[SKIN].AssetID = SKIN_ASSET;
m_wearables[SKIN].ItemID = SKIN_ITEM;
m_wearables[HAIR].AssetID = HAIR_ASSET;
m_wearables[HAIR].ItemID = HAIR_ITEM;
m_wearables[SHIRT].AssetID = SHIRT_ASSET;
m_wearables[SHIRT].ItemID = SHIRT_ITEM;
m_wearables[PANTS].AssetID = PANTS_ASSET;
m_wearables[PANTS].ItemID = PANTS_ITEM;
}
public virtual void ClearWearables()
{
for (int i = 0; i < 13; i++)
{
m_wearables[i].AssetID = UUID.Zero;
m_wearables[i].ItemID = UUID.Zero;
}
}
public virtual void SetDefaultParams(byte[] vparams)
{
// TODO: Figure out better values then 'fat scientist 150' or 'alien 0'
for (int i = 0; i < VISUALPARAM_COUNT; i++)
{
vparams[i] = 150;
}
}
protected Primitive.TextureEntry m_texture;
public virtual Primitive.TextureEntry Texture
{
get { return m_texture; }
set { m_texture = value; }
}
protected float m_avatarHeight = 0;
protected float m_hipOffset = 0;
public virtual float AvatarHeight
{
get { return m_avatarHeight; }
set { m_avatarHeight = value; }
}
public virtual float HipOffset
{
get { return m_hipOffset; }
}
//Builds the VisualParam Enum using LIBOMV's Visual Param NameValues
/*
public void BuildVisualParamEnum()
{
Dictionary IndexedParams = new Dictionary();
int vpIndex = 0;
IndexedParams = new Dictionary();
System.Text.StringBuilder sb = new System.Text.StringBuilder();
sb.Append("public enum VPElement: int\n");
sb.Append("{\n");
foreach (KeyValuePair kvp in OpenMetaverse.VisualParams.Params)
{
VisualParam vp = kvp.Value;
// Only Group-0 parameters are sent in AgentSetAppearance packets
if (kvp.Value.Group == 0)
{
if (!IndexedParams.ContainsKey(vp.Name))
{
if (vp.Label.Length > 0 || vp.LabelMin.Length > 0 || vp.LabelMax.Length > 0)
{
sb.Append("/// \n");
if (vp.LabelMin.Length > 0 && vp.LabelMax.Length > 0)
sb.Append(string.Format("/// {0} - {1} 0--+255 {2}\n", vp.Label, vp.LabelMin,
vp.LabelMax));
else
sb.Append(string.Format("/// {0}\n", vp.Label));
sb.Append("/// \n");
}
sb.Append(string.Format(" {0}_{1} = {2}", vp.Wearable.ToUpper(), vp.Name.ToUpper().Replace(" ", "_"),vpIndex));
IndexedParams.Add(vp.Name, vpIndex++);
}
else
{
sb.Append(string.Format(" {0}_{1}_{2} = {2}", vp.Wearable.ToUpper(), vp.Name.ToUpper().Replace(" ", "_"), vpIndex));
vpIndex++;
//int i = 0;
}
}
if (vpIndex < 217)
sb.Append(",\n");
else
sb.Append("\n");
}
sb.Append("}\n");
}
*/
public AvatarAppearance()
: this(UUID.Zero)
{
}
public AvatarAppearance(UUID owner)
{
m_wearables = new AvatarWearable[MAX_WEARABLES];
for (int i = 0; i < MAX_WEARABLES; i++)
{
// this makes them all null
m_wearables[i] = new AvatarWearable();
}
m_serial = 0;
m_owner = owner;
//BuildVisualParamEnum()
m_visualparams = new byte[VISUALPARAM_COUNT];
// This sets Visual Params with *less* weirder values then default. Instead of a ugly alien, it looks like a fat scientist
SetDefaultParams(m_visualparams);
SetDefaultWearables();
m_texture = GetDefaultTexture();
}
public AvatarAppearance(UUID avatarID, AvatarWearable[] wearables, byte[] visualParams)
{
m_owner = avatarID;
m_serial = 1;
m_wearables = wearables;
m_visualparams = visualParams;
m_texture = GetDefaultTexture();
}
///
/// Set up appearance textures and avatar parameters, including a height calculation
///
public virtual void SetAppearance(Primitive.TextureEntry textureEntry, byte[] visualParams)
{
if (textureEntry != null)
m_texture = textureEntry;
if (visualParams != null)
m_visualparams = visualParams;
m_avatarHeight = 1.23077f // Shortest possible avatar height
+ 0.516945f * (float)m_visualparams[(int)VPElement.SHAPE_HEIGHT] / 255.0f // Body height
+ 0.072514f * (float)m_visualparams[(int)VPElement.SHAPE_HEAD_SIZE] / 255.0f // Head size
+ 0.3836f * (float)m_visualparams[(int)VPElement.SHAPE_LEG_LENGTH] / 255.0f // Leg length
+ 0.08f * (float)m_visualparams[(int)VPElement.SHOES_PLATFORM_HEIGHT] / 255.0f // Shoe platform height
+ 0.07f * (float)m_visualparams[(int)VPElement.SHOES_HEEL_HEIGHT] / 255.0f // Shoe heel height
+ 0.076f * (float)m_visualparams[(int)VPElement.SHAPE_NECK_LENGTH] / 255.0f; // Neck length
m_hipOffset = (0.615385f // Half of avatar
+ 0.08f * (float)m_visualparams[(int)VPElement.SHOES_PLATFORM_HEIGHT] / 255.0f // Shoe platform height
+ 0.07f * (float)m_visualparams[(int)VPElement.SHOES_HEEL_HEIGHT] / 255.0f // Shoe heel height
+ 0.3836f * (float)m_visualparams[(int)VPElement.SHAPE_LEG_LENGTH] / 255.0f // Leg length
- m_avatarHeight / 2) * 0.3f - 0.04f;
//System.Console.WriteLine(">>>>>>> [APPEARANCE]: Height {0} Hip offset {1}" + m_avatarHeight + " " + m_hipOffset);
//m_log.Debug("------------- Set Appearance Texture ---------------");
//Primitive.TextureEntryFace[] faces = Texture.FaceTextures;
//foreach (Primitive.TextureEntryFace face in faces)
//{
// if (face != null)
// m_log.Debug(" ++ " + face.TextureID);
// else
// m_log.Debug(" ++ NULL ");
//}
//m_log.Debug("----------------------------");
}
public virtual void SetWearable(int wearableId, AvatarWearable wearable)
{
m_wearables[wearableId] = wearable;
}
public static Primitive.TextureEntry GetDefaultTexture()
{
Primitive.TextureEntry textu = new Primitive.TextureEntry(new UUID("C228D1CF-4B5D-4BA8-84F4-899A0796AA97"));
textu.CreateFace(0).TextureID = new UUID("00000000-0000-1111-9999-000000000012");
textu.CreateFace(1).TextureID = Util.BLANK_TEXTURE_UUID;
textu.CreateFace(2).TextureID = Util.BLANK_TEXTURE_UUID;
textu.CreateFace(3).TextureID = new UUID("6522E74D-1660-4E7F-B601-6F48C1659A77");
textu.CreateFace(4).TextureID = new UUID("7CA39B4C-BD19-4699-AFF7-F93FD03D3E7B");
textu.CreateFace(5).TextureID = new UUID("00000000-0000-1111-9999-000000000010");
textu.CreateFace(6).TextureID = new UUID("00000000-0000-1111-9999-000000000011");
return textu;
}
public static byte[] GetDefaultVisualParams()
{
byte[] visualParams;
visualParams = new byte[VISUALPARAM_COUNT];
for (int i = 0; i < VISUALPARAM_COUNT; i++)
{
visualParams[i] = 100;
}
return visualParams;
}
public override String ToString()
{
String s = "[Wearables] =>";
s += " Body Item: " + BodyItem.ToString() + ";";
s += " Skin Item: " + SkinItem.ToString() + ";";
s += " Shirt Item: " + ShirtItem.ToString() + ";";
s += " Pants Item: " + PantsItem.ToString() + ";";
return s;
}
// this is used for OGS1
public virtual Hashtable ToHashTable()
{
Hashtable h = new Hashtable();
h["owner"] = Owner.ToString();
h["serial"] = Serial.ToString();
h["visual_params"] = VisualParams;
h["texture"] = Texture.GetBytes();
h["avatar_height"] = AvatarHeight.ToString();
h["body_item"] = BodyItem.ToString();
h["body_asset"] = BodyAsset.ToString();
h["skin_item"] = SkinItem.ToString();
h["skin_asset"] = SkinAsset.ToString();
h["hair_item"] = HairItem.ToString();
h["hair_asset"] = HairAsset.ToString();
h["eyes_item"] = EyesItem.ToString();
h["eyes_asset"] = EyesAsset.ToString();
h["shirt_item"] = ShirtItem.ToString();
h["shirt_asset"] = ShirtAsset.ToString();
h["pants_item"] = PantsItem.ToString();
h["pants_asset"] = PantsAsset.ToString();
h["shoes_item"] = ShoesItem.ToString();
h["shoes_asset"] = ShoesAsset.ToString();
h["socks_item"] = SocksItem.ToString();
h["socks_asset"] = SocksAsset.ToString();
h["jacket_item"] = JacketItem.ToString();
h["jacket_asset"] = JacketAsset.ToString();
h["gloves_item"] = GlovesItem.ToString();
h["gloves_asset"] = GlovesAsset.ToString();
h["undershirt_item"] = UnderShirtItem.ToString();
h["undershirt_asset"] = UnderShirtAsset.ToString();
h["underpants_item"] = UnderPantsItem.ToString();
h["underpants_asset"] = UnderPantsAsset.ToString();
h["skirt_item"] = SkirtItem.ToString();
h["skirt_asset"] = SkirtAsset.ToString();
string attachments = GetAttachmentsString();
if (attachments != String.Empty)
h["attachments"] = attachments;
return h;
}
public AvatarAppearance(Hashtable h)
{
Owner = new UUID((string)h["owner"]);
Serial = Convert.ToInt32((string)h["serial"]);
VisualParams = (byte[])h["visual_params"];
if (h.Contains("texture"))
{
byte[] te = h["texture"] as byte[];
if (te != null && te.Length > 0)
Texture = new Primitive.TextureEntry(te, 0, te.Length);
}
else
{
// We shouldn't be receiving appearance hashtables without a TextureEntry,
// but in case we do this will prevent a failure when saving to the database
Texture = GetDefaultTexture();
}
AvatarHeight = (float)Convert.ToDouble((string)h["avatar_height"]);
m_wearables = new AvatarWearable[MAX_WEARABLES];
for (int i = 0; i < MAX_WEARABLES; i++)
{
// this makes them all null
m_wearables[i] = new AvatarWearable();
}
BodyItem = new UUID((string)h["body_item"]);
BodyAsset = new UUID((string)h["body_asset"]);
SkinItem = new UUID((string)h["skin_item"]);
SkinAsset = new UUID((string)h["skin_asset"]);
HairItem = new UUID((string)h["hair_item"]);
HairAsset = new UUID((string)h["hair_asset"]);
EyesItem = new UUID((string)h["eyes_item"]);
EyesAsset = new UUID((string)h["eyes_asset"]);
ShirtItem = new UUID((string)h["shirt_item"]);
ShirtAsset = new UUID((string)h["shirt_asset"]);
PantsItem = new UUID((string)h["pants_item"]);
PantsAsset = new UUID((string)h["pants_asset"]);
ShoesItem = new UUID((string)h["shoes_item"]);
ShoesAsset = new UUID((string)h["shoes_asset"]);
SocksItem = new UUID((string)h["socks_item"]);
SocksAsset = new UUID((string)h["socks_asset"]);
JacketItem = new UUID((string)h["jacket_item"]);
JacketAsset = new UUID((string)h["jacket_asset"]);
GlovesItem = new UUID((string)h["gloves_item"]);
GlovesAsset = new UUID((string)h["gloves_asset"]);
UnderShirtItem = new UUID((string)h["undershirt_item"]);
UnderShirtAsset = new UUID((string)h["undershirt_asset"]);
UnderPantsItem = new UUID((string)h["underpants_item"]);
UnderPantsAsset = new UUID((string)h["underpants_asset"]);
SkirtItem = new UUID((string)h["skirt_item"]);
SkirtAsset = new UUID((string)h["skirt_asset"]);
if (h.ContainsKey("attachments"))
{
SetAttachmentsString(h["attachments"].ToString());
}
}
private Dictionary m_attachments = new Dictionary();
public void SetAttachments(AttachmentData[] data)
{
foreach (AttachmentData a in data)
{
m_attachments[a.AttachPoint] = new UUID[2];
m_attachments[a.AttachPoint][0] = a.ItemID;
m_attachments[a.AttachPoint][1] = a.AssetID;
}
}
public void SetAttachments(Hashtable data)
{
m_attachments.Clear();
if (data == null)
return;
foreach (DictionaryEntry e in data)
{
int attachpoint = Convert.ToInt32(e.Key);
if (m_attachments.ContainsKey(attachpoint))
continue;
UUID item;
UUID asset;
Hashtable uuids = (Hashtable) e.Value;
UUID.TryParse(uuids["item"].ToString(), out item);
UUID.TryParse(uuids["asset"].ToString(), out asset);
UUID[] attachment = new UUID[2];
attachment[0] = item;
attachment[1] = asset;
m_attachments[attachpoint] = attachment;
}
}
public Dictionary GetAttachmentDictionary()
{
return m_attachments;
}
public Hashtable GetAttachments()
{
if (m_attachments.Count == 0)
return null;
Hashtable ret = new Hashtable();
foreach (KeyValuePair kvp in m_attachments)
{
int attachpoint = kvp.Key;
UUID[] uuids = kvp.Value;
Hashtable data = new Hashtable();
data["item"] = uuids[0].ToString();
data["asset"] = uuids[1].ToString();
ret[attachpoint] = data;
}
return ret;
}
public List GetAttachedPoints()
{
return new List(m_attachments.Keys);
}
public UUID GetAttachedItem(int attachpoint)
{
if (!m_attachments.ContainsKey(attachpoint))
return UUID.Zero;
return m_attachments[attachpoint][0];
}
public UUID GetAttachedAsset(int attachpoint)
{
if (!m_attachments.ContainsKey(attachpoint))
return UUID.Zero;
return m_attachments[attachpoint][1];
}
public void SetAttachment(int attachpoint, UUID item, UUID asset)
{
if (attachpoint == 0)
return;
if (item == UUID.Zero)
{
if (m_attachments.ContainsKey(attachpoint))
m_attachments.Remove(attachpoint);
return;
}
if (!m_attachments.ContainsKey(attachpoint))
m_attachments[attachpoint] = new UUID[2];
m_attachments[attachpoint][0] = item;
m_attachments[attachpoint][1] = asset;
}
public int GetAttachpoint(UUID itemID)
{
foreach (KeyValuePair kvp in m_attachments)
{
if (kvp.Value[0] == itemID)
{
return kvp.Key;
}
}
return 0;
}
public void DetachAttachment(UUID itemID)
{
int attachpoint = GetAttachpoint(itemID);
if (attachpoint > 0)
m_attachments.Remove(attachpoint);
}
public void ClearAttachments()
{
m_attachments.Clear();
}
string GetAttachmentsString()
{
List strings = new List();
foreach (KeyValuePair e in m_attachments)
{
strings.Add(e.Key.ToString());
strings.Add(e.Value[0].ToString());
strings.Add(e.Value[1].ToString());
}
return String.Join(",", strings.ToArray());
}
void SetAttachmentsString(string data)
{
string[] strings = data.Split(new char[] {','});
int i = 0;
m_attachments.Clear();
while (strings.Length - i > 2)
{
int attachpoint = Int32.Parse(strings[i]);
UUID item = new UUID(strings[i+1]);
UUID asset = new UUID(strings[i+2]);
i += 3;
if (!m_attachments.ContainsKey(attachpoint))
{
m_attachments[attachpoint] = new UUID[2];
m_attachments[attachpoint][0] = item;
m_attachments[attachpoint][1] = asset;
}
}
}
///
/// Viewer Params Array Element for AgentSetAppearance
/// Generated from LibOMV's Visual Params list
///
public enum VPElement : int
{
///
/// Brow Size - Small 0--+255 Large
///
SHAPE_BIG_BROW = 0,
///
/// Nose Size - Small 0--+255 Large
///
SHAPE_NOSE_BIG_OUT = 1,
///
/// Nostril Width - Narrow 0--+255 Broad
///
SHAPE_BROAD_NOSTRILS = 2,
///
/// Chin Cleft - Round 0--+255 Cleft
///
SHAPE_CLEFT_CHIN = 3,
///
/// Nose Tip Shape - Pointy 0--+255 Bulbous
///
SHAPE_BULBOUS_NOSE_TIP = 4,
///
/// Chin Angle - Chin Out 0--+255 Chin In
///
SHAPE_WEAK_CHIN = 5,
///
/// Chin-Neck - Tight Chin 0--+255 Double Chin
///
SHAPE_DOUBLE_CHIN = 6,
///
/// Lower Cheeks - Well-Fed 0--+255 Sunken
///
SHAPE_SUNKEN_CHEEKS = 7,
///
/// Upper Bridge - Low 0--+255 High
///
SHAPE_NOBLE_NOSE_BRIDGE = 8,
///
/// - Less 0--+255 More
///
SHAPE_JOWLS = 9,
///
/// Upper Chin Cleft - Round 0--+255 Cleft
///
SHAPE_CLEFT_CHIN_UPPER = 10,
///
/// Cheek Bones - Low 0--+255 High
///
SHAPE_HIGH_CHEEK_BONES = 11,
///
/// Ear Angle - In 0--+255 Out
///
SHAPE_EARS_OUT = 12,
///
/// Eyebrow Points - Smooth 0--+255 Pointy
///
HAIR_POINTY_EYEBROWS = 13,
///
/// Jaw Shape - Pointy 0--+255 Square
///
SHAPE_SQUARE_JAW = 14,
///
/// Upper Cheeks - Thin 0--+255 Puffy
///
SHAPE_PUFFY_UPPER_CHEEKS = 15,
///
/// Nose Tip Angle - Downturned 0--+255 Upturned
///
SHAPE_UPTURNED_NOSE_TIP = 16,
///
/// Nose Thickness - Thin Nose 0--+255 Bulbous Nose
///
SHAPE_BULBOUS_NOSE = 17,
///
/// Upper Eyelid Fold - Uncreased 0--+255 Creased
///
SHAPE_UPPER_EYELID_FOLD = 18,
///
/// Attached Earlobes - Unattached 0--+255 Attached
///
SHAPE_ATTACHED_EARLOBES = 19,
///
/// Eye Bags - Smooth 0--+255 Baggy
///
SHAPE_BAGGY_EYES = 20,
///
/// Eye Opening - Narrow 0--+255 Wide
///
SHAPE_WIDE_EYES = 21,
///
/// Lip Cleft - Narrow 0--+255 Wide
///
SHAPE_WIDE_LIP_CLEFT = 22,
///
/// Bridge Width - Narrow 0--+255 Wide
///
SHAPE_WIDE_NOSE_BRIDGE = 23,
///
/// Eyebrow Arc - Flat 0--+255 Arced
///
HAIR_ARCED_EYEBROWS = 24,
///
/// Height - Short 0--+255 Tall
///
SHAPE_HEIGHT = 25,
///
/// Body Thickness - Body Thin 0--+255 Body Thick
///
SHAPE_THICKNESS = 26,
///
/// Ear Size - Small 0--+255 Large
///
SHAPE_BIG_EARS = 27,
///
/// Shoulders - Narrow 0--+255 Broad
///
SHAPE_SHOULDERS = 28,
///
/// Hip Width - Narrow 0--+255 Wide
///
SHAPE_HIP_WIDTH = 29,
///
/// - Short Torso 0--+255 Long Torso
///
SHAPE_TORSO_LENGTH = 30,
SHAPE_MALE = 31,
///
/// - Short 0--+255 Long
///
GLOVES_GLOVE_LENGTH = 32,
///
/// - Darker 0--+255 Lighter
///
EYES_EYE_LIGHTNESS = 33,
///
/// - Natural 0--+255 Unnatural
///
EYES_EYE_COLOR = 34,
///
/// - Small 0--+255 Large
///
SHAPE_BREAST_SIZE = 35,
///
/// - None 0--+255 Wild
///
SKIN_RAINBOW_COLOR = 36,
///
/// Ruddiness - Pale 0--+255 Ruddy
///
SKIN_RED_SKIN = 37,
///
/// - Light 0--+255 Dark
///
SKIN_PIGMENT = 38,
HAIR_RAINBOW_COLOR_39 = 39,
///
/// - No Red 0--+255 Very Red
///
HAIR_RED_HAIR = 40,
///
/// - Black 0--+255 Blonde
///
HAIR_BLONDE_HAIR = 41,
///
/// - No White 0--+255 All White
///
HAIR_WHITE_HAIR = 42,
///
/// - Less Rosy 0--+255 More Rosy
///
SKIN_ROSY_COMPLEXION = 43,
///
/// - Darker 0--+255 Pinker
///
SKIN_LIP_PINKNESS = 44,
///
/// - Thin Eyebrows 0--+255 Bushy Eyebrows
///
HAIR_EYEBROW_SIZE = 45,
///
/// - Short 0--+255 Long
///
HAIR_FRONT_FRINGE = 46,
///
/// - Short 0--+255 Long
///
HAIR_SIDE_FRINGE = 47,
///
/// - Short 0--+255 Long
///
HAIR_BACK_FRINGE = 48,
///
/// - Short 0--+255 Long
///
HAIR_HAIR_FRONT = 49,
///
/// - Short 0--+255 Long
///
HAIR_HAIR_SIDES = 50,
///
/// - Short 0--+255 Long
///
HAIR_HAIR_BACK = 51,
///
/// - Sweep Forward 0--+255 Sweep Back
///
HAIR_HAIR_SWEEP = 52,
///
/// - Left 0--+255 Right
///
HAIR_HAIR_TILT = 53,
///
/// Middle Part - No Part 0--+255 Part
///
HAIR_HAIR_PART_MIDDLE = 54,
///
/// Right Part - No Part 0--+255 Part
///
HAIR_HAIR_PART_RIGHT = 55,
///
/// Left Part - No Part 0--+255 Part
///
HAIR_HAIR_PART_LEFT = 56,
///
/// Full Hair Sides - Mowhawk 0--+255 Full Sides
///
HAIR_HAIR_SIDES_FULL = 57,
///
/// - Less 0--+255 More
///
SKIN_BODY_DEFINITION = 58,
///
/// Lip Width - Narrow Lips 0--+255 Wide Lips
///
SHAPE_LIP_WIDTH = 59,
///
/// - Small 0--+255 Big
///
SHAPE_BELLY_SIZE = 60,
///
/// - Less 0--+255 More
///
SKIN_FACIAL_DEFINITION = 61,
///
/// - Less 0--+255 More
///
SKIN_WRINKLES = 62,
///
/// - Less 0--+255 More
///
SKIN_FRECKLES = 63,
///
/// - Short Sideburns 0--+255 Mutton Chops
///
HAIR_SIDEBURNS = 64,
///
/// - Chaplin 0--+255 Handlebars
///
HAIR_MOUSTACHE = 65,
///
/// - Less soul 0--+255 More soul
///
HAIR_SOULPATCH = 66,
///
/// - Less Curtains 0--+255 More Curtains
///
HAIR_CHIN_CURTAINS = 67,
///
/// Rumpled Hair - Smooth Hair 0--+255 Rumpled Hair
///
HAIR_HAIR_RUMPLED = 68,
///
/// Big Hair Front - Less 0--+255 More
///
HAIR_HAIR_BIG_FRONT = 69,
///
/// Big Hair Top - Less 0--+255 More
///
HAIR_HAIR_BIG_TOP = 70,
///
/// Big Hair Back - Less 0--+255 More
///
HAIR_HAIR_BIG_BACK = 71,
///
/// Spiked Hair - No Spikes 0--+255 Big Spikes
///
HAIR_HAIR_SPIKED = 72,
///
/// Chin Depth - Shallow 0--+255 Deep
///
SHAPE_DEEP_CHIN = 73,
///
/// Part Bangs - No Part 0--+255 Part Bangs
///
HAIR_BANGS_PART_MIDDLE = 74,
///
/// Head Shape - More Square 0--+255 More Round
///
SHAPE_HEAD_SHAPE = 75,
///
/// Eye Spacing - Close Set Eyes 0--+255 Far Set Eyes
///
SHAPE_EYE_SPACING = 76,
///
/// - Low Heels 0--+255 High Heels
///
SHOES_HEEL_HEIGHT = 77,
///
/// - Low Platforms 0--+255 High Platforms
///
SHOES_PLATFORM_HEIGHT = 78,
///
/// - Thin Lips 0--+255 Fat Lips
///
SHAPE_LIP_THICKNESS = 79,
///
/// Mouth Position - High 0--+255 Low
///
SHAPE_MOUTH_HEIGHT = 80,
///
/// Breast Buoyancy - Less Gravity 0--+255 More Gravity
///
SHAPE_BREAST_GRAVITY = 81,
///
/// Platform Width - Narrow 0--+255 Wide
///
SHOES_SHOE_PLATFORM_WIDTH = 82,
///
/// - Pointy Heels 0--+255 Thick Heels
///
SHOES_HEEL_SHAPE = 83,
///
/// - Pointy 0--+255 Square
///
SHOES_TOE_SHAPE = 84,
///
/// Foot Size - Small 0--+255 Big
///
SHAPE_FOOT_SIZE = 85,
///
/// Nose Width - Narrow 0--+255 Wide
///
SHAPE_WIDE_NOSE = 86,
///
/// Eyelash Length - Short 0--+255 Long
///
SHAPE_EYELASHES_LONG = 87,
///
/// - Short 0--+255 Long
///
UNDERSHIRT_SLEEVE_LENGTH = 88,
///
/// - Short 0--+255 Long
///
UNDERSHIRT_BOTTOM = 89,
///
/// - Low 0--+255 High
///
UNDERSHIRT_COLLAR_FRONT = 90,
JACKET_SLEEVE_LENGTH_91 = 91,
JACKET_COLLAR_FRONT_92 = 92,
///
/// Jacket Length - Short 0--+255 Long
///
JACKET_BOTTOM_LENGTH_LOWER = 93,
///
/// Open Front - Open 0--+255 Closed
///
JACKET_OPEN_JACKET = 94,
///
/// - Short 0--+255 Tall
///
SHOES_SHOE_HEIGHT = 95,
///
/// - Short 0--+255 Long
///
SOCKS_SOCKS_LENGTH = 96,
///
/// - Short 0--+255 Long
///
UNDERPANTS_PANTS_LENGTH = 97,
///
/// - Low 0--+255 High
///
UNDERPANTS_PANTS_WAIST = 98,
///
/// Cuff Flare - Tight Cuffs 0--+255 Flared Cuffs
///
PANTS_LEG_PANTFLAIR = 99,
///
/// - More Vertical 0--+255 More Sloped
///
SHAPE_FOREHEAD_ANGLE = 100,
///
/// - Less Body Fat 0--+255 More Body Fat
///
SHAPE_BODY_FAT = 101,
///
/// Pants Crotch - High and Tight 0--+255 Low and Loose
///
PANTS_LOW_CROTCH = 102,
///
/// Egg Head - Chin Heavy 0--+255 Forehead Heavy
///
SHAPE_EGG_HEAD = 103,
///
/// Head Stretch - Squash Head 0--+255 Stretch Head
///
SHAPE_SQUASH_STRETCH_HEAD = 104,
///
/// Torso Muscles - Less Muscular 0--+255 More Muscular
///
SHAPE_TORSO_MUSCLES = 105,
///
/// Outer Eye Corner - Corner Down 0--+255 Corner Up
///
SHAPE_EYELID_CORNER_UP = 106,
///
/// - Less Muscular 0--+255 More Muscular
///
SHAPE_LEG_MUSCLES = 107,
///
/// Lip Fullness - Less Full 0--+255 More Full
///
SHAPE_TALL_LIPS = 108,
///
/// Toe Thickness - Flat Toe 0--+255 Thick Toe
///
SHOES_SHOE_TOE_THICK = 109,
///
/// Crooked Nose - Nose Left 0--+255 Nose Right
///
SHAPE_CROOKED_NOSE = 110,
///
/// - Corner Down 0--+255 Corner Up
///
SHAPE_MOUTH_CORNER = 111,
///
/// - Shear Right Up 0--+255 Shear Left Up
///
SHAPE_FACE_SHEAR = 112,
///
/// Shift Mouth - Shift Left 0--+255 Shift Right
///
SHAPE_SHIFT_MOUTH = 113,
///
/// Eye Pop - Pop Right Eye 0--+255 Pop Left Eye
///
SHAPE_POP_EYE = 114,
///
/// Jaw Jut - Overbite 0--+255 Underbite
///
SHAPE_JAW_JUT = 115,
///
/// Shear Back - Full Back 0--+255 Sheared Back
///
HAIR_HAIR_SHEAR_BACK = 116,
///
/// - Small Hands 0--+255 Large Hands
///
SHAPE_HAND_SIZE = 117,
///
/// Love Handles - Less Love 0--+255 More Love
///
SHAPE_LOVE_HANDLES = 118,
SHAPE_TORSO_MUSCLES_119 = 119,
///
/// Head Size - Small Head 0--+255 Big Head
///
SHAPE_HEAD_SIZE = 120,
///
/// - Skinny Neck 0--+255 Thick Neck
///
SHAPE_NECK_THICKNESS = 121,
///
/// Breast Cleavage - Separate 0--+255 Join
///
SHAPE_BREAST_FEMALE_CLEAVAGE = 122,
///
/// Pectorals - Big Pectorals 0--+255 Sunken Chest
///
SHAPE_CHEST_MALE_NO_PECS = 123,
///
/// Eye Size - Beady Eyes 0--+255 Anime Eyes
///
SHAPE_EYE_SIZE = 124,
///
/// - Short Legs 0--+255 Long Legs
///
SHAPE_LEG_LENGTH = 125,
///
/// - Short Arms 0--+255 Long arms
///
SHAPE_ARM_LENGTH = 126,
///
/// - Pink 0--+255 Black
///
SKIN_LIPSTICK_COLOR = 127,
///
/// - No Lipstick 0--+255 More Lipstick
///
SKIN_LIPSTICK = 128,
///
/// - No Lipgloss 0--+255 Glossy
///
SKIN_LIPGLOSS = 129,
///
/// - No Eyeliner 0--+255 Full Eyeliner
///
SKIN_EYELINER = 130,
///
/// - No Blush 0--+255 More Blush
///
SKIN_BLUSH = 131,
///
/// - Pink 0--+255 Orange
///
SKIN_BLUSH_COLOR = 132,
///
/// - Clear 0--+255 Opaque
///
SKIN_OUT_SHDW_OPACITY = 133,
///
/// - No Eyeshadow 0--+255 More Eyeshadow
///
SKIN_OUTER_SHADOW = 134,
///
/// - Light 0--+255 Dark
///
SKIN_OUT_SHDW_COLOR = 135,
///
/// - No Eyeshadow 0--+255 More Eyeshadow
///
SKIN_INNER_SHADOW = 136,
///
/// - No Polish 0--+255 Painted Nails
///
SKIN_NAIL_POLISH = 137,
///
/// - Clear 0--+255 Opaque
///
SKIN_BLUSH_OPACITY = 138,
///
/// - Light 0--+255 Dark
///
SKIN_IN_SHDW_COLOR = 139,
///
/// - Clear 0--+255 Opaque
///
SKIN_IN_SHDW_OPACITY = 140,
///
/// - Dark Green 0--+255 Black
///
SKIN_EYELINER_COLOR = 141,
///
/// - Pink 0--+255 Black
///
SKIN_NAIL_POLISH_COLOR = 142,
///
/// - Sparse 0--+255 Dense
///
HAIR_EYEBROW_DENSITY = 143,
///
/// - 5 O'Clock Shadow 0--+255 Bushy Hair
///
HAIR_HAIR_THICKNESS = 144,
///
/// Saddle Bags - Less Saddle 0--+255 More Saddle
///
SHAPE_SADDLEBAGS = 145,
///
/// Taper Back - Wide Back 0--+255 Narrow Back
///
HAIR_HAIR_TAPER_BACK = 146,
///
/// Taper Front - Wide Front 0--+255 Narrow Front
///
HAIR_HAIR_TAPER_FRONT = 147,
///
/// - Short Neck 0--+255 Long Neck
///
SHAPE_NECK_LENGTH = 148,
///
/// Eyebrow Height - Higher 0--+255 Lower
///
HAIR_LOWER_EYEBROWS = 149,
///
/// Lower Bridge - Low 0--+255 High
///
SHAPE_LOWER_BRIDGE_NOSE = 150,
///
/// Nostril Division - High 0--+255 Low
///
SHAPE_LOW_SEPTUM_NOSE = 151,
///
/// Jaw Angle - Low Jaw 0--+255 High Jaw
///
SHAPE_JAW_ANGLE = 152,
///
/// Shear Front - Full Front 0--+255 Sheared Front
///
HAIR_HAIR_SHEAR_FRONT = 153,
///
/// - Less Volume 0--+255 More Volume
///
HAIR_HAIR_VOLUME = 154,
///
/// Lip Cleft Depth - Shallow 0--+255 Deep
///
SHAPE_LIP_CLEFT_DEEP = 155,
///
/// Puffy Eyelids - Flat 0--+255 Puffy
///
SHAPE_PUFFY_LOWER_LIDS = 156,
///
/// - Sunken Eyes 0--+255 Bugged Eyes
///
SHAPE_EYE_DEPTH = 157,
///
/// - Flat Head 0--+255 Long Head
///
SHAPE_HEAD_LENGTH = 158,
///
/// - Less Freckles 0--+255 More Freckles
///
SKIN_BODY_FRECKLES = 159,
///
/// - Low 0--+255 High
///
UNDERSHIRT_COLLAR_BACK = 160,
JACKET_COLLAR_BACK_161 = 161,
SHIRT_COLLAR_BACK_162 = 162,
///
/// - Short Pigtails 0--+255 Long Pigtails
///
HAIR_PIGTAILS = 163,
///
/// - Short Ponytail 0--+255 Long Ponytail
///
HAIR_PONYTAIL = 164,
///
/// Butt Size - Flat Butt 0--+255 Big Butt
///
SHAPE_BUTT_SIZE = 165,
///
/// Ear Tips - Flat 0--+255 Pointy
///
SHAPE_POINTY_EARS = 166,
///
/// Lip Ratio - More Upper Lip 0--+255 More Lower Lip
///
SHAPE_LIP_RATIO = 167,
SHIRT_SLEEVE_LENGTH_168 = 168,
///
/// - Short 0--+255 Long
///
SHIRT_SHIRT_BOTTOM = 169,
SHIRT_COLLAR_FRONT_170 = 170,
SHIRT_SHIRT_RED = 171,
SHIRT_SHIRT_GREEN = 172,
SHIRT_SHIRT_BLUE = 173,
PANTS_PANTS_RED = 174,
PANTS_PANTS_GREEN = 175,
PANTS_PANTS_BLUE = 176,
SHOES_SHOES_RED = 177,
SHOES_SHOES_GREEN = 178,
///
/// - Low 0--+255 High
///
PANTS_WAIST_HEIGHT = 179,
PANTS_PANTS_LENGTH_180 = 180,
///
/// Pants Fit - Tight Pants 0--+255 Loose Pants
///
PANTS_LOOSE_LOWER_CLOTHING = 181,
SHOES_SHOES_BLUE = 182,
SOCKS_SOCKS_RED = 183,
SOCKS_SOCKS_GREEN = 184,
SOCKS_SOCKS_BLUE = 185,
UNDERSHIRT_UNDERSHIRT_RED = 186,
UNDERSHIRT_UNDERSHIRT_GREEN = 187,
UNDERSHIRT_UNDERSHIRT_BLUE = 188,
UNDERPANTS_UNDERPANTS_RED = 189,
UNDERPANTS_UNDERPANTS_GREEN = 190,
UNDERPANTS_UNDERPANTS_BLUE = 191,
GLOVES_GLOVES_RED = 192,
///
/// Shirt Fit - Tight Shirt 0--+255 Loose Shirt
///
SHIRT_LOOSE_UPPER_CLOTHING = 193,
GLOVES_GLOVES_GREEN = 194,
GLOVES_GLOVES_BLUE = 195,
JACKET_JACKET_RED = 196,
JACKET_JACKET_GREEN = 197,
JACKET_JACKET_BLUE = 198,
///
/// Sleeve Looseness - Tight Sleeves 0--+255 Loose Sleeves
///
SHIRT_SHIRTSLEEVE_FLAIR = 199,
///
/// Knee Angle - Knock Kneed 0--+255 Bow Legged
///
SHAPE_BOWED_LEGS = 200,
///
/// - Short hips 0--+255 Long Hips
///
SHAPE_HIP_LENGTH = 201,
///
/// - Fingerless 0--+255 Fingers
///
GLOVES_GLOVE_FINGERS = 202,
///
/// bustle skirt - no bustle 0--+255 more bustle
///
SKIRT_SKIRT_BUSTLE = 203,
///
/// - Short 0--+255 Long
///
SKIRT_SKIRT_LENGTH = 204,
///
/// - Open Front 0--+255 Closed Front
///
SKIRT_SLIT_FRONT = 205,
///
/// - Open Back 0--+255 Closed Back
///
SKIRT_SLIT_BACK = 206,
///
/// - Open Left 0--+255 Closed Left
///
SKIRT_SLIT_LEFT = 207,
///
/// - Open Right 0--+255 Closed Right
///
SKIRT_SLIT_RIGHT = 208,
///
/// Skirt Fit - Tight Skirt 0--+255 Poofy Skirt
///
SKIRT_SKIRT_LOOSENESS = 209,
SHIRT_SHIRT_WRINKLES = 210,
PANTS_PANTS_WRINKLES = 211,
///
/// Jacket Wrinkles - No Wrinkles 0--+255 Wrinkles
///
JACKET_JACKET_WRINKLES = 212,
///
/// Package - Coin Purse 0--+255 Duffle Bag
///
SHAPE_MALE_PACKAGE = 213,
///
/// Inner Eye Corner - Corner Down 0--+255 Corner Up
///
SHAPE_EYELID_INNER_CORNER_UP = 214,
SKIRT_SKIRT_RED = 215,
SKIRT_SKIRT_GREEN = 216,
SKIRT_SKIRT_BLUE = 217
}
}
}