diff --git a/LibreMetaverse.StructuredData/JSON/JsonData.cs b/LibreMetaverse.StructuredData/JSON/JsonData.cs index c84431cf..76295a5c 100644 --- a/LibreMetaverse.StructuredData/JSON/JsonData.cs +++ b/LibreMetaverse.StructuredData/JSON/JsonData.cs @@ -304,27 +304,27 @@ namespace LitJson #region Implicit Conversions - public static implicit operator JsonData (Boolean data) + public static implicit operator JsonData (bool data) { return new JsonData (data); } - public static implicit operator JsonData (Double data) + public static implicit operator JsonData (double data) { return new JsonData (data); } - public static implicit operator JsonData (Int32 data) + public static implicit operator JsonData (int data) { return new JsonData (data); } - public static implicit operator JsonData (Int64 data) + public static implicit operator JsonData (long data) { return new JsonData (data); } - public static implicit operator JsonData (String data) + public static implicit operator JsonData (string data) { return new JsonData (data); } @@ -332,7 +332,7 @@ namespace LitJson #region Explicit Conversions - public static explicit operator Boolean (JsonData data) + public static explicit operator bool (JsonData data) { if (data.type != JsonType.Boolean) throw new InvalidCastException ( @@ -341,7 +341,7 @@ namespace LitJson return data.inst_boolean; } - public static explicit operator Double (JsonData data) + public static explicit operator double (JsonData data) { if (data.type != JsonType.Double) throw new InvalidCastException ( @@ -350,7 +350,7 @@ namespace LitJson return data.inst_double; } - public static explicit operator Int32 (JsonData data) + public static explicit operator int (JsonData data) { if (data.type != JsonType.Int) throw new InvalidCastException ( @@ -359,7 +359,7 @@ namespace LitJson return data.inst_int; } - public static explicit operator Int64 (JsonData data) + public static explicit operator long (JsonData data) { if (data.type != JsonType.Long) throw new InvalidCastException ( @@ -368,7 +368,7 @@ namespace LitJson return data.inst_long; } - public static explicit operator String (JsonData data) + public static explicit operator string (JsonData data) { if (data.type != JsonType.String) throw new InvalidCastException ( @@ -790,23 +790,23 @@ namespace LitJson break; case JsonType.String: - inst_string = default (String); + inst_string = default (string); break; case JsonType.Int: - inst_int = default (Int32); + inst_int = default (int); break; case JsonType.Long: - inst_long = default (Int64); + inst_long = default (long); break; case JsonType.Double: - inst_double = default (Double); + inst_double = default (double); break; case JsonType.Boolean: - inst_boolean = default (Boolean); + inst_boolean = default (bool); break; } diff --git a/LibreMetaverse.StructuredData/JSON/JsonMapper.cs b/LibreMetaverse.StructuredData/JSON/JsonMapper.cs index f374f715..25dfde63 100644 --- a/LibreMetaverse.StructuredData/JSON/JsonMapper.cs +++ b/LibreMetaverse.StructuredData/JSON/JsonMapper.cs @@ -96,21 +96,21 @@ namespace LitJson IDictionary> custom_importers_table; private static IDictionary array_metadata; - private static readonly object array_metadata_lock = new Object (); + private static readonly object array_metadata_lock = new object (); private static IDictionary> conv_ops; - private static readonly object conv_ops_lock = new Object (); + private static readonly object conv_ops_lock = new object (); private static IDictionary object_metadata; - private static readonly object object_metadata_lock = new Object (); + private static readonly object object_metadata_lock = new object (); private static IDictionary> type_properties; - private static readonly object type_properties_lock = new Object (); + private static readonly object type_properties_lock = new object (); private static JsonWriter static_writer; - private static readonly object static_writer_lock = new Object (); + private static readonly object static_writer_lock = new object (); #endregion @@ -346,7 +346,7 @@ namespace LitJson new object[] { reader.Value }); // No luck - throw new JsonException (String.Format ( + throw new JsonException (string.Format ( "Can't assign value '{0}' (type {1}) to type {2}", reader.Value, json_type, inst_type)); } diff --git a/LibreMetaverse.StructuredData/JSON/JsonReader.cs b/LibreMetaverse.StructuredData/JSON/JsonReader.cs index 75052bb0..c321d19c 100644 --- a/LibreMetaverse.StructuredData/JSON/JsonReader.cs +++ b/LibreMetaverse.StructuredData/JSON/JsonReader.cs @@ -246,7 +246,7 @@ namespace LitJson number.IndexOf ('E') != -1) { double n_double; - if (Double.TryParse (number, out n_double)) { + if (double.TryParse (number, out n_double)) { Token = JsonToken.Double; Value = n_double; @@ -255,7 +255,7 @@ namespace LitJson } int n_int32; - if (Int32.TryParse (number, out n_int32)) { + if (int.TryParse (number, out n_int32)) { Token = JsonToken.Int; Value = n_int32; @@ -263,7 +263,7 @@ namespace LitJson } long n_int64; - if (Int64.TryParse (number, out n_int64)) { + if (long.TryParse (number, out n_int64)) { Token = JsonToken.Long; Value = n_int64; diff --git a/LibreMetaverse.StructuredData/JSON/OSDJson.cs b/LibreMetaverse.StructuredData/JSON/OSDJson.cs index d3ec21ad..cfd13690 100644 --- a/LibreMetaverse.StructuredData/JSON/OSDJson.cs +++ b/LibreMetaverse.StructuredData/JSON/OSDJson.cs @@ -39,7 +39,7 @@ namespace OpenMetaverse.StructuredData return OSD.FromReal((double)json); case JsonType.String: string str = (string)json; - return String.IsNullOrEmpty(str) ? new OSD() : OSD.FromString(str); + return string.IsNullOrEmpty(str) ? new OSD() : OSD.FromString(str); case JsonType.Array: OSDArray array = new OSDArray(json.Count); for (int i = 0; i < json.Count; i++) @@ -141,7 +141,7 @@ namespace OpenMetaverse.StructuredData case OSDType.Date: case OSDType.URI: string str = osd.AsString(); - return String.IsNullOrEmpty(str) ? null : new JsonData(str); + return string.IsNullOrEmpty(str) ? null : new JsonData(str); case OSDType.UUID: UUID uuid = osd.AsUUID(); diff --git a/LibreMetaverse.StructuredData/JSON/ParserToken.cs b/LibreMetaverse.StructuredData/JSON/ParserToken.cs index e19dcd7d..cf98241d 100644 --- a/LibreMetaverse.StructuredData/JSON/ParserToken.cs +++ b/LibreMetaverse.StructuredData/JSON/ParserToken.cs @@ -14,7 +14,7 @@ namespace LitJson internal enum ParserToken { // Lexer tokens - None = System.Char.MaxValue + 1, + None = char.MaxValue + 1, Number, True, False, diff --git a/LibreMetaverse.StructuredData/LLSD/NotationLLSD.cs b/LibreMetaverse.StructuredData/LLSD/NotationLLSD.cs index 8cf21ba8..2c569323 100644 --- a/LibreMetaverse.StructuredData/LLSD/NotationLLSD.cs +++ b/LibreMetaverse.StructuredData/LLSD/NotationLLSD.cs @@ -117,7 +117,7 @@ namespace OpenMetaverse.StructuredData { StringWriter writer = new StringWriter(); - string indent = String.Empty; + string indent = string.Empty; SerializeLLSDNotationElementFormatted(writer, indent, osd); return writer; } @@ -181,7 +181,7 @@ namespace OpenMetaverse.StructuredData if (reader.Read(uuidBuf, 0, 36) < 36) throw new OSDException("Notation LLSD parsing: Unexpected end of stream in UUID."); UUID lluuid; - if (!UUID.TryParse(new String(uuidBuf), out lluuid)) + if (!UUID.TryParse(new string(uuidBuf), out lluuid)) throw new OSDException("Notation LLSD parsing: Invalid UUID discovered."); osd = OSD.FromUUID(lluuid); break; @@ -194,13 +194,13 @@ namespace OpenMetaverse.StructuredData { throw new OSDException("Notation LLSD parsing: Raw binary encoding not supported."); } - else if (Char.IsDigit((char)bChar)) + else if (char.IsDigit((char)bChar)) { char[] charsBaseEncoding = new char[2]; if (reader.Read(charsBaseEncoding, 0, 2) < 2) throw new OSDException("Notation LLSD parsing: Unexpected end of stream in binary."); int baseEncoding; - if (!Int32.TryParse(new String(charsBaseEncoding), out baseEncoding)) + if (!int.TryParse(new string(charsBaseEncoding), out baseEncoding)) throw new OSDException("Notation LLSD parsing: Invalid binary encoding base."); if (baseEncoding == 64) { @@ -225,7 +225,7 @@ namespace OpenMetaverse.StructuredData throw new OSDException("Notation LLSD parsing: Unexpected end of stream in string."); if (reader.Read() < 0) throw new OSDException("Notation LLSD parsing: Unexpected end of stream in string."); - osd = OSD.FromString(new String(chars)); + osd = OSD.FromString(new string(chars)); break; case singleQuotesNotationMarker: string sOne = GetStringDelimitedBy(reader, singleQuotesNotationMarker); @@ -283,13 +283,13 @@ namespace OpenMetaverse.StructuredData } while ((character = reader.Peek()) > 0 && - Char.IsDigit((char)character)) + char.IsDigit((char)character)) { s.Append((char)character); reader.Read(); } int integer; - if (!Int32.TryParse(s.ToString(), out integer)) + if (!int.TryParse(s.ToString(), out integer)) throw new OSDException("Notation LLSD parsing: Can't parse integer value." + s); return OSD.FromInteger(integer); @@ -306,7 +306,7 @@ namespace OpenMetaverse.StructuredData reader.Read(); } while (((character = reader.Peek()) > 0) && - (Char.IsDigit((char)character) || (char)character == '.' || + (char.IsDigit((char)character) || (char)character == '.' || (char)character == 'e' || (char)character == 'E' || (char)character == '+' || (char)character == '-')) { @@ -636,7 +636,7 @@ namespace OpenMetaverse.StructuredData reader.Read(); } while (((character = reader.Read()) > 0) && - Char.IsDigit((char)character) && + char.IsDigit((char)character) && ((char)character != sizeEndNotationMarker)) { s.Append((char)character); @@ -644,7 +644,7 @@ namespace OpenMetaverse.StructuredData if (character < 0) throw new OSDException("Notation LLSD parsing: Can't parse length value cause unexpected end of stream."); int length; - if (!Int32.TryParse(s.ToString(), out length)) + if (!int.TryParse(s.ToString(), out length)) throw new OSDException("Notation LLSD parsing: Can't parse length value."); return length; @@ -747,12 +747,12 @@ namespace OpenMetaverse.StructuredData /// /// /// - public static string UnescapeCharacter(String s, char c) + public static string UnescapeCharacter(string s, char c) { string oldOne = "\\" + c; - string newOne = new String(c, 1); + string newOne = new string(c, 1); - String sOne = s.Replace(@"\\", "\\").Replace(oldOne, newOne); + string sOne = s.Replace(@"\\", "\\").Replace(oldOne, newOne); return sOne; } @@ -762,12 +762,12 @@ namespace OpenMetaverse.StructuredData /// /// /// - public static string EscapeCharacter(String s, char c) + public static string EscapeCharacter(string s, char c) { - string oldOne = new String(c, 1); + string oldOne = new string(c, 1); string newOne = "\\" + c; - String sOne = s.Replace("\\", @"\\").Replace(oldOne, newOne); + string sOne = s.Replace("\\", @"\\").Replace(oldOne, newOne); return sOne; } } diff --git a/LibreMetaverse.StructuredData/StructuredData.cs b/LibreMetaverse.StructuredData/StructuredData.cs index 055564fa..1b7a64ba 100644 --- a/LibreMetaverse.StructuredData/StructuredData.cs +++ b/LibreMetaverse.StructuredData/StructuredData.cs @@ -507,10 +507,10 @@ namespace OpenMetaverse.StructuredData { if (double.IsNaN(_mReal)) return 0; - if (_mReal > Int32.MaxValue) - return Int32.MaxValue; - if (_mReal < Int32.MinValue) - return Int32.MinValue; + if (_mReal > int.MaxValue) + return int.MaxValue; + if (_mReal < int.MinValue) + return int.MinValue; return (int)Math.Round(_mReal); } @@ -518,10 +518,10 @@ namespace OpenMetaverse.StructuredData { if (double.IsNaN(_mReal)) return 0; - if (_mReal > UInt32.MaxValue) - return UInt32.MaxValue; - if (_mReal < UInt32.MinValue) - return UInt32.MinValue; + if (_mReal > uint.MaxValue) + return uint.MaxValue; + if (_mReal < uint.MinValue) + return uint.MinValue; return (uint)Math.Round(_mReal); } @@ -529,10 +529,10 @@ namespace OpenMetaverse.StructuredData { if (double.IsNaN(_mReal)) return 0; - if (_mReal > Int64.MaxValue) - return Int64.MaxValue; - if (_mReal < Int64.MinValue) - return Int64.MinValue; + if (_mReal > long.MaxValue) + return long.MaxValue; + if (_mReal < long.MinValue) + return long.MinValue; return (long)Math.Round(_mReal); } @@ -540,10 +540,10 @@ namespace OpenMetaverse.StructuredData { if (double.IsNaN(_mReal)) return 0; - if (_mReal > UInt64.MaxValue) - return Int32.MaxValue; - if (_mReal < UInt64.MinValue) - return UInt64.MinValue; + if (_mReal > ulong.MaxValue) + return int.MaxValue; + if (_mReal < ulong.MinValue) + return ulong.MinValue; return (ulong)Math.Round(_mReal); } @@ -635,7 +635,7 @@ namespace OpenMetaverse.StructuredData public override double AsReal() { double dbl; - return Double.TryParse(_mString, out dbl) ? dbl : 0d; + return double.TryParse(_mString, out dbl) ? dbl : 0d; } public override string AsString() { return _mString; } diff --git a/LibreMetaverse.Tests/MessageTests.cs b/LibreMetaverse.Tests/MessageTests.cs index 2761650b..a2783b27 100644 --- a/LibreMetaverse.Tests/MessageTests.cs +++ b/LibreMetaverse.Tests/MessageTests.cs @@ -336,7 +336,7 @@ namespace LibreMetaverse.Tests s.SystemGPU = "Vesa VGA+"; s.SystemGPUClass = 4; s.SystemGPUVendor = "China"; - s.SystemGPUVersion = String.Empty; + s.SystemGPUVersion = string.Empty; s.InCompressedPackets = 5000; s.InKbytes = 6000; s.InPackets = 22000; @@ -1011,7 +1011,7 @@ namespace LibreMetaverse.Tests s.AgentID = UUID.Random(); s.MessageKey = "Key"; s.Reason = "Unable To Teleport for some unspecified reason"; - s.ExtraParams = String.Empty; + s.ExtraParams = string.Empty; OSDMap map = s.Serialize(); diff --git a/LibreMetaverse.Tests/NotationLLSDTests.cs b/LibreMetaverse.Tests/NotationLLSDTests.cs index 216cafe8..25bedb85 100644 --- a/LibreMetaverse.Tests/NotationLLSDTests.cs +++ b/LibreMetaverse.Tests/NotationLLSDTests.cs @@ -81,7 +81,7 @@ namespace LibreMetaverse.Tests [Test()] public void DeserializeUndef() { - String s = "!"; + string s = "!"; OSD llsd = OSDParser.DeserializeLLSDNotation(s); Assert.AreEqual(OSDType.Unknown, llsd.Type); } @@ -99,52 +99,52 @@ namespace LibreMetaverse.Tests [Test()] public void DeserializeBoolean() { - String t = "true"; + string t = "true"; OSD llsdT = OSDParser.DeserializeLLSDNotation(t); Assert.AreEqual(OSDType.Boolean, llsdT.Type); Assert.AreEqual(true, llsdT.AsBoolean()); - String tTwo = "t"; + string tTwo = "t"; OSD llsdTTwo = OSDParser.DeserializeLLSDNotation(tTwo); Assert.AreEqual(OSDType.Boolean, llsdTTwo.Type); Assert.AreEqual(true, llsdTTwo.AsBoolean()); - String tThree = "TRUE"; + string tThree = "TRUE"; OSD llsdTThree = OSDParser.DeserializeLLSDNotation(tThree); Assert.AreEqual(OSDType.Boolean, llsdTThree.Type); Assert.AreEqual(true, llsdTThree.AsBoolean()); - String tFour = "T"; + string tFour = "T"; OSD llsdTFour = OSDParser.DeserializeLLSDNotation(tFour); Assert.AreEqual(OSDType.Boolean, llsdTFour.Type); Assert.AreEqual(true, llsdTFour.AsBoolean()); - String tFive = "1"; + string tFive = "1"; OSD llsdTFive = OSDParser.DeserializeLLSDNotation(tFive); Assert.AreEqual(OSDType.Boolean, llsdTFive.Type); Assert.AreEqual(true, llsdTFive.AsBoolean()); - String f = "false"; + string f = "false"; OSD llsdF = OSDParser.DeserializeLLSDNotation(f); Assert.AreEqual(OSDType.Boolean, llsdF.Type); Assert.AreEqual(false, llsdF.AsBoolean()); - String fTwo = "f"; + string fTwo = "f"; OSD llsdFTwo = OSDParser.DeserializeLLSDNotation(fTwo); Assert.AreEqual(OSDType.Boolean, llsdFTwo.Type); Assert.AreEqual(false, llsdFTwo.AsBoolean()); - String fThree = "FALSE"; + string fThree = "FALSE"; OSD llsdFThree = OSDParser.DeserializeLLSDNotation(fThree); Assert.AreEqual(OSDType.Boolean, llsdFThree.Type); Assert.AreEqual(false, llsdFThree.AsBoolean()); - String fFour = "F"; + string fFour = "F"; OSD llsdFFour = OSDParser.DeserializeLLSDNotation(fFour); Assert.AreEqual(OSDType.Boolean, llsdFFour.Type); Assert.AreEqual(false, llsdFFour.AsBoolean()); - String fFive = "0"; + string fFive = "0"; OSD llsdFFive = OSDParser.DeserializeLLSDNotation(fFive); Assert.AreEqual(OSDType.Boolean, llsdFFive.Type); Assert.AreEqual(false, llsdFFive.AsBoolean()); @@ -199,27 +199,27 @@ namespace LibreMetaverse.Tests [Test()] public void DeserializeReal() { - String realOne = "r1123412345.465711"; + string realOne = "r1123412345.465711"; OSD llsdOne = OSDParser.DeserializeLLSDNotation(realOne); Assert.AreEqual(OSDType.Real, llsdOne.Type); Assert.AreEqual(1123412345.465711d, llsdOne.AsReal()); - String realTwo = "r-11234684.923411"; + string realTwo = "r-11234684.923411"; OSD llsdTwo = OSDParser.DeserializeLLSDNotation(realTwo); Assert.AreEqual(OSDType.Real, llsdTwo.Type); Assert.AreEqual(-11234684.923411d, llsdTwo.AsReal()); - String realThree = "r1"; + string realThree = "r1"; OSD llsdThree = OSDParser.DeserializeLLSDNotation(realThree); Assert.AreEqual(OSDType.Real, llsdThree.Type); Assert.AreEqual(1d, llsdThree.AsReal()); - String realFour = "r2.0193899999999998204e-06"; + string realFour = "r2.0193899999999998204e-06"; OSD llsdFour = OSDParser.DeserializeLLSDNotation(realFour); Assert.AreEqual(OSDType.Real, llsdFour.Type); Assert.AreEqual(2.0193899999999998204e-06d, llsdFour.AsReal()); - String realFive = "r0"; + string realFive = "r0"; OSD llsdFive = OSDParser.DeserializeLLSDNotation(realFive); Assert.AreEqual(OSDType.Real, llsdFive.Type); Assert.AreEqual(0d, llsdFive.AsReal()); @@ -240,17 +240,17 @@ namespace LibreMetaverse.Tests Assert.AreEqual(OSDType.Real, llsdTwoDS.Type); Assert.AreEqual(-32347892.234234d, llsdTwoDS.AsReal()); - OSD llsdThree = OSD.FromReal( Double.MaxValue ); + OSD llsdThree = OSD.FromReal( double.MaxValue ); string sThree = OSDParser.SerializeLLSDNotation( llsdThree ); OSD llsdThreeDS = OSDParser.DeserializeLLSDNotation( sThree ); Assert.AreEqual( OSDType.Real, llsdThreeDS.Type ); - Assert.AreEqual( Double.MaxValue, llsdThreeDS.AsReal()); + Assert.AreEqual( double.MaxValue, llsdThreeDS.AsReal()); - OSD llsdFour = OSD.FromReal(Double.MinValue); + OSD llsdFour = OSD.FromReal(double.MinValue); string sFour = OSDParser.SerializeLLSDNotation(llsdFour); OSD llsdFourDS = OSDParser.DeserializeLLSDNotation(sFour); Assert.AreEqual(OSDType.Real, llsdFourDS.Type); - Assert.AreEqual(Double.MinValue, llsdFourDS.AsReal()); + Assert.AreEqual(double.MinValue, llsdFourDS.AsReal()); OSD llsdFive = OSD.FromReal(-1.1123123E+50d); string sFive = OSDParser.SerializeLLSDNotation(llsdFive); @@ -268,12 +268,12 @@ namespace LibreMetaverse.Tests [Test()] public void DeserializeUUID() { - String uuidOne = "u97f4aeca-88a1-42a1-b385-b97b18abb255"; + string uuidOne = "u97f4aeca-88a1-42a1-b385-b97b18abb255"; OSD llsdOne = OSDParser.DeserializeLLSDNotation(uuidOne); Assert.AreEqual(OSDType.UUID, llsdOne.Type); Assert.AreEqual("97f4aeca-88a1-42a1-b385-b97b18abb255", llsdOne.AsString()); - String uuidTwo = "u00000000-0000-0000-0000-000000000000"; + string uuidTwo = "u00000000-0000-0000-0000-000000000000"; OSD llsdTwo = OSDParser.DeserializeLLSDNotation(uuidTwo); Assert.AreEqual(OSDType.UUID, llsdTwo.Type); Assert.AreEqual("00000000-0000-0000-0000-000000000000", llsdTwo.AsString()); @@ -323,7 +323,7 @@ namespace LibreMetaverse.Tests Assert.AreEqual("aa\t la", llsdFour.AsString()); char[] cFive = { (char)0x27, (char)0x5c, (char)0x5c, (char)0x27 }; - string sFive = new String(cFive); + string sFive = new string(cFive); OSD llsdFive = OSDParser.DeserializeLLSDNotation(sFive); Assert.AreEqual(OSDType.String, llsdFive.Type); Assert.AreEqual("\\", llsdFive.AsString()); diff --git a/LibreMetaverse.Tests/PrimObjectTests.cs b/LibreMetaverse.Tests/PrimObjectTests.cs index ef0bb978..d7955705 100644 --- a/LibreMetaverse.Tests/PrimObjectTests.cs +++ b/LibreMetaverse.Tests/PrimObjectTests.cs @@ -123,7 +123,7 @@ namespace LibreMetaverse.Tests float foffset = Helpers.TEOffsetFloat(BitConverter.GetBytes(offset), 0); foffset = (float)Math.Round(foffset, 3); - Assert.IsTrue(foffset - i < Single.Epsilon, foffset + " is not equal to " + i); + Assert.IsTrue(foffset - i < float.Epsilon, foffset + " is not equal to " + i); } } diff --git a/LibreMetaverse.Tests/TypeTests.cs b/LibreMetaverse.Tests/TypeTests.cs index 6e34bbe3..3311d8d6 100644 --- a/LibreMetaverse.Tests/TypeTests.cs +++ b/LibreMetaverse.Tests/TypeTests.cs @@ -94,7 +94,7 @@ namespace LibreMetaverse.Tests a = new Vector3(0f, 0f, 0.00001f); b = new Vector3(0f, 0f, 0f); - Assert.IsFalse(b.ApproxEquals(a, Single.Epsilon), "ApproxEquals failed (6)"); + Assert.IsFalse(b.ApproxEquals(a, float.Epsilon), "ApproxEquals failed (6)"); Assert.IsTrue(b.ApproxEquals(a, 0.0001f), "ApproxEquals failed (7)"); } @@ -225,7 +225,7 @@ namespace LibreMetaverse.Tests public void FloatsToTerseStrings() { float f = 1.20f; - string a = String.Empty; + string a = string.Empty; string b = "1.2"; a = Helpers.FloatToTerseString(f); @@ -310,7 +310,7 @@ namespace LibreMetaverse.Tests b = bitpacker.UnpackBits(1); Assert.IsTrue(b == 1, "Unpacked " + b + " instead of 1"); - packedBytes = new byte[1] { Byte.MaxValue }; + packedBytes = new byte[1] { byte.MaxValue }; bitpacker = new BitPack(packedBytes, 0); bitpacker.PackBit(false); diff --git a/LibreMetaverse.Tests/XmlLLSDTests.cs b/LibreMetaverse.Tests/XmlLLSDTests.cs index 6ff1bc87..e379a366 100644 --- a/LibreMetaverse.Tests/XmlLLSDTests.cs +++ b/LibreMetaverse.Tests/XmlLLSDTests.cs @@ -55,7 +55,7 @@ namespace LibreMetaverse.Tests OSDString tempStr = null; OSDReal tempReal = null; - String testSD = @" + string testSD = @" region_id @@ -130,7 +130,7 @@ namespace LibreMetaverse.Tests Assert.IsTrue(tempSD is OSDReal); Assert.IsTrue(tempSD.Type == OSDType.Real); tempReal = (OSDReal)tempSD; - Assert.AreEqual(Double.NaN, tempSD.AsReal()); + Assert.AreEqual(double.NaN, tempSD.AsReal()); tempSD = map["total task count"]; Assert.IsNotNull(tempSD); @@ -216,7 +216,7 @@ namespace LibreMetaverse.Tests OSDArray array = null; OSDReal tempReal = null; - String testSD = @" + string testSD = @" 44.38898 @@ -239,7 +239,7 @@ namespace LibreMetaverse.Tests Assert.AreEqual(OSDType.Real, array[1].Type); tempReal = (OSDReal)array[1]; - Assert.AreEqual(Double.NaN, tempReal.AsReal()); + Assert.AreEqual(double.NaN, tempReal.AsReal()); Assert.AreEqual(OSDType.Real, array[2].Type); tempReal = (OSDReal)array[2]; @@ -264,7 +264,7 @@ namespace LibreMetaverse.Tests OSDArray array = null; OSDString tempStr = null; - String testSD = @" + string testSD = @" Kissling @@ -313,7 +313,7 @@ namespace LibreMetaverse.Tests OSDArray array = null; OSDInteger tempInt = null; - String testSD = @" + string testSD = @" 2147483647 @@ -361,7 +361,7 @@ namespace LibreMetaverse.Tests OSDArray array = null; OSDUUID tempUUID = null; - String testSD = @" + string testSD = @" d7f4aeca-88f1-42a1-b385-b9db18abb255 @@ -395,7 +395,7 @@ namespace LibreMetaverse.Tests OSDDate tempDate = null; DateTime testDate; - String testSD = @" + string testSD = @" 2006-02-01T14:29:53Z @@ -435,7 +435,7 @@ namespace LibreMetaverse.Tests OSDArray array = null; OSDBoolean tempBool = null; - String testSD = @" + string testSD = @" 1 @@ -483,7 +483,7 @@ namespace LibreMetaverse.Tests OSDArray array = null; OSDBinary tempBinary = null; - String testSD = @" + string testSD = @" cmFuZG9t @@ -526,7 +526,7 @@ namespace LibreMetaverse.Tests { OSD theSD = null; - String testSD = @" + string testSD = @" "; @@ -547,7 +547,7 @@ namespace LibreMetaverse.Tests OSDArray array = null; OSDUri tempURI = null; - String testSD = @" + string testSD = @" http://sim956.agni.lindenlab.com:12035/runtime/agents @@ -583,7 +583,7 @@ namespace LibreMetaverse.Tests OSDMap map = null; OSD tempSD = null; - String testSD = @" + string testSD = @" diff --git a/LibreMetaverse.Types/Matrix4.cs b/LibreMetaverse.Types/Matrix4.cs index 7cd234ce..59b7a661 100644 --- a/LibreMetaverse.Types/Matrix4.cs +++ b/LibreMetaverse.Types/Matrix4.cs @@ -235,7 +235,7 @@ namespace OpenMetaverse Quaternion quat = new Quaternion(); float trace = Trace() + 1f; - if (trace > Single.Epsilon) + if (trace > float.Epsilon) { float s = 0.5f / (float)Math.Sqrt(trace); diff --git a/LibreMetaverse.Types/Quaternion.cs b/LibreMetaverse.Types/Quaternion.cs index e6a07050..c25f3cb3 100644 --- a/LibreMetaverse.Types/Quaternion.cs +++ b/LibreMetaverse.Types/Quaternion.cs @@ -645,7 +645,7 @@ namespace OpenMetaverse public static Quaternion Parse(string val) { char[] splitChar = { ',' }; - string[] split = val.Replace("<", String.Empty).Replace(">", String.Empty).Split(splitChar); + string[] split = val.Replace("<", string.Empty).Replace(">", string.Empty).Split(splitChar); if (split.Length == 3) { return new Quaternion( @@ -701,7 +701,7 @@ namespace OpenMetaverse public override string ToString() { - return String.Format(Utils.EnUsCulture, "<{0}, {1}, {2}, {3}>", X, Y, Z, W); + return string.Format(Utils.EnUsCulture, "<{0}, {1}, {2}, {3}>", X, Y, Z, W); } /// @@ -714,7 +714,7 @@ namespace OpenMetaverse CultureInfo enUs = new CultureInfo("en-us"); enUs.NumberFormat.NumberDecimalDigits = 3; - return String.Format(enUs, "{0} {1} {2} {3}", X, Y, Z, W); + return string.Format(enUs, "{0} {1} {2} {3}", X, Y, Z, W); } #endregion Overrides diff --git a/LibreMetaverse.Types/TokenBucket.cs b/LibreMetaverse.Types/TokenBucket.cs index 1fd27ac8..4bb1dff7 100644 --- a/LibreMetaverse.Types/TokenBucket.cs +++ b/LibreMetaverse.Types/TokenBucket.cs @@ -113,7 +113,7 @@ namespace OpenMetaverse this.parent = parent; MaxBurst = maxBurst; DripRate = dripRate; - lastDrip = Environment.TickCount & Int32.MaxValue; + lastDrip = Environment.TickCount & int.MaxValue; } /// @@ -175,7 +175,7 @@ namespace OpenMetaverse } else { - int now = Environment.TickCount & Int32.MaxValue; + int now = Environment.TickCount & int.MaxValue; int deltaMS = now - lastDrip; if (deltaMS <= 0) diff --git a/LibreMetaverse.Types/Utils.cs b/LibreMetaverse.Types/Utils.cs index 5441c5ca..6911d0e2 100644 --- a/LibreMetaverse.Types/Utils.cs +++ b/LibreMetaverse.Types/Utils.cs @@ -181,7 +181,7 @@ namespace OpenMetaverse /// public static bool IsFinite(float value) { - return !(Single.IsNaN(value) || Single.IsInfinity(value)); + return !(float.IsNaN(value) || float.IsInfinity(value)); } /// @@ -189,7 +189,7 @@ namespace OpenMetaverse /// public static bool IsFinite(double value) { - return !(Double.IsNaN(value) || Double.IsInfinity(value)); + return !(double.IsNaN(value) || double.IsInfinity(value)); } /// diff --git a/LibreMetaverse.Types/UtilsConversions.cs b/LibreMetaverse.Types/UtilsConversions.cs index e5143a54..407daeca 100644 --- a/LibreMetaverse.Types/UtilsConversions.cs +++ b/LibreMetaverse.Types/UtilsConversions.cs @@ -763,7 +763,7 @@ namespace OpenMetaverse { if (handleDirty) { - if (String.IsNullOrEmpty(hexString)) + if (string.IsNullOrEmpty(hexString)) return EmptyBytes; StringBuilder stripped = new StringBuilder(hexString.Length); diff --git a/LibreMetaverse.Types/Vector2.cs b/LibreMetaverse.Types/Vector2.cs index e3138516..e398b5e2 100644 --- a/LibreMetaverse.Types/Vector2.cs +++ b/LibreMetaverse.Types/Vector2.cs @@ -287,7 +287,7 @@ namespace OpenMetaverse public static Vector2 Parse(string val) { char[] splitChar = { ',' }; - string[] split = val.Replace("<", String.Empty).Replace(">", String.Empty).Split(splitChar); + string[] split = val.Replace("<", string.Empty).Replace(">", string.Empty).Split(splitChar); return new Vector2( float.Parse(split[0].Trim(), Utils.EnUsCulture), float.Parse(split[1].Trim(), Utils.EnUsCulture)); @@ -365,7 +365,7 @@ namespace OpenMetaverse /// A string representation of the vector public override string ToString() { - return String.Format(Utils.EnUsCulture, "<{0}, {1}>", X, Y); + return string.Format(Utils.EnUsCulture, "<{0}, {1}>", X, Y); } /// @@ -378,7 +378,7 @@ namespace OpenMetaverse CultureInfo enUs = new CultureInfo("en-us"); enUs.NumberFormat.NumberDecimalDigits = 3; - return String.Format(enUs, "{0} {1}", X, Y); + return string.Format(enUs, "{0} {1}", X, Y); } #endregion Overrides diff --git a/LibreMetaverse.Types/Vector3.cs b/LibreMetaverse.Types/Vector3.cs index b4655170..ab8529c5 100644 --- a/LibreMetaverse.Types/Vector3.cs +++ b/LibreMetaverse.Types/Vector3.cs @@ -350,11 +350,11 @@ namespace OpenMetaverse public static Vector3 Parse(string val) { char[] splitChar = { ',' }; - string[] split = val.Replace("<", String.Empty).Replace(">", String.Empty).Split(splitChar); + string[] split = val.Replace("<", string.Empty).Replace(">", string.Empty).Split(splitChar); return new Vector3( - Single.Parse(split[0].Trim(), Utils.EnUsCulture), - Single.Parse(split[1].Trim(), Utils.EnUsCulture), - Single.Parse(split[2].Trim(), Utils.EnUsCulture)); + float.Parse(split[0].Trim(), Utils.EnUsCulture), + float.Parse(split[1].Trim(), Utils.EnUsCulture), + float.Parse(split[2].Trim(), Utils.EnUsCulture)); } public static bool TryParse(string val, out Vector3 result) @@ -455,7 +455,7 @@ namespace OpenMetaverse /// A string representation of the vector public override string ToString() { - return String.Format(Utils.EnUsCulture, "<{0}, {1}, {2}>", X, Y, Z); + return string.Format(Utils.EnUsCulture, "<{0}, {1}, {2}>", X, Y, Z); } /// @@ -468,7 +468,7 @@ namespace OpenMetaverse CultureInfo enUs = new CultureInfo("en-us"); enUs.NumberFormat.NumberDecimalDigits = 3; - return String.Format(enUs, "{0} {1} {2}", X, Y, Z); + return string.Format(enUs, "{0} {1} {2}", X, Y, Z); } #endregion Overrides diff --git a/LibreMetaverse.Types/Vector3d.cs b/LibreMetaverse.Types/Vector3d.cs index 0f71dabe..e5eefd0c 100644 --- a/LibreMetaverse.Types/Vector3d.cs +++ b/LibreMetaverse.Types/Vector3d.cs @@ -311,7 +311,7 @@ namespace OpenMetaverse public static Vector3d Normalize(Vector3d value) { double factor = Distance(value, Zero); - if (factor > Double.Epsilon) + if (factor > double.Epsilon) { factor = 1d / factor; value.X *= factor; @@ -335,11 +335,11 @@ namespace OpenMetaverse public static Vector3d Parse(string val) { char[] splitChar = { ',' }; - string[] split = val.Replace("<", String.Empty).Replace(">", String.Empty).Split(splitChar); + string[] split = val.Replace("<", string.Empty).Replace(">", string.Empty).Split(splitChar); return new Vector3d( - Double.Parse(split[0].Trim(), Utils.EnUsCulture), - Double.Parse(split[1].Trim(), Utils.EnUsCulture), - Double.Parse(split[2].Trim(), Utils.EnUsCulture)); + double.Parse(split[0].Trim(), Utils.EnUsCulture), + double.Parse(split[1].Trim(), Utils.EnUsCulture), + double.Parse(split[2].Trim(), Utils.EnUsCulture)); } public static bool TryParse(string val, out Vector3d result) @@ -400,7 +400,7 @@ namespace OpenMetaverse /// A string representation of the vector public override string ToString() { - return String.Format(Utils.EnUsCulture, "<{0}, {1}, {2}>", X, Y, Z); + return string.Format(Utils.EnUsCulture, "<{0}, {1}, {2}>", X, Y, Z); } /// @@ -413,7 +413,7 @@ namespace OpenMetaverse CultureInfo enUs = new CultureInfo("en-us"); enUs.NumberFormat.NumberDecimalDigits = 3; - return String.Format(enUs, "{0} {1} {2}", X, Y, Z); + return string.Format(enUs, "{0} {1} {2}", X, Y, Z); } #endregion Overrides diff --git a/LibreMetaverse.Types/Vector4.cs b/LibreMetaverse.Types/Vector4.cs index 3ed77218..1c5d5727 100644 --- a/LibreMetaverse.Types/Vector4.cs +++ b/LibreMetaverse.Types/Vector4.cs @@ -397,7 +397,7 @@ namespace OpenMetaverse public static Vector4 Parse(string val) { char[] splitChar = { ',' }; - string[] split = val.Replace("<", String.Empty).Replace(">", String.Empty).Split(splitChar); + string[] split = val.Replace("<", string.Empty).Replace(">", string.Empty).Split(splitChar); return new Vector4( float.Parse(split[0].Trim(), Utils.EnUsCulture), float.Parse(split[1].Trim(), Utils.EnUsCulture), @@ -443,7 +443,7 @@ namespace OpenMetaverse public override string ToString() { - return String.Format(Utils.EnUsCulture, "<{0}, {1}, {2}, {3}>", X, Y, Z, W); + return string.Format(Utils.EnUsCulture, "<{0}, {1}, {2}, {3}>", X, Y, Z, W); } /// @@ -456,7 +456,7 @@ namespace OpenMetaverse CultureInfo enUs = new CultureInfo("en-us"); enUs.NumberFormat.NumberDecimalDigits = 3; - return String.Format(enUs, "{0} {1} {2} {3}", X, Y, Z, W); + return string.Format(enUs, "{0} {1} {2} {3}", X, Y, Z, W); } #endregion Overrides diff --git a/LibreMetaverse.Voice/VoiceDefinitions.cs b/LibreMetaverse.Voice/VoiceDefinitions.cs index 7d7f8c81..2892df64 100644 --- a/LibreMetaverse.Voice/VoiceDefinitions.cs +++ b/LibreMetaverse.Voice/VoiceDefinitions.cs @@ -132,7 +132,7 @@ namespace LibreMetaverse.Voice public VoiceLoggingSettings() { Enabled = false; - Folder = String.Empty; + Folder = string.Empty; FileNamePrefix = "Connector"; FileNameSuffix = ".log"; LogLevel = 0; diff --git a/LibreMetaverse/AgentManager.cs b/LibreMetaverse/AgentManager.cs index 860d2de0..680ba766 100644 --- a/LibreMetaverse/AgentManager.cs +++ b/LibreMetaverse/AgentManager.cs @@ -2005,7 +2005,7 @@ namespace OpenMetaverse { AgentID = Client.Self.AgentID, Color = new byte[4], - Duration = (type == PointAtType.Clear) ? 0.0f : Single.MaxValue / 4.0f, + Duration = (type == PointAtType.Clear) ? 0.0f : float.MaxValue / 4.0f, ID = effectID, Type = (byte) EffectType.PointAt }; @@ -2068,7 +2068,7 @@ namespace OpenMetaverse case LookAtType.Select: case LookAtType.Focus: case LookAtType.Mouselook: - duration = Single.MaxValue / 2.0f; + duration = float.MaxValue / 2.0f; break; default: duration = 0.0f; @@ -3505,7 +3505,7 @@ namespace OpenMetaverse { LocationPos = Client.Self.SimPosition, LocationID = 1, - SimName = Utils.StringToBytes(String.Empty), + SimName = Utils.StringToBytes(string.Empty), LocationLookAt = Movement.Camera.AtAxis }; Client.Network.SendPacket(s); diff --git a/LibreMetaverse/Assets/Archiving/AssetsArchiver.cs b/LibreMetaverse/Assets/Archiving/AssetsArchiver.cs index 3166e064..9eff2d4f 100644 --- a/LibreMetaverse/Assets/Archiving/AssetsArchiver.cs +++ b/LibreMetaverse/Assets/Archiving/AssetsArchiver.cs @@ -93,7 +93,7 @@ namespace OpenMetaverse.Assets xtw.WriteElementString("filename", uuid + extension); xtw.WriteElementString("name", uuid.ToString()); - xtw.WriteElementString("description", String.Empty); + xtw.WriteElementString("description", string.Empty); xtw.WriteElementString("asset-type", asset.AssetType.ToString()); xtw.WriteEndElement(); @@ -129,7 +129,7 @@ namespace OpenMetaverse.Assets } else { - Logger.Log(String.Format( + Logger.Log(string.Format( "Unrecognized asset type {0} with uuid {1}. This asset will be saved but not reloaded", asset.AssetType, asset.AssetID), Helpers.LogLevel.Warning); } diff --git a/LibreMetaverse/Assets/Archiving/OarFile.cs b/LibreMetaverse/Assets/Archiving/OarFile.cs index 8dba275c..5a735b5a 100644 --- a/LibreMetaverse/Assets/Archiving/OarFile.cs +++ b/LibreMetaverse/Assets/Archiving/OarFile.cs @@ -676,9 +676,9 @@ namespace OpenMetaverse.Assets public static void SOGToXml2(XmlTextWriter writer, AssetPrim prim) { - writer.WriteStartElement(String.Empty, "SceneObjectGroup", String.Empty); + writer.WriteStartElement(string.Empty, "SceneObjectGroup", string.Empty); SOPToXml(writer, prim.Parent, null); - writer.WriteStartElement(String.Empty, "OtherParts", String.Empty); + writer.WriteStartElement(string.Empty, "OtherParts", string.Empty); foreach (PrimObject child in prim.Children) SOPToXml(writer, child, prim.Parent); diff --git a/LibreMetaverse/Assets/Archiving/RegionSettings.cs b/LibreMetaverse/Assets/Archiving/RegionSettings.cs index 274522cf..9890c4da 100644 --- a/LibreMetaverse/Assets/Archiving/RegionSettings.cs +++ b/LibreMetaverse/Assets/Archiving/RegionSettings.cs @@ -55,43 +55,43 @@ namespace OpenMetaverse.Assets switch (xtr.Name) { case "AllowDamage": - settings.AllowDamage = Boolean.Parse(xtr.ReadElementContentAsString()); + settings.AllowDamage = bool.Parse(xtr.ReadElementContentAsString()); break; case "AllowLandResell": - settings.AllowLandResell = Boolean.Parse(xtr.ReadElementContentAsString()); + settings.AllowLandResell = bool.Parse(xtr.ReadElementContentAsString()); break; case "AllowLandJoinDivide": - settings.AllowLandJoinDivide = Boolean.Parse(xtr.ReadElementContentAsString()); + settings.AllowLandJoinDivide = bool.Parse(xtr.ReadElementContentAsString()); break; case "BlockFly": - settings.BlockFly = Boolean.Parse(xtr.ReadElementContentAsString()); + settings.BlockFly = bool.Parse(xtr.ReadElementContentAsString()); break; case "BlockLandShowInSearch": - settings.BlockLandShowInSearch = Boolean.Parse(xtr.ReadElementContentAsString()); + settings.BlockLandShowInSearch = bool.Parse(xtr.ReadElementContentAsString()); break; case "BlockTerraform": - settings.BlockTerraform = Boolean.Parse(xtr.ReadElementContentAsString()); + settings.BlockTerraform = bool.Parse(xtr.ReadElementContentAsString()); break; case "DisableCollisions": - settings.DisableCollisions = Boolean.Parse(xtr.ReadElementContentAsString()); + settings.DisableCollisions = bool.Parse(xtr.ReadElementContentAsString()); break; case "DisablePhysics": - settings.DisablePhysics = Boolean.Parse(xtr.ReadElementContentAsString()); + settings.DisablePhysics = bool.Parse(xtr.ReadElementContentAsString()); break; case "DisableScripts": - settings.DisableScripts = Boolean.Parse(xtr.ReadElementContentAsString()); + settings.DisableScripts = bool.Parse(xtr.ReadElementContentAsString()); break; case "MaturityRating": - settings.MaturityRating = Int32.Parse(xtr.ReadElementContentAsString()); + settings.MaturityRating = int.Parse(xtr.ReadElementContentAsString()); break; case "RestrictPushing": - settings.RestrictPushing = Boolean.Parse(xtr.ReadElementContentAsString()); + settings.RestrictPushing = bool.Parse(xtr.ReadElementContentAsString()); break; case "AgentLimit": - settings.AgentLimit = Int32.Parse(xtr.ReadElementContentAsString()); + settings.AgentLimit = int.Parse(xtr.ReadElementContentAsString()); break; case "ObjectBonus": - settings.ObjectBonus = Single.Parse(xtr.ReadElementContentAsString(), nfi); + settings.ObjectBonus = float.Parse(xtr.ReadElementContentAsString(), nfi); break; } } @@ -116,28 +116,28 @@ namespace OpenMetaverse.Assets settings.TerrainDetail3 = UUID.Parse(xtr.ReadElementContentAsString()); break; case "ElevationLowSW": - settings.TerrainStartHeight00 = Single.Parse(xtr.ReadElementContentAsString(), nfi); + settings.TerrainStartHeight00 = float.Parse(xtr.ReadElementContentAsString(), nfi); break; case "ElevationLowNW": - settings.TerrainStartHeight01 = Single.Parse(xtr.ReadElementContentAsString(), nfi); + settings.TerrainStartHeight01 = float.Parse(xtr.ReadElementContentAsString(), nfi); break; case "ElevationLowSE": - settings.TerrainStartHeight10 = Single.Parse(xtr.ReadElementContentAsString(), nfi); + settings.TerrainStartHeight10 = float.Parse(xtr.ReadElementContentAsString(), nfi); break; case "ElevationLowNE": - settings.TerrainStartHeight11 = Single.Parse(xtr.ReadElementContentAsString(), nfi); + settings.TerrainStartHeight11 = float.Parse(xtr.ReadElementContentAsString(), nfi); break; case "ElevationHighSW": - settings.TerrainHeightRange00 = Single.Parse(xtr.ReadElementContentAsString(), nfi); + settings.TerrainHeightRange00 = float.Parse(xtr.ReadElementContentAsString(), nfi); break; case "ElevationHighNW": - settings.TerrainHeightRange01 = Single.Parse(xtr.ReadElementContentAsString(), nfi); + settings.TerrainHeightRange01 = float.Parse(xtr.ReadElementContentAsString(), nfi); break; case "ElevationHighSE": - settings.TerrainHeightRange10 = Single.Parse(xtr.ReadElementContentAsString(), nfi); + settings.TerrainHeightRange10 = float.Parse(xtr.ReadElementContentAsString(), nfi); break; case "ElevationHighNE": - settings.TerrainHeightRange11 = Single.Parse(xtr.ReadElementContentAsString(), nfi); + settings.TerrainHeightRange11 = float.Parse(xtr.ReadElementContentAsString(), nfi); break; } } @@ -150,19 +150,19 @@ namespace OpenMetaverse.Assets switch (xtr.Name) { case "WaterHeight": - settings.WaterHeight = Single.Parse(xtr.ReadElementContentAsString(), nfi); + settings.WaterHeight = float.Parse(xtr.ReadElementContentAsString(), nfi); break; case "TerrainRaiseLimit": - settings.TerrainRaiseLimit = Single.Parse(xtr.ReadElementContentAsString(), nfi); + settings.TerrainRaiseLimit = float.Parse(xtr.ReadElementContentAsString(), nfi); break; case "TerrainLowerLimit": - settings.TerrainLowerLimit = Single.Parse(xtr.ReadElementContentAsString(), nfi); + settings.TerrainLowerLimit = float.Parse(xtr.ReadElementContentAsString(), nfi); break; case "UseEstateSun": - settings.UseEstateSun = Boolean.Parse(xtr.ReadElementContentAsString()); + settings.UseEstateSun = bool.Parse(xtr.ReadElementContentAsString()); break; case "FixedSun": - settings.FixedSun = Boolean.Parse(xtr.ReadElementContentAsString()); + settings.FixedSun = bool.Parse(xtr.ReadElementContentAsString()); break; } } @@ -177,8 +177,8 @@ namespace OpenMetaverse.Assets XmlTextWriter writer = new XmlTextWriter(sw) { Formatting = Formatting.Indented }; writer.WriteStartDocument(); - writer.WriteStartElement(String.Empty, "RegionSettings", String.Empty); - writer.WriteStartElement(String.Empty, "General", String.Empty); + writer.WriteStartElement(string.Empty, "RegionSettings", string.Empty); + writer.WriteStartElement(string.Empty, "General", string.Empty); WriteBoolean(writer, "AllowDamage", AllowDamage); WriteBoolean(writer, "AllowLandResell", AllowLandResell); @@ -195,7 +195,7 @@ namespace OpenMetaverse.Assets writer.WriteElementString("ObjectBonus", ObjectBonus.ToString(CultureInfo.InvariantCulture)); writer.WriteEndElement(); - writer.WriteStartElement(String.Empty, "GroundTextures", String.Empty); + writer.WriteStartElement(string.Empty, "GroundTextures", string.Empty); writer.WriteElementString("Texture1", TerrainDetail0.ToString()); writer.WriteElementString("Texture2", TerrainDetail1.ToString()); @@ -211,7 +211,7 @@ namespace OpenMetaverse.Assets writer.WriteElementString("ElevationHighNE", TerrainHeightRange11.ToString(CultureInfo.InvariantCulture)); writer.WriteEndElement(); - writer.WriteStartElement(String.Empty, "Terrain", String.Empty); + writer.WriteStartElement(string.Empty, "Terrain", string.Empty); writer.WriteElementString("WaterHeight", WaterHeight.ToString(CultureInfo.InvariantCulture)); writer.WriteElementString("TerrainRaiseLimit", TerrainRaiseLimit.ToString(CultureInfo.InvariantCulture)); diff --git a/LibreMetaverse/Assets/Archiving/TarArchiveReader.cs b/LibreMetaverse/Assets/Archiving/TarArchiveReader.cs index 257dba8b..e9cef71d 100644 --- a/LibreMetaverse/Assets/Archiving/TarArchiveReader.cs +++ b/LibreMetaverse/Assets/Archiving/TarArchiveReader.cs @@ -82,7 +82,7 @@ namespace OpenMetaverse.Assets /// the data for the entry. Returns null if there are no more entries public byte[] ReadEntry(out string filePath, out TarEntryType entryType) { - filePath = String.Empty; + filePath = string.Empty; entryType = TarEntryType.TYPE_UNKNOWN; TarHeader header = ReadHeader(); diff --git a/LibreMetaverse/Assets/AssetTypes/AssetLandmark.cs b/LibreMetaverse/Assets/AssetTypes/AssetLandmark.cs index f8ec9af5..b37186de 100644 --- a/LibreMetaverse/Assets/AssetTypes/AssetLandmark.cs +++ b/LibreMetaverse/Assets/AssetTypes/AssetLandmark.cs @@ -61,7 +61,7 @@ namespace OpenMetaverse.Assets { string temp = "Landmark version 2\n"; temp += "region_id " + RegionID + "\n"; - temp += String.Format(Utils.EnUsCulture, "local_pos {0:0.00} {1:0.00} {2:0.00}\n", Position.X, Position.Y, Position.Z); + temp += string.Format(Utils.EnUsCulture, "local_pos {0:0.00} {1:0.00} {2:0.00}\n", Position.X, Position.Y, Position.Z); AssetData = Utils.StringToBytes(temp); } @@ -71,12 +71,12 @@ namespace OpenMetaverse.Assets /// true if the AssetData was successfully decoded to a UUID and Vector public override bool Decode() { - String text = Utils.BytesToString(AssetData); + string text = Utils.BytesToString(AssetData); if (text.ToLower().Contains("landmark version 2")) { RegionID = new UUID(text.Substring(text.IndexOf("region_id", StringComparison.Ordinal) + 10, 36)); - String vecDelim = " "; - String[] vecStrings = text.Substring(text.IndexOf("local_pos", StringComparison.Ordinal) + 10).Split(vecDelim.ToCharArray()); + string vecDelim = " "; + string[] vecStrings = text.Substring(text.IndexOf("local_pos", StringComparison.Ordinal) + 10).Split(vecDelim.ToCharArray()); if (vecStrings.Length == 3) { Position = new Vector3(float.Parse(vecStrings[0], System.Globalization.CultureInfo.InvariantCulture), float.Parse(vecStrings[1], System.Globalization.CultureInfo.InvariantCulture), float.Parse(vecStrings[2], System.Globalization.CultureInfo.InvariantCulture)); diff --git a/LibreMetaverse/Assets/AssetTypes/AssetNotecard.cs b/LibreMetaverse/Assets/AssetTypes/AssetNotecard.cs index 3acc5e93..b0ad6628 100644 --- a/LibreMetaverse/Assets/AssetTypes/AssetNotecard.cs +++ b/LibreMetaverse/Assets/AssetTypes/AssetNotecard.cs @@ -63,7 +63,7 @@ namespace OpenMetaverse.Assets /// public override void Encode() { - string body = BodyText ?? String.Empty; + string body = BodyText ?? string.Empty; StringBuilder output = new StringBuilder(); output.Append("Linden text version 2\n"); diff --git a/LibreMetaverse/Assets/AssetTypes/AssetPrim.cs b/LibreMetaverse/Assets/AssetTypes/AssetPrim.cs index c53ee8e2..8385686b 100644 --- a/LibreMetaverse/Assets/AssetTypes/AssetPrim.cs +++ b/LibreMetaverse/Assets/AssetTypes/AssetPrim.cs @@ -179,46 +179,46 @@ namespace OpenMetaverse.Assets reader.ReadStartElement("SceneObjectPart"); if (reader.Name == "AllowedDrop") - obj.AllowedDrop = reader.ReadElementContentAsBoolean("AllowedDrop", String.Empty); + obj.AllowedDrop = reader.ReadElementContentAsBoolean("AllowedDrop", string.Empty); else obj.AllowedDrop = true; obj.CreatorID = ReadUUID(reader, "CreatorID"); obj.FolderID = ReadUUID(reader, "FolderID"); - obj.Inventory.Serial = reader.ReadElementContentAsInt("InventorySerial", String.Empty); + obj.Inventory.Serial = reader.ReadElementContentAsInt("InventorySerial", string.Empty); #region Task Inventory List invItems = new List(); - reader.ReadStartElement("TaskInventory", String.Empty); + reader.ReadStartElement("TaskInventory", string.Empty); while (reader.Name == "TaskInventoryItem") { PrimObject.InventoryBlock.ItemBlock item = new PrimObject.InventoryBlock.ItemBlock(); - reader.ReadStartElement("TaskInventoryItem", String.Empty); + reader.ReadStartElement("TaskInventoryItem", string.Empty); item.AssetID = ReadUUID(reader, "AssetID"); - item.PermsBase = (uint)reader.ReadElementContentAsInt("BasePermissions", String.Empty); - item.CreationDate = Utils.UnixTimeToDateTime((uint)reader.ReadElementContentAsInt("CreationDate", String.Empty)); + item.PermsBase = (uint)reader.ReadElementContentAsInt("BasePermissions", string.Empty); + item.CreationDate = Utils.UnixTimeToDateTime((uint)reader.ReadElementContentAsInt("CreationDate", string.Empty)); item.CreatorID = ReadUUID(reader, "CreatorID"); - item.Description = reader.ReadElementContentAsString("Description", String.Empty); - item.PermsEveryone = (uint)reader.ReadElementContentAsInt("EveryonePermissions", String.Empty); - item.Flags = reader.ReadElementContentAsInt("Flags", String.Empty); + item.Description = reader.ReadElementContentAsString("Description", string.Empty); + item.PermsEveryone = (uint)reader.ReadElementContentAsInt("EveryonePermissions", string.Empty); + item.Flags = reader.ReadElementContentAsInt("Flags", string.Empty); item.GroupID = ReadUUID(reader, "GroupID"); - item.PermsGroup = (uint)reader.ReadElementContentAsInt("GroupPermissions", String.Empty); - item.InvType = (InventoryType)reader.ReadElementContentAsInt("InvType", String.Empty); + item.PermsGroup = (uint)reader.ReadElementContentAsInt("GroupPermissions", string.Empty); + item.InvType = (InventoryType)reader.ReadElementContentAsInt("InvType", string.Empty); item.ID = ReadUUID(reader, "ItemID"); UUID oldItemID = ReadUUID(reader, "OldItemID"); // TODO: Is this useful? item.LastOwnerID = ReadUUID(reader, "LastOwnerID"); - item.Name = reader.ReadElementContentAsString("Name", String.Empty); - item.PermsNextOwner = (uint)reader.ReadElementContentAsInt("NextPermissions", String.Empty); + item.Name = reader.ReadElementContentAsString("Name", string.Empty); + item.PermsNextOwner = (uint)reader.ReadElementContentAsInt("NextPermissions", string.Empty); item.OwnerID = ReadUUID(reader, "OwnerID"); - item.PermsOwner = (uint)reader.ReadElementContentAsInt("CurrentPermissions", String.Empty); + item.PermsOwner = (uint)reader.ReadElementContentAsInt("CurrentPermissions", string.Empty); UUID parentID = ReadUUID(reader, "ParentID"); UUID parentPartID = ReadUUID(reader, "ParentPartID"); item.PermsGranterID = ReadUUID(reader, "PermsGranter"); - item.PermsBase = (uint)reader.ReadElementContentAsInt("PermsMask", String.Empty); - item.Type = (AssetType)reader.ReadElementContentAsInt("Type", String.Empty); + item.PermsBase = (uint)reader.ReadElementContentAsInt("PermsMask", string.Empty); + item.Type = (AssetType)reader.ReadElementContentAsInt("Type", string.Empty); reader.ReadEndElement(); invItems.Add(item); @@ -230,7 +230,7 @@ namespace OpenMetaverse.Assets #endregion Task Inventory - PrimFlags flags = (PrimFlags)reader.ReadElementContentAsInt("ObjectFlags", String.Empty); + PrimFlags flags = (PrimFlags)reader.ReadElementContentAsInt("ObjectFlags", string.Empty); obj.UsePhysics = (flags & PrimFlags.Physics) != 0; obj.Phantom = (flags & PrimFlags.Phantom) != 0; obj.DieAtEdge = (flags & PrimFlags.DieAtEdge) != 0; @@ -239,17 +239,17 @@ namespace OpenMetaverse.Assets obj.Sandbox = (flags & PrimFlags.Sandbox) != 0; obj.ID = ReadUUID(reader, "UUID"); - obj.LocalID = (uint)reader.ReadElementContentAsLong("LocalId", String.Empty); + obj.LocalID = (uint)reader.ReadElementContentAsLong("LocalId", string.Empty); obj.Name = reader.ReadElementString("Name"); - obj.Material = reader.ReadElementContentAsInt("Material", String.Empty); + obj.Material = reader.ReadElementContentAsInt("Material", string.Empty); if (reader.Name == "PassTouches") - obj.PassTouches = reader.ReadElementContentAsBoolean("PassTouches", String.Empty); + obj.PassTouches = reader.ReadElementContentAsBoolean("PassTouches", string.Empty); else obj.PassTouches = false; - obj.RegionHandle = (ulong)reader.ReadElementContentAsLong("RegionHandle", String.Empty); - obj.RemoteScriptAccessPIN = reader.ReadElementContentAsInt("ScriptAccessPin", String.Empty); + obj.RegionHandle = (ulong)reader.ReadElementContentAsLong("RegionHandle", string.Empty); + obj.RemoteScriptAccessPIN = reader.ReadElementContentAsInt("ScriptAccessPin", string.Empty); if (reader.Name == "PlaySoundSlavePrims") reader.ReadInnerXml(); @@ -268,54 +268,54 @@ namespace OpenMetaverse.Assets reader.ReadStartElement("Color"); if (reader.Name == "R") { - obj.TextColor.R = reader.ReadElementContentAsFloat("R", String.Empty); - obj.TextColor.G = reader.ReadElementContentAsFloat("G", String.Empty); - obj.TextColor.B = reader.ReadElementContentAsFloat("B", String.Empty); - obj.TextColor.A = reader.ReadElementContentAsFloat("A", String.Empty); + obj.TextColor.R = reader.ReadElementContentAsFloat("R", string.Empty); + obj.TextColor.G = reader.ReadElementContentAsFloat("G", string.Empty); + obj.TextColor.B = reader.ReadElementContentAsFloat("B", string.Empty); + obj.TextColor.A = reader.ReadElementContentAsFloat("A", string.Empty); reader.ReadEndElement(); } - obj.Text = reader.ReadElementString("Text", String.Empty); - obj.SitName = reader.ReadElementString("SitName", String.Empty); - obj.TouchName = reader.ReadElementString("TouchName", String.Empty); + obj.Text = reader.ReadElementString("Text", string.Empty); + obj.SitName = reader.ReadElementString("SitName", string.Empty); + obj.TouchName = reader.ReadElementString("TouchName", string.Empty); - obj.LinkNumber = reader.ReadElementContentAsInt("LinkNum", String.Empty); - obj.ClickAction = reader.ReadElementContentAsInt("ClickAction", String.Empty); + obj.LinkNumber = reader.ReadElementContentAsInt("LinkNum", string.Empty); + obj.ClickAction = reader.ReadElementContentAsInt("ClickAction", string.Empty); reader.ReadStartElement("Shape"); - obj.Shape.ProfileCurve = reader.ReadElementContentAsInt("ProfileCurve", String.Empty); + obj.Shape.ProfileCurve = reader.ReadElementContentAsInt("ProfileCurve", string.Empty); byte[] teData = Convert.FromBase64String(reader.ReadElementString("TextureEntry")); obj.Textures = new Primitive.TextureEntry(teData, 0, teData.Length); reader.ReadInnerXml(); // ExtraParams - obj.Shape.PathBegin = Primitive.UnpackBeginCut((ushort)reader.ReadElementContentAsInt("PathBegin", String.Empty)); - obj.Shape.PathCurve = reader.ReadElementContentAsInt("PathCurve", String.Empty); - obj.Shape.PathEnd = Primitive.UnpackEndCut((ushort)reader.ReadElementContentAsInt("PathEnd", String.Empty)); - obj.Shape.PathRadiusOffset = Primitive.UnpackPathTwist((sbyte)reader.ReadElementContentAsInt("PathRadiusOffset", String.Empty)); - obj.Shape.PathRevolutions = Primitive.UnpackPathRevolutions((byte)reader.ReadElementContentAsInt("PathRevolutions", String.Empty)); - obj.Shape.PathScaleX = Primitive.UnpackPathScale((byte)reader.ReadElementContentAsInt("PathScaleX", String.Empty)); - obj.Shape.PathScaleY = Primitive.UnpackPathScale((byte)reader.ReadElementContentAsInt("PathScaleY", String.Empty)); - obj.Shape.PathShearX = Primitive.UnpackPathShear((sbyte)reader.ReadElementContentAsInt("PathShearX", String.Empty)); - obj.Shape.PathShearY = Primitive.UnpackPathShear((sbyte)reader.ReadElementContentAsInt("PathShearY", String.Empty)); - obj.Shape.PathSkew = Primitive.UnpackPathTwist((sbyte)reader.ReadElementContentAsInt("PathSkew", String.Empty)); - obj.Shape.PathTaperX = Primitive.UnpackPathTaper((sbyte)reader.ReadElementContentAsInt("PathTaperX", String.Empty)); - obj.Shape.PathTaperY = Primitive.UnpackPathShear((sbyte)reader.ReadElementContentAsInt("PathTaperY", String.Empty)); - obj.Shape.PathTwist = Primitive.UnpackPathTwist((sbyte)reader.ReadElementContentAsInt("PathTwist", String.Empty)); - obj.Shape.PathTwistBegin = Primitive.UnpackPathTwist((sbyte)reader.ReadElementContentAsInt("PathTwistBegin", String.Empty)); - obj.PCode = reader.ReadElementContentAsInt("PCode", String.Empty); - obj.Shape.ProfileBegin = Primitive.UnpackBeginCut((ushort)reader.ReadElementContentAsInt("ProfileBegin", String.Empty)); - obj.Shape.ProfileEnd = Primitive.UnpackEndCut((ushort)reader.ReadElementContentAsInt("ProfileEnd", String.Empty)); - obj.Shape.ProfileHollow = Primitive.UnpackProfileHollow((ushort)reader.ReadElementContentAsInt("ProfileHollow", String.Empty)); + obj.Shape.PathBegin = Primitive.UnpackBeginCut((ushort)reader.ReadElementContentAsInt("PathBegin", string.Empty)); + obj.Shape.PathCurve = reader.ReadElementContentAsInt("PathCurve", string.Empty); + obj.Shape.PathEnd = Primitive.UnpackEndCut((ushort)reader.ReadElementContentAsInt("PathEnd", string.Empty)); + obj.Shape.PathRadiusOffset = Primitive.UnpackPathTwist((sbyte)reader.ReadElementContentAsInt("PathRadiusOffset", string.Empty)); + obj.Shape.PathRevolutions = Primitive.UnpackPathRevolutions((byte)reader.ReadElementContentAsInt("PathRevolutions", string.Empty)); + obj.Shape.PathScaleX = Primitive.UnpackPathScale((byte)reader.ReadElementContentAsInt("PathScaleX", string.Empty)); + obj.Shape.PathScaleY = Primitive.UnpackPathScale((byte)reader.ReadElementContentAsInt("PathScaleY", string.Empty)); + obj.Shape.PathShearX = Primitive.UnpackPathShear((sbyte)reader.ReadElementContentAsInt("PathShearX", string.Empty)); + obj.Shape.PathShearY = Primitive.UnpackPathShear((sbyte)reader.ReadElementContentAsInt("PathShearY", string.Empty)); + obj.Shape.PathSkew = Primitive.UnpackPathTwist((sbyte)reader.ReadElementContentAsInt("PathSkew", string.Empty)); + obj.Shape.PathTaperX = Primitive.UnpackPathTaper((sbyte)reader.ReadElementContentAsInt("PathTaperX", string.Empty)); + obj.Shape.PathTaperY = Primitive.UnpackPathShear((sbyte)reader.ReadElementContentAsInt("PathTaperY", string.Empty)); + obj.Shape.PathTwist = Primitive.UnpackPathTwist((sbyte)reader.ReadElementContentAsInt("PathTwist", string.Empty)); + obj.Shape.PathTwistBegin = Primitive.UnpackPathTwist((sbyte)reader.ReadElementContentAsInt("PathTwistBegin", string.Empty)); + obj.PCode = reader.ReadElementContentAsInt("PCode", string.Empty); + obj.Shape.ProfileBegin = Primitive.UnpackBeginCut((ushort)reader.ReadElementContentAsInt("ProfileBegin", string.Empty)); + obj.Shape.ProfileEnd = Primitive.UnpackEndCut((ushort)reader.ReadElementContentAsInt("ProfileEnd", string.Empty)); + obj.Shape.ProfileHollow = Primitive.UnpackProfileHollow((ushort)reader.ReadElementContentAsInt("ProfileHollow", string.Empty)); obj.Scale = ReadVector(reader, "Scale"); - obj.State = (byte)reader.ReadElementContentAsInt("State", String.Empty); + obj.State = (byte)reader.ReadElementContentAsInt("State", string.Empty); ProfileShape profileShape = (ProfileShape)Enum.Parse(typeof(ProfileShape), reader.ReadElementString("ProfileShape")); HoleType holeType = (HoleType)Enum.Parse(typeof(HoleType), reader.ReadElementString("HollowShape")); obj.Shape.ProfileCurve = (int)profileShape | (int)holeType; UUID sculptTexture = ReadUUID(reader, "SculptTexture"); - SculptType sculptType = (SculptType)reader.ReadElementContentAsInt("SculptType", String.Empty); + SculptType sculptType = (SculptType)reader.ReadElementContentAsInt("SculptType", string.Empty); if (sculptTexture != UUID.Zero) { obj.Sculpt = new PrimObject.SculptBlock @@ -330,26 +330,26 @@ namespace OpenMetaverse.Assets reader.ReadInnerXml(); // SculptData - flexible.Softness = reader.ReadElementContentAsInt("FlexiSoftness", String.Empty); - flexible.Tension = reader.ReadElementContentAsFloat("FlexiTension", String.Empty); - flexible.Drag = reader.ReadElementContentAsFloat("FlexiDrag", String.Empty); - flexible.Gravity = reader.ReadElementContentAsFloat("FlexiGravity", String.Empty); - flexible.Wind = reader.ReadElementContentAsFloat("FlexiWind", String.Empty); - flexible.Force.X = reader.ReadElementContentAsFloat("FlexiForceX", String.Empty); - flexible.Force.Y = reader.ReadElementContentAsFloat("FlexiForceY", String.Empty); - flexible.Force.Z = reader.ReadElementContentAsFloat("FlexiForceZ", String.Empty); + flexible.Softness = reader.ReadElementContentAsInt("FlexiSoftness", string.Empty); + flexible.Tension = reader.ReadElementContentAsFloat("FlexiTension", string.Empty); + flexible.Drag = reader.ReadElementContentAsFloat("FlexiDrag", string.Empty); + flexible.Gravity = reader.ReadElementContentAsFloat("FlexiGravity", string.Empty); + flexible.Wind = reader.ReadElementContentAsFloat("FlexiWind", string.Empty); + flexible.Force.X = reader.ReadElementContentAsFloat("FlexiForceX", string.Empty); + flexible.Force.Y = reader.ReadElementContentAsFloat("FlexiForceY", string.Empty); + flexible.Force.Z = reader.ReadElementContentAsFloat("FlexiForceZ", string.Empty); - light.Color.R = reader.ReadElementContentAsFloat("LightColorR", String.Empty); - light.Color.G = reader.ReadElementContentAsFloat("LightColorG", String.Empty); - light.Color.B = reader.ReadElementContentAsFloat("LightColorB", String.Empty); - light.Color.A = reader.ReadElementContentAsFloat("LightColorA", String.Empty); - light.Radius = reader.ReadElementContentAsFloat("LightRadius", String.Empty); - light.Cutoff = reader.ReadElementContentAsFloat("LightCutoff", String.Empty); - light.Falloff = reader.ReadElementContentAsFloat("LightFalloff", String.Empty); - light.Intensity = reader.ReadElementContentAsFloat("LightIntensity", String.Empty); + light.Color.R = reader.ReadElementContentAsFloat("LightColorR", string.Empty); + light.Color.G = reader.ReadElementContentAsFloat("LightColorG", string.Empty); + light.Color.B = reader.ReadElementContentAsFloat("LightColorB", string.Empty); + light.Color.A = reader.ReadElementContentAsFloat("LightColorA", string.Empty); + light.Radius = reader.ReadElementContentAsFloat("LightRadius", string.Empty); + light.Cutoff = reader.ReadElementContentAsFloat("LightCutoff", string.Empty); + light.Falloff = reader.ReadElementContentAsFloat("LightFalloff", string.Empty); + light.Intensity = reader.ReadElementContentAsFloat("LightIntensity", string.Empty); - bool hasFlexi = reader.ReadElementContentAsBoolean("FlexiEntry", String.Empty); - bool hasLight = reader.ReadElementContentAsBoolean("LightEntry", String.Empty); + bool hasFlexi = reader.ReadElementContentAsBoolean("FlexiEntry", string.Empty); + bool hasLight = reader.ReadElementContentAsBoolean("LightEntry", string.Empty); reader.ReadInnerXml(); // SculptEntry if (hasFlexi) @@ -366,25 +366,25 @@ namespace OpenMetaverse.Assets reader.ReadInnerXml(); // SitTargetPosition obj.SitOffset = ReadVector(reader, "SitTargetPositionLL"); obj.SitRotation = ReadQuaternion(reader, "SitTargetOrientationLL"); - obj.ParentID = (uint)reader.ReadElementContentAsLong("ParentID", String.Empty); - obj.CreationDate = Utils.UnixTimeToDateTime(reader.ReadElementContentAsInt("CreationDate", String.Empty)); - int category = reader.ReadElementContentAsInt("Category", String.Empty); - obj.SalePrice = reader.ReadElementContentAsInt("SalePrice", String.Empty); - obj.SaleType = reader.ReadElementContentAsInt("ObjectSaleType", String.Empty); - int ownershipCost = reader.ReadElementContentAsInt("OwnershipCost", String.Empty); + obj.ParentID = (uint)reader.ReadElementContentAsLong("ParentID", string.Empty); + obj.CreationDate = Utils.UnixTimeToDateTime(reader.ReadElementContentAsInt("CreationDate", string.Empty)); + int category = reader.ReadElementContentAsInt("Category", string.Empty); + obj.SalePrice = reader.ReadElementContentAsInt("SalePrice", string.Empty); + obj.SaleType = reader.ReadElementContentAsInt("ObjectSaleType", string.Empty); + int ownershipCost = reader.ReadElementContentAsInt("OwnershipCost", string.Empty); obj.GroupID = ReadUUID(reader, "GroupID"); obj.OwnerID = ReadUUID(reader, "OwnerID"); obj.LastOwnerID = ReadUUID(reader, "LastOwnerID"); - obj.PermsBase = (uint)reader.ReadElementContentAsInt("BaseMask", String.Empty); - obj.PermsOwner = (uint)reader.ReadElementContentAsInt("OwnerMask", String.Empty); - obj.PermsGroup = (uint)reader.ReadElementContentAsInt("GroupMask", String.Empty); - obj.PermsEveryone = (uint)reader.ReadElementContentAsInt("EveryoneMask", String.Empty); - obj.PermsNextOwner = (uint)reader.ReadElementContentAsInt("NextOwnerMask", String.Empty); + obj.PermsBase = (uint)reader.ReadElementContentAsInt("BaseMask", string.Empty); + obj.PermsOwner = (uint)reader.ReadElementContentAsInt("OwnerMask", string.Empty); + obj.PermsGroup = (uint)reader.ReadElementContentAsInt("GroupMask", string.Empty); + obj.PermsEveryone = (uint)reader.ReadElementContentAsInt("EveryoneMask", string.Empty); + obj.PermsNextOwner = (uint)reader.ReadElementContentAsInt("NextOwnerMask", string.Empty); reader.ReadInnerXml(); // Flags obj.CollisionSound = ReadUUID(reader, "CollisionSound"); - obj.CollisionSoundVolume = reader.ReadElementContentAsFloat("CollisionSoundVolume", String.Empty); + obj.CollisionSoundVolume = reader.ReadElementContentAsFloat("CollisionSoundVolume", string.Empty); reader.ReadEndElement(); @@ -419,9 +419,9 @@ namespace OpenMetaverse.Assets Vector3 vec; reader.ReadStartElement(name); - vec.X = reader.ReadElementContentAsFloat("X", String.Empty); - vec.Y = reader.ReadElementContentAsFloat("Y", String.Empty); - vec.Z = reader.ReadElementContentAsFloat("Z", String.Empty); + vec.X = reader.ReadElementContentAsFloat("X", string.Empty); + vec.Y = reader.ReadElementContentAsFloat("Y", string.Empty); + vec.Z = reader.ReadElementContentAsFloat("Z", string.Empty); reader.ReadEndElement(); return vec; @@ -432,10 +432,10 @@ namespace OpenMetaverse.Assets Quaternion quat; reader.ReadStartElement(name); - quat.X = reader.ReadElementContentAsFloat("X", String.Empty); - quat.Y = reader.ReadElementContentAsFloat("Y", String.Empty); - quat.Z = reader.ReadElementContentAsFloat("Z", String.Empty); - quat.W = reader.ReadElementContentAsFloat("W", String.Empty); + quat.X = reader.ReadElementContentAsFloat("X", string.Empty); + quat.Y = reader.ReadElementContentAsFloat("Y", string.Empty); + quat.Z = reader.ReadElementContentAsFloat("Z", string.Empty); + quat.W = reader.ReadElementContentAsFloat("W", string.Empty); reader.ReadEndElement(); return quat; diff --git a/LibreMetaverse/Assets/AssetTypes/AssetWearable.cs b/LibreMetaverse/Assets/AssetTypes/AssetWearable.cs index 67a8c6e1..c088295d 100644 --- a/LibreMetaverse/Assets/AssetTypes/AssetWearable.cs +++ b/LibreMetaverse/Assets/AssetTypes/AssetWearable.cs @@ -36,9 +36,9 @@ namespace OpenMetaverse.Assets public abstract class AssetWearable : Asset { /// A string containing the name of the asset - public string Name = String.Empty; + public string Name = string.Empty; /// A string containing a short description of the asset - public string Description = String.Empty; + public string Description = string.Empty; /// The Assets WearableType public WearableType WearableType = WearableType.Shape; /// The For-Sale status of the object @@ -86,7 +86,7 @@ namespace OpenMetaverse.Assets { string data = Utils.BytesToString(AssetData); - data = data.Replace("\r", String.Empty); + data = data.Replace("\r", string.Empty); string[] lines = data.Split('\n'); for (int stri = 0; stri < lines.Length; stri++) { @@ -94,9 +94,9 @@ namespace OpenMetaverse.Assets { string versionstring = lines[stri]; if (versionstring.Split(' ').Length == 1) - version = Int32.Parse(versionstring); + version = int.Parse(versionstring); else - version = Int32.Parse(versionstring.Split(' ')[2]); + version = int.Parse(versionstring.Split(' ')[2]); if (version != 22 && version != 18 && version != 16 && version != 15) return false; } @@ -118,7 +118,7 @@ namespace OpenMetaverse.Assets fields = line.Split(' '); if (fields[0] == "parameters") { - int count = Int32.Parse(fields[1]) + stri; + int count = int.Parse(fields[1]) + stri; for (; stri < count; ) { stri++; @@ -129,7 +129,7 @@ namespace OpenMetaverse.Assets // Special handling for -0 edge case if (fields[0] != "-0") - id = Int32.Parse(fields[0]); + id = int.Parse(fields[0]); if (fields[1] == ",") fields[1] = "0"; @@ -144,14 +144,14 @@ namespace OpenMetaverse.Assets } else if (fields[0] == "textures") { - int count = Int32.Parse(fields[1]) + stri; + int count = int.Parse(fields[1]) + stri; for (; stri < count; ) { stri++; line = lines[stri].Trim(); fields = line.Split(' '); - AvatarTextureIndex id = (AvatarTextureIndex)Int32.Parse(fields[0]); + AvatarTextureIndex id = (AvatarTextureIndex)int.Parse(fields[0]); UUID texture = new UUID(fields[1]); Textures[id] = texture; @@ -159,7 +159,7 @@ namespace OpenMetaverse.Assets } else if (fields[0] == "type") { - WearableType = (WearableType)Int32.Parse(fields[1]); + WearableType = (WearableType)int.Parse(fields[1]); } } @@ -169,22 +169,22 @@ namespace OpenMetaverse.Assets { case "creator_mask": // Deprecated, apply this as the base mask - Permissions.BaseMask = (PermissionMask)UInt32.Parse(fields[1], System.Globalization.NumberStyles.HexNumber); + Permissions.BaseMask = (PermissionMask)uint.Parse(fields[1], System.Globalization.NumberStyles.HexNumber); break; case "base_mask": - Permissions.BaseMask = (PermissionMask)UInt32.Parse(fields[1], System.Globalization.NumberStyles.HexNumber); + Permissions.BaseMask = (PermissionMask)uint.Parse(fields[1], System.Globalization.NumberStyles.HexNumber); break; case "owner_mask": - Permissions.OwnerMask = (PermissionMask)UInt32.Parse(fields[1], System.Globalization.NumberStyles.HexNumber); + Permissions.OwnerMask = (PermissionMask)uint.Parse(fields[1], System.Globalization.NumberStyles.HexNumber); break; case "group_mask": - Permissions.GroupMask = (PermissionMask)UInt32.Parse(fields[1], System.Globalization.NumberStyles.HexNumber); + Permissions.GroupMask = (PermissionMask)uint.Parse(fields[1], System.Globalization.NumberStyles.HexNumber); break; case "everyone_mask": - Permissions.EveryoneMask = (PermissionMask)UInt32.Parse(fields[1], System.Globalization.NumberStyles.HexNumber); + Permissions.EveryoneMask = (PermissionMask)uint.Parse(fields[1], System.Globalization.NumberStyles.HexNumber); break; case "next_owner_mask": - Permissions.NextOwnerMask = (PermissionMask)UInt32.Parse(fields[1], System.Globalization.NumberStyles.HexNumber); + Permissions.NextOwnerMask = (PermissionMask)uint.Parse(fields[1], System.Globalization.NumberStyles.HexNumber); break; case "creator_id": Creator = new UUID(fields[1]); @@ -199,20 +199,20 @@ namespace OpenMetaverse.Assets Group = new UUID(fields[1]); break; case "group_owned": - GroupOwned = (Int32.Parse(fields[1]) != 0); + GroupOwned = (int.Parse(fields[1]) != 0); break; case "sale_type": ForSale = Utils.StringToSaleType(fields[1]); break; case "sale_price": - SalePrice = Int32.Parse(fields[1]); + SalePrice = int.Parse(fields[1]); break; case "sale_info": // Container for sale_type and sale_price, ignore break; case "perm_mask": // Deprecated, apply this as the next owner mask - Permissions.NextOwnerMask = (PermissionMask)UInt32.Parse(fields[1], System.Globalization.NumberStyles.HexNumber); + Permissions.NextOwnerMask = (PermissionMask)uint.Parse(fields[1], System.Globalization.NumberStyles.HexNumber); break; default: return false; diff --git a/LibreMetaverse/Avatar.cs b/LibreMetaverse/Avatar.cs index 8b130618..aa3216d2 100644 --- a/LibreMetaverse/Avatar.cs +++ b/LibreMetaverse/Avatar.cs @@ -381,8 +381,8 @@ namespace OpenMetaverse { lock (NameValues) { - string firstName = String.Empty; - string lastName = String.Empty; + string firstName = string.Empty; + string lastName = string.Empty; for (int i = 0; i < NameValues.Length; i++) { @@ -392,7 +392,7 @@ namespace OpenMetaverse lastName = (string)NameValues[i].Value; } - if (firstName != string.Empty && lastName != String.Empty) + if (firstName != string.Empty && lastName != string.Empty) { name = $"{firstName} {lastName}"; return name; diff --git a/LibreMetaverse/BVHDecoder.cs b/LibreMetaverse/BVHDecoder.cs index f50ae0f7..97d9ab53 100644 --- a/LibreMetaverse/BVHDecoder.cs +++ b/LibreMetaverse/BVHDecoder.cs @@ -43,8 +43,8 @@ namespace OpenMetaverse /// private int positionkeys; - public UInt16 unknown0; // Always 1 - public UInt16 unknown1; // Always 0 + public ushort unknown0; // Always 1 + public ushort unknown1; // Always 0 /// /// Animation Priority @@ -54,7 +54,7 @@ namespace OpenMetaverse /// /// The animation length in seconds. /// - public Single Length; + public float Length; /// /// Expression set in the client. Null if [None] is selected @@ -64,12 +64,12 @@ namespace OpenMetaverse /// /// The time in seconds to start the animation /// - public Single InPoint; + public float InPoint; /// /// The time in seconds to end the animation /// - public Single OutPoint; + public float OutPoint; /// /// Loop the animation @@ -79,12 +79,12 @@ namespace OpenMetaverse /// /// Meta data. Ease in Seconds. /// - public Single EaseInTime; + public float EaseInTime; /// /// Meta data. Ease out seconds. /// - public Single EaseOutTime; + public float EaseOutTime; /// /// Meta Data for the Hand Pose diff --git a/LibreMetaverse/DirectoryManager.cs b/LibreMetaverse/DirectoryManager.cs index 665a79f3..1d9ae7ac 100644 --- a/LibreMetaverse/DirectoryManager.cs +++ b/LibreMetaverse/DirectoryManager.cs @@ -1022,7 +1022,7 @@ namespace OpenMetaverse /// public UUID StartPlacesSearch() { - return StartPlacesSearch(DirFindFlags.AgentOwned, ParcelCategory.Any, String.Empty, String.Empty, + return StartPlacesSearch(DirFindFlags.AgentOwned, ParcelCategory.Any, string.Empty, string.Empty, UUID.Zero, UUID.Random()); } @@ -1033,7 +1033,7 @@ namespace OpenMetaverse /// Transaction (Query) ID which can be associated with results from your request. public UUID StartPlacesSearch(UUID groupID) { - return StartPlacesSearch(DirFindFlags.GroupOwned, ParcelCategory.Any, String.Empty, String.Empty, + return StartPlacesSearch(DirFindFlags.GroupOwned, ParcelCategory.Any, string.Empty, string.Empty, groupID, UUID.Random()); } @@ -1045,7 +1045,7 @@ namespace OpenMetaverse public UUID StartPlacesSearch(string searchText) { return StartPlacesSearch(DirFindFlags.DwellSort | DirFindFlags.IncludePG | DirFindFlags.IncludeMature | DirFindFlags.IncludeAdult, - ParcelCategory.Any, searchText, String.Empty, UUID.Zero, UUID.Random()); + ParcelCategory.Any, searchText, string.Empty, UUID.Zero, UUID.Random()); } /// diff --git a/LibreMetaverse/EstateTools.cs b/LibreMetaverse/EstateTools.cs index 06d49f4f..6f8ba825 100644 --- a/LibreMetaverse/EstateTools.cs +++ b/LibreMetaverse/EstateTools.cs @@ -640,7 +640,7 @@ namespace OpenMetaverse Client.Assets.SetPendingAssetUploadData(upload); // Create and populate a list with commands specific to uploading a raw terrain file - List paramList = new List(); + List paramList = new List(); paramList.Add("upload filename"); paramList.Add(fileName); @@ -1156,7 +1156,7 @@ namespace OpenMetaverse /// /// The Estate name /// - public String EstateName { get; } + public string EstateName { get; } /// /// The Estate Owner's ID (can be a GroupID) @@ -1185,7 +1185,7 @@ namespace OpenMetaverse /// /// The estate's name /// - public String EstateName { get; } + public string EstateName { get; } /// /// The Estate Owner's ID (can be a GroupID) diff --git a/LibreMetaverse/EventDictionary.cs b/LibreMetaverse/EventDictionary.cs index 8f7e32f6..b902d1a3 100644 --- a/LibreMetaverse/EventDictionary.cs +++ b/LibreMetaverse/EventDictionary.cs @@ -182,7 +182,7 @@ namespace OpenMetaverse } } - private void ThreadPoolDelegate(Object state) + private void ThreadPoolDelegate(object state) { PacketCallbackWrapper wrapper = (PacketCallbackWrapper)state; @@ -300,7 +300,7 @@ namespace OpenMetaverse Caps.EventQueueCallback callback; // Default handler first, if one exists - if (_EventTable.TryGetValue(String.Empty, out callback)) + if (_EventTable.TryGetValue(string.Empty, out callback)) { callback?.Invoke(capsEvent, message, simulator); } diff --git a/LibreMetaverse/Helpers.cs b/LibreMetaverse/Helpers.cs index 45c6076f..100af966 100644 --- a/LibreMetaverse/Helpers.cs +++ b/LibreMetaverse/Helpers.cs @@ -88,7 +88,7 @@ namespace OpenMetaverse public static IEnumerable SplitBy(this string str, int chunkLength) { - if (String.IsNullOrEmpty(str)) throw new ArgumentException(); + if (string.IsNullOrEmpty(str)) throw new ArgumentException(); if (chunkLength < 1) throw new ArgumentException(); for (int i = 0; i < str.Length; i += chunkLength) @@ -318,10 +318,10 @@ namespace OpenMetaverse } catch (Exception ex) { - Logger.Log(String.Format("Zerodecoding error: i={0}, srclen={1}, bodylen={2}, zerolen={3}\n{4}\n{5}", + Logger.Log(string.Format("Zerodecoding error: i={0}, srclen={1}, bodylen={2}, zerolen={3}\n{4}\n{5}", i, srclen, bodylen, zerolen, Utils.BytesToHexString(src, srclen, null), ex), LogLevel.Error); - throw new IndexOutOfRangeException(String.Format("Zerodecoding error: i={0}, srclen={1}, bodylen={2}, zerolen={3}\n{4}\n{5}", + throw new IndexOutOfRangeException(string.Format("Zerodecoding error: i={0}, srclen={1}, bodylen={2}, zerolen={3}\n{4}\n{5}", i, srclen, bodylen, zerolen, Utils.BytesToHexString(src, srclen, null), ex.InnerException)); } } @@ -545,7 +545,7 @@ namespace OpenMetaverse foreach (KeyValuePair kvp in map) { Primitive prim = Primitive.FromOSD(kvp.Value); - prim.LocalID = UInt32.Parse(kvp.Key); + prim.LocalID = uint.Parse(kvp.Key); prims.Add(prim); } diff --git a/LibreMetaverse/Imaging/BakeLayer.cs b/LibreMetaverse/Imaging/BakeLayer.cs index d71f9e26..4510dd5d 100644 --- a/LibreMetaverse/Imaging/BakeLayer.cs +++ b/LibreMetaverse/Imaging/BakeLayer.cs @@ -452,8 +452,8 @@ namespace OpenMetaverse.Imaging addSourceAlpha = (addSourceAlpha && sourceHasAlpha); - byte alpha = Byte.MaxValue; - byte alphaInv = (byte)(Byte.MaxValue - alpha); + byte alpha = byte.MaxValue; + byte alphaInv = (byte)(byte.MaxValue - alpha); byte[] bakedRed = bakedTexture.Image.Red; byte[] bakedGreen = bakedTexture.Image.Green; @@ -482,7 +482,7 @@ namespace OpenMetaverse.Imaging { loadedAlpha = true; alpha = sourceAlpha[i]; - alphaInv = (byte)(Byte.MaxValue - alpha); + alphaInv = (byte)(byte.MaxValue - alpha); } } diff --git a/LibreMetaverse/Imaging/ManagedImage.cs b/LibreMetaverse/Imaging/ManagedImage.cs index 2d716ab0..19cf85ef 100644 --- a/LibreMetaverse/Imaging/ManagedImage.cs +++ b/LibreMetaverse/Imaging/ManagedImage.cs @@ -353,7 +353,7 @@ namespace OpenMetaverse.Imaging raw[pos * 4 + 0] = Alpha[srcPos]; raw[pos * 4 + 1] = Alpha[srcPos]; raw[pos * 4 + 2] = Alpha[srcPos]; - raw[pos * 4 + 3] = Byte.MaxValue; + raw[pos * 4 + 3] = byte.MaxValue; } } } @@ -371,7 +371,7 @@ namespace OpenMetaverse.Imaging raw[pos * 4 + 0] = Red[srcPos]; raw[pos * 4 + 1] = Green[srcPos]; raw[pos * 4 + 2] = Blue[srcPos]; - raw[pos * 4 + 3] = Byte.MaxValue; + raw[pos * 4 + 3] = byte.MaxValue; } } } @@ -409,7 +409,7 @@ namespace OpenMetaverse.Imaging raw[pos * 4 + 0] = Alpha[pos]; raw[pos * 4 + 1] = Alpha[pos]; raw[pos * 4 + 2] = Alpha[pos]; - raw[pos * 4 + 3] = Byte.MaxValue; + raw[pos * 4 + 3] = byte.MaxValue; } } } @@ -421,7 +421,7 @@ namespace OpenMetaverse.Imaging raw[pos * 4 + 0] = Blue[pos]; raw[pos * 4 + 1] = Green[pos]; raw[pos * 4 + 2] = Red[pos]; - raw[pos * 4 + 3] = Byte.MaxValue; + raw[pos * 4 + 3] = byte.MaxValue; } } @@ -487,7 +487,7 @@ namespace OpenMetaverse.Imaging tga[di++] = Alpha[i]; tga[di++] = Alpha[i]; tga[di++] = Alpha[i]; - tga[di++] = Byte.MaxValue; + tga[di++] = byte.MaxValue; } } } diff --git a/LibreMetaverse/ImportExport/Model.cs b/LibreMetaverse/ImportExport/Model.cs index 7401e9dd..ad82469f 100644 --- a/LibreMetaverse/ImportExport/Model.cs +++ b/LibreMetaverse/ImportExport/Model.cs @@ -115,9 +115,9 @@ namespace OpenMetaverse.ImportExport positionDomain["Max"] = new Vector3(0.5f, 0.5f, 0.5f); faceMap["PositionDomain"] = positionDomain; - List posBytes = new List(face.Vertices.Count * sizeof(UInt16) * 3); - List norBytes = new List(face.Vertices.Count * sizeof(UInt16) * 3); - List uvBytes = new List(face.Vertices.Count * sizeof(UInt16) * 2); + List posBytes = new List(face.Vertices.Count * sizeof(ushort) * 3); + List norBytes = new List(face.Vertices.Count * sizeof(ushort) * 3); + List uvBytes = new List(face.Vertices.Count * sizeof(ushort) * 2); foreach (var v in face.Vertices) { @@ -137,7 +137,7 @@ namespace OpenMetaverse.ImportExport faceMap["Normal"] = norBytes.ToArray(); faceMap["TexCoord0"] = uvBytes.ToArray(); - List indexBytes = new List(face.Indices.Count * sizeof(UInt16)); + List indexBytes = new List(face.Indices.Count * sizeof(ushort)); foreach (var t in face.Indices) { indexBytes.AddRange(Utils.UInt16ToBytes((ushort)t)); diff --git a/LibreMetaverse/InventoryManager.cs b/LibreMetaverse/InventoryManager.cs index 4ab1746c..f2a6f136 100644 --- a/LibreMetaverse/InventoryManager.cs +++ b/LibreMetaverse/InventoryManager.cs @@ -378,28 +378,28 @@ namespace OpenMetaverse "Sounds", // 1 "Calling Cards", // 2 "Landmarks", // 3 - String.Empty, // 4 + string.Empty, // 4 "Clothing", // 5 "Objects", // 6 "Notecards", // 7 "My Inventory", // 8 - String.Empty, // 9 + string.Empty, // 9 "Scripts", // 10 - String.Empty, // 11 - String.Empty, // 12 + string.Empty, // 11 + string.Empty, // 12 "Body Parts", // 13 "Trash", // 14 "Photo Album", // 15 "Lost And Found", // 16 - String.Empty, // 17 - String.Empty, // 18 - String.Empty, // 19 + string.Empty, // 17 + string.Empty, // 18 + string.Empty, // 19 "Animations", // 20 "Gestures", // 21 - String.Empty, // 22 + string.Empty, // 22 "Favorites", // 23 - String.Empty, // 24 - String.Empty, // 25 + string.Empty, // 24 + string.Empty, // 25 "New Folder", // 26 "New Folder", // 27 "New Folder", // 28 @@ -1292,7 +1292,7 @@ namespace OpenMetaverse /// The of the destination folder public void MoveItem(UUID itemID, UUID folderID) { - MoveItem(itemID, folderID, String.Empty); + MoveItem(itemID, folderID, string.Empty); } /// @@ -1685,7 +1685,7 @@ namespace OpenMetaverse UUID id = UUID.Random(); // Assign a folder name if one is not already set - if (String.IsNullOrEmpty(name)) + if (string.IsNullOrEmpty(name)) { if (preferredType >= FolderType.Texture && preferredType <= FolderType.MarkplaceStock) { @@ -1980,7 +1980,7 @@ namespace OpenMetaverse NewFolderID = targetFolders[i], OldAgentID = oldOwnerID, OldItemID = items[i], - NewName = !String.IsNullOrEmpty(newNames?[i]) + NewName = !string.IsNullOrEmpty(newNames?[i]) ? Utils.StringToBytes(newNames[i]) : Utils.EmptyBytes }; @@ -2772,7 +2772,7 @@ namespace OpenMetaverse /// if a timeout occurs /// This request blocks until the response from the simulator arrives /// or timeoutMS is exceeded - public List GetTaskInventory(UUID objectID, UInt32 objectLocalID, Int32 timeoutMS) + public List GetTaskInventory(UUID objectID, uint objectLocalID, int timeoutMS) { string filename = null; AutoResetEvent taskReplyEvent = new AutoResetEvent(false); @@ -2794,7 +2794,7 @@ namespace OpenMetaverse { TaskInventoryReply -= Callback; - if (!String.IsNullOrEmpty(filename)) + if (!string.IsNullOrEmpty(filename)) { byte[] assetData = null; ulong xferID = 0; @@ -2818,7 +2818,7 @@ namespace OpenMetaverse { Client.Assets.XferReceived -= XferCallback; - String taskList = Utils.BytesToString(assetData); + string taskList = Utils.BytesToString(assetData); return ParseTaskInventory(taskList); } else @@ -3057,7 +3057,7 @@ namespace OpenMetaverse { lock (_CallbacksLock) { - if (_CallbackPos == UInt32.MaxValue) + if (_CallbackPos == uint.MaxValue) _CallbackPos = 0; _CallbackPos++; @@ -3075,7 +3075,7 @@ namespace OpenMetaverse { lock (_CallbacksLock) { - if (_CallbackPos == UInt32.MaxValue) + if (_CallbackPos == uint.MaxValue) _CallbackPos = 0; _CallbackPos++; @@ -3206,7 +3206,7 @@ namespace OpenMetaverse else if (line.Length == 1) { key = line; - value = String.Empty; + value = string.Empty; return true; } @@ -3238,7 +3238,7 @@ namespace OpenMetaverse // In practice this appears to only be used for folders UUID itemID = UUID.Zero; UUID parentID = UUID.Zero; - string name = String.Empty; + string name = string.Empty; AssetType assetType = AssetType.Unknown; while (lineNum < lines.Length) @@ -3309,8 +3309,8 @@ namespace OpenMetaverse UUID lastOwnerID = UUID.Zero; UUID groupID = UUID.Zero; bool groupOwned = false; - string name = String.Empty; - string desc = String.Empty; + string name = string.Empty; + string desc = string.Empty; AssetType assetType = AssetType.Unknown; InventoryType inventoryType = InventoryType.Unknown; DateTime creationDate = Utils.Epoch; @@ -3411,7 +3411,7 @@ namespace OpenMetaverse else if (key == "group_owned") { uint val; - if (UInt32.TryParse(value, out val)) + if (uint.TryParse(value, out val)) groupOwned = (val != 0); } } @@ -3441,7 +3441,7 @@ namespace OpenMetaverse } else if (key == "sale_price") { - Int32.TryParse(value, out salePrice); + int.TryParse(value, out salePrice); } } } @@ -3468,7 +3468,7 @@ namespace OpenMetaverse } else if (key == "flags") { - UInt32.TryParse(value, out flags); + uint.TryParse(value, out flags); } else if (key == "name") { @@ -3721,7 +3721,7 @@ namespace OpenMetaverse Logger.DebugLog($"Setting InventoryRoot to {replyData.InventoryRoot}", Client); InventoryFolder rootFolder = new InventoryFolder(replyData.InventoryRoot) { - Name = String.Empty, + Name = string.Empty, ParentUUID = UUID.Zero }; _Store.RootFolder = rootFolder; @@ -4510,7 +4510,7 @@ namespace OpenMetaverse public class FindObjectByPathReplyEventArgs : EventArgs { - public String Path { get; } + public string Path { get; } public UUID InventoryObjectID { get; } @@ -4553,9 +4553,9 @@ namespace OpenMetaverse { public UUID ItemID { get; } - public Int16 Serial { get; } + public short Serial { get; } - public String AssetFilename { get; } + public string AssetFilename { get; } public TaskInventoryReplyEventArgs(UUID itemID, short serial, string assetFilename) { diff --git a/LibreMetaverse/InventoryNodeDictionary.cs b/LibreMetaverse/InventoryNodeDictionary.cs index b18e4945..9dd7a310 100644 --- a/LibreMetaverse/InventoryNodeDictionary.cs +++ b/LibreMetaverse/InventoryNodeDictionary.cs @@ -57,7 +57,7 @@ namespace OpenMetaverse if (d1.Name != null) { // both are not null.. due to NullCompare code - diff = String.Compare(d1.Name, d2.Name, StringComparison.Ordinal); + diff = string.Compare(d1.Name, d2.Name, StringComparison.Ordinal); if (diff != 0) return diff; } } diff --git a/LibreMetaverse/Messages/LindenMessages.cs b/LibreMetaverse/Messages/LindenMessages.cs index f6f1025f..3925f157 100644 --- a/LibreMetaverse/Messages/LindenMessages.cs +++ b/LibreMetaverse/Messages/LindenMessages.cs @@ -155,7 +155,7 @@ namespace OpenMetaverse.Messages.Linden AgentID = map["agent-id"].AsUUID(); Address = IPAddress.Parse(ipAndPort.Substring(0, i)); - Port = Int32.Parse(ipAndPort.Substring(i + 1)); + Port = int.Parse(ipAndPort.Substring(i + 1)); SeedCapability = map["seed-capability"].AsUri(); } } diff --git a/LibreMetaverse/NameValue.cs b/LibreMetaverse/NameValue.cs index a165b73f..57f7fdc2 100644 --- a/LibreMetaverse/NameValue.cs +++ b/LibreMetaverse/NameValue.cs @@ -166,7 +166,7 @@ namespace OpenMetaverse var i = data.IndexOfAny(Separators); if (i < 1) { - Name = String.Empty; + Name = string.Empty; Type = ValueType.Unknown; Class = ClassType.Unknown; Sendto = SendtoType.Unknown; @@ -211,7 +211,7 @@ namespace OpenMetaverse public static string NameValuesToString(NameValue[] values) { if (values == null || values.Length == 0) - return String.Empty; + return string.Empty; StringBuilder output = new StringBuilder(); @@ -221,7 +221,7 @@ namespace OpenMetaverse if (value.Value != null) { - string newLine = (i < values.Length - 1) ? "\n" : String.Empty; + string newLine = (i < values.Length - 1) ? "\n" : string.Empty; output.AppendFormat("{0} {1} {2} {3} {4}{5}", value.Name, TypeStrings[(int)value.Type], ClassStrings[(int)value.Class], SendtoStrings[(int)value.Sendto], value.Value, newLine); } @@ -248,21 +248,21 @@ namespace OpenMetaverse case ValueType.S32: { int temp; - Int32.TryParse(value, out temp); + int.TryParse(value, out temp); Value = temp; break; } case ValueType.U32: { uint temp; - UInt32.TryParse(value, out temp); + uint.TryParse(value, out temp); Value = temp; break; } case ValueType.U64: { ulong temp; - UInt64.TryParse(value, out temp); + ulong.TryParse(value, out temp); Value = temp; break; } diff --git a/LibreMetaverse/ObjectManager.cs b/LibreMetaverse/ObjectManager.cs index 397f91c8..af7a903f 100644 --- a/LibreMetaverse/ObjectManager.cs +++ b/LibreMetaverse/ObjectManager.cs @@ -1073,7 +1073,7 @@ namespace OpenMetaverse /// The texture data to apply public void SetTextures(Simulator simulator, uint localID, Primitive.TextureEntry textures) { - SetTextures(simulator, localID, textures, String.Empty); + SetTextures(simulator, localID, textures, string.Empty); } /// @@ -1841,7 +1841,7 @@ namespace OpenMetaverse for (int i = 0; i < lines.Length; i++) { - if (!String.IsNullOrEmpty(lines[i])) + if (!string.IsNullOrEmpty(lines[i])) { NameValue nv = new NameValue(lines[i]); if (nv.Name == "AttachItemID") attachment = true; @@ -2487,7 +2487,7 @@ namespace OpenMetaverse } else { - prim.Text = String.Empty; + prim.Text = string.Empty; } // Media URL @@ -2529,7 +2529,7 @@ namespace OpenMetaverse // Name values if ((flags & CompressedFlags.HasNameValues) != 0) { - string text = String.Empty; + string text = string.Empty; while (block.Data[i] != 0) { text += (char)block.Data[i]; @@ -2545,7 +2545,7 @@ namespace OpenMetaverse for (int j = 0; j < lines.Length; j++) { - if (!String.IsNullOrEmpty(lines[j])) + if (!string.IsNullOrEmpty(lines[j])) { NameValue nv = new NameValue(lines[j]); prim.NameValues[j] = nv; diff --git a/LibreMetaverse/PacketDecoder.cs b/LibreMetaverse/PacketDecoder.cs index 1972ed03..44f8cfc5 100644 --- a/LibreMetaverse/PacketDecoder.cs +++ b/LibreMetaverse/PacketDecoder.cs @@ -393,7 +393,7 @@ namespace OpenMetaverse.Packets // Floating text if ((flags & CompressedFlags.HasText) != 0) { - string text = String.Empty; + string text = string.Empty; while (block[i] != 0) { text += (char) block[i]; @@ -419,7 +419,7 @@ namespace OpenMetaverse.Packets // Media URL if ((flags & CompressedFlags.MediaURL) != 0) { - string text = String.Empty; + string text = string.Empty; while (block[i] != 0) { text += (char) block[i]; @@ -499,7 +499,7 @@ namespace OpenMetaverse.Packets for (int j = 0; j < lines.Length; j++) { - if (!String.IsNullOrEmpty(lines[j])) + if (!string.IsNullOrEmpty(lines[j])) { NameValue nv = new NameValue(lines[j]); nameValues[j] = nv; @@ -614,7 +614,7 @@ namespace OpenMetaverse.Packets int textureEntryLength = (int) Utils.BytesToUInt(block, i); i += 4; //prim.Textures = new Primitive.TextureEntry(block, i, textureEntryLength); - String s = DecodeTextureEntry("TextureEntry", new Primitive.TextureEntry(block, i, textureEntryLength)); + string s = DecodeTextureEntry("TextureEntry", new Primitive.TextureEntry(block, i, textureEntryLength)); result.AppendLine(s); i += textureEntryLength; @@ -1313,7 +1313,7 @@ namespace OpenMetaverse.Packets FieldInfo[] fields = parcelType.GetFields(); foreach (FieldInfo field in fields) { - String special; + string special; if (SpecialDecoder("a" + "." + "b" + "." + field.Name, field.GetValue(obj), out special)) { @@ -1335,7 +1335,7 @@ namespace OpenMetaverse.Packets PropertyInfo[] propertyInfos = parcelType.GetProperties(); foreach (PropertyInfo property in propertyInfos) { - String special; + string special; if (SpecialDecoder("a" + "." + "b" + "." + property.Name, property.GetValue(obj, null), out special)) { @@ -1506,7 +1506,7 @@ namespace OpenMetaverse.Packets foreach (FieldInfo t in fields) { - String special; + string special; if (SpecialDecoder(packet.GetType().Name + "." + fieldInfo.Name + "." + t.Name, t.GetValue(nestedArrayRecord), out special)) { @@ -1650,7 +1650,7 @@ namespace OpenMetaverse.Packets public static string MessageToString(object message, int recurseLevel) { if (message == null) - return String.Empty; + return string.Empty; StringBuilder result = new StringBuilder(); // common/custom types @@ -1676,7 +1676,7 @@ namespace OpenMetaverse.Packets } // a byte array else if (messageField.GetValue(message) != null && - messageField.GetValue(message).GetType() == typeof(Byte[])) + messageField.GetValue(message).GetType() == typeof(byte[])) { result.AppendFormat("{0, 30}:" + Environment.NewLine, messageField.Name); diff --git a/LibreMetaverse/Primitives/Primitive.cs b/LibreMetaverse/Primitives/Primitive.cs index 28ce1525..3091f8bf 100644 --- a/LibreMetaverse/Primitives/Primitive.cs +++ b/LibreMetaverse/Primitives/Primitive.cs @@ -427,7 +427,7 @@ namespace OpenMetaverse /// public override string ToString() { - return String.Format("Color: {0} Intensity: {1} Radius: {2} Cutoff: {3} Falloff: {4}", + return string.Format("Color: {0} Intensity: {1} Radius: {2} Cutoff: {3} Falloff: {4}", Color, Intensity, Radius, Cutoff, Falloff); } } @@ -677,10 +677,10 @@ namespace OpenMetaverse /// public ObjectProperties() { - Name = String.Empty; - Description = String.Empty; - TouchName = String.Empty; - SitName = String.Empty; + Name = string.Empty; + Description = string.Empty; + TouchName = string.Empty; + SitName = string.Empty; } /// @@ -941,8 +941,8 @@ namespace OpenMetaverse public Primitive() { // Default a few null property values to String.Empty - Text = String.Empty; - MediaURL = String.Empty; + Text = string.Empty; + MediaURL = string.Empty; } public Primitive(Primitive prim) @@ -1050,7 +1050,7 @@ namespace OpenMetaverse else { prim["name"] = OSD.FromString("Object"); - prim["description"] = OSD.FromString(String.Empty); + prim["description"] = OSD.FromString(string.Empty); } prim["phantom"] = OSD.FromBoolean(((Flags & PrimFlags.Phantom) != 0)); @@ -1389,18 +1389,18 @@ namespace OpenMetaverse public static bool operator ==(Primitive lhs, Primitive rhs) { - if ((Object)lhs == null || (Object)rhs == null) + if ((object)lhs == null || (object)rhs == null) { - return (Object)rhs == (Object)lhs; + return (object)rhs == (object)lhs; } return (lhs.ID == rhs.ID); } public static bool operator !=(Primitive lhs, Primitive rhs) { - if ((Object)lhs == null || (Object)rhs == null) + if ((object)lhs == null || (object)rhs == null) { - return (Object)rhs != (Object)lhs; + return (object)rhs != (object)lhs; } return !(lhs.ID == rhs.ID); } diff --git a/LibreMetaverse/Primitives/TextureEntry.cs b/LibreMetaverse/Primitives/TextureEntry.cs index 3cf9f514..2b2436ef 100644 --- a/LibreMetaverse/Primitives/TextureEntry.cs +++ b/LibreMetaverse/Primitives/TextureEntry.cs @@ -613,7 +613,7 @@ namespace OpenMetaverse /// public override string ToString() { - return String.Format("Color: {0} RepeatU: {1} RepeatV: {2} OffsetU: {3} OffsetV: {4} " + + return string.Format("Color: {0} RepeatU: {1} RepeatV: {2} OffsetU: {3} OffsetV: {4} " + "Rotation: {5} Bump: {6} Shiny: {7} Fullbright: {8} Mapping: {9} Media: {10} Glow: {11} ID: {12} MaterialID: {13}", RGBA, RepeatU, RepeatV, OffsetU, OffsetV, Rotation, Bump, Shiny, Fullbright, TexMapType, MediaFlags, Glow, TextureID, MaterialID); @@ -1012,57 +1012,57 @@ namespace OpenMetaverse if (FaceTextures[i].TextureID != DefaultTexture.TextureID) { - if (textures[i] == UInt32.MaxValue) textures[i] = 0; + if (textures[i] == uint.MaxValue) textures[i] = 0; textures[i] |= (uint)(1 << i); } if (FaceTextures[i].RGBA != DefaultTexture.RGBA) { - if (rgbas[i] == UInt32.MaxValue) rgbas[i] = 0; + if (rgbas[i] == uint.MaxValue) rgbas[i] = 0; rgbas[i] |= (uint)(1 << i); } if (FaceTextures[i].RepeatU != DefaultTexture.RepeatU) { - if (repeatus[i] == UInt32.MaxValue) repeatus[i] = 0; + if (repeatus[i] == uint.MaxValue) repeatus[i] = 0; repeatus[i] |= (uint)(1 << i); } if (FaceTextures[i].RepeatV != DefaultTexture.RepeatV) { - if (repeatvs[i] == UInt32.MaxValue) repeatvs[i] = 0; + if (repeatvs[i] == uint.MaxValue) repeatvs[i] = 0; repeatvs[i] |= (uint)(1 << i); } if (Helpers.TEOffsetShort(FaceTextures[i].OffsetU) != Helpers.TEOffsetShort(DefaultTexture.OffsetU)) { - if (offsetus[i] == UInt32.MaxValue) offsetus[i] = 0; + if (offsetus[i] == uint.MaxValue) offsetus[i] = 0; offsetus[i] |= (uint)(1 << i); } if (Helpers.TEOffsetShort(FaceTextures[i].OffsetV) != Helpers.TEOffsetShort(DefaultTexture.OffsetV)) { - if (offsetvs[i] == UInt32.MaxValue) offsetvs[i] = 0; + if (offsetvs[i] == uint.MaxValue) offsetvs[i] = 0; offsetvs[i] |= (uint)(1 << i); } if (Helpers.TERotationShort(FaceTextures[i].Rotation) != Helpers.TERotationShort(DefaultTexture.Rotation)) { - if (rotations[i] == UInt32.MaxValue) rotations[i] = 0; + if (rotations[i] == uint.MaxValue) rotations[i] = 0; rotations[i] |= (uint)(1 << i); } if (FaceTextures[i].material != DefaultTexture.material) { - if (materials[i] == UInt32.MaxValue) materials[i] = 0; + if (materials[i] == uint.MaxValue) materials[i] = 0; materials[i] |= (uint)(1 << i); } if (FaceTextures[i].media != DefaultTexture.media) { - if (medias[i] == UInt32.MaxValue) medias[i] = 0; + if (medias[i] == uint.MaxValue) medias[i] = 0; medias[i] |= (uint)(1 << i); } if (Helpers.TEGlowByte(FaceTextures[i].Glow) != Helpers.TEGlowByte(DefaultTexture.Glow)) { - if (glows[i] == UInt32.MaxValue) glows[i] = 0; + if (glows[i] == uint.MaxValue) glows[i] = 0; glows[i] |= (uint)(1 << i); } if (FaceTextures[i].MaterialID != DefaultTexture.MaterialID) { - if (materialIDs[i] == UInt32.MaxValue) materialIDs[i] = 0; + if (materialIDs[i] == uint.MaxValue) materialIDs[i] = 0; materialIDs[i] |= (uint)(1 << i); } } @@ -1073,7 +1073,7 @@ namespace OpenMetaverse binWriter.Write(DefaultTexture.TextureID.GetBytes()); for (int i = 0; i < textures.Length; i++) { - if (textures[i] != UInt32.MaxValue) + if (textures[i] != uint.MaxValue) { binWriter.Write(GetFaceBitfieldBytes(textures[i])); binWriter.Write(FaceTextures[i].TextureID.GetBytes()); @@ -1087,7 +1087,7 @@ namespace OpenMetaverse binWriter.Write(DefaultTexture.RGBA.GetBytes(true)); for (int i = 0; i < rgbas.Length; i++) { - if (rgbas[i] != UInt32.MaxValue) + if (rgbas[i] != uint.MaxValue) { binWriter.Write(GetFaceBitfieldBytes(rgbas[i])); // Serialize the color bytes inverted to optimize for zerocoding @@ -1101,7 +1101,7 @@ namespace OpenMetaverse binWriter.Write(DefaultTexture.RepeatU); for (int i = 0; i < repeatus.Length; i++) { - if (repeatus[i] != UInt32.MaxValue) + if (repeatus[i] != uint.MaxValue) { binWriter.Write(GetFaceBitfieldBytes(repeatus[i])); binWriter.Write(FaceTextures[i].RepeatU); @@ -1114,7 +1114,7 @@ namespace OpenMetaverse binWriter.Write(DefaultTexture.RepeatV); for (int i = 0; i < repeatvs.Length; i++) { - if (repeatvs[i] != UInt32.MaxValue) + if (repeatvs[i] != uint.MaxValue) { binWriter.Write(GetFaceBitfieldBytes(repeatvs[i])); binWriter.Write(FaceTextures[i].RepeatV); @@ -1127,7 +1127,7 @@ namespace OpenMetaverse binWriter.Write(Helpers.TEOffsetShort(DefaultTexture.OffsetU)); for (int i = 0; i < offsetus.Length; i++) { - if (offsetus[i] != UInt32.MaxValue) + if (offsetus[i] != uint.MaxValue) { binWriter.Write(GetFaceBitfieldBytes(offsetus[i])); binWriter.Write(Helpers.TEOffsetShort(FaceTextures[i].OffsetU)); @@ -1140,7 +1140,7 @@ namespace OpenMetaverse binWriter.Write(Helpers.TEOffsetShort(DefaultTexture.OffsetV)); for (int i = 0; i < offsetvs.Length; i++) { - if (offsetvs[i] != UInt32.MaxValue) + if (offsetvs[i] != uint.MaxValue) { binWriter.Write(GetFaceBitfieldBytes(offsetvs[i])); binWriter.Write(Helpers.TEOffsetShort(FaceTextures[i].OffsetV)); @@ -1153,7 +1153,7 @@ namespace OpenMetaverse binWriter.Write(Helpers.TERotationShort(DefaultTexture.Rotation)); for (int i = 0; i < rotations.Length; i++) { - if (rotations[i] != UInt32.MaxValue) + if (rotations[i] != uint.MaxValue) { binWriter.Write(GetFaceBitfieldBytes(rotations[i])); binWriter.Write(Helpers.TERotationShort(FaceTextures[i].Rotation)); @@ -1166,7 +1166,7 @@ namespace OpenMetaverse binWriter.Write(DefaultTexture.material); for (int i = 0; i < materials.Length; i++) { - if (materials[i] != UInt32.MaxValue) + if (materials[i] != uint.MaxValue) { binWriter.Write(GetFaceBitfieldBytes(materials[i])); binWriter.Write(FaceTextures[i].material); @@ -1179,7 +1179,7 @@ namespace OpenMetaverse binWriter.Write(DefaultTexture.media); for (int i = 0; i < medias.Length; i++) { - if (medias[i] != UInt32.MaxValue) + if (medias[i] != uint.MaxValue) { binWriter.Write(GetFaceBitfieldBytes(medias[i])); binWriter.Write(FaceTextures[i].media); @@ -1192,7 +1192,7 @@ namespace OpenMetaverse binWriter.Write(Helpers.TEGlowByte(DefaultTexture.Glow)); for (int i = 0; i < glows.Length; i++) { - if (glows[i] != UInt32.MaxValue) + if (glows[i] != uint.MaxValue) { binWriter.Write(GetFaceBitfieldBytes(glows[i])); binWriter.Write(Helpers.TEGlowByte(FaceTextures[i].Glow)); @@ -1205,7 +1205,7 @@ namespace OpenMetaverse binWriter.Write(DefaultTexture.MaterialID.GetBytes()); for (int i = 0; i < materialIDs.Length; i++) { - if (materialIDs[i] != UInt32.MaxValue) + if (materialIDs[i] != uint.MaxValue) { binWriter.Write(GetFaceBitfieldBytes(materialIDs[i])); binWriter.Write(FaceTextures[i].MaterialID.GetBytes()); diff --git a/LibreMetaverse/ProtocolManager.cs b/LibreMetaverse/ProtocolManager.cs index df77959e..26cadd24 100644 --- a/LibreMetaverse/ProtocolManager.cs +++ b/LibreMetaverse/ProtocolManager.cs @@ -491,7 +491,7 @@ namespace OpenMetaverse tokens[2] = tokens[2].Substring(2, tokens[2].Length - 2); } - uint fixedID = UInt32.Parse(tokens[2], System.Globalization.NumberStyles.HexNumber); + uint fixedID = uint.Parse(tokens[2], System.Globalization.NumberStyles.HexNumber); // Truncate the id to a short fixedID ^= 0xFFFF0000; LowMaps[fixedID] = new MapPacket @@ -618,7 +618,7 @@ namespace OpenMetaverse } else if (tokens[1] == "Multiple") { - currentBlock.Count = Int32.Parse(tokens[2]); + currentBlock.Count = int.Parse(tokens[2]); } else if (tokens[1] == "Variable") { diff --git a/LibreMetaverse/Rendering/EndianAwareBinaryReader.cs b/LibreMetaverse/Rendering/EndianAwareBinaryReader.cs index 0d5f6a4d..45e11c68 100644 --- a/LibreMetaverse/Rendering/EndianAwareBinaryReader.cs +++ b/LibreMetaverse/Rendering/EndianAwareBinaryReader.cs @@ -85,7 +85,7 @@ namespace OpenMetaverse.Rendering /// Read a 16 bit integer /// /// A 16 bit integer in the system's endianness - public override Int16 ReadInt16() + public override short ReadInt16() { m_a16 = base.ReadBytes(2); if (m_shouldReverseOrder) @@ -97,7 +97,7 @@ namespace OpenMetaverse.Rendering /// Read a 64 bit integer /// /// A 64 bit integer in the system's endianness - public override Int64 ReadInt64() + public override long ReadInt64() { m_a64 = base.ReadBytes(8); if (m_shouldReverseOrder) @@ -109,7 +109,7 @@ namespace OpenMetaverse.Rendering /// Read an unsigned 32 bit integer /// /// A 32 bit unsigned integer in the system's endianness - public override UInt32 ReadUInt32() + public override uint ReadUInt32() { m_a32 = base.ReadBytes(4); if (m_shouldReverseOrder) diff --git a/LibreMetaverse/Rendering/LindenMesh.cs b/LibreMetaverse/Rendering/LindenMesh.cs index 2704a57d..6466e63e 100644 --- a/LibreMetaverse/Rendering/LindenMesh.cs +++ b/LibreMetaverse/Rendering/LindenMesh.cs @@ -188,7 +188,7 @@ namespace OpenMetaverse.Rendering using (EndianAwareBinaryReader reader = new EndianAwareBinaryReader(meshStream)) { Header = TrimAt0(reader.ReadString(24)); - if (!String.Equals(Header, MeshHeader)) + if (!string.Equals(Header, MeshHeader)) throw new FileLoadException("Unrecognized mesh format"); // Populate base mesh parameters @@ -232,7 +232,7 @@ namespace OpenMetaverse.Rendering BitPack input = new BitPack(buffer, 0); _header = TrimAt0(input.UnpackString(24)); - if (!String.Equals(_header, MeshHeader)) + if (!string.Equals(_header, MeshHeader)) return; // Populate base mesh variables @@ -309,7 +309,7 @@ namespace OpenMetaverse.Rendering using (EndianAwareBinaryReader reader = new EndianAwareBinaryReader(meshData)) { Header = TrimAt0(reader.ReadString(24)); - if (!String.Equals(Header, MeshHeader)) + if (!string.Equals(Header, MeshHeader)) throw new FileLoadException("Unrecognized mesh format"); // Populate base mesh parameters diff --git a/LibreMetaverse/Simulator.cs b/LibreMetaverse/Simulator.cs index b0fcfb58..1b33bc43 100644 --- a/LibreMetaverse/Simulator.cs +++ b/LibreMetaverse/Simulator.cs @@ -270,9 +270,9 @@ namespace OpenMetaverse /// Simulator land size in Y direction in meters public uint SizeY; /// The current version of software this simulator is running - public string SimVersion = String.Empty; + public string SimVersion = string.Empty; /// Human readable name given to the simulator - public string Name = String.Empty; + public string Name = string.Empty; /// A 64x64 grid of parcel coloring values. The values stored /// in this array are of the type public byte[] ParcelOverlay = new byte[4096]; @@ -1012,7 +1012,7 @@ namespace OpenMetaverse /// Simulator name as String public override string ToString() { - return !String.IsNullOrEmpty(Name) + return !string.IsNullOrEmpty(Name) ? $"{Name} ({remoteEndPoint})" : $"({remoteEndPoint})"; } @@ -1267,7 +1267,7 @@ namespace OpenMetaverse { if (Client.Settings.LOG_RESENDS) { - Logger.DebugLog(String.Format("Resending {2} packet #{0}, {1}ms have passed", + Logger.DebugLog(string.Format("Resending {2} packet #{0}, {1}ms have passed", outgoing.SequenceNumber, now - outgoing.TickCount, outgoing.Type), Client); } @@ -1286,7 +1286,7 @@ namespace OpenMetaverse } else { - Logger.DebugLog(String.Format("Dropping packet #{0} after {1} failed attempts", + Logger.DebugLog(string.Format("Dropping packet #{0} after {1} failed attempts", outgoing.SequenceNumber, outgoing.ResendCount)); lock (NeedAck) NeedAck.Remove(outgoing.SequenceNumber); diff --git a/LibreMetaverse/TexturePipeline.cs b/LibreMetaverse/TexturePipeline.cs index 35c593e0..5180c992 100644 --- a/LibreMetaverse/TexturePipeline.cs +++ b/LibreMetaverse/TexturePipeline.cs @@ -373,12 +373,12 @@ namespace OpenMetaverse { // Already downloading, just updating the priority float percentComplete = ((float)task.Transfer.Transferred / (float)task.Transfer.Size) * 100f; - if (Single.IsNaN(percentComplete)) + if (float.IsNaN(percentComplete)) percentComplete = 0f; if (percentComplete > 0f) { - Logger.DebugLog(String.Format("Updating priority on image transfer {0} to {1}, {2}% complete", + Logger.DebugLog(string.Format("Updating priority on image transfer {0} to {1}, {2}% complete", imageID, task.Transfer.Priority, Math.Round(percentComplete, 2))); } } @@ -519,7 +519,7 @@ namespace OpenMetaverse /// The worker thread that sends the request and handles timeouts /// /// A object containing the request details - private void TextureRequestDoWork(Object threadContext) + private void TextureRequestDoWork(object threadContext) { TaskInfo task = (TaskInfo)threadContext; diff --git a/LibreMetaverse/_VisualParam_.cs b/LibreMetaverse/_VisualParam_.cs index b0362f70..bcc58576 100644 --- a/LibreMetaverse/_VisualParam_.cs +++ b/LibreMetaverse/_VisualParam_.cs @@ -164,7 +164,7 @@ namespace OpenMetaverse Params[8] = new VisualParam(8, "Double_Chin", 0, "shape", "Chin-Neck", "Tight Chin", "Double Chin", -0.5f, -0.5f, 1.5f, false, null, null, null); Params[10] = new VisualParam(10, "Sunken_Cheeks", 0, "shape", "Lower Cheeks", "Well-Fed", "Sunken", -1.5f, -1.5f, 3f, false, null, null, null); Params[11] = new VisualParam(11, "Noble_Nose_Bridge", 0, "shape", "Upper Bridge", "Low", "High", -0.5f, -0.5f, 1.5f, false, null, null, null); - Params[12] = new VisualParam(12, "Jowls", 0, "shape", String.Empty, "Less", "More", -0.5f, -0.5f, 2.5f, false, null, null, null); + Params[12] = new VisualParam(12, "Jowls", 0, "shape", string.Empty, "Less", "More", -0.5f, -0.5f, 2.5f, false, null, null, null); Params[13] = new VisualParam(13, "Cleft_Chin_Upper", 0, "shape", "Upper Chin Cleft", "Round", "Cleft", 0f, 0f, 1.5f, false, null, null, null); Params[14] = new VisualParam(14, "High_Cheek_Bones", 0, "shape", "Cheek Bones", "Low", "High", -0.5f, -0.5f, 1f, false, null, null, null); Params[15] = new VisualParam(15, "Ears_Out", 0, "shape", "Ear Angle", "In", "Out", -0.5f, -0.5f, 1.5f, false, null, null, null); @@ -178,45 +178,45 @@ namespace OpenMetaverse Params[23] = new VisualParam(23, "Baggy_Eyes", 0, "shape", "Eye Bags", "Smooth", "Baggy", -0.5f, -0.5f, 1.5f, false, null, null, null); Params[24] = new VisualParam(24, "Wide_Eyes", 0, "shape", "Eye Opening", "Narrow", "Wide", -1.5f, -1.5f, 2f, false, null, null, null); Params[25] = new VisualParam(25, "Wide_Lip_Cleft", 0, "shape", "Lip Cleft", "Narrow", "Wide", -0.8f, -0.8f, 1.5f, false, null, null, null); - Params[26] = new VisualParam(26, "Lips_Thin", 1, "shape", String.Empty, String.Empty, String.Empty, 0f, 0f, 0.7f, false, null, null, null); + Params[26] = new VisualParam(26, "Lips_Thin", 1, "shape", string.Empty, string.Empty, string.Empty, 0f, 0f, 0.7f, false, null, null, null); Params[27] = new VisualParam(27, "Wide_Nose_Bridge", 0, "shape", "Bridge Width", "Narrow", "Wide", -1.3f, -1.3f, 1.2f, false, null, null, null); - Params[28] = new VisualParam(28, "Lips_Fat", 1, "shape", String.Empty, String.Empty, String.Empty, 0f, 0f, 2f, false, null, null, null); - Params[29] = new VisualParam(29, "Wide_Upper_Lip", 1, "shape", String.Empty, String.Empty, String.Empty, -0.7f, -0.7f, 1.3f, false, null, null, null); - Params[30] = new VisualParam(30, "Wide_Lower_Lip", 1, "shape", String.Empty, String.Empty, String.Empty, -0.7f, -0.7f, 1.3f, false, null, null, null); + Params[28] = new VisualParam(28, "Lips_Fat", 1, "shape", string.Empty, string.Empty, string.Empty, 0f, 0f, 2f, false, null, null, null); + Params[29] = new VisualParam(29, "Wide_Upper_Lip", 1, "shape", string.Empty, string.Empty, string.Empty, -0.7f, -0.7f, 1.3f, false, null, null, null); + Params[30] = new VisualParam(30, "Wide_Lower_Lip", 1, "shape", string.Empty, string.Empty, string.Empty, -0.7f, -0.7f, 1.3f, false, null, null, null); Params[31] = new VisualParam(31, "Arced_Eyebrows", 0, "hair", "Eyebrow Arc", "Flat", "Arced", 0.5f, 0f, 2f, false, new int[] { 872 }, null, null); Params[33] = new VisualParam(33, "Height", 0, "shape", "Height", "Short", "Tall", -2.3f, -2.3f, 2f, false, null, null, null); Params[34] = new VisualParam(34, "Thickness", 0, "shape", "Body Thickness", "Body Thin", "Body Thick", -0.7f, -0.7f, 1.5f, false, null, null, null); Params[35] = new VisualParam(35, "Big_Ears", 0, "shape", "Ear Size", "Small", "Large", -1f, -1f, 2f, false, null, null, null); Params[36] = new VisualParam(36, "Shoulders", 0, "shape", "Shoulders", "Narrow", "Broad", -0.5f, -1.8f, 1.4f, false, null, null, null); Params[37] = new VisualParam(37, "Hip Width", 0, "shape", "Hip Width", "Narrow", "Wide", -3.2f, -3.2f, 2.8f, false, null, null, null); - Params[38] = new VisualParam(38, "Torso Length", 0, "shape", String.Empty, "Short Torso", "Long Torso", -1f, -1f, 1f, false, null, null, null); - Params[40] = new VisualParam(40, "Male_Head", 1, "shape", String.Empty, String.Empty, String.Empty, 0f, 0f, 1f, false, null, null, null); - Params[80] = new VisualParam(80, "male", 0, "shape", String.Empty, String.Empty, String.Empty, 0f, 0f, 1f, false, new int[] { 32, 153, 40, 100, 857 }, null, null); - Params[93] = new VisualParam(93, "Glove Length", 0, "gloves", String.Empty, "Short", "Long", 0.8f, 0.01f, 1f, false, new int[] { 1058, 1059 }, null, null); - Params[98] = new VisualParam(98, "Eye Lightness", 0, "eyes", String.Empty, "Darker", "Lighter", 0f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(0, 0, 0, 0), new Color4(255, 255, 255, 255) })); - Params[99] = new VisualParam(99, "Eye Color", 0, "eyes", String.Empty, "Natural", "Unnatural", 0f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(50, 25, 5, 255), new Color4(109, 55, 15, 255), new Color4(150, 93, 49, 255), new Color4(152, 118, 25, 255), new Color4(95, 179, 107, 255), new Color4(87, 192, 191, 255), new Color4(95, 172, 179, 255), new Color4(128, 128, 128, 255), new Color4(0, 0, 0, 255), new Color4(255, 255, 0, 255), new Color4(0, 255, 0, 255), new Color4(0, 255, 255, 255), new Color4(0, 0, 255, 255), new Color4(255, 0, 255, 255), new Color4(255, 0, 0, 255) })); - Params[100] = new VisualParam(100, "Male_Torso", 1, "shape", String.Empty, "Male_Torso", String.Empty, 0f, 0f, 1f, false, null, null, null); - Params[104] = new VisualParam(104, "Big_Belly_Torso", 1, "shape", String.Empty, String.Empty, String.Empty, 0f, 0f, 1f, false, null, null, null); - Params[105] = new VisualParam(105, "Breast Size", 0, "shape", String.Empty, "Small", "Large", 0.5f, 0f, 1f, false, new int[] { 843, 627, 626 }, null, null); + Params[38] = new VisualParam(38, "Torso Length", 0, "shape", string.Empty, "Short Torso", "Long Torso", -1f, -1f, 1f, false, null, null, null); + Params[40] = new VisualParam(40, "Male_Head", 1, "shape", string.Empty, string.Empty, string.Empty, 0f, 0f, 1f, false, null, null, null); + Params[80] = new VisualParam(80, "male", 0, "shape", string.Empty, string.Empty, string.Empty, 0f, 0f, 1f, false, new int[] { 32, 153, 40, 100, 857 }, null, null); + Params[93] = new VisualParam(93, "Glove Length", 0, "gloves", string.Empty, "Short", "Long", 0.8f, 0.01f, 1f, false, new int[] { 1058, 1059 }, null, null); + Params[98] = new VisualParam(98, "Eye Lightness", 0, "eyes", string.Empty, "Darker", "Lighter", 0f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(0, 0, 0, 0), new Color4(255, 255, 255, 255) })); + Params[99] = new VisualParam(99, "Eye Color", 0, "eyes", string.Empty, "Natural", "Unnatural", 0f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(50, 25, 5, 255), new Color4(109, 55, 15, 255), new Color4(150, 93, 49, 255), new Color4(152, 118, 25, 255), new Color4(95, 179, 107, 255), new Color4(87, 192, 191, 255), new Color4(95, 172, 179, 255), new Color4(128, 128, 128, 255), new Color4(0, 0, 0, 255), new Color4(255, 255, 0, 255), new Color4(0, 255, 0, 255), new Color4(0, 255, 255, 255), new Color4(0, 0, 255, 255), new Color4(255, 0, 255, 255), new Color4(255, 0, 0, 255) })); + Params[100] = new VisualParam(100, "Male_Torso", 1, "shape", string.Empty, "Male_Torso", string.Empty, 0f, 0f, 1f, false, null, null, null); + Params[104] = new VisualParam(104, "Big_Belly_Torso", 1, "shape", string.Empty, string.Empty, string.Empty, 0f, 0f, 1f, false, null, null, null); + Params[105] = new VisualParam(105, "Breast Size", 0, "shape", string.Empty, "Small", "Large", 0.5f, 0f, 1f, false, new int[] { 843, 627, 626 }, null, null); Params[106] = new VisualParam(106, "Muscular_Torso", 1, "shape", "Torso Muscles", "Regular", "Muscular", 0f, 0f, 1.4f, false, null, null, null); - Params[108] = new VisualParam(108, "Rainbow Color", 0, "skin", String.Empty, "None", "Wild", 0f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(0, 0, 0, 255), new Color4(255, 0, 255, 255), new Color4(255, 0, 0, 255), new Color4(255, 255, 0, 255), new Color4(0, 255, 0, 255), new Color4(0, 255, 255, 255), new Color4(0, 0, 255, 255), new Color4(255, 0, 255, 255) })); + Params[108] = new VisualParam(108, "Rainbow Color", 0, "skin", string.Empty, "None", "Wild", 0f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(0, 0, 0, 255), new Color4(255, 0, 255, 255), new Color4(255, 0, 0, 255), new Color4(255, 255, 0, 255), new Color4(0, 255, 0, 255), new Color4(0, 255, 255, 255), new Color4(0, 0, 255, 255), new Color4(255, 0, 255, 255) })); Params[110] = new VisualParam(110, "Red Skin", 0, "skin", "Ruddiness", "Pale", "Ruddy", 0f, 0f, 0.1f, false, null, null, new VisualColorParam(VisualColorOperation.Blend, new Color4[] { new Color4(218, 41, 37, 255) })); - Params[111] = new VisualParam(111, "Pigment", 0, "skin", String.Empty, "Light", "Dark", 0.5f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(252, 215, 200, 255), new Color4(240, 177, 112, 255), new Color4(90, 40, 16, 255), new Color4(29, 9, 6, 255) })); - Params[112] = new VisualParam(112, "Rainbow Color", 0, "hair", String.Empty, "None", "Wild", 0f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(0, 0, 0, 255), new Color4(255, 0, 255, 255), new Color4(255, 0, 0, 255), new Color4(255, 255, 0, 255), new Color4(0, 255, 0, 255), new Color4(0, 255, 255, 255), new Color4(0, 0, 255, 255), new Color4(255, 0, 255, 255) })); - Params[113] = new VisualParam(113, "Red Hair", 0, "hair", String.Empty, "No Red", "Very Red", 0f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(0, 0, 0, 255), new Color4(118, 47, 19, 255) })); - Params[114] = new VisualParam(114, "Blonde Hair", 0, "hair", String.Empty, "Black", "Blonde", 0.5f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(0, 0, 0, 255), new Color4(22, 6, 6, 255), new Color4(29, 9, 6, 255), new Color4(45, 21, 11, 255), new Color4(78, 39, 11, 255), new Color4(90, 53, 16, 255), new Color4(136, 92, 21, 255), new Color4(150, 106, 33, 255), new Color4(198, 156, 74, 255), new Color4(233, 192, 103, 255), new Color4(238, 205, 136, 255) })); - Params[115] = new VisualParam(115, "White Hair", 0, "hair", String.Empty, "No White", "All White", 0f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(0, 0, 0, 255), new Color4(255, 255, 255, 255) })); - Params[116] = new VisualParam(116, "Rosy Complexion", 0, "skin", String.Empty, "Less Rosy", "More Rosy", 0f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(198, 71, 71, 0), new Color4(198, 71, 71, 255) })); - Params[117] = new VisualParam(117, "Lip Pinkness", 0, "skin", String.Empty, "Darker", "Pinker", 0f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(220, 115, 115, 0), new Color4(220, 115, 115, 128) })); - Params[119] = new VisualParam(119, "Eyebrow Size", 0, "hair", String.Empty, "Thin Eyebrows", "Bushy Eyebrows", 0.5f, 0f, 1f, false, new int[] { 1000, 1001 }, null, null); - Params[130] = new VisualParam(130, "Front Fringe", 0, "hair", String.Empty, "Short", "Long", 0.45f, 0f, 1f, false, new int[] { 144, 145 }, null, null); - Params[131] = new VisualParam(131, "Side Fringe", 0, "hair", String.Empty, "Short", "Long", 0.5f, 0f, 1f, false, new int[] { 146, 147 }, null, null); - Params[132] = new VisualParam(132, "Back Fringe", 0, "hair", String.Empty, "Short", "Long", 0.39f, 0f, 1f, false, new int[] { 148, 149 }, null, null); - Params[133] = new VisualParam(133, "Hair Front", 0, "hair", String.Empty, "Short", "Long", 0.25f, 0f, 1f, false, new int[] { 172, 171 }, null, null); - Params[134] = new VisualParam(134, "Hair Sides", 0, "hair", String.Empty, "Short", "Long", 0.5f, 0f, 1f, false, new int[] { 174, 173 }, null, null); - Params[135] = new VisualParam(135, "Hair Back", 0, "hair", String.Empty, "Short", "Long", 0.55f, 0f, 1f, false, new int[] { 176, 175 }, null, null); - Params[136] = new VisualParam(136, "Hair Sweep", 0, "hair", String.Empty, "Sweep Forward", "Sweep Back", 0.5f, 0f, 1f, false, new int[] { 179, 178 }, null, null); - Params[137] = new VisualParam(137, "Hair Tilt", 0, "hair", String.Empty, "Left", "Right", 0.5f, 0f, 1f, false, new int[] { 190, 191 }, null, null); + Params[111] = new VisualParam(111, "Pigment", 0, "skin", string.Empty, "Light", "Dark", 0.5f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(252, 215, 200, 255), new Color4(240, 177, 112, 255), new Color4(90, 40, 16, 255), new Color4(29, 9, 6, 255) })); + Params[112] = new VisualParam(112, "Rainbow Color", 0, "hair", string.Empty, "None", "Wild", 0f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(0, 0, 0, 255), new Color4(255, 0, 255, 255), new Color4(255, 0, 0, 255), new Color4(255, 255, 0, 255), new Color4(0, 255, 0, 255), new Color4(0, 255, 255, 255), new Color4(0, 0, 255, 255), new Color4(255, 0, 255, 255) })); + Params[113] = new VisualParam(113, "Red Hair", 0, "hair", string.Empty, "No Red", "Very Red", 0f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(0, 0, 0, 255), new Color4(118, 47, 19, 255) })); + Params[114] = new VisualParam(114, "Blonde Hair", 0, "hair", string.Empty, "Black", "Blonde", 0.5f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(0, 0, 0, 255), new Color4(22, 6, 6, 255), new Color4(29, 9, 6, 255), new Color4(45, 21, 11, 255), new Color4(78, 39, 11, 255), new Color4(90, 53, 16, 255), new Color4(136, 92, 21, 255), new Color4(150, 106, 33, 255), new Color4(198, 156, 74, 255), new Color4(233, 192, 103, 255), new Color4(238, 205, 136, 255) })); + Params[115] = new VisualParam(115, "White Hair", 0, "hair", string.Empty, "No White", "All White", 0f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(0, 0, 0, 255), new Color4(255, 255, 255, 255) })); + Params[116] = new VisualParam(116, "Rosy Complexion", 0, "skin", string.Empty, "Less Rosy", "More Rosy", 0f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(198, 71, 71, 0), new Color4(198, 71, 71, 255) })); + Params[117] = new VisualParam(117, "Lip Pinkness", 0, "skin", string.Empty, "Darker", "Pinker", 0f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(220, 115, 115, 0), new Color4(220, 115, 115, 128) })); + Params[119] = new VisualParam(119, "Eyebrow Size", 0, "hair", string.Empty, "Thin Eyebrows", "Bushy Eyebrows", 0.5f, 0f, 1f, false, new int[] { 1000, 1001 }, null, null); + Params[130] = new VisualParam(130, "Front Fringe", 0, "hair", string.Empty, "Short", "Long", 0.45f, 0f, 1f, false, new int[] { 144, 145 }, null, null); + Params[131] = new VisualParam(131, "Side Fringe", 0, "hair", string.Empty, "Short", "Long", 0.5f, 0f, 1f, false, new int[] { 146, 147 }, null, null); + Params[132] = new VisualParam(132, "Back Fringe", 0, "hair", string.Empty, "Short", "Long", 0.39f, 0f, 1f, false, new int[] { 148, 149 }, null, null); + Params[133] = new VisualParam(133, "Hair Front", 0, "hair", string.Empty, "Short", "Long", 0.25f, 0f, 1f, false, new int[] { 172, 171 }, null, null); + Params[134] = new VisualParam(134, "Hair Sides", 0, "hair", string.Empty, "Short", "Long", 0.5f, 0f, 1f, false, new int[] { 174, 173 }, null, null); + Params[135] = new VisualParam(135, "Hair Back", 0, "hair", string.Empty, "Short", "Long", 0.55f, 0f, 1f, false, new int[] { 176, 175 }, null, null); + Params[136] = new VisualParam(136, "Hair Sweep", 0, "hair", string.Empty, "Sweep Forward", "Sweep Back", 0.5f, 0f, 1f, false, new int[] { 179, 178 }, null, null); + Params[137] = new VisualParam(137, "Hair Tilt", 0, "hair", string.Empty, "Left", "Right", 0.5f, 0f, 1f, false, new int[] { 190, 191 }, null, null); Params[140] = new VisualParam(140, "Hair_Part_Middle", 0, "hair", "Middle Part", "No Part", "Part", 0f, 0f, 2f, false, null, null, null); Params[141] = new VisualParam(141, "Hair_Part_Right", 0, "hair", "Right Part", "No Part", "Part", 0f, 0f, 2f, false, null, null, null); Params[142] = new VisualParam(142, "Hair_Part_Left", 0, "hair", "Left Part", "No Part", "Part", 0f, 0f, 2f, false, null, null, null); @@ -227,20 +227,20 @@ namespace OpenMetaverse Params[147] = new VisualParam(147, "Bangs_Sides_Down", 1, "hair", "Side Bangs Down", "Side Bangs", "Side Bangs Down", 0f, 0f, 2f, false, null, null, null); Params[148] = new VisualParam(148, "Bangs_Back_Up", 1, "hair", "Back Bangs Up", "Back Bangs", "Back Bangs Up", 0f, 0f, 1f, false, null, null, null); Params[149] = new VisualParam(149, "Bangs_Back_Down", 1, "hair", "Back Bangs Down", "Back Bangs", "Back Bangs Down", 0f, 0f, 2f, false, null, null, null); - Params[150] = new VisualParam(150, "Body Definition", 0, "skin", String.Empty, "Less", "More", 0f, 0f, 1f, false, new int[] { 125, 126, 160, 161, 874, 878 }, null, null); + Params[150] = new VisualParam(150, "Body Definition", 0, "skin", string.Empty, "Less", "More", 0f, 0f, 1f, false, new int[] { 125, 126, 160, 161, 874, 878 }, null, null); Params[151] = new VisualParam(151, "Big_Butt_Legs", 1, "shape", "Butt Size", "Regular", "Large", 0f, 0f, 1f, false, null, null, null); Params[152] = new VisualParam(152, "Muscular_Legs", 1, "shape", "Leg Muscles", "Regular Muscles", "More Muscles", 0f, 0f, 1.5f, false, null, null, null); - Params[153] = new VisualParam(153, "Male_Legs", 1, "shape", String.Empty, String.Empty, String.Empty, 0f, 0f, 1f, false, null, null, null); + Params[153] = new VisualParam(153, "Male_Legs", 1, "shape", string.Empty, string.Empty, string.Empty, 0f, 0f, 1f, false, null, null, null); Params[155] = new VisualParam(155, "Lip Width", 0, "shape", "Lip Width", "Narrow Lips", "Wide Lips", 0f, -0.9f, 1.3f, false, new int[] { 29, 30 }, null, null); - Params[156] = new VisualParam(156, "Big_Belly_Legs", 1, "shape", String.Empty, String.Empty, String.Empty, 0f, 0f, 1f, false, null, null, null); - Params[157] = new VisualParam(157, "Belly Size", 0, "shape", String.Empty, "Small", "Big", 0f, 0f, 1f, false, new int[] { 104, 156, 849 }, null, null); - Params[162] = new VisualParam(162, "Facial Definition", 0, "skin", String.Empty, "Less", "More", 0f, 0f, 1f, false, new int[] { 158, 159, 873 }, null, null); - Params[163] = new VisualParam(163, "Wrinkles", 0, "skin", String.Empty, "Less", "More", 0f, 0f, 1f, false, new int[] { 118 }, null, null); - Params[165] = new VisualParam(165, "Freckles", 0, "skin", String.Empty, "Less", "More", 0f, 0f, 1f, false, null, new VisualAlphaParam(0.5f, "freckles_alpha.tga", true, false), null); - Params[166] = new VisualParam(166, "Sideburns", 0, "hair", String.Empty, "Short Sideburns", "Mutton Chops", 0f, 0f, 1f, false, new int[] { 1004, 1005 }, null, null); - Params[167] = new VisualParam(167, "Moustache", 0, "hair", String.Empty, "Chaplin", "Handlebars", 0f, 0f, 1f, false, new int[] { 1006, 1007 }, null, null); - Params[168] = new VisualParam(168, "Soulpatch", 0, "hair", String.Empty, "Less soul", "More soul", 0f, 0f, 1f, false, new int[] { 1008, 1009 }, null, null); - Params[169] = new VisualParam(169, "Chin Curtains", 0, "hair", String.Empty, "Less Curtains", "More Curtains", 0f, 0f, 1f, false, new int[] { 1010, 1011 }, null, null); + Params[156] = new VisualParam(156, "Big_Belly_Legs", 1, "shape", string.Empty, string.Empty, string.Empty, 0f, 0f, 1f, false, null, null, null); + Params[157] = new VisualParam(157, "Belly Size", 0, "shape", string.Empty, "Small", "Big", 0f, 0f, 1f, false, new int[] { 104, 156, 849 }, null, null); + Params[162] = new VisualParam(162, "Facial Definition", 0, "skin", string.Empty, "Less", "More", 0f, 0f, 1f, false, new int[] { 158, 159, 873 }, null, null); + Params[163] = new VisualParam(163, "Wrinkles", 0, "skin", string.Empty, "Less", "More", 0f, 0f, 1f, false, new int[] { 118 }, null, null); + Params[165] = new VisualParam(165, "Freckles", 0, "skin", string.Empty, "Less", "More", 0f, 0f, 1f, false, null, new VisualAlphaParam(0.5f, "freckles_alpha.tga", true, false), null); + Params[166] = new VisualParam(166, "Sideburns", 0, "hair", string.Empty, "Short Sideburns", "Mutton Chops", 0f, 0f, 1f, false, new int[] { 1004, 1005 }, null, null); + Params[167] = new VisualParam(167, "Moustache", 0, "hair", string.Empty, "Chaplin", "Handlebars", 0f, 0f, 1f, false, new int[] { 1006, 1007 }, null, null); + Params[168] = new VisualParam(168, "Soulpatch", 0, "hair", string.Empty, "Less soul", "More soul", 0f, 0f, 1f, false, new int[] { 1008, 1009 }, null, null); + Params[169] = new VisualParam(169, "Chin Curtains", 0, "hair", string.Empty, "Less Curtains", "More Curtains", 0f, 0f, 1f, false, new int[] { 1010, 1011 }, null, null); Params[171] = new VisualParam(171, "Hair_Front_Down", 1, "hair", "Front Hair Down", "Front Hair", "Front Hair Down", 0f, 0f, 1f, false, null, null, null); Params[172] = new VisualParam(172, "Hair_Front_Up", 1, "hair", "Front Hair Up", "Front Hair", "Front Hair Up", 0f, 0f, 1f, false, null, null, null); Params[173] = new VisualParam(173, "Hair_Sides_Down", 1, "hair", "Sides Hair Down", "Sides Hair", "Sides Hair Down", 0f, 0f, 1f, false, null, null, null); @@ -262,17 +262,17 @@ namespace OpenMetaverse Params[191] = new VisualParam(191, "Hair_Tilt_Left", 1, "hair", "Hair Tilted Left", "Hair", "Tilt Left", 0f, 0f, 1f, false, null, null, null); Params[192] = new VisualParam(192, "Bangs_Part_Middle", 0, "hair", "Part Bangs", "No Part", "Part Bangs", 0f, 0f, 1f, false, null, null, null); Params[193] = new VisualParam(193, "Head Shape", 0, "shape", "Head Shape", "More Square", "More Round", 0.5f, 0f, 1f, false, new int[] { 188, 642, 189, 643 }, null, null); - Params[194] = new VisualParam(194, "Eye_Spread", 1, "shape", String.Empty, "Eyes Together", "Eyes Spread", -2f, -2f, 2f, false, null, null, null); - Params[195] = new VisualParam(195, "EyeBone_Spread", 1, "shape", String.Empty, "Eyes Together", "Eyes Spread", -1f, -1f, 1f, false, null, null, null); + Params[194] = new VisualParam(194, "Eye_Spread", 1, "shape", string.Empty, "Eyes Together", "Eyes Spread", -2f, -2f, 2f, false, null, null, null); + Params[195] = new VisualParam(195, "EyeBone_Spread", 1, "shape", string.Empty, "Eyes Together", "Eyes Spread", -1f, -1f, 1f, false, null, null, null); Params[196] = new VisualParam(196, "Eye Spacing", 0, "shape", "Eye Spacing", "Close Set Eyes", "Far Set Eyes", 0f, -2f, 1f, false, new int[] { 194, 195 }, null, null); - Params[197] = new VisualParam(197, "Shoe_Heels", 1, "shoes", String.Empty, "No Heels", "High Heels", 0f, 0f, 1f, false, null, null, null); - Params[198] = new VisualParam(198, "Heel Height", 0, "shoes", String.Empty, "Low Heels", "High Heels", 0f, 0f, 1f, false, new int[] { 197, 500 }, null, null); + Params[197] = new VisualParam(197, "Shoe_Heels", 1, "shoes", string.Empty, "No Heels", "High Heels", 0f, 0f, 1f, false, null, null, null); + Params[198] = new VisualParam(198, "Heel Height", 0, "shoes", string.Empty, "Low Heels", "High Heels", 0f, 0f, 1f, false, new int[] { 197, 500 }, null, null); Params[400] = new VisualParam(400, "Displace_Hair_Facial", 1, "hair", "Hair Thickess", "Cropped Hair", "Bushy Hair", 0f, 0f, 2f, false, null, null, null); Params[500] = new VisualParam(500, "Shoe_Heel_Height", 1, "shoes", "Heel Height", "Low Heels", "High Heels", 0f, 0f, 1f, false, null, null, null); Params[501] = new VisualParam(501, "Shoe_Platform_Height", 1, "shoes", "Platform Height", "Low Platforms", "High Platforms", 0f, 0f, 1f, false, null, null, null); - Params[502] = new VisualParam(502, "Shoe_Platform", 1, "shoes", String.Empty, "No Heels", "High Heels", 0f, 0f, 1f, false, null, null, null); - Params[503] = new VisualParam(503, "Platform Height", 0, "shoes", String.Empty, "Low Platforms", "High Platforms", 0f, 0f, 1f, false, new int[] { 501, 502 }, null, null); - Params[505] = new VisualParam(505, "Lip Thickness", 0, "shape", String.Empty, "Thin Lips", "Fat Lips", 0.5f, 0f, 1f, false, new int[] { 26, 28 }, null, null); + Params[502] = new VisualParam(502, "Shoe_Platform", 1, "shoes", string.Empty, "No Heels", "High Heels", 0f, 0f, 1f, false, null, null, null); + Params[503] = new VisualParam(503, "Platform Height", 0, "shoes", string.Empty, "Low Platforms", "High Platforms", 0f, 0f, 1f, false, new int[] { 501, 502 }, null, null); + Params[505] = new VisualParam(505, "Lip Thickness", 0, "shape", string.Empty, "Thin Lips", "Fat Lips", 0.5f, 0f, 1f, false, new int[] { 26, 28 }, null, null); Params[506] = new VisualParam(506, "Mouth_Height", 0, "shape", "Mouth Position", "High", "Low", -2f, -2f, 2f, false, null, null, null); Params[507] = new VisualParam(507, "Breast_Gravity", 0, "shape", "Breast Buoyancy", "Less Gravity", "More Gravity", 0f, -1.5f, 2f, false, null, null, null); Params[508] = new VisualParam(508, "Shoe_Platform_Width", 0, "shoes", "Platform Width", "Narrow", "Wide", -1f, -1f, 2f, false, null, null, null); @@ -280,348 +280,348 @@ namespace OpenMetaverse Params[510] = new VisualParam(510, "Shoe_Heel_Thick", 1, "shoes", "Heel Shape", "default Heels", "Thick Heels", 0f, 0f, 1f, false, null, null, null); Params[511] = new VisualParam(511, "Shoe_Toe_Point", 1, "shoes", "Toe Shape", "Default Toe", "Pointy Toe", 0f, 0f, 1f, false, null, null, null); Params[512] = new VisualParam(512, "Shoe_Toe_Square", 1, "shoes", "Toe Shape", "Default Toe", "Square Toe", 0f, 0f, 1f, false, null, null, null); - Params[513] = new VisualParam(513, "Heel Shape", 0, "shoes", String.Empty, "Pointy Heels", "Thick Heels", 0.5f, 0f, 1f, false, new int[] { 509, 510 }, null, null); - Params[514] = new VisualParam(514, "Toe Shape", 0, "shoes", String.Empty, "Pointy", "Square", 0.5f, 0f, 1f, false, new int[] { 511, 512 }, null, null); + Params[513] = new VisualParam(513, "Heel Shape", 0, "shoes", string.Empty, "Pointy Heels", "Thick Heels", 0.5f, 0f, 1f, false, new int[] { 509, 510 }, null, null); + Params[514] = new VisualParam(514, "Toe Shape", 0, "shoes", string.Empty, "Pointy", "Square", 0.5f, 0f, 1f, false, new int[] { 511, 512 }, null, null); Params[515] = new VisualParam(515, "Foot_Size", 0, "shape", "Foot Size", "Small", "Big", -1f, -1f, 3f, false, null, null, null); - Params[516] = new VisualParam(516, "Displace_Loose_Lowerbody", 1, "pants", "Pants Fit", String.Empty, String.Empty, 0f, 0f, 1f, false, null, null, null); + Params[516] = new VisualParam(516, "Displace_Loose_Lowerbody", 1, "pants", "Pants Fit", string.Empty, string.Empty, 0f, 0f, 1f, false, null, null, null); Params[517] = new VisualParam(517, "Wide_Nose", 0, "shape", "Nose Width", "Narrow", "Wide", -0.5f, -0.5f, 1f, false, null, null, null); Params[518] = new VisualParam(518, "Eyelashes_Long", 0, "shape", "Eyelash Length", "Short", "Long", -0.3f, -0.3f, 1.5f, false, null, null, null); - Params[600] = new VisualParam(600, "Sleeve Length Cloth", 1, "shirt", String.Empty, String.Empty, String.Empty, 0.7f, 0f, 0.85f, false, null, new VisualAlphaParam(0.01f, "shirt_sleeve_alpha.tga", false, false), null); - Params[601] = new VisualParam(601, "Shirt Bottom Cloth", 1, "shirt", String.Empty, String.Empty, String.Empty, 0.8f, 0f, 1f, false, null, new VisualAlphaParam(0.05f, "shirt_bottom_alpha.tga", false, true), null); - Params[602] = new VisualParam(602, "Collar Front Height Cloth", 1, "shirt", String.Empty, String.Empty, String.Empty, 0.8f, 0f, 1f, false, null, new VisualAlphaParam(0.05f, "shirt_collar_alpha.tga", false, true), null); - Params[603] = new VisualParam(603, "Sleeve Length", 0, "undershirt", String.Empty, "Short", "Long", 0.4f, 0.01f, 1f, false, new int[] { 1042, 1043 }, null, null); - Params[604] = new VisualParam(604, "Bottom", 0, "undershirt", String.Empty, "Short", "Long", 0.85f, 0f, 1f, false, new int[] { 1044, 1045 }, null, null); - Params[605] = new VisualParam(605, "Collar Front", 0, "undershirt", String.Empty, "Low", "High", 0.84f, 0f, 1f, false, new int[] { 1046, 1047 }, null, null); - Params[606] = new VisualParam(606, "Sleeve Length", 0, "jacket", String.Empty, "Short", "Long", 0.8f, 0f, 1f, false, new int[] { 1019, 1039, 1020 }, null, null); - Params[607] = new VisualParam(607, "Collar Front", 0, "jacket", String.Empty, "Low", "High", 0.8f, 0f, 1f, false, new int[] { 1021, 1040, 1022 }, null, null); + Params[600] = new VisualParam(600, "Sleeve Length Cloth", 1, "shirt", string.Empty, string.Empty, string.Empty, 0.7f, 0f, 0.85f, false, null, new VisualAlphaParam(0.01f, "shirt_sleeve_alpha.tga", false, false), null); + Params[601] = new VisualParam(601, "Shirt Bottom Cloth", 1, "shirt", string.Empty, string.Empty, string.Empty, 0.8f, 0f, 1f, false, null, new VisualAlphaParam(0.05f, "shirt_bottom_alpha.tga", false, true), null); + Params[602] = new VisualParam(602, "Collar Front Height Cloth", 1, "shirt", string.Empty, string.Empty, string.Empty, 0.8f, 0f, 1f, false, null, new VisualAlphaParam(0.05f, "shirt_collar_alpha.tga", false, true), null); + Params[603] = new VisualParam(603, "Sleeve Length", 0, "undershirt", string.Empty, "Short", "Long", 0.4f, 0.01f, 1f, false, new int[] { 1042, 1043 }, null, null); + Params[604] = new VisualParam(604, "Bottom", 0, "undershirt", string.Empty, "Short", "Long", 0.85f, 0f, 1f, false, new int[] { 1044, 1045 }, null, null); + Params[605] = new VisualParam(605, "Collar Front", 0, "undershirt", string.Empty, "Low", "High", 0.84f, 0f, 1f, false, new int[] { 1046, 1047 }, null, null); + Params[606] = new VisualParam(606, "Sleeve Length", 0, "jacket", string.Empty, "Short", "Long", 0.8f, 0f, 1f, false, new int[] { 1019, 1039, 1020 }, null, null); + Params[607] = new VisualParam(607, "Collar Front", 0, "jacket", string.Empty, "Low", "High", 0.8f, 0f, 1f, false, new int[] { 1021, 1040, 1022 }, null, null); Params[608] = new VisualParam(608, "bottom length lower", 0, "jacket", "Jacket Length", "Short", "Long", 0.8f, 0f, 1f, false, new int[] { 620, 1025, 1037, 621, 1027, 1033 }, null, null); Params[609] = new VisualParam(609, "open jacket", 0, "jacket", "Open Front", "Open", "Closed", 0.2f, 0f, 1f, false, new int[] { 622, 1026, 1038, 623, 1028, 1034 }, null, null); - Params[614] = new VisualParam(614, "Waist Height Cloth", 1, "pants", String.Empty, String.Empty, String.Empty, 0.8f, 0f, 1f, false, null, new VisualAlphaParam(0.05f, "pants_waist_alpha.tga", false, false), null); - Params[615] = new VisualParam(615, "Pants Length Cloth", 1, "pants", String.Empty, String.Empty, String.Empty, 0.8f, 0f, 1f, false, null, new VisualAlphaParam(0.01f, "pants_length_alpha.tga", false, false), null); - Params[616] = new VisualParam(616, "Shoe Height", 0, "shoes", String.Empty, "Short", "Tall", 0.1f, 0f, 1f, false, new int[] { 1052, 1053 }, null, null); - Params[617] = new VisualParam(617, "Socks Length", 0, "socks", String.Empty, "Short", "Long", 0.35f, 0f, 1f, false, new int[] { 1050, 1051 }, null, null); - Params[619] = new VisualParam(619, "Pants Length", 0, "underpants", String.Empty, "Short", "Long", 0.3f, 0f, 1f, false, new int[] { 1054, 1055 }, null, null); - Params[620] = new VisualParam(620, "bottom length upper", 1, "jacket", String.Empty, "hi cut", "low cut", 0.8f, 0f, 1f, false, null, new VisualAlphaParam(0.01f, "jacket_length_upper_alpha.tga", false, true), null); - Params[621] = new VisualParam(621, "bottom length lower", 1, "jacket", String.Empty, "hi cut", "low cut", 0.8f, 0f, 1f, false, null, new VisualAlphaParam(0.01f, "jacket_length_lower_alpha.tga", false, false), null); - Params[622] = new VisualParam(622, "open upper", 1, "jacket", String.Empty, "closed", "open", 0.8f, 0f, 1f, false, null, new VisualAlphaParam(0.01f, "jacket_open_upper_alpha.tga", false, true), null); - Params[623] = new VisualParam(623, "open lower", 1, "jacket", String.Empty, "open", "closed", 0.8f, 0f, 1f, false, null, new VisualAlphaParam(0.01f, "jacket_open_lower_alpha.tga", false, true), null); - Params[624] = new VisualParam(624, "Pants Waist", 0, "underpants", String.Empty, "Low", "High", 0.8f, 0f, 1f, false, new int[] { 1056, 1057 }, null, null); + Params[614] = new VisualParam(614, "Waist Height Cloth", 1, "pants", string.Empty, string.Empty, string.Empty, 0.8f, 0f, 1f, false, null, new VisualAlphaParam(0.05f, "pants_waist_alpha.tga", false, false), null); + Params[615] = new VisualParam(615, "Pants Length Cloth", 1, "pants", string.Empty, string.Empty, string.Empty, 0.8f, 0f, 1f, false, null, new VisualAlphaParam(0.01f, "pants_length_alpha.tga", false, false), null); + Params[616] = new VisualParam(616, "Shoe Height", 0, "shoes", string.Empty, "Short", "Tall", 0.1f, 0f, 1f, false, new int[] { 1052, 1053 }, null, null); + Params[617] = new VisualParam(617, "Socks Length", 0, "socks", string.Empty, "Short", "Long", 0.35f, 0f, 1f, false, new int[] { 1050, 1051 }, null, null); + Params[619] = new VisualParam(619, "Pants Length", 0, "underpants", string.Empty, "Short", "Long", 0.3f, 0f, 1f, false, new int[] { 1054, 1055 }, null, null); + Params[620] = new VisualParam(620, "bottom length upper", 1, "jacket", string.Empty, "hi cut", "low cut", 0.8f, 0f, 1f, false, null, new VisualAlphaParam(0.01f, "jacket_length_upper_alpha.tga", false, true), null); + Params[621] = new VisualParam(621, "bottom length lower", 1, "jacket", string.Empty, "hi cut", "low cut", 0.8f, 0f, 1f, false, null, new VisualAlphaParam(0.01f, "jacket_length_lower_alpha.tga", false, false), null); + Params[622] = new VisualParam(622, "open upper", 1, "jacket", string.Empty, "closed", "open", 0.8f, 0f, 1f, false, null, new VisualAlphaParam(0.01f, "jacket_open_upper_alpha.tga", false, true), null); + Params[623] = new VisualParam(623, "open lower", 1, "jacket", string.Empty, "open", "closed", 0.8f, 0f, 1f, false, null, new VisualAlphaParam(0.01f, "jacket_open_lower_alpha.tga", false, true), null); + Params[624] = new VisualParam(624, "Pants Waist", 0, "underpants", string.Empty, "Low", "High", 0.8f, 0f, 1f, false, new int[] { 1056, 1057 }, null, null); Params[625] = new VisualParam(625, "Leg_Pantflair", 0, "pants", "Cuff Flare", "Tight Cuffs", "Flared Cuffs", 0f, 0f, 1.5f, false, null, null, null); Params[626] = new VisualParam(626, "Big_Chest", 1, "shape", "Chest Size", "Small", "Large", 0f, 0f, 1f, false, null, null, null); Params[627] = new VisualParam(627, "Small_Chest", 1, "shape", "Chest Size", "Large", "Small", 0f, 0f, 1f, false, null, null, null); - Params[628] = new VisualParam(628, "Displace_Loose_Upperbody", 1, "shirt", "Shirt Fit", String.Empty, String.Empty, 0f, 0f, 1f, false, null, null, null); - Params[629] = new VisualParam(629, "Forehead Angle", 0, "shape", String.Empty, "More Vertical", "More Sloped", 0.5f, 0f, 1f, false, new int[] { 630, 644, 631, 645 }, null, null); + Params[628] = new VisualParam(628, "Displace_Loose_Upperbody", 1, "shirt", "Shirt Fit", string.Empty, string.Empty, 0f, 0f, 1f, false, null, null, null); + Params[629] = new VisualParam(629, "Forehead Angle", 0, "shape", string.Empty, "More Vertical", "More Sloped", 0.5f, 0f, 1f, false, new int[] { 630, 644, 631, 645 }, null, null); Params[633] = new VisualParam(633, "Fat_Head", 1, "shape", "Fat Head", "Skinny", "Fat", 0f, 0f, 1f, false, null, null, null); Params[634] = new VisualParam(634, "Fat_Torso", 1, "shape", "Fat Torso", "skinny", "fat", 0f, 0f, 1f, false, null, null, null); Params[635] = new VisualParam(635, "Fat_Legs", 1, "shape", "Fat Torso", "skinny", "fat", 0f, 0f, 1f, false, null, null, null); - Params[637] = new VisualParam(637, "Body Fat", 0, "shape", String.Empty, "Less Body Fat", "More Body Fat", 0f, 0f, 1f, false, new int[] { 633, 634, 635, 851 }, null, null); + Params[637] = new VisualParam(637, "Body Fat", 0, "shape", string.Empty, "Less Body Fat", "More Body Fat", 0f, 0f, 1f, false, new int[] { 633, 634, 635, 851 }, null, null); Params[638] = new VisualParam(638, "Low_Crotch", 0, "pants", "Pants Crotch", "High and Tight", "Low and Loose", 0f, 0f, 1.3f, false, null, null, null); - Params[640] = new VisualParam(640, "Hair_Egg_Head", 1, "hair", String.Empty, String.Empty, String.Empty, -1.3f, -1.3f, 1f, false, null, null, null); - Params[641] = new VisualParam(641, "Hair_Squash_Stretch_Head", 1, "hair", String.Empty, String.Empty, String.Empty, -0.5f, -0.5f, 1f, false, null, null, null); - Params[642] = new VisualParam(642, "Hair_Square_Head", 1, "hair", String.Empty, String.Empty, String.Empty, 0f, 0f, 1f, false, null, null, null); - Params[643] = new VisualParam(643, "Hair_Round_Head", 1, "hair", String.Empty, String.Empty, String.Empty, 0f, 0f, 1f, false, null, null, null); - Params[644] = new VisualParam(644, "Hair_Forehead_Round", 1, "hair", String.Empty, String.Empty, String.Empty, 0f, 0f, 1f, false, null, null, null); - Params[645] = new VisualParam(645, "Hair_Forehead_Slant", 1, "hair", String.Empty, String.Empty, String.Empty, 0f, 0f, 1f, false, null, null, null); + Params[640] = new VisualParam(640, "Hair_Egg_Head", 1, "hair", string.Empty, string.Empty, string.Empty, -1.3f, -1.3f, 1f, false, null, null, null); + Params[641] = new VisualParam(641, "Hair_Squash_Stretch_Head", 1, "hair", string.Empty, string.Empty, string.Empty, -0.5f, -0.5f, 1f, false, null, null, null); + Params[642] = new VisualParam(642, "Hair_Square_Head", 1, "hair", string.Empty, string.Empty, string.Empty, 0f, 0f, 1f, false, null, null, null); + Params[643] = new VisualParam(643, "Hair_Round_Head", 1, "hair", string.Empty, string.Empty, string.Empty, 0f, 0f, 1f, false, null, null, null); + Params[644] = new VisualParam(644, "Hair_Forehead_Round", 1, "hair", string.Empty, string.Empty, string.Empty, 0f, 0f, 1f, false, null, null, null); + Params[645] = new VisualParam(645, "Hair_Forehead_Slant", 1, "hair", string.Empty, string.Empty, string.Empty, 0f, 0f, 1f, false, null, null, null); Params[646] = new VisualParam(646, "Egg_Head", 0, "shape", "Egg Head", "Chin Heavy", "Forehead Heavy", 0f, -1.3f, 1f, false, new int[] { 640, 186 }, null, null); Params[647] = new VisualParam(647, "Squash_Stretch_Head", 0, "shape", "Head Stretch", "Squash Head", "Stretch Head", 0f, -0.5f, 1f, false, new int[] { 641, 187 }, null, null); Params[648] = new VisualParam(648, "Scrawny_Torso", 1, "shape", "Torso Muscles", "Regular", "Scrawny", 0f, 0f, 1.3f, false, null, null, null); Params[649] = new VisualParam(649, "Torso Muscles", 0, "shape", "Torso Muscles", "Less Muscular", "More Muscular", 0.5f, 0f, 1f, false, new int[] { 648, 106 }, null, null); Params[650] = new VisualParam(650, "Eyelid_Corner_Up", 0, "shape", "Outer Eye Corner", "Corner Down", "Corner Up", -1.3f, -1.3f, 1.2f, false, null, null, null); Params[651] = new VisualParam(651, "Scrawny_Legs", 1, "shape", "Scrawny Leg", "Regular Muscles", "Less Muscles", 0f, 0f, 1.5f, false, null, null, null); - Params[652] = new VisualParam(652, "Leg Muscles", 0, "shape", String.Empty, "Less Muscular", "More Muscular", 0.5f, 0f, 1f, false, new int[] { 651, 152 }, null, null); + Params[652] = new VisualParam(652, "Leg Muscles", 0, "shape", string.Empty, "Less Muscular", "More Muscular", 0.5f, 0f, 1f, false, new int[] { 651, 152 }, null, null); Params[653] = new VisualParam(653, "Tall_Lips", 0, "shape", "Lip Fullness", "Less Full", "More Full", -1f, -1f, 2f, false, null, null, null); Params[654] = new VisualParam(654, "Shoe_Toe_Thick", 0, "shoes", "Toe Thickness", "Flat Toe", "Thick Toe", 0f, 0f, 2f, false, null, null, null); Params[655] = new VisualParam(655, "Head Size", 1, "shape", "Head Size", "Small Head", "Big Head", -0.25f, -0.25f, 0.1f, false, null, null, null); Params[656] = new VisualParam(656, "Crooked_Nose", 0, "shape", "Crooked Nose", "Nose Left", "Nose Right", -2f, -2f, 2f, false, null, null, null); Params[657] = new VisualParam(657, "Smile_Mouth", 1, "shape", "Mouth Corner", "Corner Normal", "Corner Up", 0f, 0f, 1.4f, false, null, null, null); Params[658] = new VisualParam(658, "Frown_Mouth", 1, "shape", "Mouth Corner", "Corner Normal", "Corner Down", 0f, 0f, 1.2f, false, null, null, null); - Params[659] = new VisualParam(659, "Mouth Corner", 0, "shape", String.Empty, "Corner Down", "Corner Up", 0.5f, 0f, 1f, false, new int[] { 658, 657 }, null, null); + Params[659] = new VisualParam(659, "Mouth Corner", 0, "shape", string.Empty, "Corner Down", "Corner Up", 0.5f, 0f, 1f, false, new int[] { 658, 657 }, null, null); Params[660] = new VisualParam(660, "Shear_Head", 1, "shape", "Shear Face", "Shear Left", "Shear Right", 0f, -2f, 2f, false, null, null, null); - Params[661] = new VisualParam(661, "EyeBone_Head_Shear", 1, "shape", String.Empty, "Eyes Shear Left Up", "Eyes Shear Right Up", -2f, -2f, 2f, false, null, null, null); - Params[662] = new VisualParam(662, "Face Shear", 0, "shape", String.Empty, "Shear Right Up", "Shear Left Up", 0.5f, 0f, 1f, false, new int[] { 660, 661, 774 }, null, null); + Params[661] = new VisualParam(661, "EyeBone_Head_Shear", 1, "shape", string.Empty, "Eyes Shear Left Up", "Eyes Shear Right Up", -2f, -2f, 2f, false, null, null, null); + Params[662] = new VisualParam(662, "Face Shear", 0, "shape", string.Empty, "Shear Right Up", "Shear Left Up", 0.5f, 0f, 1f, false, new int[] { 660, 661, 774 }, null, null); Params[663] = new VisualParam(663, "Shift_Mouth", 0, "shape", "Shift Mouth", "Shift Left", "Shift Right", 0f, -2f, 2f, false, null, null, null); Params[664] = new VisualParam(664, "Pop_Eye", 0, "shape", "Eye Pop", "Pop Right Eye", "Pop Left Eye", 0f, -1.3f, 1.3f, false, null, null, null); Params[665] = new VisualParam(665, "Jaw_Jut", 0, "shape", "Jaw Jut", "Overbite", "Underbite", 0f, -2f, 2f, false, null, null, null); Params[674] = new VisualParam(674, "Hair_Shear_Back", 0, "hair", "Shear Back", "Full Back", "Sheared Back", -0.3f, -1f, 2f, false, null, null, null); - Params[675] = new VisualParam(675, "Hand Size", 0, "shape", String.Empty, "Small Hands", "Large Hands", -0.3f, -0.3f, 0.3f, false, null, null, null); + Params[675] = new VisualParam(675, "Hand Size", 0, "shape", string.Empty, "Small Hands", "Large Hands", -0.3f, -0.3f, 0.3f, false, null, null, null); Params[676] = new VisualParam(676, "Love_Handles", 0, "shape", "Love Handles", "Less Love", "More Love", 0f, -1f, 2f, false, new int[] { 855, 856 }, null, null); Params[677] = new VisualParam(677, "Scrawny_Torso_Male", 1, "shape", "Torso Scrawny", "Regular", "Scrawny", 0f, 0f, 1.3f, false, null, null, null); - Params[678] = new VisualParam(678, "Torso Muscles", 0, "shape", String.Empty, "Less Muscular", "More Muscular", 0.5f, 0f, 1f, false, new int[] { 677, 106 }, null, null); + Params[678] = new VisualParam(678, "Torso Muscles", 0, "shape", string.Empty, "Less Muscular", "More Muscular", 0.5f, 0f, 1f, false, new int[] { 677, 106 }, null, null); Params[679] = new VisualParam(679, "Eyeball_Size", 1, "shape", "Eyeball Size", "small eye", "big eye", -0.25f, -0.25f, 0.1f, false, null, null, null); Params[681] = new VisualParam(681, "Eyeball_Size", 1, "shape", "Eyeball Size", "small eye", "big eye", -0.25f, -0.25f, 0.1f, false, null, null, null); Params[682] = new VisualParam(682, "Head Size", 0, "shape", "Head Size", "Small Head", "Big Head", 0.5f, 0f, 1f, false, new int[] { 679, 694, 680, 681, 655 }, null, null); - Params[683] = new VisualParam(683, "Neck Thickness", 0, "shape", String.Empty, "Skinny Neck", "Thick Neck", -0.15f, -0.4f, 0.2f, false, null, null, null); + Params[683] = new VisualParam(683, "Neck Thickness", 0, "shape", string.Empty, "Skinny Neck", "Thick Neck", -0.15f, -0.4f, 0.2f, false, null, null, null); Params[684] = new VisualParam(684, "Breast_Female_Cleavage", 0, "shape", "Breast Cleavage", "Separate", "Join", 0f, -0.3f, 1.3f, false, null, null, null); Params[685] = new VisualParam(685, "Chest_Male_No_Pecs", 0, "shape", "Pectorals", "Big Pectorals", "Sunken Chest", 0f, -0.5f, 1.1f, false, null, null, null); Params[686] = new VisualParam(686, "Head_Eyes_Big", 1, "shape", "Eye Size", "Beady Eyes", "Anime Eyes", 0f, -2f, 2f, false, null, null, null); Params[687] = new VisualParam(687, "Eyeball_Size", 1, "shape", "Big Eyeball", "small eye", "big eye", -0.25f, -0.25f, 0.25f, false, null, null, null); - Params[689] = new VisualParam(689, "EyeBone_Big_Eyes", 1, "shape", String.Empty, "Eyes Back", "Eyes Forward", -1f, -1f, 1f, false, null, null, null); + Params[689] = new VisualParam(689, "EyeBone_Big_Eyes", 1, "shape", string.Empty, "Eyes Back", "Eyes Forward", -1f, -1f, 1f, false, null, null, null); Params[690] = new VisualParam(690, "Eye Size", 0, "shape", "Eye Size", "Beady Eyes", "Anime Eyes", 0.5f, 0f, 1f, false, new int[] { 686, 687, 695, 688, 691, 689 }, null, null); Params[691] = new VisualParam(691, "Eyeball_Size", 1, "shape", "Big Eyeball", "small eye", "big eye", -0.25f, -0.25f, 0.25f, false, null, null, null); - Params[692] = new VisualParam(692, "Leg Length", 0, "shape", String.Empty, "Short Legs", "Long Legs", -1f, -1f, 1f, false, null, null, null); - Params[693] = new VisualParam(693, "Arm Length", 0, "shape", String.Empty, "Short Arms", "Long arms", 0.6f, -1f, 1f, false, null, null, null); + Params[692] = new VisualParam(692, "Leg Length", 0, "shape", string.Empty, "Short Legs", "Long Legs", -1f, -1f, 1f, false, null, null, null); + Params[693] = new VisualParam(693, "Arm Length", 0, "shape", string.Empty, "Short Arms", "Long arms", 0.6f, -1f, 1f, false, null, null, null); Params[694] = new VisualParam(694, "Eyeball_Size", 1, "shape", "Eyeball Size", "small eye", "big eye", -0.25f, -0.25f, 0.1f, false, null, null, null); Params[695] = new VisualParam(695, "Eyeball_Size", 1, "shape", "Big Eyeball", "small eye", "big eye", -0.25f, -0.25f, 0.25f, false, null, null, null); - Params[700] = new VisualParam(700, "Lipstick Color", 0, "skin", String.Empty, "Pink", "Black", 0.25f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(245, 161, 177, 200), new Color4(216, 37, 67, 200), new Color4(178, 48, 76, 200), new Color4(68, 0, 11, 200), new Color4(252, 207, 184, 200), new Color4(241, 136, 106, 200), new Color4(208, 110, 85, 200), new Color4(106, 28, 18, 200), new Color4(58, 26, 49, 200), new Color4(14, 14, 14, 200) })); - Params[701] = new VisualParam(701, "Lipstick", 0, "skin", String.Empty, "No Lipstick", "More Lipstick", 0f, 0f, 0.9f, false, null, new VisualAlphaParam(0.05f, "lipstick_alpha.tga", true, false), null); - Params[702] = new VisualParam(702, "Lipgloss", 0, "skin", String.Empty, "No Lipgloss", "Glossy", 0f, 0f, 1f, false, null, new VisualAlphaParam(0.2f, "lipgloss_alpha.tga", true, false), null); - Params[703] = new VisualParam(703, "Eyeliner", 0, "skin", String.Empty, "No Eyeliner", "Full Eyeliner", 0f, 0f, 1f, false, null, new VisualAlphaParam(0.1f, "eyeliner_alpha.tga", true, false), null); - Params[704] = new VisualParam(704, "Blush", 0, "skin", String.Empty, "No Blush", "More Blush", 0f, 0f, 0.9f, false, null, new VisualAlphaParam(0.3f, "blush_alpha.tga", true, false), null); - Params[705] = new VisualParam(705, "Blush Color", 0, "skin", String.Empty, "Pink", "Orange", 0.5f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(253, 162, 193, 200), new Color4(247, 131, 152, 200), new Color4(213, 122, 140, 200), new Color4(253, 152, 144, 200), new Color4(236, 138, 103, 200), new Color4(195, 128, 122, 200), new Color4(148, 103, 100, 200), new Color4(168, 95, 62, 200) })); - Params[706] = new VisualParam(706, "Out Shdw Opacity", 0, "skin", String.Empty, "Clear", "Opaque", 0.6f, 0.2f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Blend, new Color4[] { new Color4(255, 255, 255, 0), new Color4(255, 255, 255, 255) })); - Params[707] = new VisualParam(707, "Outer Shadow", 0, "skin", String.Empty, "No Eyeshadow", "More Eyeshadow", 0f, 0f, 0.7f, false, null, new VisualAlphaParam(0.05f, "eyeshadow_outer_alpha.tga", true, false), null); - Params[708] = new VisualParam(708, "Out Shdw Color", 0, "skin", String.Empty, "Light", "Dark", 0f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(252, 247, 246, 255), new Color4(255, 206, 206, 255), new Color4(233, 135, 149, 255), new Color4(220, 168, 192, 255), new Color4(228, 203, 232, 255), new Color4(255, 234, 195, 255), new Color4(230, 157, 101, 255), new Color4(255, 147, 86, 255), new Color4(228, 110, 89, 255), new Color4(228, 150, 120, 255), new Color4(223, 227, 213, 255), new Color4(96, 116, 87, 255), new Color4(88, 143, 107, 255), new Color4(194, 231, 223, 255), new Color4(207, 227, 234, 255), new Color4(41, 171, 212, 255), new Color4(180, 137, 130, 255), new Color4(173, 125, 105, 255), new Color4(144, 95, 98, 255), new Color4(115, 70, 77, 255), new Color4(155, 78, 47, 255), new Color4(239, 239, 239, 255), new Color4(194, 194, 194, 255), new Color4(120, 120, 120, 255), new Color4(10, 10, 10, 255) })); - Params[709] = new VisualParam(709, "Inner Shadow", 0, "skin", String.Empty, "No Eyeshadow", "More Eyeshadow", 0f, 0f, 1f, false, null, new VisualAlphaParam(0.2f, "eyeshadow_inner_alpha.tga", true, false), null); - Params[710] = new VisualParam(710, "Nail Polish", 0, "skin", String.Empty, "No Polish", "Painted Nails", 0f, 0f, 1f, false, null, new VisualAlphaParam(0.1f, "nailpolish_alpha.tga", true, false), null); - Params[711] = new VisualParam(711, "Blush Opacity", 0, "skin", String.Empty, "Clear", "Opaque", 0.5f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Blend, new Color4[] { new Color4(255, 255, 255, 0), new Color4(255, 255, 255, 255) })); - Params[712] = new VisualParam(712, "In Shdw Color", 0, "skin", String.Empty, "Light", "Dark", 0f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(252, 247, 246, 255), new Color4(255, 206, 206, 255), new Color4(233, 135, 149, 255), new Color4(220, 168, 192, 255), new Color4(228, 203, 232, 255), new Color4(255, 234, 195, 255), new Color4(230, 157, 101, 255), new Color4(255, 147, 86, 255), new Color4(228, 110, 89, 255), new Color4(228, 150, 120, 255), new Color4(223, 227, 213, 255), new Color4(96, 116, 87, 255), new Color4(88, 143, 107, 255), new Color4(194, 231, 223, 255), new Color4(207, 227, 234, 255), new Color4(41, 171, 212, 255), new Color4(180, 137, 130, 255), new Color4(173, 125, 105, 255), new Color4(144, 95, 98, 255), new Color4(115, 70, 77, 255), new Color4(155, 78, 47, 255), new Color4(239, 239, 239, 255), new Color4(194, 194, 194, 255), new Color4(120, 120, 120, 255), new Color4(10, 10, 10, 255) })); - Params[713] = new VisualParam(713, "In Shdw Opacity", 0, "skin", String.Empty, "Clear", "Opaque", 0.7f, 0.2f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Blend, new Color4[] { new Color4(255, 255, 255, 0), new Color4(255, 255, 255, 255) })); - Params[714] = new VisualParam(714, "Eyeliner Color", 0, "skin", String.Empty, "Dark Green", "Black", 0f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(24, 98, 40, 250), new Color4(9, 100, 127, 250), new Color4(61, 93, 134, 250), new Color4(70, 29, 27, 250), new Color4(115, 75, 65, 250), new Color4(100, 100, 100, 250), new Color4(91, 80, 74, 250), new Color4(112, 42, 76, 250), new Color4(14, 14, 14, 250) })); - Params[715] = new VisualParam(715, "Nail Polish Color", 0, "skin", String.Empty, "Pink", "Black", 0f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(255, 187, 200, 255), new Color4(194, 102, 127, 255), new Color4(227, 34, 99, 255), new Color4(168, 41, 60, 255), new Color4(97, 28, 59, 255), new Color4(234, 115, 93, 255), new Color4(142, 58, 47, 255), new Color4(114, 30, 46, 255), new Color4(14, 14, 14, 255) })); - Params[750] = new VisualParam(750, "Eyebrow Density", 0, "hair", String.Empty, "Sparse", "Dense", 0.7f, 0f, 1f, false, new int[] { 1002, 1003 }, null, null); - Params[751] = new VisualParam(751, "5 O'Clock Shadow", 1, "hair", String.Empty, "Dense hair", "Shadow hair", 0.7f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Blend, new Color4[] { new Color4(255, 255, 255, 255), new Color4(255, 255, 255, 30) })); - Params[752] = new VisualParam(752, "Hair Thickness", 0, "hair", String.Empty, "5 O'Clock Shadow", "Bushy Hair", 0.5f, 0f, 1f, false, new int[] { 751, 1012, 400 }, null, null); + Params[700] = new VisualParam(700, "Lipstick Color", 0, "skin", string.Empty, "Pink", "Black", 0.25f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(245, 161, 177, 200), new Color4(216, 37, 67, 200), new Color4(178, 48, 76, 200), new Color4(68, 0, 11, 200), new Color4(252, 207, 184, 200), new Color4(241, 136, 106, 200), new Color4(208, 110, 85, 200), new Color4(106, 28, 18, 200), new Color4(58, 26, 49, 200), new Color4(14, 14, 14, 200) })); + Params[701] = new VisualParam(701, "Lipstick", 0, "skin", string.Empty, "No Lipstick", "More Lipstick", 0f, 0f, 0.9f, false, null, new VisualAlphaParam(0.05f, "lipstick_alpha.tga", true, false), null); + Params[702] = new VisualParam(702, "Lipgloss", 0, "skin", string.Empty, "No Lipgloss", "Glossy", 0f, 0f, 1f, false, null, new VisualAlphaParam(0.2f, "lipgloss_alpha.tga", true, false), null); + Params[703] = new VisualParam(703, "Eyeliner", 0, "skin", string.Empty, "No Eyeliner", "Full Eyeliner", 0f, 0f, 1f, false, null, new VisualAlphaParam(0.1f, "eyeliner_alpha.tga", true, false), null); + Params[704] = new VisualParam(704, "Blush", 0, "skin", string.Empty, "No Blush", "More Blush", 0f, 0f, 0.9f, false, null, new VisualAlphaParam(0.3f, "blush_alpha.tga", true, false), null); + Params[705] = new VisualParam(705, "Blush Color", 0, "skin", string.Empty, "Pink", "Orange", 0.5f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(253, 162, 193, 200), new Color4(247, 131, 152, 200), new Color4(213, 122, 140, 200), new Color4(253, 152, 144, 200), new Color4(236, 138, 103, 200), new Color4(195, 128, 122, 200), new Color4(148, 103, 100, 200), new Color4(168, 95, 62, 200) })); + Params[706] = new VisualParam(706, "Out Shdw Opacity", 0, "skin", string.Empty, "Clear", "Opaque", 0.6f, 0.2f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Blend, new Color4[] { new Color4(255, 255, 255, 0), new Color4(255, 255, 255, 255) })); + Params[707] = new VisualParam(707, "Outer Shadow", 0, "skin", string.Empty, "No Eyeshadow", "More Eyeshadow", 0f, 0f, 0.7f, false, null, new VisualAlphaParam(0.05f, "eyeshadow_outer_alpha.tga", true, false), null); + Params[708] = new VisualParam(708, "Out Shdw Color", 0, "skin", string.Empty, "Light", "Dark", 0f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(252, 247, 246, 255), new Color4(255, 206, 206, 255), new Color4(233, 135, 149, 255), new Color4(220, 168, 192, 255), new Color4(228, 203, 232, 255), new Color4(255, 234, 195, 255), new Color4(230, 157, 101, 255), new Color4(255, 147, 86, 255), new Color4(228, 110, 89, 255), new Color4(228, 150, 120, 255), new Color4(223, 227, 213, 255), new Color4(96, 116, 87, 255), new Color4(88, 143, 107, 255), new Color4(194, 231, 223, 255), new Color4(207, 227, 234, 255), new Color4(41, 171, 212, 255), new Color4(180, 137, 130, 255), new Color4(173, 125, 105, 255), new Color4(144, 95, 98, 255), new Color4(115, 70, 77, 255), new Color4(155, 78, 47, 255), new Color4(239, 239, 239, 255), new Color4(194, 194, 194, 255), new Color4(120, 120, 120, 255), new Color4(10, 10, 10, 255) })); + Params[709] = new VisualParam(709, "Inner Shadow", 0, "skin", string.Empty, "No Eyeshadow", "More Eyeshadow", 0f, 0f, 1f, false, null, new VisualAlphaParam(0.2f, "eyeshadow_inner_alpha.tga", true, false), null); + Params[710] = new VisualParam(710, "Nail Polish", 0, "skin", string.Empty, "No Polish", "Painted Nails", 0f, 0f, 1f, false, null, new VisualAlphaParam(0.1f, "nailpolish_alpha.tga", true, false), null); + Params[711] = new VisualParam(711, "Blush Opacity", 0, "skin", string.Empty, "Clear", "Opaque", 0.5f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Blend, new Color4[] { new Color4(255, 255, 255, 0), new Color4(255, 255, 255, 255) })); + Params[712] = new VisualParam(712, "In Shdw Color", 0, "skin", string.Empty, "Light", "Dark", 0f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(252, 247, 246, 255), new Color4(255, 206, 206, 255), new Color4(233, 135, 149, 255), new Color4(220, 168, 192, 255), new Color4(228, 203, 232, 255), new Color4(255, 234, 195, 255), new Color4(230, 157, 101, 255), new Color4(255, 147, 86, 255), new Color4(228, 110, 89, 255), new Color4(228, 150, 120, 255), new Color4(223, 227, 213, 255), new Color4(96, 116, 87, 255), new Color4(88, 143, 107, 255), new Color4(194, 231, 223, 255), new Color4(207, 227, 234, 255), new Color4(41, 171, 212, 255), new Color4(180, 137, 130, 255), new Color4(173, 125, 105, 255), new Color4(144, 95, 98, 255), new Color4(115, 70, 77, 255), new Color4(155, 78, 47, 255), new Color4(239, 239, 239, 255), new Color4(194, 194, 194, 255), new Color4(120, 120, 120, 255), new Color4(10, 10, 10, 255) })); + Params[713] = new VisualParam(713, "In Shdw Opacity", 0, "skin", string.Empty, "Clear", "Opaque", 0.7f, 0.2f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Blend, new Color4[] { new Color4(255, 255, 255, 0), new Color4(255, 255, 255, 255) })); + Params[714] = new VisualParam(714, "Eyeliner Color", 0, "skin", string.Empty, "Dark Green", "Black", 0f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(24, 98, 40, 250), new Color4(9, 100, 127, 250), new Color4(61, 93, 134, 250), new Color4(70, 29, 27, 250), new Color4(115, 75, 65, 250), new Color4(100, 100, 100, 250), new Color4(91, 80, 74, 250), new Color4(112, 42, 76, 250), new Color4(14, 14, 14, 250) })); + Params[715] = new VisualParam(715, "Nail Polish Color", 0, "skin", string.Empty, "Pink", "Black", 0f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(255, 187, 200, 255), new Color4(194, 102, 127, 255), new Color4(227, 34, 99, 255), new Color4(168, 41, 60, 255), new Color4(97, 28, 59, 255), new Color4(234, 115, 93, 255), new Color4(142, 58, 47, 255), new Color4(114, 30, 46, 255), new Color4(14, 14, 14, 255) })); + Params[750] = new VisualParam(750, "Eyebrow Density", 0, "hair", string.Empty, "Sparse", "Dense", 0.7f, 0f, 1f, false, new int[] { 1002, 1003 }, null, null); + Params[751] = new VisualParam(751, "5 O'Clock Shadow", 1, "hair", string.Empty, "Dense hair", "Shadow hair", 0.7f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Blend, new Color4[] { new Color4(255, 255, 255, 255), new Color4(255, 255, 255, 30) })); + Params[752] = new VisualParam(752, "Hair Thickness", 0, "hair", string.Empty, "5 O'Clock Shadow", "Bushy Hair", 0.5f, 0f, 1f, false, new int[] { 751, 1012, 400 }, null, null); Params[753] = new VisualParam(753, "Saddlebags", 0, "shape", "Saddle Bags", "Less Saddle", "More Saddle", 0f, -0.5f, 3f, false, new int[] { 850, 854 }, null, null); Params[754] = new VisualParam(754, "Hair_Taper_Back", 0, "hair", "Taper Back", "Wide Back", "Narrow Back", 0f, -1f, 2f, false, null, null, null); Params[755] = new VisualParam(755, "Hair_Taper_Front", 0, "hair", "Taper Front", "Wide Front", "Narrow Front", 0.05f, -1.5f, 1.5f, false, null, null, null); - Params[756] = new VisualParam(756, "Neck Length", 0, "shape", String.Empty, "Short Neck", "Long Neck", 0f, -1f, 1f, false, null, null, null); + Params[756] = new VisualParam(756, "Neck Length", 0, "shape", string.Empty, "Short Neck", "Long Neck", 0f, -1f, 1f, false, null, null, null); Params[757] = new VisualParam(757, "Lower_Eyebrows", 0, "hair", "Eyebrow Height", "Higher", "Lower", -1f, -4f, 2f, false, new int[] { 871 }, null, null); Params[758] = new VisualParam(758, "Lower_Bridge_Nose", 0, "shape", "Lower Bridge", "Low", "High", -1.5f, -1.5f, 1.5f, false, null, null, null); Params[759] = new VisualParam(759, "Low_Septum_Nose", 0, "shape", "Nostril Division", "High", "Low", 0.5f, -1f, 1.5f, false, null, null, null); Params[760] = new VisualParam(760, "Jaw_Angle", 0, "shape", "Jaw Angle", "Low Jaw", "High Jaw", 0f, -1.2f, 2f, false, null, null, null); Params[761] = new VisualParam(761, "Hair_Volume_Small", 1, "hair", "Hair Volume", "Less", "More", 0f, 0f, 1.3f, false, null, null, null); Params[762] = new VisualParam(762, "Hair_Shear_Front", 0, "hair", "Shear Front", "Full Front", "Sheared Front", 0f, 0f, 3f, false, null, null, null); - Params[763] = new VisualParam(763, "Hair Volume", 0, "hair", String.Empty, "Less Volume", "More Volume", 0.55f, 0f, 1f, false, new int[] { 761, 180 }, null, null); + Params[763] = new VisualParam(763, "Hair Volume", 0, "hair", string.Empty, "Less Volume", "More Volume", 0.55f, 0f, 1f, false, new int[] { 761, 180 }, null, null); Params[764] = new VisualParam(764, "Lip_Cleft_Deep", 0, "shape", "Lip Cleft Depth", "Shallow", "Deep", -0.5f, -0.5f, 1.2f, false, null, null, null); Params[765] = new VisualParam(765, "Puffy_Lower_Lids", 0, "shape", "Puffy Eyelids", "Flat", "Puffy", -0.3f, -0.3f, 2.5f, false, null, null, null); Params[767] = new VisualParam(767, "Bug_Eyed_Head", 1, "shape", "Eye Depth", "Sunken Eyes", "Bug Eyes", 0f, -2f, 2f, false, null, null, null); - Params[768] = new VisualParam(768, "EyeBone_Bug", 1, "shape", String.Empty, "Eyes Sunken", "Eyes Bugged", -2f, -2f, 2f, false, null, null, null); - Params[769] = new VisualParam(769, "Eye Depth", 0, "shape", String.Empty, "Sunken Eyes", "Bugged Eyes", 0.5f, 0f, 1f, false, new int[] { 767, 768 }, null, null); + Params[768] = new VisualParam(768, "EyeBone_Bug", 1, "shape", string.Empty, "Eyes Sunken", "Eyes Bugged", -2f, -2f, 2f, false, null, null, null); + Params[769] = new VisualParam(769, "Eye Depth", 0, "shape", string.Empty, "Sunken Eyes", "Bugged Eyes", 0.5f, 0f, 1f, false, new int[] { 767, 768 }, null, null); Params[770] = new VisualParam(770, "Elongate_Head", 1, "shape", "Shear Face", "Flat Head", "Long Head", 0f, -1f, 1f, false, null, null, null); - Params[771] = new VisualParam(771, "Elongate_Head_Hair", 1, "hair", String.Empty, String.Empty, String.Empty, -1f, -1f, 1f, false, null, null, null); - Params[772] = new VisualParam(772, "EyeBone_Head_Elongate", 1, "shape", String.Empty, "Eyes Short Head", "Eyes Long Head", -1f, -1f, 1f, false, null, null, null); - Params[773] = new VisualParam(773, "Head Length", 0, "shape", String.Empty, "Flat Head", "Long Head", 0.5f, 0f, 1f, false, new int[] { 770, 771, 772 }, null, null); - Params[774] = new VisualParam(774, "Shear_Head_Hair", 1, "hair", String.Empty, String.Empty, String.Empty, -2f, -2f, 2f, false, null, null, null); - Params[775] = new VisualParam(775, "Body Freckles", 0, "skin", String.Empty, "Less Freckles", "More Freckles", 0f, 0f, 1f, false, new int[] { 776, 777 }, null, null); - Params[778] = new VisualParam(778, "Collar Back Height Cloth", 1, "shirt", String.Empty, String.Empty, String.Empty, 0.8f, 0f, 1f, false, null, new VisualAlphaParam(0.05f, "shirt_collar_back_alpha.tga", false, true), null); - Params[779] = new VisualParam(779, "Collar Back", 0, "undershirt", String.Empty, "Low", "High", 0.84f, 0f, 1f, false, new int[] { 1048, 1049 }, null, null); - Params[780] = new VisualParam(780, "Collar Back", 0, "jacket", String.Empty, "Low", "High", 0.8f, 0f, 1f, false, new int[] { 1023, 1041, 1024 }, null, null); - Params[781] = new VisualParam(781, "Collar Back", 0, "shirt", String.Empty, "Low", "High", 0.78f, 0f, 1f, false, new int[] { 778, 1016, 1032, 903 }, null, null); - Params[782] = new VisualParam(782, "Hair_Pigtails_Short", 1, "hair", String.Empty, String.Empty, String.Empty, 0f, 0f, 1f, false, null, null, null); - Params[783] = new VisualParam(783, "Hair_Pigtails_Med", 1, "hair", String.Empty, String.Empty, String.Empty, 0f, 0f, 1f, false, null, null, null); - Params[784] = new VisualParam(784, "Hair_Pigtails_Long", 1, "hair", String.Empty, String.Empty, String.Empty, 0f, 0f, 1f, false, null, null, null); - Params[785] = new VisualParam(785, "Pigtails", 0, "hair", String.Empty, "Short Pigtails", "Long Pigtails", 0f, 0f, 1f, false, new int[] { 782, 783, 790, 784 }, null, null); - Params[786] = new VisualParam(786, "Hair_Ponytail_Short", 1, "hair", String.Empty, String.Empty, String.Empty, 0f, 0f, 1f, false, null, null, null); - Params[787] = new VisualParam(787, "Hair_Ponytail_Med", 1, "hair", String.Empty, String.Empty, String.Empty, 0f, 0f, 1f, false, null, null, null); - Params[788] = new VisualParam(788, "Hair_Ponytail_Long", 1, "hair", String.Empty, String.Empty, String.Empty, 0f, 0f, 1f, false, null, null, null); - Params[789] = new VisualParam(789, "Ponytail", 0, "hair", String.Empty, "Short Ponytail", "Long Ponytail", 0f, 0f, 1f, false, new int[] { 786, 787, 788 }, null, null); - Params[790] = new VisualParam(790, "Hair_Pigtails_Medlong", 1, "hair", String.Empty, String.Empty, String.Empty, 0f, 0f, 1f, false, null, null, null); - Params[793] = new VisualParam(793, "Leg_Longcuffs", 1, "pants", "Longcuffs", String.Empty, String.Empty, 0f, 0f, 3f, false, null, null, null); + Params[771] = new VisualParam(771, "Elongate_Head_Hair", 1, "hair", string.Empty, string.Empty, string.Empty, -1f, -1f, 1f, false, null, null, null); + Params[772] = new VisualParam(772, "EyeBone_Head_Elongate", 1, "shape", string.Empty, "Eyes Short Head", "Eyes Long Head", -1f, -1f, 1f, false, null, null, null); + Params[773] = new VisualParam(773, "Head Length", 0, "shape", string.Empty, "Flat Head", "Long Head", 0.5f, 0f, 1f, false, new int[] { 770, 771, 772 }, null, null); + Params[774] = new VisualParam(774, "Shear_Head_Hair", 1, "hair", string.Empty, string.Empty, string.Empty, -2f, -2f, 2f, false, null, null, null); + Params[775] = new VisualParam(775, "Body Freckles", 0, "skin", string.Empty, "Less Freckles", "More Freckles", 0f, 0f, 1f, false, new int[] { 776, 777 }, null, null); + Params[778] = new VisualParam(778, "Collar Back Height Cloth", 1, "shirt", string.Empty, string.Empty, string.Empty, 0.8f, 0f, 1f, false, null, new VisualAlphaParam(0.05f, "shirt_collar_back_alpha.tga", false, true), null); + Params[779] = new VisualParam(779, "Collar Back", 0, "undershirt", string.Empty, "Low", "High", 0.84f, 0f, 1f, false, new int[] { 1048, 1049 }, null, null); + Params[780] = new VisualParam(780, "Collar Back", 0, "jacket", string.Empty, "Low", "High", 0.8f, 0f, 1f, false, new int[] { 1023, 1041, 1024 }, null, null); + Params[781] = new VisualParam(781, "Collar Back", 0, "shirt", string.Empty, "Low", "High", 0.78f, 0f, 1f, false, new int[] { 778, 1016, 1032, 903 }, null, null); + Params[782] = new VisualParam(782, "Hair_Pigtails_Short", 1, "hair", string.Empty, string.Empty, string.Empty, 0f, 0f, 1f, false, null, null, null); + Params[783] = new VisualParam(783, "Hair_Pigtails_Med", 1, "hair", string.Empty, string.Empty, string.Empty, 0f, 0f, 1f, false, null, null, null); + Params[784] = new VisualParam(784, "Hair_Pigtails_Long", 1, "hair", string.Empty, string.Empty, string.Empty, 0f, 0f, 1f, false, null, null, null); + Params[785] = new VisualParam(785, "Pigtails", 0, "hair", string.Empty, "Short Pigtails", "Long Pigtails", 0f, 0f, 1f, false, new int[] { 782, 783, 790, 784 }, null, null); + Params[786] = new VisualParam(786, "Hair_Ponytail_Short", 1, "hair", string.Empty, string.Empty, string.Empty, 0f, 0f, 1f, false, null, null, null); + Params[787] = new VisualParam(787, "Hair_Ponytail_Med", 1, "hair", string.Empty, string.Empty, string.Empty, 0f, 0f, 1f, false, null, null, null); + Params[788] = new VisualParam(788, "Hair_Ponytail_Long", 1, "hair", string.Empty, string.Empty, string.Empty, 0f, 0f, 1f, false, null, null, null); + Params[789] = new VisualParam(789, "Ponytail", 0, "hair", string.Empty, "Short Ponytail", "Long Ponytail", 0f, 0f, 1f, false, new int[] { 786, 787, 788 }, null, null); + Params[790] = new VisualParam(790, "Hair_Pigtails_Medlong", 1, "hair", string.Empty, string.Empty, string.Empty, 0f, 0f, 1f, false, null, null, null); + Params[793] = new VisualParam(793, "Leg_Longcuffs", 1, "pants", "Longcuffs", string.Empty, string.Empty, 0f, 0f, 3f, false, null, null, null); Params[794] = new VisualParam(794, "Small_Butt", 1, "shape", "Butt Size", "Regular", "Small", 0f, 0f, 1f, false, null, null, null); Params[795] = new VisualParam(795, "Butt Size", 0, "shape", "Butt Size", "Flat Butt", "Big Butt", 0.25f, 0f, 1f, false, new int[] { 867, 794, 151, 852 }, null, null); Params[796] = new VisualParam(796, "Pointy_Ears", 0, "shape", "Ear Tips", "Flat", "Pointy", -0.4f, -0.4f, 3f, false, null, null, null); Params[797] = new VisualParam(797, "Fat_Upper_Lip", 1, "shape", "Fat Upper Lip", "Normal Upper", "Fat Upper", 0f, 0f, 1.5f, false, null, null, null); Params[798] = new VisualParam(798, "Fat_Lower_Lip", 1, "shape", "Fat Lower Lip", "Normal Lower", "Fat Lower", 0f, 0f, 1.5f, false, null, null, null); Params[799] = new VisualParam(799, "Lip Ratio", 0, "shape", "Lip Ratio", "More Upper Lip", "More Lower Lip", 0.5f, 0f, 1f, false, new int[] { 797, 798 }, null, null); - Params[800] = new VisualParam(800, "Sleeve Length", 0, "shirt", String.Empty, "Short", "Long", 0.89f, 0f, 1f, false, new int[] { 600, 1013, 1029, 900 }, null, null); - Params[801] = new VisualParam(801, "Shirt Bottom", 0, "shirt", String.Empty, "Short", "Long", 1f, 0f, 1f, false, new int[] { 601, 1014, 1030, 901 }, null, null); - Params[802] = new VisualParam(802, "Collar Front", 0, "shirt", String.Empty, "Low", "High", 0.78f, 0f, 1f, false, new int[] { 602, 1015, 1031, 902 }, null, null); - Params[803] = new VisualParam(803, "shirt_red", 0, "shirt", String.Empty, String.Empty, String.Empty, 1f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(0, 0, 0, 255), new Color4(255, 0, 0, 255) })); - Params[804] = new VisualParam(804, "shirt_green", 0, "shirt", String.Empty, String.Empty, String.Empty, 1f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(0, 0, 0, 255), new Color4(0, 255, 0, 255) })); - Params[805] = new VisualParam(805, "shirt_blue", 0, "shirt", String.Empty, String.Empty, String.Empty, 1f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(0, 0, 0, 255), new Color4(0, 0, 255, 255) })); - Params[806] = new VisualParam(806, "pants_red", 0, "pants", String.Empty, String.Empty, String.Empty, 1f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(0, 0, 0, 255), new Color4(255, 0, 0, 255) })); - Params[807] = new VisualParam(807, "pants_green", 0, "pants", String.Empty, String.Empty, String.Empty, 1f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(0, 0, 0, 255), new Color4(0, 255, 0, 255) })); - Params[808] = new VisualParam(808, "pants_blue", 0, "pants", String.Empty, String.Empty, String.Empty, 1f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(0, 0, 0, 255), new Color4(0, 0, 255, 255) })); - Params[809] = new VisualParam(809, "lower_jacket_red", 1, "jacket", String.Empty, String.Empty, String.Empty, 1f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(0, 0, 0, 255), new Color4(255, 0, 0, 255) })); - Params[810] = new VisualParam(810, "lower_jacket_green", 1, "jacket", String.Empty, String.Empty, String.Empty, 1f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(0, 0, 0, 255), new Color4(0, 255, 0, 255) })); - Params[811] = new VisualParam(811, "lower_jacket_blue", 1, "jacket", String.Empty, String.Empty, String.Empty, 1f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(0, 0, 0, 255), new Color4(0, 0, 255, 255) })); - Params[812] = new VisualParam(812, "shoes_red", 0, "shoes", String.Empty, String.Empty, String.Empty, 1f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(0, 0, 0, 255), new Color4(255, 0, 0, 255) })); - Params[813] = new VisualParam(813, "shoes_green", 0, "shoes", String.Empty, String.Empty, String.Empty, 1f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(0, 0, 0, 255), new Color4(0, 255, 0, 255) })); - Params[814] = new VisualParam(814, "Waist Height", 0, "pants", String.Empty, "Low", "High", 1f, 0f, 1f, false, new int[] { 614, 1017, 1035, 914 }, null, null); - Params[815] = new VisualParam(815, "Pants Length", 0, "pants", String.Empty, "Short", "Long", 0.8f, 0f, 1f, false, new int[] { 615, 1018, 1036, 793, 915 }, null, null); + Params[800] = new VisualParam(800, "Sleeve Length", 0, "shirt", string.Empty, "Short", "Long", 0.89f, 0f, 1f, false, new int[] { 600, 1013, 1029, 900 }, null, null); + Params[801] = new VisualParam(801, "Shirt Bottom", 0, "shirt", string.Empty, "Short", "Long", 1f, 0f, 1f, false, new int[] { 601, 1014, 1030, 901 }, null, null); + Params[802] = new VisualParam(802, "Collar Front", 0, "shirt", string.Empty, "Low", "High", 0.78f, 0f, 1f, false, new int[] { 602, 1015, 1031, 902 }, null, null); + Params[803] = new VisualParam(803, "shirt_red", 0, "shirt", string.Empty, string.Empty, string.Empty, 1f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(0, 0, 0, 255), new Color4(255, 0, 0, 255) })); + Params[804] = new VisualParam(804, "shirt_green", 0, "shirt", string.Empty, string.Empty, string.Empty, 1f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(0, 0, 0, 255), new Color4(0, 255, 0, 255) })); + Params[805] = new VisualParam(805, "shirt_blue", 0, "shirt", string.Empty, string.Empty, string.Empty, 1f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(0, 0, 0, 255), new Color4(0, 0, 255, 255) })); + Params[806] = new VisualParam(806, "pants_red", 0, "pants", string.Empty, string.Empty, string.Empty, 1f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(0, 0, 0, 255), new Color4(255, 0, 0, 255) })); + Params[807] = new VisualParam(807, "pants_green", 0, "pants", string.Empty, string.Empty, string.Empty, 1f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(0, 0, 0, 255), new Color4(0, 255, 0, 255) })); + Params[808] = new VisualParam(808, "pants_blue", 0, "pants", string.Empty, string.Empty, string.Empty, 1f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(0, 0, 0, 255), new Color4(0, 0, 255, 255) })); + Params[809] = new VisualParam(809, "lower_jacket_red", 1, "jacket", string.Empty, string.Empty, string.Empty, 1f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(0, 0, 0, 255), new Color4(255, 0, 0, 255) })); + Params[810] = new VisualParam(810, "lower_jacket_green", 1, "jacket", string.Empty, string.Empty, string.Empty, 1f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(0, 0, 0, 255), new Color4(0, 255, 0, 255) })); + Params[811] = new VisualParam(811, "lower_jacket_blue", 1, "jacket", string.Empty, string.Empty, string.Empty, 1f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(0, 0, 0, 255), new Color4(0, 0, 255, 255) })); + Params[812] = new VisualParam(812, "shoes_red", 0, "shoes", string.Empty, string.Empty, string.Empty, 1f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(0, 0, 0, 255), new Color4(255, 0, 0, 255) })); + Params[813] = new VisualParam(813, "shoes_green", 0, "shoes", string.Empty, string.Empty, string.Empty, 1f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(0, 0, 0, 255), new Color4(0, 255, 0, 255) })); + Params[814] = new VisualParam(814, "Waist Height", 0, "pants", string.Empty, "Low", "High", 1f, 0f, 1f, false, new int[] { 614, 1017, 1035, 914 }, null, null); + Params[815] = new VisualParam(815, "Pants Length", 0, "pants", string.Empty, "Short", "Long", 0.8f, 0f, 1f, false, new int[] { 615, 1018, 1036, 793, 915 }, null, null); Params[816] = new VisualParam(816, "Loose Lower Clothing", 0, "pants", "Pants Fit", "Tight Pants", "Loose Pants", 0f, 0f, 1f, false, new int[] { 516, 913 }, null, null); - Params[817] = new VisualParam(817, "shoes_blue", 0, "shoes", String.Empty, String.Empty, String.Empty, 1f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(0, 0, 0, 255), new Color4(0, 0, 255, 255) })); - Params[818] = new VisualParam(818, "socks_red", 0, "socks", String.Empty, String.Empty, String.Empty, 1f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(0, 0, 0, 255), new Color4(255, 0, 0, 255) })); - Params[819] = new VisualParam(819, "socks_green", 0, "socks", String.Empty, String.Empty, String.Empty, 1f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(0, 0, 0, 255), new Color4(0, 255, 0, 255) })); - Params[820] = new VisualParam(820, "socks_blue", 0, "socks", String.Empty, String.Empty, String.Empty, 1f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(0, 0, 0, 255), new Color4(0, 0, 255, 255) })); - Params[821] = new VisualParam(821, "undershirt_red", 0, "undershirt", String.Empty, String.Empty, String.Empty, 1f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(0, 0, 0, 255), new Color4(255, 0, 0, 255) })); - Params[822] = new VisualParam(822, "undershirt_green", 0, "undershirt", String.Empty, String.Empty, String.Empty, 1f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(0, 0, 0, 255), new Color4(0, 255, 0, 255) })); - Params[823] = new VisualParam(823, "undershirt_blue", 0, "undershirt", String.Empty, String.Empty, String.Empty, 1f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(0, 0, 0, 255), new Color4(0, 0, 255, 255) })); - Params[824] = new VisualParam(824, "underpants_red", 0, "underpants", String.Empty, String.Empty, String.Empty, 1f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(0, 0, 0, 255), new Color4(255, 0, 0, 255) })); - Params[825] = new VisualParam(825, "underpants_green", 0, "underpants", String.Empty, String.Empty, String.Empty, 1f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(0, 0, 0, 255), new Color4(0, 255, 0, 255) })); - Params[826] = new VisualParam(826, "underpants_blue", 0, "underpants", String.Empty, String.Empty, String.Empty, 1f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(0, 0, 0, 255), new Color4(0, 0, 255, 255) })); - Params[827] = new VisualParam(827, "gloves_red", 0, "gloves", String.Empty, String.Empty, String.Empty, 1f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(0, 0, 0, 255), new Color4(255, 0, 0, 255) })); + Params[817] = new VisualParam(817, "shoes_blue", 0, "shoes", string.Empty, string.Empty, string.Empty, 1f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(0, 0, 0, 255), new Color4(0, 0, 255, 255) })); + Params[818] = new VisualParam(818, "socks_red", 0, "socks", string.Empty, string.Empty, string.Empty, 1f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(0, 0, 0, 255), new Color4(255, 0, 0, 255) })); + Params[819] = new VisualParam(819, "socks_green", 0, "socks", string.Empty, string.Empty, string.Empty, 1f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(0, 0, 0, 255), new Color4(0, 255, 0, 255) })); + Params[820] = new VisualParam(820, "socks_blue", 0, "socks", string.Empty, string.Empty, string.Empty, 1f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(0, 0, 0, 255), new Color4(0, 0, 255, 255) })); + Params[821] = new VisualParam(821, "undershirt_red", 0, "undershirt", string.Empty, string.Empty, string.Empty, 1f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(0, 0, 0, 255), new Color4(255, 0, 0, 255) })); + Params[822] = new VisualParam(822, "undershirt_green", 0, "undershirt", string.Empty, string.Empty, string.Empty, 1f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(0, 0, 0, 255), new Color4(0, 255, 0, 255) })); + Params[823] = new VisualParam(823, "undershirt_blue", 0, "undershirt", string.Empty, string.Empty, string.Empty, 1f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(0, 0, 0, 255), new Color4(0, 0, 255, 255) })); + Params[824] = new VisualParam(824, "underpants_red", 0, "underpants", string.Empty, string.Empty, string.Empty, 1f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(0, 0, 0, 255), new Color4(255, 0, 0, 255) })); + Params[825] = new VisualParam(825, "underpants_green", 0, "underpants", string.Empty, string.Empty, string.Empty, 1f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(0, 0, 0, 255), new Color4(0, 255, 0, 255) })); + Params[826] = new VisualParam(826, "underpants_blue", 0, "underpants", string.Empty, string.Empty, string.Empty, 1f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(0, 0, 0, 255), new Color4(0, 0, 255, 255) })); + Params[827] = new VisualParam(827, "gloves_red", 0, "gloves", string.Empty, string.Empty, string.Empty, 1f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(0, 0, 0, 255), new Color4(255, 0, 0, 255) })); Params[828] = new VisualParam(828, "Loose Upper Clothing", 0, "shirt", "Shirt Fit", "Tight Shirt", "Loose Shirt", 0f, 0f, 1f, false, new int[] { 628, 899 }, null, null); - Params[829] = new VisualParam(829, "gloves_green", 0, "gloves", String.Empty, String.Empty, String.Empty, 1f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(0, 0, 0, 255), new Color4(0, 255, 0, 255) })); - Params[830] = new VisualParam(830, "gloves_blue", 0, "gloves", String.Empty, String.Empty, String.Empty, 1f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(0, 0, 0, 255), new Color4(0, 0, 255, 255) })); - Params[831] = new VisualParam(831, "upper_jacket_red", 1, "jacket", String.Empty, String.Empty, String.Empty, 1f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(0, 0, 0, 255), new Color4(255, 0, 0, 255) })); - Params[832] = new VisualParam(832, "upper_jacket_green", 1, "jacket", String.Empty, String.Empty, String.Empty, 1f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(0, 0, 0, 255), new Color4(0, 255, 0, 255) })); - Params[833] = new VisualParam(833, "upper_jacket_blue", 1, "jacket", String.Empty, String.Empty, String.Empty, 1f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(0, 0, 0, 255), new Color4(0, 0, 255, 255) })); - Params[834] = new VisualParam(834, "jacket_red", 0, "jacket", String.Empty, String.Empty, String.Empty, 1f, 0f, 1f, false, new int[] { 809, 831 }, null, null); - Params[835] = new VisualParam(835, "jacket_green", 0, "jacket", String.Empty, String.Empty, String.Empty, 1f, 0f, 1f, false, new int[] { 810, 832 }, null, null); - Params[836] = new VisualParam(836, "jacket_blue", 0, "jacket", String.Empty, String.Empty, String.Empty, 1f, 0f, 1f, false, new int[] { 811, 833 }, null, null); + Params[829] = new VisualParam(829, "gloves_green", 0, "gloves", string.Empty, string.Empty, string.Empty, 1f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(0, 0, 0, 255), new Color4(0, 255, 0, 255) })); + Params[830] = new VisualParam(830, "gloves_blue", 0, "gloves", string.Empty, string.Empty, string.Empty, 1f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(0, 0, 0, 255), new Color4(0, 0, 255, 255) })); + Params[831] = new VisualParam(831, "upper_jacket_red", 1, "jacket", string.Empty, string.Empty, string.Empty, 1f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(0, 0, 0, 255), new Color4(255, 0, 0, 255) })); + Params[832] = new VisualParam(832, "upper_jacket_green", 1, "jacket", string.Empty, string.Empty, string.Empty, 1f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(0, 0, 0, 255), new Color4(0, 255, 0, 255) })); + Params[833] = new VisualParam(833, "upper_jacket_blue", 1, "jacket", string.Empty, string.Empty, string.Empty, 1f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(0, 0, 0, 255), new Color4(0, 0, 255, 255) })); + Params[834] = new VisualParam(834, "jacket_red", 0, "jacket", string.Empty, string.Empty, string.Empty, 1f, 0f, 1f, false, new int[] { 809, 831 }, null, null); + Params[835] = new VisualParam(835, "jacket_green", 0, "jacket", string.Empty, string.Empty, string.Empty, 1f, 0f, 1f, false, new int[] { 810, 832 }, null, null); + Params[836] = new VisualParam(836, "jacket_blue", 0, "jacket", string.Empty, string.Empty, string.Empty, 1f, 0f, 1f, false, new int[] { 811, 833 }, null, null); Params[840] = new VisualParam(840, "Shirtsleeve_flair", 0, "shirt", "Sleeve Looseness", "Tight Sleeves", "Loose Sleeves", 0f, 0f, 1.5f, false, null, null, null); Params[841] = new VisualParam(841, "Bowed_Legs", 0, "shape", "Knee Angle", "Knock Kneed", "Bow Legged", 0f, -1f, 1f, false, new int[] { 853, 847 }, null, null); - Params[842] = new VisualParam(842, "Hip Length", 0, "shape", String.Empty, "Short hips", "Long Hips", -1f, -1f, 1f, false, null, null, null); + Params[842] = new VisualParam(842, "Hip Length", 0, "shape", string.Empty, "Short hips", "Long Hips", -1f, -1f, 1f, false, null, null, null); Params[843] = new VisualParam(843, "No_Chest", 1, "shape", "Chest Size", "Some", "None", 0f, 0f, 1f, false, null, null, null); - Params[844] = new VisualParam(844, "Glove Fingers", 0, "gloves", String.Empty, "Fingerless", "Fingers", 1f, 0.01f, 1f, false, new int[] { 1060, 1061 }, null, null); + Params[844] = new VisualParam(844, "Glove Fingers", 0, "gloves", string.Empty, "Fingerless", "Fingers", 1f, 0.01f, 1f, false, new int[] { 1060, 1061 }, null, null); Params[845] = new VisualParam(845, "skirt_poofy", 1, "skirt", "poofy skirt", "less poofy", "more poofy", 0f, 0f, 1.5f, false, null, null, null); Params[846] = new VisualParam(846, "skirt_loose", 1, "skirt", "loose skirt", "form fitting", "loose", 0f, 0f, 1f, false, null, null, null); - Params[847] = new VisualParam(847, "skirt_bowlegs", 1, "skirt", "legs skirt", String.Empty, String.Empty, 0f, -1f, 1f, false, null, null, null); + Params[847] = new VisualParam(847, "skirt_bowlegs", 1, "skirt", "legs skirt", string.Empty, string.Empty, 0f, -1f, 1f, false, null, null, null); Params[848] = new VisualParam(848, "skirt_bustle", 0, "skirt", "bustle skirt", "no bustle", "more bustle", 0.2f, 0f, 2f, false, null, null, null); - Params[849] = new VisualParam(849, "skirt_belly", 1, "skirt", "big belly skirt", String.Empty, String.Empty, 0f, 0f, 1f, false, null, null, null); - Params[850] = new VisualParam(850, "skirt_saddlebags", 1, "skirt", String.Empty, String.Empty, String.Empty, -0.5f, -0.5f, 3f, false, null, null, null); - Params[851] = new VisualParam(851, "skirt_chubby", 1, "skirt", String.Empty, "less", "more", 0f, 0f, 1f, false, null, null, null); + Params[849] = new VisualParam(849, "skirt_belly", 1, "skirt", "big belly skirt", string.Empty, string.Empty, 0f, 0f, 1f, false, null, null, null); + Params[850] = new VisualParam(850, "skirt_saddlebags", 1, "skirt", string.Empty, string.Empty, string.Empty, -0.5f, -0.5f, 3f, false, null, null, null); + Params[851] = new VisualParam(851, "skirt_chubby", 1, "skirt", string.Empty, "less", "more", 0f, 0f, 1f, false, null, null, null); Params[852] = new VisualParam(852, "skirt_bigbutt", 1, "skirt", "bigbutt skirt", "less", "more", 0f, 0f, 1f, false, null, null, null); - Params[854] = new VisualParam(854, "Saddlebags", 1, "shape", String.Empty, String.Empty, String.Empty, -0.5f, -0.5f, 3f, false, null, null, null); - Params[855] = new VisualParam(855, "Love_Handles", 1, "shape", String.Empty, String.Empty, String.Empty, 0f, -1f, 2f, false, null, null, null); - Params[856] = new VisualParam(856, "skirt_lovehandles", 1, "skirt", String.Empty, "less", "more", 0f, -1f, 2f, false, null, null, null); - Params[857] = new VisualParam(857, "skirt_male", 1, "skirt", String.Empty, String.Empty, String.Empty, 0f, 0f, 1f, false, null, null, null); - Params[858] = new VisualParam(858, "Skirt Length", 0, "skirt", String.Empty, "Short", "Long", 0.4f, 0.01f, 1f, false, null, new VisualAlphaParam(0f, "skirt_length_alpha.tga", false, true), null); - Params[859] = new VisualParam(859, "Slit Front", 0, "skirt", String.Empty, "Open Front", "Closed Front", 1f, 0f, 1f, false, null, new VisualAlphaParam(0f, "skirt_slit_front_alpha.tga", false, true), null); - Params[860] = new VisualParam(860, "Slit Back", 0, "skirt", String.Empty, "Open Back", "Closed Back", 1f, 0f, 1f, false, null, new VisualAlphaParam(0f, "skirt_slit_back_alpha.tga", false, true), null); - Params[861] = new VisualParam(861, "Slit Left", 0, "skirt", String.Empty, "Open Left", "Closed Left", 1f, 0f, 1f, false, null, new VisualAlphaParam(0f, "skirt_slit_left_alpha.tga", false, true), null); - Params[862] = new VisualParam(862, "Slit Right", 0, "skirt", String.Empty, "Open Right", "Closed Right", 1f, 0f, 1f, false, null, new VisualAlphaParam(0f, "skirt_slit_right_alpha.tga", false, true), null); + Params[854] = new VisualParam(854, "Saddlebags", 1, "shape", string.Empty, string.Empty, string.Empty, -0.5f, -0.5f, 3f, false, null, null, null); + Params[855] = new VisualParam(855, "Love_Handles", 1, "shape", string.Empty, string.Empty, string.Empty, 0f, -1f, 2f, false, null, null, null); + Params[856] = new VisualParam(856, "skirt_lovehandles", 1, "skirt", string.Empty, "less", "more", 0f, -1f, 2f, false, null, null, null); + Params[857] = new VisualParam(857, "skirt_male", 1, "skirt", string.Empty, string.Empty, string.Empty, 0f, 0f, 1f, false, null, null, null); + Params[858] = new VisualParam(858, "Skirt Length", 0, "skirt", string.Empty, "Short", "Long", 0.4f, 0.01f, 1f, false, null, new VisualAlphaParam(0f, "skirt_length_alpha.tga", false, true), null); + Params[859] = new VisualParam(859, "Slit Front", 0, "skirt", string.Empty, "Open Front", "Closed Front", 1f, 0f, 1f, false, null, new VisualAlphaParam(0f, "skirt_slit_front_alpha.tga", false, true), null); + Params[860] = new VisualParam(860, "Slit Back", 0, "skirt", string.Empty, "Open Back", "Closed Back", 1f, 0f, 1f, false, null, new VisualAlphaParam(0f, "skirt_slit_back_alpha.tga", false, true), null); + Params[861] = new VisualParam(861, "Slit Left", 0, "skirt", string.Empty, "Open Left", "Closed Left", 1f, 0f, 1f, false, null, new VisualAlphaParam(0f, "skirt_slit_left_alpha.tga", false, true), null); + Params[862] = new VisualParam(862, "Slit Right", 0, "skirt", string.Empty, "Open Right", "Closed Right", 1f, 0f, 1f, false, null, new VisualAlphaParam(0f, "skirt_slit_right_alpha.tga", false, true), null); Params[863] = new VisualParam(863, "skirt_looseness", 0, "skirt", "Skirt Fit", "Tight Skirt", "Poofy Skirt", 0.333f, 0f, 1f, false, new int[] { 866, 846, 845 }, null, null); Params[866] = new VisualParam(866, "skirt_tight", 1, "skirt", "tight skirt", "form fitting", "loose", 0f, 0f, 1f, false, null, null, null); Params[867] = new VisualParam(867, "skirt_smallbutt", 1, "skirt", "tight skirt", "form fitting", "loose", 0f, 0f, 1f, false, null, null, null); - Params[868] = new VisualParam(868, "Shirt Wrinkles", 0, "shirt", String.Empty, String.Empty, String.Empty, 0f, 0f, 1f, true, null, null, null); - Params[869] = new VisualParam(869, "Pants Wrinkles", 0, "pants", String.Empty, String.Empty, String.Empty, 0f, 0f, 1f, true, null, null, null); + Params[868] = new VisualParam(868, "Shirt Wrinkles", 0, "shirt", string.Empty, string.Empty, string.Empty, 0f, 0f, 1f, true, null, null, null); + Params[869] = new VisualParam(869, "Pants Wrinkles", 0, "pants", string.Empty, string.Empty, string.Empty, 0f, 0f, 1f, true, null, null, null); Params[870] = new VisualParam(870, "Pointy_Eyebrows", 1, "hair", "Eyebrow Points", "Smooth", "Pointy", -0.5f, -0.5f, 1f, false, null, null, null); Params[871] = new VisualParam(871, "Lower_Eyebrows", 1, "hair", "Eyebrow Height", "Higher", "Lower", -2f, -2f, 2f, false, null, null, null); Params[872] = new VisualParam(872, "Arced_Eyebrows", 1, "hair", "Eyebrow Arc", "Flat", "Arced", 0f, 0f, 1f, false, null, null, null); - Params[873] = new VisualParam(873, "Bump base", 1, "skin", String.Empty, String.Empty, String.Empty, 0f, 0f, 1f, true, null, new VisualAlphaParam(0f, string.Empty, false, false), null); - Params[874] = new VisualParam(874, "Bump upperdef", 1, "skin", String.Empty, String.Empty, String.Empty, 0f, 0f, 1f, true, null, new VisualAlphaParam(0f, string.Empty, false, false), null); + Params[873] = new VisualParam(873, "Bump base", 1, "skin", string.Empty, string.Empty, string.Empty, 0f, 0f, 1f, true, null, new VisualAlphaParam(0f, string.Empty, false, false), null); + Params[874] = new VisualParam(874, "Bump upperdef", 1, "skin", string.Empty, string.Empty, string.Empty, 0f, 0f, 1f, true, null, new VisualAlphaParam(0f, string.Empty, false, false), null); Params[877] = new VisualParam(877, "Jacket Wrinkles", 0, "jacket", "Jacket Wrinkles", "No Wrinkles", "Wrinkles", 0f, 0f, 1f, false, new int[] { 875, 876 }, null, null); - Params[878] = new VisualParam(878, "Bump upperdef", 1, "skin", String.Empty, String.Empty, String.Empty, 0f, 0f, 1f, true, null, new VisualAlphaParam(0f, string.Empty, false, false), null); + Params[878] = new VisualParam(878, "Bump upperdef", 1, "skin", string.Empty, string.Empty, string.Empty, 0f, 0f, 1f, true, null, new VisualAlphaParam(0f, string.Empty, false, false), null); Params[879] = new VisualParam(879, "Male_Package", 0, "shape", "Package", "Coin Purse", "Duffle Bag", 0f, -0.5f, 2f, false, null, null, null); Params[880] = new VisualParam(880, "Eyelid_Inner_Corner_Up", 0, "shape", "Inner Eye Corner", "Corner Down", "Corner Up", -1.3f, -1.3f, 1.2f, false, null, null, null); - Params[899] = new VisualParam(899, "Upper Clothes Shading", 1, "shirt", String.Empty, String.Empty, String.Empty, 0f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(0, 0, 0, 0), new Color4(0, 0, 0, 80) })); - Params[900] = new VisualParam(900, "Sleeve Length Shadow", 1, "shirt", String.Empty, String.Empty, String.Empty, 0.02f, 0.02f, 0.87f, false, null, new VisualAlphaParam(0.03f, "shirt_sleeve_alpha.tga", true, false), null); - Params[901] = new VisualParam(901, "Shirt Shadow Bottom", 1, "shirt", String.Empty, String.Empty, String.Empty, 0.02f, 0.02f, 1f, false, null, new VisualAlphaParam(0.05f, "shirt_bottom_alpha.tga", true, true), null); - Params[902] = new VisualParam(902, "Collar Front Shadow Height", 1, "shirt", String.Empty, String.Empty, String.Empty, 0.02f, 0.02f, 1f, false, null, new VisualAlphaParam(0.02f, "shirt_collar_alpha.tga", true, true), null); - Params[903] = new VisualParam(903, "Collar Back Shadow Height", 1, "shirt", String.Empty, String.Empty, String.Empty, 0.02f, 0.02f, 1f, false, null, new VisualAlphaParam(0.02f, "shirt_collar_back_alpha.tga", true, true), null); - Params[913] = new VisualParam(913, "Lower Clothes Shading", 1, "pants", String.Empty, String.Empty, String.Empty, 0f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(0, 0, 0, 0), new Color4(0, 0, 0, 80) })); - Params[914] = new VisualParam(914, "Waist Height Shadow", 1, "pants", String.Empty, String.Empty, String.Empty, 0.02f, 0.02f, 1f, false, null, new VisualAlphaParam(0.04f, "pants_waist_alpha.tga", true, false), null); - Params[915] = new VisualParam(915, "Pants Length Shadow", 1, "pants", String.Empty, String.Empty, String.Empty, 0.02f, 0.02f, 1f, false, null, new VisualAlphaParam(0.03f, "pants_length_alpha.tga", true, false), null); - Params[921] = new VisualParam(921, "skirt_red", 0, "skirt", String.Empty, String.Empty, String.Empty, 1f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(0, 0, 0, 255), new Color4(255, 0, 0, 255) })); - Params[922] = new VisualParam(922, "skirt_green", 0, "skirt", String.Empty, String.Empty, String.Empty, 1f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(0, 0, 0, 255), new Color4(0, 255, 0, 255) })); - Params[923] = new VisualParam(923, "skirt_blue", 0, "skirt", String.Empty, String.Empty, String.Empty, 1f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(0, 0, 0, 255), new Color4(0, 0, 255, 255) })); - Params[1000] = new VisualParam(1000, "Eyebrow Size Bump", 1, "hair", String.Empty, String.Empty, String.Empty, 0f, 0f, 1f, true, null, new VisualAlphaParam(0.1f, "eyebrows_alpha.tga", false, false), null); - Params[1001] = new VisualParam(1001, "Eyebrow Size", 1, "hair", String.Empty, String.Empty, String.Empty, 0.5f, 0f, 1f, false, null, new VisualAlphaParam(0.1f, "eyebrows_alpha.tga", false, false), null); - Params[1002] = new VisualParam(1002, "Eyebrow Density Bump", 1, "hair", String.Empty, String.Empty, String.Empty, 0f, 0f, 1f, true, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(255, 255, 255, 0), new Color4(255, 255, 255, 255) })); - Params[1003] = new VisualParam(1003, "Eyebrow Density", 1, "hair", String.Empty, String.Empty, String.Empty, 0f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Blend, new Color4[] { new Color4(255, 255, 255, 0), new Color4(255, 255, 255, 255) })); - Params[1004] = new VisualParam(1004, "Sideburns bump", 1, "hair", String.Empty, String.Empty, String.Empty, 0f, 0f, 1f, true, null, new VisualAlphaParam(0.05f, "facehair_sideburns_alpha.tga", true, false), null); - Params[1005] = new VisualParam(1005, "Sideburns", 1, "hair", String.Empty, String.Empty, String.Empty, 0f, 0f, 1f, false, null, new VisualAlphaParam(0.05f, "facehair_sideburns_alpha.tga", true, false), null); - Params[1006] = new VisualParam(1006, "Moustache bump", 1, "hair", String.Empty, String.Empty, String.Empty, 0f, 0f, 1f, true, null, new VisualAlphaParam(0.05f, "facehair_moustache_alpha.tga", true, false), null); - Params[1007] = new VisualParam(1007, "Moustache", 1, "hair", String.Empty, String.Empty, String.Empty, 0f, 0f, 1f, false, null, new VisualAlphaParam(0.05f, "facehair_moustache_alpha.tga", true, false), null); - Params[1008] = new VisualParam(1008, "Soulpatch bump", 1, "hair", String.Empty, String.Empty, String.Empty, 0f, 0f, 1f, true, null, new VisualAlphaParam(0.1f, "facehair_soulpatch_alpha.tga", true, false), null); - Params[1009] = new VisualParam(1009, "Soulpatch", 1, "hair", String.Empty, String.Empty, String.Empty, 0f, 0f, 1f, false, null, new VisualAlphaParam(0.1f, "facehair_soulpatch_alpha.tga", true, false), null); - Params[1010] = new VisualParam(1010, "Chin Curtains bump", 1, "hair", String.Empty, String.Empty, String.Empty, 0f, 0f, 1f, true, null, new VisualAlphaParam(0.03f, "facehair_chincurtains_alpha.tga", true, false), null); - Params[1011] = new VisualParam(1011, "Chin Curtains", 1, "hair", String.Empty, String.Empty, String.Empty, 0f, 0f, 1f, false, null, new VisualAlphaParam(0.03f, "facehair_chincurtains_alpha.tga", true, false), null); - Params[1012] = new VisualParam(1012, "5 O'Clock Shadow bump", 1, "hair", String.Empty, String.Empty, String.Empty, 0f, 0f, 1f, true, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(255, 255, 255, 255), new Color4(255, 255, 255, 0) })); - Params[1013] = new VisualParam(1013, "Sleeve Length Cloth", 1, "shirt", String.Empty, String.Empty, String.Empty, 0f, 0f, 0.85f, true, null, new VisualAlphaParam(0.01f, "shirt_sleeve_alpha.tga", false, false), null); - Params[1014] = new VisualParam(1014, "Shirt Bottom Cloth", 1, "shirt", String.Empty, String.Empty, String.Empty, 0f, 0f, 1f, true, null, new VisualAlphaParam(0.05f, "shirt_bottom_alpha.tga", false, true), null); - Params[1015] = new VisualParam(1015, "Collar Front Height Cloth", 1, "shirt", String.Empty, String.Empty, String.Empty, 0f, 0f, 1f, true, null, new VisualAlphaParam(0.05f, "shirt_collar_alpha.tga", false, true), null); - Params[1016] = new VisualParam(1016, "Collar Back Height Cloth", 1, "shirt", String.Empty, String.Empty, String.Empty, 0f, 0f, 1f, true, null, new VisualAlphaParam(0.05f, "shirt_collar_back_alpha.tga", false, true), null); - Params[1017] = new VisualParam(1017, "Waist Height Cloth", 1, "pants", String.Empty, String.Empty, String.Empty, 0f, 0f, 1f, true, null, new VisualAlphaParam(0.05f, "pants_waist_alpha.tga", false, false), null); - Params[1018] = new VisualParam(1018, "Pants Length Cloth", 1, "pants", String.Empty, String.Empty, String.Empty, 0f, 0f, 1f, true, null, new VisualAlphaParam(0.01f, "pants_length_alpha.tga", false, false), null); - Params[1019] = new VisualParam(1019, "Jacket Sleeve Length bump", 1, "jacket", String.Empty, String.Empty, String.Empty, 0f, 0f, 1f, true, null, new VisualAlphaParam(0.01f, "shirt_sleeve_alpha.tga", false, false), null); - Params[1020] = new VisualParam(1020, "jacket Sleeve Length", 1, "jacket", String.Empty, String.Empty, String.Empty, 0f, 0f, 1f, false, null, new VisualAlphaParam(0.01f, "shirt_sleeve_alpha.tga", false, false), null); - Params[1021] = new VisualParam(1021, "Jacket Collar Front bump", 1, "jacket", String.Empty, String.Empty, String.Empty, 0f, 0f, 1f, true, null, new VisualAlphaParam(0.05f, "shirt_collar_alpha.tga", false, true), null); - Params[1022] = new VisualParam(1022, "jacket Collar Front", 1, "jacket", String.Empty, String.Empty, String.Empty, 0f, 0f, 1f, false, null, new VisualAlphaParam(0.05f, "shirt_collar_alpha.tga", false, true), null); - Params[1023] = new VisualParam(1023, "Jacket Collar Back bump", 1, "jacket", String.Empty, String.Empty, String.Empty, 0f, 0f, 1f, true, null, new VisualAlphaParam(0.05f, "shirt_collar_back_alpha.tga", false, true), null); - Params[1024] = new VisualParam(1024, "jacket Collar Back", 1, "jacket", String.Empty, String.Empty, String.Empty, 0f, 0f, 1f, false, null, new VisualAlphaParam(0.05f, "shirt_collar_back_alpha.tga", false, true), null); - Params[1025] = new VisualParam(1025, "jacket bottom length upper bump", 1, "jacket", String.Empty, String.Empty, String.Empty, 0f, 0f, 1f, true, null, new VisualAlphaParam(0.01f, "jacket_length_upper_alpha.tga", false, true), null); - Params[1026] = new VisualParam(1026, "jacket open upper bump", 1, "jacket", String.Empty, String.Empty, String.Empty, 0f, 0f, 1f, true, null, new VisualAlphaParam(0.01f, "jacket_open_upper_alpha.tga", false, true), null); - Params[1027] = new VisualParam(1027, "jacket bottom length lower bump", 1, "jacket", String.Empty, String.Empty, String.Empty, 0f, 0f, 1f, true, null, new VisualAlphaParam(0.01f, "jacket_length_lower_alpha.tga", false, false), null); - Params[1028] = new VisualParam(1028, "jacket open lower bump", 1, "jacket", String.Empty, String.Empty, String.Empty, 0f, 0f, 1f, true, null, new VisualAlphaParam(0.01f, "jacket_open_lower_alpha.tga", false, true), null); - Params[1029] = new VisualParam(1029, "Sleeve Length Cloth", 1, "shirt", String.Empty, String.Empty, String.Empty, 0f, 0f, 0.85f, true, null, new VisualAlphaParam(0.01f, "shirt_sleeve_alpha.tga", false, false), null); - Params[1030] = new VisualParam(1030, "Shirt Bottom Cloth", 1, "shirt", String.Empty, String.Empty, String.Empty, 0f, 0f, 1f, true, null, new VisualAlphaParam(0.05f, "shirt_bottom_alpha.tga", false, true), null); - Params[1031] = new VisualParam(1031, "Collar Front Height Cloth", 1, "shirt", String.Empty, String.Empty, String.Empty, 0f, 0f, 1f, true, null, new VisualAlphaParam(0.05f, "shirt_collar_alpha.tga", false, true), null); - Params[1032] = new VisualParam(1032, "Collar Back Height Cloth", 1, "shirt", String.Empty, String.Empty, String.Empty, 0f, 0f, 1f, true, null, new VisualAlphaParam(0.05f, "shirt_collar_back_alpha.tga", false, true), null); - Params[1033] = new VisualParam(1033, "jacket bottom length lower bump", 1, "jacket", String.Empty, String.Empty, String.Empty, 0f, 0f, 1f, true, null, new VisualAlphaParam(0.01f, "jacket_length_lower_alpha.tga", false, false), null); - Params[1034] = new VisualParam(1034, "jacket open lower bump", 1, "jacket", String.Empty, String.Empty, String.Empty, 0f, 0f, 1f, true, null, new VisualAlphaParam(0.01f, "jacket_open_lower_alpha.tga", false, true), null); - Params[1035] = new VisualParam(1035, "Waist Height Cloth", 1, "pants", String.Empty, String.Empty, String.Empty, 0f, 0f, 1f, true, null, new VisualAlphaParam(0.05f, "pants_waist_alpha.tga", false, false), null); - Params[1036] = new VisualParam(1036, "Pants Length Cloth", 1, "pants", String.Empty, String.Empty, String.Empty, 0f, 0f, 1f, true, null, new VisualAlphaParam(0.01f, "pants_length_alpha.tga", false, false), null); - Params[1037] = new VisualParam(1037, "jacket bottom length upper bump", 1, "jacket", String.Empty, String.Empty, String.Empty, 0f, 0f, 1f, true, null, new VisualAlphaParam(0.01f, "jacket_length_upper_alpha.tga", false, true), null); - Params[1038] = new VisualParam(1038, "jacket open upper bump", 1, "jacket", String.Empty, String.Empty, String.Empty, 0f, 0f, 1f, true, null, new VisualAlphaParam(0.01f, "jacket_open_upper_alpha.tga", false, true), null); - Params[1039] = new VisualParam(1039, "Jacket Sleeve Length bump", 1, "jacket", String.Empty, String.Empty, String.Empty, 0f, 0f, 1f, true, null, new VisualAlphaParam(0.01f, "shirt_sleeve_alpha.tga", false, false), null); - Params[1040] = new VisualParam(1040, "Jacket Collar Front bump", 1, "jacket", String.Empty, String.Empty, String.Empty, 0f, 0f, 1f, true, null, new VisualAlphaParam(0.05f, "shirt_collar_alpha.tga", false, true), null); - Params[1041] = new VisualParam(1041, "Jacket Collar Back bump", 1, "jacket", String.Empty, String.Empty, String.Empty, 0f, 0f, 1f, true, null, new VisualAlphaParam(0.05f, "shirt_collar_back_alpha.tga", false, true), null); - Params[1042] = new VisualParam(1042, "Sleeve Length", 1, "undershirt", String.Empty, String.Empty, String.Empty, 0.4f, 0.01f, 1f, false, null, new VisualAlphaParam(0.01f, "shirt_sleeve_alpha.tga", false, false), null); - Params[1043] = new VisualParam(1043, "Sleeve Length bump", 1, "undershirt", String.Empty, String.Empty, String.Empty, 0.4f, 0.01f, 1f, true, null, new VisualAlphaParam(0.01f, "shirt_sleeve_alpha.tga", false, false), null); - Params[1044] = new VisualParam(1044, "Bottom", 1, "undershirt", String.Empty, String.Empty, String.Empty, 0.8f, 0f, 1f, false, null, new VisualAlphaParam(0.05f, "shirt_bottom_alpha.tga", false, true), null); - Params[1045] = new VisualParam(1045, "Bottom bump", 1, "undershirt", String.Empty, String.Empty, String.Empty, 0.8f, 0f, 1f, true, null, new VisualAlphaParam(0.05f, "shirt_bottom_alpha.tga", false, true), null); - Params[1046] = new VisualParam(1046, "Collar Front", 1, "undershirt", String.Empty, String.Empty, String.Empty, 0.8f, 0f, 1f, false, null, new VisualAlphaParam(0.05f, "shirt_collar_alpha.tga", false, true), null); - Params[1047] = new VisualParam(1047, "Collar Front bump", 1, "undershirt", String.Empty, String.Empty, String.Empty, 0.8f, 0f, 1f, true, null, new VisualAlphaParam(0.05f, "shirt_collar_alpha.tga", false, true), null); - Params[1048] = new VisualParam(1048, "Collar Back", 1, "undershirt", String.Empty, "Low", "High", 0.8f, 0f, 1f, false, null, new VisualAlphaParam(0.05f, "shirt_collar_back_alpha.tga", false, true), null); - Params[1049] = new VisualParam(1049, "Collar Back bump", 1, "undershirt", String.Empty, String.Empty, String.Empty, 0.8f, 0f, 1f, true, null, new VisualAlphaParam(0.05f, "shirt_collar_back_alpha.tga", false, true), null); - Params[1050] = new VisualParam(1050, "Socks Length bump", 1, "socks", String.Empty, String.Empty, String.Empty, 0.35f, 0f, 1f, false, null, new VisualAlphaParam(0.01f, "shoe_height_alpha.tga", false, false), null); - Params[1051] = new VisualParam(1051, "Socks Length bump", 1, "socks", String.Empty, String.Empty, String.Empty, 0.35f, 0f, 1f, true, null, new VisualAlphaParam(0.01f, "shoe_height_alpha.tga", false, false), null); - Params[1052] = new VisualParam(1052, "Shoe Height", 1, "shoes", String.Empty, String.Empty, String.Empty, 0.1f, 0f, 1f, false, null, new VisualAlphaParam(0.01f, "shoe_height_alpha.tga", false, false), null); - Params[1053] = new VisualParam(1053, "Shoe Height bump", 1, "shoes", String.Empty, String.Empty, String.Empty, 0.1f, 0f, 1f, true, null, new VisualAlphaParam(0.01f, "shoe_height_alpha.tga", false, false), null); - Params[1054] = new VisualParam(1054, "Pants Length", 1, "underpants", String.Empty, String.Empty, String.Empty, 0.3f, 0f, 1f, false, null, new VisualAlphaParam(0.01f, "pants_length_alpha.tga", false, false), null); - Params[1055] = new VisualParam(1055, "Pants Length", 1, "underpants", String.Empty, String.Empty, String.Empty, 0.3f, 0f, 1f, true, null, new VisualAlphaParam(0.01f, "pants_length_alpha.tga", false, false), null); - Params[1056] = new VisualParam(1056, "Pants Waist", 1, "underpants", String.Empty, String.Empty, String.Empty, 0.8f, 0f, 1f, false, null, new VisualAlphaParam(0.05f, "pants_waist_alpha.tga", false, false), null); - Params[1057] = new VisualParam(1057, "Pants Waist", 1, "underpants", String.Empty, String.Empty, String.Empty, 0.8f, 0f, 1f, true, null, new VisualAlphaParam(0.05f, "pants_waist_alpha.tga", false, false), null); - Params[1058] = new VisualParam(1058, "Glove Length", 1, "gloves", String.Empty, String.Empty, String.Empty, 0.8f, 0.01f, 1f, false, null, new VisualAlphaParam(0.01f, "glove_length_alpha.tga", false, false), null); - Params[1059] = new VisualParam(1059, "Glove Length bump", 1, "gloves", String.Empty, String.Empty, String.Empty, 0.8f, 0.01f, 1f, true, null, new VisualAlphaParam(0.01f, "glove_length_alpha.tga", false, false), null); - Params[1060] = new VisualParam(1060, "Glove Fingers", 1, "gloves", String.Empty, String.Empty, String.Empty, 1f, 0.01f, 1f, false, null, new VisualAlphaParam(0.01f, "gloves_fingers_alpha.tga", false, true), null); - Params[1061] = new VisualParam(1061, "Glove Fingers bump", 1, "gloves", String.Empty, String.Empty, String.Empty, 1f, 0.01f, 1f, true, null, new VisualAlphaParam(0.01f, "gloves_fingers_alpha.tga", false, true), null); - Params[1062] = new VisualParam(1062, "tattoo_head_red", 1, "tattoo", String.Empty, String.Empty, String.Empty, 1f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(0, 0, 0, 255), new Color4(255, 0, 0, 255) })); - Params[1063] = new VisualParam(1063, "tattoo_head_green", 1, "tattoo", String.Empty, String.Empty, String.Empty, 1f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(0, 0, 0, 255), new Color4(0, 255, 0, 255) })); - Params[1064] = new VisualParam(1064, "tattoo_head_blue", 1, "tattoo", String.Empty, String.Empty, String.Empty, 1f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(0, 0, 0, 255), new Color4(0, 0, 255, 255) })); - Params[1065] = new VisualParam(1065, "tattoo_upper_red", 1, "tattoo", String.Empty, String.Empty, String.Empty, 1f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(0, 0, 0, 255), new Color4(255, 0, 0, 255) })); - Params[1066] = new VisualParam(1066, "tattoo_upper_green", 1, "tattoo", String.Empty, String.Empty, String.Empty, 1f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(0, 0, 0, 255), new Color4(0, 255, 0, 255) })); - Params[1067] = new VisualParam(1067, "tattoo_upper_blue", 1, "tattoo", String.Empty, String.Empty, String.Empty, 1f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(0, 0, 0, 255), new Color4(0, 0, 255, 255) })); - Params[1068] = new VisualParam(1068, "tattoo_lower_red", 1, "tattoo", String.Empty, String.Empty, String.Empty, 1f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(0, 0, 0, 255), new Color4(255, 0, 0, 255) })); - Params[1069] = new VisualParam(1069, "tattoo_lower_green", 1, "tattoo", String.Empty, String.Empty, String.Empty, 1f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(0, 0, 0, 255), new Color4(0, 255, 0, 255) })); - Params[1070] = new VisualParam(1070, "tattoo_lower_blue", 1, "tattoo", String.Empty, String.Empty, String.Empty, 1f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(0, 0, 0, 255), new Color4(0, 0, 255, 255) })); - Params[1071] = new VisualParam(1071, "tattoo_red", 2, "tattoo", String.Empty, String.Empty, String.Empty, 1f, 0f, 1f, false, new int[] { 1062, 1065, 1068 }, null, null); - Params[1072] = new VisualParam(1072, "tattoo_green", 2, "tattoo", String.Empty, String.Empty, String.Empty, 1f, 0f, 1f, false, new int[] { 1063, 1066, 1069 }, null, null); - Params[1073] = new VisualParam(1073, "tattoo_blue", 2, "tattoo", String.Empty, String.Empty, String.Empty, 1f, 0f, 1f, false, new int[] { 1064, 1067, 1070 }, null, null); - Params[1200] = new VisualParam(1200, "Breast_Physics_UpDown_Driven", 1, "shape", String.Empty, String.Empty, String.Empty, 0f, -3f, 3f, false, null, null, null); - Params[1201] = new VisualParam(1201, "Breast_Physics_InOut_Driven", 1, "shape", String.Empty, String.Empty, String.Empty, 0f, -1.25f, 1.25f, false, null, null, null); - Params[1202] = new VisualParam(1202, "Belly_Physics_Legs_UpDown_Driven", 1, "physics", String.Empty, String.Empty, String.Empty, -1f, -1f, 1f, false, null, null, null); - Params[1203] = new VisualParam(1203, "Belly_Physics_Skirt_UpDown_Driven", 1, "physics", String.Empty, String.Empty, String.Empty, 0f, -1f, 1f, false, null, null, null); - Params[1204] = new VisualParam(1204, "Belly_Physics_Torso_UpDown_Driven", 1, "physics", String.Empty, String.Empty, String.Empty, 0f, -1f, 1f, false, null, null, null); - Params[1205] = new VisualParam(1205, "Butt_Physics_UpDown_Driven", 1, "physics", String.Empty, String.Empty, String.Empty, 0f, -1f, 1f, false, null, null, null); - Params[1206] = new VisualParam(1206, "Butt_Physics_LeftRight_Driven", 1, "physics", String.Empty, String.Empty, String.Empty, 0f, -1f, 1f, false, null, null, null); - Params[1207] = new VisualParam(1207, "Breast_Physics_LeftRight_Driven", 1, "physics", String.Empty, String.Empty, String.Empty, 0f, -2f, 2f, false, null, null, null); - Params[10000] = new VisualParam(10000, "Breast_Physics_Mass", 0, "physics", "Breast Physics Mass", String.Empty, String.Empty, 0.1f, 0.1f, 1f, false, null, null, null); - Params[10001] = new VisualParam(10001, "Breast_Physics_Gravity", 0, "physics", "Breast Physics Gravity", String.Empty, String.Empty, 0f, 0f, 30f, false, null, null, null); - Params[10002] = new VisualParam(10002, "Breast_Physics_Drag", 0, "physics", "Breast Physics Drag", String.Empty, String.Empty, 1f, 0f, 10f, false, null, null, null); - Params[10003] = new VisualParam(10003, "Breast_Physics_UpDown_Max_Effect", 0, "physics", "Breast Physics UpDown Max Effect", String.Empty, String.Empty, 0f, 0f, 3f, false, null, null, null); - Params[10004] = new VisualParam(10004, "Breast_Physics_UpDown_Spring", 0, "physics", "Breast Physics UpDown Spring", String.Empty, String.Empty, 10f, 0f, 100f, false, null, null, null); - Params[10005] = new VisualParam(10005, "Breast_Physics_UpDown_Gain", 0, "physics", "Breast Physics UpDown Gain", String.Empty, String.Empty, 10f, 1f, 100f, false, null, null, null); - Params[10006] = new VisualParam(10006, "Breast_Physics_UpDown_Damping", 0, "physics", "Breast Physics UpDown Damping", String.Empty, String.Empty, 0.2f, 0f, 1f, false, null, null, null); - Params[10007] = new VisualParam(10007, "Breast_Physics_InOut_Max_Effect", 0, "physics", "Breast Physics InOut Max Effect", String.Empty, String.Empty, 0f, 0f, 3f, false, null, null, null); - Params[10008] = new VisualParam(10008, "Breast_Physics_InOut_Spring", 0, "physics", "Breast Physics InOut Spring", String.Empty, String.Empty, 10f, 0f, 100f, false, null, null, null); - Params[10009] = new VisualParam(10009, "Breast_Physics_InOut_Gain", 0, "physics", "Breast Physics InOut Gain", String.Empty, String.Empty, 10f, 1f, 100f, false, null, null, null); - Params[10010] = new VisualParam(10010, "Breast_Physics_InOut_Damping", 0, "physics", "Breast Physics InOut Damping", String.Empty, String.Empty, 0.2f, 0f, 1f, false, null, null, null); - Params[10011] = new VisualParam(10011, "Belly_Physics_Mass", 0, "physics", "Belly Physics Mass", String.Empty, String.Empty, 0.1f, 0.1f, 1f, false, null, null, null); - Params[10012] = new VisualParam(10012, "Belly_Physics_Gravity", 0, "physics", "Belly Physics Gravity", String.Empty, String.Empty, 0f, 0f, 30f, false, null, null, null); - Params[10013] = new VisualParam(10013, "Belly_Physics_Drag", 0, "physics", "Belly Physics Drag", String.Empty, String.Empty, 1f, 0f, 10f, false, null, null, null); - Params[10014] = new VisualParam(10014, "Belly_Physics_UpDown_Max_Effect", 0, "physics", "Belly Physics UpDown Max Effect", String.Empty, String.Empty, 0f, 0f, 3f, false, null, null, null); - Params[10015] = new VisualParam(10015, "Belly_Physics_UpDown_Spring", 0, "physics", "Belly Physics UpDown Spring", String.Empty, String.Empty, 10f, 0f, 100f, false, null, null, null); - Params[10016] = new VisualParam(10016, "Belly_Physics_UpDown_Gain", 0, "physics", "Belly Physics UpDown Gain", String.Empty, String.Empty, 10f, 1f, 100f, false, null, null, null); - Params[10017] = new VisualParam(10017, "Belly_Physics_UpDown_Damping", 0, "physics", "Belly Physics UpDown Damping", String.Empty, String.Empty, 0.2f, 0f, 1f, false, null, null, null); - Params[10018] = new VisualParam(10018, "Butt_Physics_Mass", 0, "physics", "Butt Physics Mass", String.Empty, String.Empty, 0.1f, 0.1f, 1f, false, null, null, null); - Params[10019] = new VisualParam(10019, "Butt_Physics_Gravity", 0, "physics", "Butt Physics Gravity", String.Empty, String.Empty, 0f, 0f, 30f, false, null, null, null); - Params[10020] = new VisualParam(10020, "Butt_Physics_Drag", 0, "physics", "Butt Physics Drag", String.Empty, String.Empty, 1f, 0f, 10f, false, null, null, null); - Params[10021] = new VisualParam(10021, "Butt_Physics_UpDown_Max_Effect", 0, "physics", "Butt Physics UpDown Max Effect", String.Empty, String.Empty, 0f, 0f, 3f, false, null, null, null); - Params[10022] = new VisualParam(10022, "Butt_Physics_UpDown_Spring", 0, "physics", "Butt Physics UpDown Spring", String.Empty, String.Empty, 10f, 0f, 100f, false, null, null, null); - Params[10023] = new VisualParam(10023, "Butt_Physics_UpDown_Gain", 0, "physics", "Butt Physics UpDown Gain", String.Empty, String.Empty, 10f, 1f, 100f, false, null, null, null); - Params[10024] = new VisualParam(10024, "Butt_Physics_UpDown_Damping", 0, "physics", "Butt Physics UpDown Damping", String.Empty, String.Empty, 0.2f, 0f, 1f, false, null, null, null); - Params[10025] = new VisualParam(10025, "Butt_Physics_LeftRight_Max_Effect", 0, "physics", "Butt Physics LeftRight Max Effect", String.Empty, String.Empty, 0f, 0f, 3f, false, null, null, null); - Params[10026] = new VisualParam(10026, "Butt_Physics_LeftRight_Spring", 0, "physics", "Butt Physics LeftRight Spring", String.Empty, String.Empty, 10f, 0f, 100f, false, null, null, null); - Params[10027] = new VisualParam(10027, "Butt_Physics_LeftRight_Gain", 0, "physics", "Butt Physics LeftRight Gain", String.Empty, String.Empty, 10f, 1f, 100f, false, null, null, null); - Params[10028] = new VisualParam(10028, "Butt_Physics_LeftRight_Damping", 0, "physics", "Butt Physics LeftRight Damping", String.Empty, String.Empty, 0.2f, 0f, 1f, false, null, null, null); - Params[10029] = new VisualParam(10029, "Breast_Physics_LeftRight_Max_Effect", 0, "physics", "Breast Physics LeftRight Max Effect", String.Empty, String.Empty, 0f, 0f, 3f, false, null, null, null); - Params[10030] = new VisualParam(10030, "Breast_Physics_LeftRight_Spring", 0, "physics", "Breast Physics LeftRight Spring", String.Empty, String.Empty, 10f, 0f, 100f, false, null, null, null); - Params[10031] = new VisualParam(10031, "Breast_Physics_LeftRight_Gain", 0, "physics", "Breast Physics LeftRight Gain", String.Empty, String.Empty, 10f, 1f, 100f, false, null, null, null); - Params[10032] = new VisualParam(10032, "Breast_Physics_LeftRight_Damping", 0, "physics", "Breast Physics LeftRight Damping", String.Empty, String.Empty, 0.2f, 0f, 1f, false, null, null, null); + Params[899] = new VisualParam(899, "Upper Clothes Shading", 1, "shirt", string.Empty, string.Empty, string.Empty, 0f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(0, 0, 0, 0), new Color4(0, 0, 0, 80) })); + Params[900] = new VisualParam(900, "Sleeve Length Shadow", 1, "shirt", string.Empty, string.Empty, string.Empty, 0.02f, 0.02f, 0.87f, false, null, new VisualAlphaParam(0.03f, "shirt_sleeve_alpha.tga", true, false), null); + Params[901] = new VisualParam(901, "Shirt Shadow Bottom", 1, "shirt", string.Empty, string.Empty, string.Empty, 0.02f, 0.02f, 1f, false, null, new VisualAlphaParam(0.05f, "shirt_bottom_alpha.tga", true, true), null); + Params[902] = new VisualParam(902, "Collar Front Shadow Height", 1, "shirt", string.Empty, string.Empty, string.Empty, 0.02f, 0.02f, 1f, false, null, new VisualAlphaParam(0.02f, "shirt_collar_alpha.tga", true, true), null); + Params[903] = new VisualParam(903, "Collar Back Shadow Height", 1, "shirt", string.Empty, string.Empty, string.Empty, 0.02f, 0.02f, 1f, false, null, new VisualAlphaParam(0.02f, "shirt_collar_back_alpha.tga", true, true), null); + Params[913] = new VisualParam(913, "Lower Clothes Shading", 1, "pants", string.Empty, string.Empty, string.Empty, 0f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(0, 0, 0, 0), new Color4(0, 0, 0, 80) })); + Params[914] = new VisualParam(914, "Waist Height Shadow", 1, "pants", string.Empty, string.Empty, string.Empty, 0.02f, 0.02f, 1f, false, null, new VisualAlphaParam(0.04f, "pants_waist_alpha.tga", true, false), null); + Params[915] = new VisualParam(915, "Pants Length Shadow", 1, "pants", string.Empty, string.Empty, string.Empty, 0.02f, 0.02f, 1f, false, null, new VisualAlphaParam(0.03f, "pants_length_alpha.tga", true, false), null); + Params[921] = new VisualParam(921, "skirt_red", 0, "skirt", string.Empty, string.Empty, string.Empty, 1f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(0, 0, 0, 255), new Color4(255, 0, 0, 255) })); + Params[922] = new VisualParam(922, "skirt_green", 0, "skirt", string.Empty, string.Empty, string.Empty, 1f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(0, 0, 0, 255), new Color4(0, 255, 0, 255) })); + Params[923] = new VisualParam(923, "skirt_blue", 0, "skirt", string.Empty, string.Empty, string.Empty, 1f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(0, 0, 0, 255), new Color4(0, 0, 255, 255) })); + Params[1000] = new VisualParam(1000, "Eyebrow Size Bump", 1, "hair", string.Empty, string.Empty, string.Empty, 0f, 0f, 1f, true, null, new VisualAlphaParam(0.1f, "eyebrows_alpha.tga", false, false), null); + Params[1001] = new VisualParam(1001, "Eyebrow Size", 1, "hair", string.Empty, string.Empty, string.Empty, 0.5f, 0f, 1f, false, null, new VisualAlphaParam(0.1f, "eyebrows_alpha.tga", false, false), null); + Params[1002] = new VisualParam(1002, "Eyebrow Density Bump", 1, "hair", string.Empty, string.Empty, string.Empty, 0f, 0f, 1f, true, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(255, 255, 255, 0), new Color4(255, 255, 255, 255) })); + Params[1003] = new VisualParam(1003, "Eyebrow Density", 1, "hair", string.Empty, string.Empty, string.Empty, 0f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Blend, new Color4[] { new Color4(255, 255, 255, 0), new Color4(255, 255, 255, 255) })); + Params[1004] = new VisualParam(1004, "Sideburns bump", 1, "hair", string.Empty, string.Empty, string.Empty, 0f, 0f, 1f, true, null, new VisualAlphaParam(0.05f, "facehair_sideburns_alpha.tga", true, false), null); + Params[1005] = new VisualParam(1005, "Sideburns", 1, "hair", string.Empty, string.Empty, string.Empty, 0f, 0f, 1f, false, null, new VisualAlphaParam(0.05f, "facehair_sideburns_alpha.tga", true, false), null); + Params[1006] = new VisualParam(1006, "Moustache bump", 1, "hair", string.Empty, string.Empty, string.Empty, 0f, 0f, 1f, true, null, new VisualAlphaParam(0.05f, "facehair_moustache_alpha.tga", true, false), null); + Params[1007] = new VisualParam(1007, "Moustache", 1, "hair", string.Empty, string.Empty, string.Empty, 0f, 0f, 1f, false, null, new VisualAlphaParam(0.05f, "facehair_moustache_alpha.tga", true, false), null); + Params[1008] = new VisualParam(1008, "Soulpatch bump", 1, "hair", string.Empty, string.Empty, string.Empty, 0f, 0f, 1f, true, null, new VisualAlphaParam(0.1f, "facehair_soulpatch_alpha.tga", true, false), null); + Params[1009] = new VisualParam(1009, "Soulpatch", 1, "hair", string.Empty, string.Empty, string.Empty, 0f, 0f, 1f, false, null, new VisualAlphaParam(0.1f, "facehair_soulpatch_alpha.tga", true, false), null); + Params[1010] = new VisualParam(1010, "Chin Curtains bump", 1, "hair", string.Empty, string.Empty, string.Empty, 0f, 0f, 1f, true, null, new VisualAlphaParam(0.03f, "facehair_chincurtains_alpha.tga", true, false), null); + Params[1011] = new VisualParam(1011, "Chin Curtains", 1, "hair", string.Empty, string.Empty, string.Empty, 0f, 0f, 1f, false, null, new VisualAlphaParam(0.03f, "facehair_chincurtains_alpha.tga", true, false), null); + Params[1012] = new VisualParam(1012, "5 O'Clock Shadow bump", 1, "hair", string.Empty, string.Empty, string.Empty, 0f, 0f, 1f, true, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(255, 255, 255, 255), new Color4(255, 255, 255, 0) })); + Params[1013] = new VisualParam(1013, "Sleeve Length Cloth", 1, "shirt", string.Empty, string.Empty, string.Empty, 0f, 0f, 0.85f, true, null, new VisualAlphaParam(0.01f, "shirt_sleeve_alpha.tga", false, false), null); + Params[1014] = new VisualParam(1014, "Shirt Bottom Cloth", 1, "shirt", string.Empty, string.Empty, string.Empty, 0f, 0f, 1f, true, null, new VisualAlphaParam(0.05f, "shirt_bottom_alpha.tga", false, true), null); + Params[1015] = new VisualParam(1015, "Collar Front Height Cloth", 1, "shirt", string.Empty, string.Empty, string.Empty, 0f, 0f, 1f, true, null, new VisualAlphaParam(0.05f, "shirt_collar_alpha.tga", false, true), null); + Params[1016] = new VisualParam(1016, "Collar Back Height Cloth", 1, "shirt", string.Empty, string.Empty, string.Empty, 0f, 0f, 1f, true, null, new VisualAlphaParam(0.05f, "shirt_collar_back_alpha.tga", false, true), null); + Params[1017] = new VisualParam(1017, "Waist Height Cloth", 1, "pants", string.Empty, string.Empty, string.Empty, 0f, 0f, 1f, true, null, new VisualAlphaParam(0.05f, "pants_waist_alpha.tga", false, false), null); + Params[1018] = new VisualParam(1018, "Pants Length Cloth", 1, "pants", string.Empty, string.Empty, string.Empty, 0f, 0f, 1f, true, null, new VisualAlphaParam(0.01f, "pants_length_alpha.tga", false, false), null); + Params[1019] = new VisualParam(1019, "Jacket Sleeve Length bump", 1, "jacket", string.Empty, string.Empty, string.Empty, 0f, 0f, 1f, true, null, new VisualAlphaParam(0.01f, "shirt_sleeve_alpha.tga", false, false), null); + Params[1020] = new VisualParam(1020, "jacket Sleeve Length", 1, "jacket", string.Empty, string.Empty, string.Empty, 0f, 0f, 1f, false, null, new VisualAlphaParam(0.01f, "shirt_sleeve_alpha.tga", false, false), null); + Params[1021] = new VisualParam(1021, "Jacket Collar Front bump", 1, "jacket", string.Empty, string.Empty, string.Empty, 0f, 0f, 1f, true, null, new VisualAlphaParam(0.05f, "shirt_collar_alpha.tga", false, true), null); + Params[1022] = new VisualParam(1022, "jacket Collar Front", 1, "jacket", string.Empty, string.Empty, string.Empty, 0f, 0f, 1f, false, null, new VisualAlphaParam(0.05f, "shirt_collar_alpha.tga", false, true), null); + Params[1023] = new VisualParam(1023, "Jacket Collar Back bump", 1, "jacket", string.Empty, string.Empty, string.Empty, 0f, 0f, 1f, true, null, new VisualAlphaParam(0.05f, "shirt_collar_back_alpha.tga", false, true), null); + Params[1024] = new VisualParam(1024, "jacket Collar Back", 1, "jacket", string.Empty, string.Empty, string.Empty, 0f, 0f, 1f, false, null, new VisualAlphaParam(0.05f, "shirt_collar_back_alpha.tga", false, true), null); + Params[1025] = new VisualParam(1025, "jacket bottom length upper bump", 1, "jacket", string.Empty, string.Empty, string.Empty, 0f, 0f, 1f, true, null, new VisualAlphaParam(0.01f, "jacket_length_upper_alpha.tga", false, true), null); + Params[1026] = new VisualParam(1026, "jacket open upper bump", 1, "jacket", string.Empty, string.Empty, string.Empty, 0f, 0f, 1f, true, null, new VisualAlphaParam(0.01f, "jacket_open_upper_alpha.tga", false, true), null); + Params[1027] = new VisualParam(1027, "jacket bottom length lower bump", 1, "jacket", string.Empty, string.Empty, string.Empty, 0f, 0f, 1f, true, null, new VisualAlphaParam(0.01f, "jacket_length_lower_alpha.tga", false, false), null); + Params[1028] = new VisualParam(1028, "jacket open lower bump", 1, "jacket", string.Empty, string.Empty, string.Empty, 0f, 0f, 1f, true, null, new VisualAlphaParam(0.01f, "jacket_open_lower_alpha.tga", false, true), null); + Params[1029] = new VisualParam(1029, "Sleeve Length Cloth", 1, "shirt", string.Empty, string.Empty, string.Empty, 0f, 0f, 0.85f, true, null, new VisualAlphaParam(0.01f, "shirt_sleeve_alpha.tga", false, false), null); + Params[1030] = new VisualParam(1030, "Shirt Bottom Cloth", 1, "shirt", string.Empty, string.Empty, string.Empty, 0f, 0f, 1f, true, null, new VisualAlphaParam(0.05f, "shirt_bottom_alpha.tga", false, true), null); + Params[1031] = new VisualParam(1031, "Collar Front Height Cloth", 1, "shirt", string.Empty, string.Empty, string.Empty, 0f, 0f, 1f, true, null, new VisualAlphaParam(0.05f, "shirt_collar_alpha.tga", false, true), null); + Params[1032] = new VisualParam(1032, "Collar Back Height Cloth", 1, "shirt", string.Empty, string.Empty, string.Empty, 0f, 0f, 1f, true, null, new VisualAlphaParam(0.05f, "shirt_collar_back_alpha.tga", false, true), null); + Params[1033] = new VisualParam(1033, "jacket bottom length lower bump", 1, "jacket", string.Empty, string.Empty, string.Empty, 0f, 0f, 1f, true, null, new VisualAlphaParam(0.01f, "jacket_length_lower_alpha.tga", false, false), null); + Params[1034] = new VisualParam(1034, "jacket open lower bump", 1, "jacket", string.Empty, string.Empty, string.Empty, 0f, 0f, 1f, true, null, new VisualAlphaParam(0.01f, "jacket_open_lower_alpha.tga", false, true), null); + Params[1035] = new VisualParam(1035, "Waist Height Cloth", 1, "pants", string.Empty, string.Empty, string.Empty, 0f, 0f, 1f, true, null, new VisualAlphaParam(0.05f, "pants_waist_alpha.tga", false, false), null); + Params[1036] = new VisualParam(1036, "Pants Length Cloth", 1, "pants", string.Empty, string.Empty, string.Empty, 0f, 0f, 1f, true, null, new VisualAlphaParam(0.01f, "pants_length_alpha.tga", false, false), null); + Params[1037] = new VisualParam(1037, "jacket bottom length upper bump", 1, "jacket", string.Empty, string.Empty, string.Empty, 0f, 0f, 1f, true, null, new VisualAlphaParam(0.01f, "jacket_length_upper_alpha.tga", false, true), null); + Params[1038] = new VisualParam(1038, "jacket open upper bump", 1, "jacket", string.Empty, string.Empty, string.Empty, 0f, 0f, 1f, true, null, new VisualAlphaParam(0.01f, "jacket_open_upper_alpha.tga", false, true), null); + Params[1039] = new VisualParam(1039, "Jacket Sleeve Length bump", 1, "jacket", string.Empty, string.Empty, string.Empty, 0f, 0f, 1f, true, null, new VisualAlphaParam(0.01f, "shirt_sleeve_alpha.tga", false, false), null); + Params[1040] = new VisualParam(1040, "Jacket Collar Front bump", 1, "jacket", string.Empty, string.Empty, string.Empty, 0f, 0f, 1f, true, null, new VisualAlphaParam(0.05f, "shirt_collar_alpha.tga", false, true), null); + Params[1041] = new VisualParam(1041, "Jacket Collar Back bump", 1, "jacket", string.Empty, string.Empty, string.Empty, 0f, 0f, 1f, true, null, new VisualAlphaParam(0.05f, "shirt_collar_back_alpha.tga", false, true), null); + Params[1042] = new VisualParam(1042, "Sleeve Length", 1, "undershirt", string.Empty, string.Empty, string.Empty, 0.4f, 0.01f, 1f, false, null, new VisualAlphaParam(0.01f, "shirt_sleeve_alpha.tga", false, false), null); + Params[1043] = new VisualParam(1043, "Sleeve Length bump", 1, "undershirt", string.Empty, string.Empty, string.Empty, 0.4f, 0.01f, 1f, true, null, new VisualAlphaParam(0.01f, "shirt_sleeve_alpha.tga", false, false), null); + Params[1044] = new VisualParam(1044, "Bottom", 1, "undershirt", string.Empty, string.Empty, string.Empty, 0.8f, 0f, 1f, false, null, new VisualAlphaParam(0.05f, "shirt_bottom_alpha.tga", false, true), null); + Params[1045] = new VisualParam(1045, "Bottom bump", 1, "undershirt", string.Empty, string.Empty, string.Empty, 0.8f, 0f, 1f, true, null, new VisualAlphaParam(0.05f, "shirt_bottom_alpha.tga", false, true), null); + Params[1046] = new VisualParam(1046, "Collar Front", 1, "undershirt", string.Empty, string.Empty, string.Empty, 0.8f, 0f, 1f, false, null, new VisualAlphaParam(0.05f, "shirt_collar_alpha.tga", false, true), null); + Params[1047] = new VisualParam(1047, "Collar Front bump", 1, "undershirt", string.Empty, string.Empty, string.Empty, 0.8f, 0f, 1f, true, null, new VisualAlphaParam(0.05f, "shirt_collar_alpha.tga", false, true), null); + Params[1048] = new VisualParam(1048, "Collar Back", 1, "undershirt", string.Empty, "Low", "High", 0.8f, 0f, 1f, false, null, new VisualAlphaParam(0.05f, "shirt_collar_back_alpha.tga", false, true), null); + Params[1049] = new VisualParam(1049, "Collar Back bump", 1, "undershirt", string.Empty, string.Empty, string.Empty, 0.8f, 0f, 1f, true, null, new VisualAlphaParam(0.05f, "shirt_collar_back_alpha.tga", false, true), null); + Params[1050] = new VisualParam(1050, "Socks Length bump", 1, "socks", string.Empty, string.Empty, string.Empty, 0.35f, 0f, 1f, false, null, new VisualAlphaParam(0.01f, "shoe_height_alpha.tga", false, false), null); + Params[1051] = new VisualParam(1051, "Socks Length bump", 1, "socks", string.Empty, string.Empty, string.Empty, 0.35f, 0f, 1f, true, null, new VisualAlphaParam(0.01f, "shoe_height_alpha.tga", false, false), null); + Params[1052] = new VisualParam(1052, "Shoe Height", 1, "shoes", string.Empty, string.Empty, string.Empty, 0.1f, 0f, 1f, false, null, new VisualAlphaParam(0.01f, "shoe_height_alpha.tga", false, false), null); + Params[1053] = new VisualParam(1053, "Shoe Height bump", 1, "shoes", string.Empty, string.Empty, string.Empty, 0.1f, 0f, 1f, true, null, new VisualAlphaParam(0.01f, "shoe_height_alpha.tga", false, false), null); + Params[1054] = new VisualParam(1054, "Pants Length", 1, "underpants", string.Empty, string.Empty, string.Empty, 0.3f, 0f, 1f, false, null, new VisualAlphaParam(0.01f, "pants_length_alpha.tga", false, false), null); + Params[1055] = new VisualParam(1055, "Pants Length", 1, "underpants", string.Empty, string.Empty, string.Empty, 0.3f, 0f, 1f, true, null, new VisualAlphaParam(0.01f, "pants_length_alpha.tga", false, false), null); + Params[1056] = new VisualParam(1056, "Pants Waist", 1, "underpants", string.Empty, string.Empty, string.Empty, 0.8f, 0f, 1f, false, null, new VisualAlphaParam(0.05f, "pants_waist_alpha.tga", false, false), null); + Params[1057] = new VisualParam(1057, "Pants Waist", 1, "underpants", string.Empty, string.Empty, string.Empty, 0.8f, 0f, 1f, true, null, new VisualAlphaParam(0.05f, "pants_waist_alpha.tga", false, false), null); + Params[1058] = new VisualParam(1058, "Glove Length", 1, "gloves", string.Empty, string.Empty, string.Empty, 0.8f, 0.01f, 1f, false, null, new VisualAlphaParam(0.01f, "glove_length_alpha.tga", false, false), null); + Params[1059] = new VisualParam(1059, "Glove Length bump", 1, "gloves", string.Empty, string.Empty, string.Empty, 0.8f, 0.01f, 1f, true, null, new VisualAlphaParam(0.01f, "glove_length_alpha.tga", false, false), null); + Params[1060] = new VisualParam(1060, "Glove Fingers", 1, "gloves", string.Empty, string.Empty, string.Empty, 1f, 0.01f, 1f, false, null, new VisualAlphaParam(0.01f, "gloves_fingers_alpha.tga", false, true), null); + Params[1061] = new VisualParam(1061, "Glove Fingers bump", 1, "gloves", string.Empty, string.Empty, string.Empty, 1f, 0.01f, 1f, true, null, new VisualAlphaParam(0.01f, "gloves_fingers_alpha.tga", false, true), null); + Params[1062] = new VisualParam(1062, "tattoo_head_red", 1, "tattoo", string.Empty, string.Empty, string.Empty, 1f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(0, 0, 0, 255), new Color4(255, 0, 0, 255) })); + Params[1063] = new VisualParam(1063, "tattoo_head_green", 1, "tattoo", string.Empty, string.Empty, string.Empty, 1f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(0, 0, 0, 255), new Color4(0, 255, 0, 255) })); + Params[1064] = new VisualParam(1064, "tattoo_head_blue", 1, "tattoo", string.Empty, string.Empty, string.Empty, 1f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(0, 0, 0, 255), new Color4(0, 0, 255, 255) })); + Params[1065] = new VisualParam(1065, "tattoo_upper_red", 1, "tattoo", string.Empty, string.Empty, string.Empty, 1f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(0, 0, 0, 255), new Color4(255, 0, 0, 255) })); + Params[1066] = new VisualParam(1066, "tattoo_upper_green", 1, "tattoo", string.Empty, string.Empty, string.Empty, 1f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(0, 0, 0, 255), new Color4(0, 255, 0, 255) })); + Params[1067] = new VisualParam(1067, "tattoo_upper_blue", 1, "tattoo", string.Empty, string.Empty, string.Empty, 1f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(0, 0, 0, 255), new Color4(0, 0, 255, 255) })); + Params[1068] = new VisualParam(1068, "tattoo_lower_red", 1, "tattoo", string.Empty, string.Empty, string.Empty, 1f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(0, 0, 0, 255), new Color4(255, 0, 0, 255) })); + Params[1069] = new VisualParam(1069, "tattoo_lower_green", 1, "tattoo", string.Empty, string.Empty, string.Empty, 1f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(0, 0, 0, 255), new Color4(0, 255, 0, 255) })); + Params[1070] = new VisualParam(1070, "tattoo_lower_blue", 1, "tattoo", string.Empty, string.Empty, string.Empty, 1f, 0f, 1f, false, null, null, new VisualColorParam(VisualColorOperation.Add, new Color4[] { new Color4(0, 0, 0, 255), new Color4(0, 0, 255, 255) })); + Params[1071] = new VisualParam(1071, "tattoo_red", 2, "tattoo", string.Empty, string.Empty, string.Empty, 1f, 0f, 1f, false, new int[] { 1062, 1065, 1068 }, null, null); + Params[1072] = new VisualParam(1072, "tattoo_green", 2, "tattoo", string.Empty, string.Empty, string.Empty, 1f, 0f, 1f, false, new int[] { 1063, 1066, 1069 }, null, null); + Params[1073] = new VisualParam(1073, "tattoo_blue", 2, "tattoo", string.Empty, string.Empty, string.Empty, 1f, 0f, 1f, false, new int[] { 1064, 1067, 1070 }, null, null); + Params[1200] = new VisualParam(1200, "Breast_Physics_UpDown_Driven", 1, "shape", string.Empty, string.Empty, string.Empty, 0f, -3f, 3f, false, null, null, null); + Params[1201] = new VisualParam(1201, "Breast_Physics_InOut_Driven", 1, "shape", string.Empty, string.Empty, string.Empty, 0f, -1.25f, 1.25f, false, null, null, null); + Params[1202] = new VisualParam(1202, "Belly_Physics_Legs_UpDown_Driven", 1, "physics", string.Empty, string.Empty, string.Empty, -1f, -1f, 1f, false, null, null, null); + Params[1203] = new VisualParam(1203, "Belly_Physics_Skirt_UpDown_Driven", 1, "physics", string.Empty, string.Empty, string.Empty, 0f, -1f, 1f, false, null, null, null); + Params[1204] = new VisualParam(1204, "Belly_Physics_Torso_UpDown_Driven", 1, "physics", string.Empty, string.Empty, string.Empty, 0f, -1f, 1f, false, null, null, null); + Params[1205] = new VisualParam(1205, "Butt_Physics_UpDown_Driven", 1, "physics", string.Empty, string.Empty, string.Empty, 0f, -1f, 1f, false, null, null, null); + Params[1206] = new VisualParam(1206, "Butt_Physics_LeftRight_Driven", 1, "physics", string.Empty, string.Empty, string.Empty, 0f, -1f, 1f, false, null, null, null); + Params[1207] = new VisualParam(1207, "Breast_Physics_LeftRight_Driven", 1, "physics", string.Empty, string.Empty, string.Empty, 0f, -2f, 2f, false, null, null, null); + Params[10000] = new VisualParam(10000, "Breast_Physics_Mass", 0, "physics", "Breast Physics Mass", string.Empty, string.Empty, 0.1f, 0.1f, 1f, false, null, null, null); + Params[10001] = new VisualParam(10001, "Breast_Physics_Gravity", 0, "physics", "Breast Physics Gravity", string.Empty, string.Empty, 0f, 0f, 30f, false, null, null, null); + Params[10002] = new VisualParam(10002, "Breast_Physics_Drag", 0, "physics", "Breast Physics Drag", string.Empty, string.Empty, 1f, 0f, 10f, false, null, null, null); + Params[10003] = new VisualParam(10003, "Breast_Physics_UpDown_Max_Effect", 0, "physics", "Breast Physics UpDown Max Effect", string.Empty, string.Empty, 0f, 0f, 3f, false, null, null, null); + Params[10004] = new VisualParam(10004, "Breast_Physics_UpDown_Spring", 0, "physics", "Breast Physics UpDown Spring", string.Empty, string.Empty, 10f, 0f, 100f, false, null, null, null); + Params[10005] = new VisualParam(10005, "Breast_Physics_UpDown_Gain", 0, "physics", "Breast Physics UpDown Gain", string.Empty, string.Empty, 10f, 1f, 100f, false, null, null, null); + Params[10006] = new VisualParam(10006, "Breast_Physics_UpDown_Damping", 0, "physics", "Breast Physics UpDown Damping", string.Empty, string.Empty, 0.2f, 0f, 1f, false, null, null, null); + Params[10007] = new VisualParam(10007, "Breast_Physics_InOut_Max_Effect", 0, "physics", "Breast Physics InOut Max Effect", string.Empty, string.Empty, 0f, 0f, 3f, false, null, null, null); + Params[10008] = new VisualParam(10008, "Breast_Physics_InOut_Spring", 0, "physics", "Breast Physics InOut Spring", string.Empty, string.Empty, 10f, 0f, 100f, false, null, null, null); + Params[10009] = new VisualParam(10009, "Breast_Physics_InOut_Gain", 0, "physics", "Breast Physics InOut Gain", string.Empty, string.Empty, 10f, 1f, 100f, false, null, null, null); + Params[10010] = new VisualParam(10010, "Breast_Physics_InOut_Damping", 0, "physics", "Breast Physics InOut Damping", string.Empty, string.Empty, 0.2f, 0f, 1f, false, null, null, null); + Params[10011] = new VisualParam(10011, "Belly_Physics_Mass", 0, "physics", "Belly Physics Mass", string.Empty, string.Empty, 0.1f, 0.1f, 1f, false, null, null, null); + Params[10012] = new VisualParam(10012, "Belly_Physics_Gravity", 0, "physics", "Belly Physics Gravity", string.Empty, string.Empty, 0f, 0f, 30f, false, null, null, null); + Params[10013] = new VisualParam(10013, "Belly_Physics_Drag", 0, "physics", "Belly Physics Drag", string.Empty, string.Empty, 1f, 0f, 10f, false, null, null, null); + Params[10014] = new VisualParam(10014, "Belly_Physics_UpDown_Max_Effect", 0, "physics", "Belly Physics UpDown Max Effect", string.Empty, string.Empty, 0f, 0f, 3f, false, null, null, null); + Params[10015] = new VisualParam(10015, "Belly_Physics_UpDown_Spring", 0, "physics", "Belly Physics UpDown Spring", string.Empty, string.Empty, 10f, 0f, 100f, false, null, null, null); + Params[10016] = new VisualParam(10016, "Belly_Physics_UpDown_Gain", 0, "physics", "Belly Physics UpDown Gain", string.Empty, string.Empty, 10f, 1f, 100f, false, null, null, null); + Params[10017] = new VisualParam(10017, "Belly_Physics_UpDown_Damping", 0, "physics", "Belly Physics UpDown Damping", string.Empty, string.Empty, 0.2f, 0f, 1f, false, null, null, null); + Params[10018] = new VisualParam(10018, "Butt_Physics_Mass", 0, "physics", "Butt Physics Mass", string.Empty, string.Empty, 0.1f, 0.1f, 1f, false, null, null, null); + Params[10019] = new VisualParam(10019, "Butt_Physics_Gravity", 0, "physics", "Butt Physics Gravity", string.Empty, string.Empty, 0f, 0f, 30f, false, null, null, null); + Params[10020] = new VisualParam(10020, "Butt_Physics_Drag", 0, "physics", "Butt Physics Drag", string.Empty, string.Empty, 1f, 0f, 10f, false, null, null, null); + Params[10021] = new VisualParam(10021, "Butt_Physics_UpDown_Max_Effect", 0, "physics", "Butt Physics UpDown Max Effect", string.Empty, string.Empty, 0f, 0f, 3f, false, null, null, null); + Params[10022] = new VisualParam(10022, "Butt_Physics_UpDown_Spring", 0, "physics", "Butt Physics UpDown Spring", string.Empty, string.Empty, 10f, 0f, 100f, false, null, null, null); + Params[10023] = new VisualParam(10023, "Butt_Physics_UpDown_Gain", 0, "physics", "Butt Physics UpDown Gain", string.Empty, string.Empty, 10f, 1f, 100f, false, null, null, null); + Params[10024] = new VisualParam(10024, "Butt_Physics_UpDown_Damping", 0, "physics", "Butt Physics UpDown Damping", string.Empty, string.Empty, 0.2f, 0f, 1f, false, null, null, null); + Params[10025] = new VisualParam(10025, "Butt_Physics_LeftRight_Max_Effect", 0, "physics", "Butt Physics LeftRight Max Effect", string.Empty, string.Empty, 0f, 0f, 3f, false, null, null, null); + Params[10026] = new VisualParam(10026, "Butt_Physics_LeftRight_Spring", 0, "physics", "Butt Physics LeftRight Spring", string.Empty, string.Empty, 10f, 0f, 100f, false, null, null, null); + Params[10027] = new VisualParam(10027, "Butt_Physics_LeftRight_Gain", 0, "physics", "Butt Physics LeftRight Gain", string.Empty, string.Empty, 10f, 1f, 100f, false, null, null, null); + Params[10028] = new VisualParam(10028, "Butt_Physics_LeftRight_Damping", 0, "physics", "Butt Physics LeftRight Damping", string.Empty, string.Empty, 0.2f, 0f, 1f, false, null, null, null); + Params[10029] = new VisualParam(10029, "Breast_Physics_LeftRight_Max_Effect", 0, "physics", "Breast Physics LeftRight Max Effect", string.Empty, string.Empty, 0f, 0f, 3f, false, null, null, null); + Params[10030] = new VisualParam(10030, "Breast_Physics_LeftRight_Spring", 0, "physics", "Breast Physics LeftRight Spring", string.Empty, string.Empty, 10f, 0f, 100f, false, null, null, null); + Params[10031] = new VisualParam(10031, "Breast_Physics_LeftRight_Gain", 0, "physics", "Breast Physics LeftRight Gain", string.Empty, string.Empty, 10f, 1f, 100f, false, null, null, null); + Params[10032] = new VisualParam(10032, "Breast_Physics_LeftRight_Damping", 0, "physics", "Breast Physics LeftRight Damping", string.Empty, string.Empty, 0.2f, 0f, 1f, false, null, null, null); } } } diff --git a/Programs/GridProxy/GridProxy.cs b/Programs/GridProxy/GridProxy.cs index c761c552..c7a4db2e 100644 --- a/Programs/GridProxy/GridProxy.cs +++ b/Programs/GridProxy/GridProxy.cs @@ -658,7 +658,7 @@ namespace GridProxy } byte[] respBuf = null; - string consoleMsg = String.Empty; + string consoleMsg = string.Empty; if (shortCircuit) { @@ -910,7 +910,7 @@ namespace GridProxy { string val = m[key].AsString(); - if (!String.IsNullOrEmpty(val)) + if (!string.IsNullOrEmpty(val)) { if (!KnownCaps.ContainsKey(val)) { diff --git a/Programs/GridProxy/Plugins/ClientAO.cs b/Programs/GridProxy/Plugins/ClientAO.cs index 30203e2c..86369fdb 100644 --- a/Programs/GridProxy/Plugins/ClientAO.cs +++ b/Programs/GridProxy/Plugins/ClientAO.cs @@ -214,7 +214,7 @@ public class ClientAO : ProxyPlugin } // add a delegate to monitor inventory infos proxy.AddDelegate(PacketType.InventoryDescendents, Direction.Incoming, this.inventoryPacketDelegate); - RequestFindObjectByPath(frame.InventoryRoot, String.Join(" ", tmp)); + RequestFindObjectByPath(frame.InventoryRoot, string.Join(" ", tmp)); } } @@ -642,7 +642,7 @@ public class ClientAO : ProxyPlugin byte[] tmp = new byte[downloadedbytes]; Buffer.BlockCopy(buffer, 0, tmp, 0, downloadedbytes); buffer = tmp; - String notecardtext = getNotecardText(Utils.BytesToString(buffer)); + string notecardtext = getNotecardText(Utils.BytesToString(buffer)); //Load config, wetikon format loadWetIkon(notecardtext); diff --git a/Programs/VoiceTest/VoiceTest.cs b/Programs/VoiceTest/VoiceTest.cs index 16a54791..01596483 100644 --- a/Programs/VoiceTest/VoiceTest.cs +++ b/Programs/VoiceTest/VoiceTest.cs @@ -52,11 +52,11 @@ namespace VoiceTest static AutoResetEvent EventQueueRunningEvent = new AutoResetEvent(false); static AutoResetEvent ProvisionEvent = new AutoResetEvent(false); static AutoResetEvent ParcelVoiceInfoEvent = new AutoResetEvent(false); - static string VoiceAccount = String.Empty; - static string VoicePassword = String.Empty; - static string VoiceRegionName = String.Empty; + static string VoiceAccount = string.Empty; + static string VoicePassword = string.Empty; + static string VoiceRegionName = string.Empty; static int VoiceLocalID = 0; - static string VoiceChannelURI = String.Empty; + static string VoiceChannelURI = string.Empty; static void Main(string[] args) { @@ -122,7 +122,7 @@ namespace VoiceTest Console.WriteLine("Creating voice connector..."); int status; string connectorHandle = voice.CreateConnector(out status); - if (String.IsNullOrEmpty(connectorHandle)) + if (string.IsNullOrEmpty(connectorHandle)) throw new VoiceException("Failed to create a voice connector, error code: " + status, true); Console.WriteLine("Voice connector handle: " + connectorHandle); @@ -144,7 +144,7 @@ namespace VoiceTest Console.WriteLine("Logging in to voice server " + voice.VoiceServer); string accountHandle = voice.Login(VoiceAccount, VoicePassword, connectorHandle, out status); - if (String.IsNullOrEmpty(accountHandle)) + if (string.IsNullOrEmpty(accountHandle)) throw new VoiceException("Login failed, error code: " + status, true); Console.WriteLine("Login succeeded, account handle: " + accountHandle); diff --git a/Programs/examples/PacketDump/PacketDump.cs b/Programs/examples/PacketDump/PacketDump.cs index 35d434d1..1cb536bd 100644 --- a/Programs/examples/PacketDump/PacketDump.cs +++ b/Programs/examples/PacketDump/PacketDump.cs @@ -78,7 +78,7 @@ namespace PacketDump // Determine how long to run for int start = Environment.TickCount; - int milliseconds = Int32.Parse(args[3]) * 1000; + int milliseconds = int.Parse(args[3]) * 1000; bool forever = (milliseconds <= 0); // Packet handling is done with asynchronous callbacks. Run a sleeping loop in the main diff --git a/Programs/mapgenerator/ProtocolManager.cs b/Programs/mapgenerator/ProtocolManager.cs index ccf7d698..63098aed 100644 --- a/Programs/mapgenerator/ProtocolManager.cs +++ b/Programs/mapgenerator/ProtocolManager.cs @@ -503,9 +503,9 @@ namespace Mapgenerator if (tokens[2].Length > 2 && tokens[2].Substring(0, 2) == "0x") { tokens[2] = tokens[2].Substring(2, tokens[2].Length - 2); - packetID = UInt32.Parse(tokens[2], System.Globalization.NumberStyles.HexNumber); + packetID = uint.Parse(tokens[2], System.Globalization.NumberStyles.HexNumber); } else { - packetID = UInt32.Parse(tokens[2]); + packetID = uint.Parse(tokens[2]); } @@ -597,7 +597,7 @@ namespace Mapgenerator field.KeywordPosition = KeywordPosition(field.Name); field.Type = (FieldType)Enum.Parse(typeof(FieldType), tokens[2], true); - field.Count = tokens[3] != "}" ? Int32.Parse(tokens[3]) : 1; + field.Count = tokens[3] != "}" ? int.Parse(tokens[3]) : 1; // Save this field to the current block currentBlock.Fields.Add(field); @@ -630,7 +630,7 @@ namespace Mapgenerator } else if (tokens[1] == "Multiple") { - currentBlock.Count = Int32.Parse(tokens[2]); + currentBlock.Count = int.Parse(tokens[2]); } else if (tokens[1] == "Variable") { diff --git a/Programs/mapgenerator/mapgenerator.cs b/Programs/mapgenerator/mapgenerator.cs index 3e5375e2..6d16e354 100644 --- a/Programs/mapgenerator/mapgenerator.cs +++ b/Programs/mapgenerator/mapgenerator.cs @@ -8,7 +8,7 @@ namespace Mapgenerator { static void WriteFieldMember(TextWriter writer, MapField field) { - string type = String.Empty; + string type = string.Empty; switch (field.Type) {